@selentar/analitoly 0.1.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 (186) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +93 -0
  3. package/api/dist/dashboards/dash_1775220041958_v1r8io.json +829 -0
  4. package/api/dist/dashboards/dash_1775222037264_1rrsrd.json +309 -0
  5. package/api/dist/src/agent/agent.controller.d.ts +26 -0
  6. package/api/dist/src/agent/agent.controller.js +124 -0
  7. package/api/dist/src/agent/agent.controller.js.map +1 -0
  8. package/api/dist/src/agent/agent.module.d.ts +2 -0
  9. package/api/dist/src/agent/agent.module.js +23 -0
  10. package/api/dist/src/agent/agent.module.js.map +1 -0
  11. package/api/dist/src/agent/agent.service.d.ts +39 -0
  12. package/api/dist/src/agent/agent.service.js +389 -0
  13. package/api/dist/src/agent/agent.service.js.map +1 -0
  14. package/api/dist/src/agent/mcp-config.d.ts +9 -0
  15. package/api/dist/src/agent/mcp-config.js +51 -0
  16. package/api/dist/src/agent/mcp-config.js.map +1 -0
  17. package/api/dist/src/app.module.d.ts +2 -0
  18. package/api/dist/src/app.module.js +52 -0
  19. package/api/dist/src/app.module.js.map +1 -0
  20. package/api/dist/src/chart/chart.controller.d.ts +8 -0
  21. package/api/dist/src/chart/chart.controller.js +38 -0
  22. package/api/dist/src/chart/chart.controller.js.map +1 -0
  23. package/api/dist/src/chart/chart.module.d.ts +2 -0
  24. package/api/dist/src/chart/chart.module.js +24 -0
  25. package/api/dist/src/chart/chart.module.js.map +1 -0
  26. package/api/dist/src/chart/chart.service.d.ts +32 -0
  27. package/api/dist/src/chart/chart.service.js +106 -0
  28. package/api/dist/src/chart/chart.service.js.map +1 -0
  29. package/api/dist/src/chat/chat.controller.d.ts +14 -0
  30. package/api/dist/src/chat/chat.controller.js +73 -0
  31. package/api/dist/src/chat/chat.controller.js.map +1 -0
  32. package/api/dist/src/chat/chat.module.d.ts +2 -0
  33. package/api/dist/src/chat/chat.module.js +22 -0
  34. package/api/dist/src/chat/chat.module.js.map +1 -0
  35. package/api/dist/src/chat/chat.service.d.ts +25 -0
  36. package/api/dist/src/chat/chat.service.js +168 -0
  37. package/api/dist/src/chat/chat.service.js.map +1 -0
  38. package/api/dist/src/connection/connection.controller.d.ts +46 -0
  39. package/api/dist/src/connection/connection.controller.js +189 -0
  40. package/api/dist/src/connection/connection.controller.js.map +1 -0
  41. package/api/dist/src/connection/connection.model.d.ts +116 -0
  42. package/api/dist/src/connection/connection.model.js +23 -0
  43. package/api/dist/src/connection/connection.model.js.map +1 -0
  44. package/api/dist/src/connection/connection.module.d.ts +2 -0
  45. package/api/dist/src/connection/connection.module.js +31 -0
  46. package/api/dist/src/connection/connection.module.js.map +1 -0
  47. package/api/dist/src/connection/connection.repository.d.ts +16 -0
  48. package/api/dist/src/connection/connection.repository.js +195 -0
  49. package/api/dist/src/connection/connection.repository.js.map +1 -0
  50. package/api/dist/src/connection/connection.service.d.ts +50 -0
  51. package/api/dist/src/connection/connection.service.js +343 -0
  52. package/api/dist/src/connection/connection.service.js.map +1 -0
  53. package/api/dist/src/context/context.controller.d.ts +13 -0
  54. package/api/dist/src/context/context.controller.js +86 -0
  55. package/api/dist/src/context/context.controller.js.map +1 -0
  56. package/api/dist/src/context/context.module.d.ts +2 -0
  57. package/api/dist/src/context/context.module.js +39 -0
  58. package/api/dist/src/context/context.module.js.map +1 -0
  59. package/api/dist/src/context/context.service.d.ts +32 -0
  60. package/api/dist/src/context/context.service.js +177 -0
  61. package/api/dist/src/context/context.service.js.map +1 -0
  62. package/api/dist/src/dashboard/dashboard.controller.d.ts +21 -0
  63. package/api/dist/src/dashboard/dashboard.controller.js +109 -0
  64. package/api/dist/src/dashboard/dashboard.controller.js.map +1 -0
  65. package/api/dist/src/dashboard/dashboard.model.d.ts +15 -0
  66. package/api/dist/src/dashboard/dashboard.model.js +3 -0
  67. package/api/dist/src/dashboard/dashboard.model.js.map +1 -0
  68. package/api/dist/src/dashboard/dashboard.module.d.ts +2 -0
  69. package/api/dist/src/dashboard/dashboard.module.js +24 -0
  70. package/api/dist/src/dashboard/dashboard.module.js.map +1 -0
  71. package/api/dist/src/dashboard/dashboard.repository.d.ts +9 -0
  72. package/api/dist/src/dashboard/dashboard.repository.js +72 -0
  73. package/api/dist/src/dashboard/dashboard.repository.js.map +1 -0
  74. package/api/dist/src/dashboard/dashboard.service.d.ts +14 -0
  75. package/api/dist/src/dashboard/dashboard.service.js +87 -0
  76. package/api/dist/src/dashboard/dashboard.service.js.map +1 -0
  77. package/api/dist/src/datasource/connectors/connector.interface.d.ts +6 -0
  78. package/api/dist/src/datasource/connectors/connector.interface.js +3 -0
  79. package/api/dist/src/datasource/connectors/connector.interface.js.map +1 -0
  80. package/api/dist/src/datasource/connectors/mongo.connector.d.ts +30 -0
  81. package/api/dist/src/datasource/connectors/mongo.connector.js +167 -0
  82. package/api/dist/src/datasource/connectors/mongo.connector.js.map +1 -0
  83. package/api/dist/src/datasource/connectors/mongo.connector.test.d.ts +1 -0
  84. package/api/dist/src/datasource/connectors/mongo.connector.test.js +179 -0
  85. package/api/dist/src/datasource/connectors/mongo.connector.test.js.map +1 -0
  86. package/api/dist/src/datasource/connectors/postgres.connector.d.ts +50 -0
  87. package/api/dist/src/datasource/connectors/postgres.connector.js +213 -0
  88. package/api/dist/src/datasource/connectors/postgres.connector.js.map +1 -0
  89. package/api/dist/src/datasource/connectors/postgres.connector.test.d.ts +1 -0
  90. package/api/dist/src/datasource/connectors/postgres.connector.test.js +197 -0
  91. package/api/dist/src/datasource/connectors/postgres.connector.test.js.map +1 -0
  92. package/api/dist/src/datasource/datasource.controller.d.ts +16 -0
  93. package/api/dist/src/datasource/datasource.controller.js +79 -0
  94. package/api/dist/src/datasource/datasource.controller.js.map +1 -0
  95. package/api/dist/src/datasource/datasource.model.d.ts +26 -0
  96. package/api/dist/src/datasource/datasource.model.js +3 -0
  97. package/api/dist/src/datasource/datasource.model.js.map +1 -0
  98. package/api/dist/src/datasource/datasource.module.d.ts +2 -0
  99. package/api/dist/src/datasource/datasource.module.js +31 -0
  100. package/api/dist/src/datasource/datasource.module.js.map +1 -0
  101. package/api/dist/src/datasource/datasource.repository.d.ts +11 -0
  102. package/api/dist/src/datasource/datasource.repository.js +61 -0
  103. package/api/dist/src/datasource/datasource.repository.js.map +1 -0
  104. package/api/dist/src/datasource/datasource.service.d.ts +28 -0
  105. package/api/dist/src/datasource/datasource.service.js +95 -0
  106. package/api/dist/src/datasource/datasource.service.js.map +1 -0
  107. package/api/dist/src/example/example.controller.d.ts +10 -0
  108. package/api/dist/src/example/example.controller.js +43 -0
  109. package/api/dist/src/example/example.controller.js.map +1 -0
  110. package/api/dist/src/example/example.model.d.ts +6 -0
  111. package/api/dist/src/example/example.model.js +3 -0
  112. package/api/dist/src/example/example.model.js.map +1 -0
  113. package/api/dist/src/example/example.module.d.ts +2 -0
  114. package/api/dist/src/example/example.module.js +23 -0
  115. package/api/dist/src/example/example.module.js.map +1 -0
  116. package/api/dist/src/example/example.repository.d.ts +6 -0
  117. package/api/dist/src/example/example.repository.js +30 -0
  118. package/api/dist/src/example/example.repository.js.map +1 -0
  119. package/api/dist/src/example/example.service.d.ts +10 -0
  120. package/api/dist/src/example/example.service.js +31 -0
  121. package/api/dist/src/example/example.service.js.map +1 -0
  122. package/api/dist/src/integration/integration.controller.d.ts +15 -0
  123. package/api/dist/src/integration/integration.controller.js +69 -0
  124. package/api/dist/src/integration/integration.controller.js.map +1 -0
  125. package/api/dist/src/integration/integration.model.d.ts +17 -0
  126. package/api/dist/src/integration/integration.model.js +3 -0
  127. package/api/dist/src/integration/integration.model.js.map +1 -0
  128. package/api/dist/src/integration/integration.module.d.ts +2 -0
  129. package/api/dist/src/integration/integration.module.js +24 -0
  130. package/api/dist/src/integration/integration.module.js.map +1 -0
  131. package/api/dist/src/integration/integration.repository.d.ts +6 -0
  132. package/api/dist/src/integration/integration.repository.js +45 -0
  133. package/api/dist/src/integration/integration.repository.js.map +1 -0
  134. package/api/dist/src/integration/integration.service.d.ts +12 -0
  135. package/api/dist/src/integration/integration.service.js +78 -0
  136. package/api/dist/src/integration/integration.service.js.map +1 -0
  137. package/api/dist/src/main.d.ts +1 -0
  138. package/api/dist/src/main.js +19 -0
  139. package/api/dist/src/main.js.map +1 -0
  140. package/api/dist/src/mcp/grafana.mcp.d.ts +1 -0
  141. package/api/dist/src/mcp/grafana.mcp.js +95 -0
  142. package/api/dist/src/mcp/grafana.mcp.js.map +1 -0
  143. package/api/dist/src/mcp/graylog.mcp.d.ts +1 -0
  144. package/api/dist/src/mcp/graylog.mcp.js +241 -0
  145. package/api/dist/src/mcp/graylog.mcp.js.map +1 -0
  146. package/api/dist/src/mcp/mcp-server.d.ts +1 -0
  147. package/api/dist/src/mcp/mcp-server.js +336 -0
  148. package/api/dist/src/mcp/mcp-server.js.map +1 -0
  149. package/api/dist/src/paths.d.ts +8 -0
  150. package/api/dist/src/paths.js +50 -0
  151. package/api/dist/src/paths.js.map +1 -0
  152. package/api/dist/src/paths.test.d.ts +1 -0
  153. package/api/dist/src/paths.test.js +60 -0
  154. package/api/dist/src/paths.test.js.map +1 -0
  155. package/api/dist/src/project/project.controller.d.ts +44 -0
  156. package/api/dist/src/project/project.controller.js +79 -0
  157. package/api/dist/src/project/project.controller.js.map +1 -0
  158. package/api/dist/src/project/project.model.d.ts +19 -0
  159. package/api/dist/src/project/project.model.js +3 -0
  160. package/api/dist/src/project/project.model.js.map +1 -0
  161. package/api/dist/src/project/project.module.d.ts +2 -0
  162. package/api/dist/src/project/project.module.js +24 -0
  163. package/api/dist/src/project/project.module.js.map +1 -0
  164. package/api/dist/src/project/project.repository.d.ts +6 -0
  165. package/api/dist/src/project/project.repository.js +52 -0
  166. package/api/dist/src/project/project.repository.js.map +1 -0
  167. package/api/dist/src/project/project.service.d.ts +17 -0
  168. package/api/dist/src/project/project.service.js +163 -0
  169. package/api/dist/src/project/project.service.js.map +1 -0
  170. package/api/dist/tsconfig.tsbuildinfo +1 -0
  171. package/api/dist/vitest.config.d.ts +2 -0
  172. package/api/dist/vitest.config.js +10 -0
  173. package/api/dist/vitest.config.js.map +1 -0
  174. package/api/public/dist/Analitoly.png +0 -0
  175. package/api/public/dist/AnalitolyShort.png +0 -0
  176. package/api/public/dist/Gitlab.png +0 -0
  177. package/api/public/dist/Grafana.png +0 -0
  178. package/api/public/dist/Graylog.png +0 -0
  179. package/api/public/dist/Mongodb.png +0 -0
  180. package/api/public/dist/PostgreSQL.png +0 -0
  181. package/api/public/dist/assets/index-BPB3ckw4.js +222 -0
  182. package/api/public/dist/assets/index-CSAGa0SG.js +227 -0
  183. package/api/public/dist/index.html +12 -0
  184. package/bin/analitoly-mcp.js +18 -0
  185. package/bin/analitoly.js +38 -0
  186. package/package.json +54 -0
@@ -0,0 +1,222 @@
1
+ (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();function zR(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var f0={exports:{}},Yc={};/**
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 dM;function MP(){if(dM)return Yc;dM=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,a){var o=null;if(a!==void 0&&(o=""+a),i.key!==void 0&&(o=""+i.key),"key"in i){a={};for(var l in i)l!=="key"&&(a[l]=i[l])}else a=i;return i=a.ref,{$$typeof:t,type:r,key:o,ref:i!==void 0?i:null,props:a}}return Yc.Fragment=e,Yc.jsx=n,Yc.jsxs=n,Yc}var vM;function AP(){return vM||(vM=1,f0.exports=MP()),f0.exports}var E=AP(),h0={exports:{}},Ut={};/**
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 pM;function DP(){if(pM)return Ut;pM=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),g=Symbol.iterator;function p(U){return U===null||typeof U!="object"?null:(U=g&&U[g]||U["@@iterator"],typeof U=="function"?U:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,_={};function b(U,q,P){this.props=U,this.context=q,this.refs=_,this.updater=P||m}b.prototype.isReactComponent={},b.prototype.setState=function(U,q){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,q,"setState")},b.prototype.forceUpdate=function(U){this.updater.enqueueForceUpdate(this,U,"forceUpdate")};function S(){}S.prototype=b.prototype;function T(U,q,P){this.props=U,this.context=q,this.refs=_,this.updater=P||m}var A=T.prototype=new S;A.constructor=T,x(A,b.prototype),A.isPureReactComponent=!0;var D=Array.isArray;function M(){}var k={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function z(U,q,P){var J=P.ref;return{$$typeof:t,type:U,key:q,ref:J!==void 0?J:null,props:P}}function L(U,q){return z(U.type,q,U.props)}function O(U){return typeof U=="object"&&U!==null&&U.$$typeof===t}function H(U){var q={"=":"=0",":":"=2"};return"$"+U.replace(/[=:]/g,function(P){return q[P]})}var F=/\/+/g;function Y(U,q){return typeof U=="object"&&U!==null&&U.key!=null?H(""+U.key):q.toString(36)}function W(U){switch(U.status){case"fulfilled":return U.value;case"rejected":throw U.reason;default:switch(typeof U.status=="string"?U.then(M,M):(U.status="pending",U.then(function(q){U.status==="pending"&&(U.status="fulfilled",U.value=q)},function(q){U.status==="pending"&&(U.status="rejected",U.reason=q)})),U.status){case"fulfilled":return U.value;case"rejected":throw U.reason}}throw U}function V(U,q,P,J,st){var mt=typeof U;(mt==="undefined"||mt==="boolean")&&(U=null);var wt=!1;if(U===null)wt=!0;else switch(mt){case"bigint":case"string":case"number":wt=!0;break;case"object":switch(U.$$typeof){case t:case e:wt=!0;break;case h:return wt=U._init,V(wt(U._payload),q,P,J,st)}}if(wt)return st=st(U),wt=J===""?"."+Y(U,0):J,D(st)?(P="",wt!=null&&(P=wt.replace(F,"$&/")+"/"),V(st,q,P,"",function(Dt){return Dt})):st!=null&&(O(st)&&(st=L(st,P+(st.key==null||U&&U.key===st.key?"":(""+st.key).replace(F,"$&/")+"/")+wt)),q.push(st)),1;wt=0;var gt=J===""?".":J+":";if(D(U))for(var dt=0;dt<U.length;dt++)J=U[dt],mt=gt+Y(J,dt),wt+=V(J,q,P,mt,st);else if(dt=p(U),typeof dt=="function")for(U=dt.call(U),dt=0;!(J=U.next()).done;)J=J.value,mt=gt+Y(J,dt++),wt+=V(J,q,P,mt,st);else if(mt==="object"){if(typeof U.then=="function")return V(W(U),q,P,J,st);throw q=String(U),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(U).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return wt}function X(U,q,P){if(U==null)return U;var J=[],st=0;return V(U,J,"","",function(mt){return q.call(P,mt,st++)}),J}function Z(U){if(U._status===-1){var q=U._result;q=q(),q.then(function(P){(U._status===0||U._status===-1)&&(U._status=1,U._result=P)},function(P){(U._status===0||U._status===-1)&&(U._status=2,U._result=P)}),U._status===-1&&(U._status=0,U._result=q)}if(U._status===1)return U._result.default;throw U._result}var tt=typeof reportError=="function"?reportError:function(U){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=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(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",U);return}console.error(U)},j={map:X,forEach:function(U,q,P){X(U,function(){q.apply(this,arguments)},P)},count:function(U){var q=0;return X(U,function(){q++}),q},toArray:function(U){return X(U,function(q){return q})||[]},only:function(U){if(!O(U))throw Error("React.Children.only expected to receive a single React element child.");return U}};return Ut.Activity=d,Ut.Children=j,Ut.Component=b,Ut.Fragment=n,Ut.Profiler=i,Ut.PureComponent=T,Ut.StrictMode=r,Ut.Suspense=s,Ut.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,Ut.__COMPILER_RUNTIME={__proto__:null,c:function(U){return k.H.useMemoCache(U)}},Ut.cache=function(U){return function(){return U.apply(null,arguments)}},Ut.cacheSignal=function(){return null},Ut.cloneElement=function(U,q,P){if(U==null)throw Error("The argument must be a React element, but you passed "+U+".");var J=x({},U.props),st=U.key;if(q!=null)for(mt in q.key!==void 0&&(st=""+q.key),q)!I.call(q,mt)||mt==="key"||mt==="__self"||mt==="__source"||mt==="ref"&&q.ref===void 0||(J[mt]=q[mt]);var mt=arguments.length-2;if(mt===1)J.children=P;else if(1<mt){for(var wt=Array(mt),gt=0;gt<mt;gt++)wt[gt]=arguments[gt+2];J.children=wt}return z(U.type,st,J)},Ut.createContext=function(U){return U={$$typeof:o,_currentValue:U,_currentValue2:U,_threadCount:0,Provider:null,Consumer:null},U.Provider=U,U.Consumer={$$typeof:a,_context:U},U},Ut.createElement=function(U,q,P){var J,st={},mt=null;if(q!=null)for(J in q.key!==void 0&&(mt=""+q.key),q)I.call(q,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(st[J]=q[J]);var wt=arguments.length-2;if(wt===1)st.children=P;else if(1<wt){for(var gt=Array(wt),dt=0;dt<wt;dt++)gt[dt]=arguments[dt+2];st.children=gt}if(U&&U.defaultProps)for(J in wt=U.defaultProps,wt)st[J]===void 0&&(st[J]=wt[J]);return z(U,mt,st)},Ut.createRef=function(){return{current:null}},Ut.forwardRef=function(U){return{$$typeof:l,render:U}},Ut.isValidElement=O,Ut.lazy=function(U){return{$$typeof:h,_payload:{_status:-1,_result:U},_init:Z}},Ut.memo=function(U,q){return{$$typeof:c,type:U,compare:q===void 0?null:q}},Ut.startTransition=function(U){var q=k.T,P={};k.T=P;try{var J=U(),st=k.S;st!==null&&st(P,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(M,tt)}catch(mt){tt(mt)}finally{q!==null&&P.types!==null&&(q.types=P.types),k.T=q}},Ut.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},Ut.use=function(U){return k.H.use(U)},Ut.useActionState=function(U,q,P){return k.H.useActionState(U,q,P)},Ut.useCallback=function(U,q){return k.H.useCallback(U,q)},Ut.useContext=function(U){return k.H.useContext(U)},Ut.useDebugValue=function(){},Ut.useDeferredValue=function(U,q){return k.H.useDeferredValue(U,q)},Ut.useEffect=function(U,q){return k.H.useEffect(U,q)},Ut.useEffectEvent=function(U){return k.H.useEffectEvent(U)},Ut.useId=function(){return k.H.useId()},Ut.useImperativeHandle=function(U,q,P){return k.H.useImperativeHandle(U,q,P)},Ut.useInsertionEffect=function(U,q){return k.H.useInsertionEffect(U,q)},Ut.useLayoutEffect=function(U,q){return k.H.useLayoutEffect(U,q)},Ut.useMemo=function(U,q){return k.H.useMemo(U,q)},Ut.useOptimistic=function(U,q){return k.H.useOptimistic(U,q)},Ut.useReducer=function(U,q,P){return k.H.useReducer(U,q,P)},Ut.useRef=function(U){return k.H.useRef(U)},Ut.useState=function(U){return k.H.useState(U)},Ut.useSyncExternalStore=function(U,q,P){return k.H.useSyncExternalStore(U,q,P)},Ut.useTransition=function(){return k.H.useTransition()},Ut.version="19.2.4",Ut}var gM;function v_(){return gM||(gM=1,h0.exports=DP()),h0.exports}var vt=v_(),d0={exports:{}},Wc={},v0={exports:{}},p0={};/**
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 mM;function kP(){return mM||(mM=1,(function(t){function e(V,X){var Z=V.length;V.push(X);t:for(;0<Z;){var tt=Z-1>>>1,j=V[tt];if(0<i(j,X))V[tt]=X,V[Z]=j,Z=tt;else break t}}function n(V){return V.length===0?null:V[0]}function r(V){if(V.length===0)return null;var X=V[0],Z=V.pop();if(Z!==X){V[0]=Z;t:for(var tt=0,j=V.length,U=j>>>1;tt<U;){var q=2*(tt+1)-1,P=V[q],J=q+1,st=V[J];if(0>i(P,Z))J<j&&0>i(st,P)?(V[tt]=st,V[J]=Z,tt=J):(V[tt]=P,V[q]=Z,tt=q);else if(J<j&&0>i(st,Z))V[tt]=st,V[J]=Z,tt=J;else break t}}return X}function i(V,X){var Z=V.sortIndex-X.sortIndex;return Z!==0?Z:V.id-X.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var s=[],c=[],h=1,d=null,g=3,p=!1,m=!1,x=!1,_=!1,b=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function A(V){for(var X=n(c);X!==null;){if(X.callback===null)r(c);else if(X.startTime<=V)r(c),X.sortIndex=X.expirationTime,e(s,X);else break;X=n(c)}}function D(V){if(x=!1,A(V),!m)if(n(s)!==null)m=!0,M||(M=!0,H());else{var X=n(c);X!==null&&W(D,X.startTime-V)}}var M=!1,k=-1,I=5,z=-1;function L(){return _?!0:!(t.unstable_now()-z<I)}function O(){if(_=!1,M){var V=t.unstable_now();z=V;var X=!0;try{t:{m=!1,x&&(x=!1,S(k),k=-1),p=!0;var Z=g;try{e:{for(A(V),d=n(s);d!==null&&!(d.expirationTime>V&&L());){var tt=d.callback;if(typeof tt=="function"){d.callback=null,g=d.priorityLevel;var j=tt(d.expirationTime<=V);if(V=t.unstable_now(),typeof j=="function"){d.callback=j,A(V),X=!0;break e}d===n(s)&&r(s),A(V)}else r(s);d=n(s)}if(d!==null)X=!0;else{var U=n(c);U!==null&&W(D,U.startTime-V),X=!1}}break t}finally{d=null,g=Z,p=!1}X=void 0}}finally{X?H():M=!1}}}var H;if(typeof T=="function")H=function(){T(O)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,Y=F.port2;F.port1.onmessage=O,H=function(){Y.postMessage(null)}}else H=function(){b(O,0)};function W(V,X){k=b(function(){V(t.unstable_now())},X)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(V){V.callback=null},t.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<V?Math.floor(1e3/V):5},t.unstable_getCurrentPriorityLevel=function(){return g},t.unstable_next=function(V){switch(g){case 1:case 2:case 3:var X=3;break;default:X=g}var Z=g;g=X;try{return V()}finally{g=Z}},t.unstable_requestPaint=function(){_=!0},t.unstable_runWithPriority=function(V,X){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var Z=g;g=V;try{return X()}finally{g=Z}},t.unstable_scheduleCallback=function(V,X,Z){var tt=t.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?tt+Z:tt):Z=tt,V){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=Z+j,V={id:h++,callback:X,priorityLevel:V,startTime:Z,expirationTime:j,sortIndex:-1},Z>tt?(V.sortIndex=Z,e(c,V),n(s)===null&&V===n(c)&&(x?(S(k),k=-1):x=!0,W(D,Z-tt))):(V.sortIndex=j,e(s,V),m||p||(m=!0,M||(M=!0,H()))),V},t.unstable_shouldYield=L,t.unstable_wrapCallback=function(V){var X=g;return function(){var Z=g;g=X;try{return V.apply(this,arguments)}finally{g=Z}}}})(p0)),p0}var yM;function LP(){return yM||(yM=1,v0.exports=kP()),v0.exports}var g0={exports:{}},Dn={};/**
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 xM;function EP(){if(xM)return Dn;xM=1;var t=v_();function e(s){var c="https://react.dev/errors/"+s;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)c+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+s+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function a(s,c,h){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:d==null?null:""+d,children:s,containerInfo:c,implementation:h}}var o=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(s,c){if(s==="font")return"";if(typeof c=="string")return c==="use-credentials"?c:""}return Dn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Dn.createPortal=function(s,c){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)throw Error(e(299));return a(s,c,null,h)},Dn.flushSync=function(s){var c=o.T,h=r.p;try{if(o.T=null,r.p=2,s)return s()}finally{o.T=c,r.p=h,r.d.f()}},Dn.preconnect=function(s,c){typeof s=="string"&&(c?(c=c.crossOrigin,c=typeof c=="string"?c==="use-credentials"?c:"":void 0):c=null,r.d.C(s,c))},Dn.prefetchDNS=function(s){typeof s=="string"&&r.d.D(s)},Dn.preinit=function(s,c){if(typeof s=="string"&&c&&typeof c.as=="string"){var h=c.as,d=l(h,c.crossOrigin),g=typeof c.integrity=="string"?c.integrity:void 0,p=typeof c.fetchPriority=="string"?c.fetchPriority:void 0;h==="style"?r.d.S(s,typeof c.precedence=="string"?c.precedence:void 0,{crossOrigin:d,integrity:g,fetchPriority:p}):h==="script"&&r.d.X(s,{crossOrigin:d,integrity:g,fetchPriority:p,nonce:typeof c.nonce=="string"?c.nonce:void 0})}},Dn.preinitModule=function(s,c){if(typeof s=="string")if(typeof c=="object"&&c!==null){if(c.as==null||c.as==="script"){var h=l(c.as,c.crossOrigin);r.d.M(s,{crossOrigin:h,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0})}}else c==null&&r.d.M(s)},Dn.preload=function(s,c){if(typeof s=="string"&&typeof c=="object"&&c!==null&&typeof c.as=="string"){var h=c.as,d=l(h,c.crossOrigin);r.d.L(s,h,{crossOrigin:d,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0,type:typeof c.type=="string"?c.type:void 0,fetchPriority:typeof c.fetchPriority=="string"?c.fetchPriority:void 0,referrerPolicy:typeof c.referrerPolicy=="string"?c.referrerPolicy:void 0,imageSrcSet:typeof c.imageSrcSet=="string"?c.imageSrcSet:void 0,imageSizes:typeof c.imageSizes=="string"?c.imageSizes:void 0,media:typeof c.media=="string"?c.media:void 0})}},Dn.preloadModule=function(s,c){if(typeof s=="string")if(c){var h=l(c.as,c.crossOrigin);r.d.m(s,{as:typeof c.as=="string"&&c.as!=="script"?c.as:void 0,crossOrigin:h,integrity:typeof c.integrity=="string"?c.integrity:void 0})}else r.d.m(s)},Dn.requestFormReset=function(s){r.d.r(s)},Dn.unstable_batchedUpdates=function(s,c){return s(c)},Dn.useFormState=function(s,c,h){return o.H.useFormState(s,c,h)},Dn.useFormStatus=function(){return o.H.useHostTransitionStatus()},Dn.version="19.2.4",Dn}var bM;function RP(){if(bM)return g0.exports;bM=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),g0.exports=EP(),g0.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 _M;function IP(){if(_M)return Wc;_M=1;var t=LP(),e=v_(),n=RP();function r(u){var f="https://react.dev/errors/"+u;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)f+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+u+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(u){return!(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)}function a(u){var f=u,v=u;if(u.alternate)for(;f.return;)f=f.return;else{u=f;do f=u,(f.flags&4098)!==0&&(v=f.return),u=f.return;while(u)}return f.tag===3?v:null}function o(u){if(u.tag===13){var f=u.memoizedState;if(f===null&&(u=u.alternate,u!==null&&(f=u.memoizedState)),f!==null)return f.dehydrated}return null}function l(u){if(u.tag===31){var f=u.memoizedState;if(f===null&&(u=u.alternate,u!==null&&(f=u.memoizedState)),f!==null)return f.dehydrated}return null}function s(u){if(a(u)!==u)throw Error(r(188))}function c(u){var f=u.alternate;if(!f){if(f=a(u),f===null)throw Error(r(188));return f!==u?null:u}for(var v=u,y=f;;){var w=v.return;if(w===null)break;var C=w.alternate;if(C===null){if(y=w.return,y!==null){v=y;continue}break}if(w.child===C.child){for(C=w.child;C;){if(C===v)return s(w),u;if(C===y)return s(w),f;C=C.sibling}throw Error(r(188))}if(v.return!==y.return)v=w,y=C;else{for(var R=!1,G=w.child;G;){if(G===v){R=!0,v=w,y=C;break}if(G===y){R=!0,y=w,v=C;break}G=G.sibling}if(!R){for(G=C.child;G;){if(G===v){R=!0,v=C,y=w;break}if(G===y){R=!0,y=C,v=w;break}G=G.sibling}if(!R)throw Error(r(189))}}if(v.alternate!==y)throw Error(r(190))}if(v.tag!==3)throw Error(r(188));return v.stateNode.current===v?u:f}function h(u){var f=u.tag;if(f===5||f===26||f===27||f===6)return u;for(u=u.child;u!==null;){if(f=h(u),f!==null)return f;u=u.sibling}return null}var d=Object.assign,g=Symbol.for("react.element"),p=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),T=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),L=Symbol.for("react.memo_cache_sentinel"),O=Symbol.iterator;function H(u){return u===null||typeof u!="object"?null:(u=O&&u[O]||u["@@iterator"],typeof u=="function"?u:null)}var F=Symbol.for("react.client.reference");function Y(u){if(u==null)return null;if(typeof u=="function")return u.$$typeof===F?null:u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case x:return"Fragment";case b:return"Profiler";case _:return"StrictMode";case D:return"Suspense";case M:return"SuspenseList";case z:return"Activity"}if(typeof u=="object")switch(u.$$typeof){case m:return"Portal";case T:return u.displayName||"Context";case S:return(u._context.displayName||"Context")+".Consumer";case A:var f=u.render;return u=u.displayName,u||(u=f.displayName||f.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case k:return f=u.displayName||null,f!==null?f:Y(u.type)||"Memo";case I:f=u._payload,u=u._init;try{return Y(u(f))}catch{}}return null}var W=Array.isArray,V=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},tt=[],j=-1;function U(u){return{current:u}}function q(u){0>j||(u.current=tt[j],tt[j]=null,j--)}function P(u,f){j++,tt[j]=u.current,u.current=f}var J=U(null),st=U(null),mt=U(null),wt=U(null);function gt(u,f){switch(P(mt,f),P(st,u),P(J,null),f.nodeType){case 9:case 11:u=(u=f.documentElement)&&(u=u.namespaceURI)?B2(u):0;break;default:if(u=f.tagName,f=f.namespaceURI)f=B2(f),u=N2(f,u);else switch(u){case"svg":u=1;break;case"math":u=2;break;default:u=0}}q(J),P(J,u)}function dt(){q(J),q(st),q(mt)}function Dt(u){u.memoizedState!==null&&P(wt,u);var f=J.current,v=N2(f,u.type);f!==v&&(P(st,u),P(J,v))}function yt(u){st.current===u&&(q(J),q(st)),wt.current===u&&(q(wt),jc._currentValue=Z)}var Mt,_e;function Jt(u){if(Mt===void 0)try{throw Error()}catch(v){var f=v.stack.trim().match(/\n( *(at )?)/);Mt=f&&f[1]||"",_e=-1<v.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<v.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Mt+u+_e}var he=!1;function Me(u,f){if(!u||he)return"";he=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var y={DetermineComponentFrameRoot:function(){try{if(f){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(it){var rt=it}Reflect.construct(u,[],ft)}else{try{ft.call()}catch(it){rt=it}u.call(ft.prototype)}}else{try{throw Error()}catch(it){rt=it}(ft=u())&&typeof ft.catch=="function"&&ft.catch(function(){})}}catch(it){if(it&&rt&&typeof it.stack=="string")return[it.stack,rt.stack]}return[null,null]}};y.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var w=Object.getOwnPropertyDescriptor(y.DetermineComponentFrameRoot,"name");w&&w.configurable&&Object.defineProperty(y.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var C=y.DetermineComponentFrameRoot(),R=C[0],G=C[1];if(R&&G){var $=R.split(`
44
+ `),nt=G.split(`
45
+ `);for(w=y=0;y<$.length&&!$[y].includes("DetermineComponentFrameRoot");)y++;for(;w<nt.length&&!nt[w].includes("DetermineComponentFrameRoot");)w++;if(y===$.length||w===nt.length)for(y=$.length-1,w=nt.length-1;1<=y&&0<=w&&$[y]!==nt[w];)w--;for(;1<=y&&0<=w;y--,w--)if($[y]!==nt[w]){if(y!==1||w!==1)do if(y--,w--,0>w||$[y]!==nt[w]){var lt=`
46
+ `+$[y].replace(" at new "," at ");return u.displayName&&lt.includes("<anonymous>")&&(lt=lt.replace("<anonymous>",u.displayName)),lt}while(1<=y&&0<=w);break}}}finally{he=!1,Error.prepareStackTrace=v}return(v=u?u.displayName||u.name:"")?Jt(v):""}function Je(u,f){switch(u.tag){case 26:case 27:case 5:return Jt(u.type);case 16:return Jt("Lazy");case 13:return u.child!==f&&f!==null?Jt("Suspense Fallback"):Jt("Suspense");case 19:return Jt("SuspenseList");case 0:case 15:return Me(u.type,!1);case 11:return Me(u.type.render,!1);case 1:return Me(u.type,!0);case 31:return Jt("Activity");default:return""}}function cr(u){try{var f="",v=null;do f+=Je(u,v),v=u,u=u.return;while(u);return f}catch(y){return`
47
+ Error generating stack: `+y.message+`
48
+ `+y.stack}}var An=Object.prototype.hasOwnProperty,ni=t.unstable_scheduleCallback,qi=t.unstable_cancelCallback,Ho=t.unstable_shouldYield,Qg=t.unstable_requestPaint,Bn=t.unstable_now,Kg=t.unstable_getCurrentPriorityLevel,ut=t.unstable_ImmediatePriority,_t=t.unstable_UserBlockingPriority,Ht=t.unstable_NormalPriority,te=t.unstable_LowPriority,Se=t.unstable_IdlePriority,fr=t.log,Zi=t.unstable_setDisableYieldValue,Nn=null,sn=null;function qn(u){if(typeof fr=="function"&&Zi(u),sn&&typeof sn.setStrictMode=="function")try{sn.setStrictMode(Nn,u)}catch{}}var Le=Math.clz32?Math.clz32:h4,Ea=Math.log,ri=Math.LN2;function h4(u){return u>>>=0,u===0?32:31-(Ea(u)/ri|0)|0}var Uh=256,Yh=262144,Wh=4194304;function jo(u){var f=u&42;if(f!==0)return f;switch(u&-u){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 u&261888;case 262144:case 524288:case 1048576:case 2097152:return u&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return u&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return u}}function Xh(u,f,v){var y=u.pendingLanes;if(y===0)return 0;var w=0,C=u.suspendedLanes,R=u.pingedLanes;u=u.warmLanes;var G=y&134217727;return G!==0?(y=G&~C,y!==0?w=jo(y):(R&=G,R!==0?w=jo(R):v||(v=G&~u,v!==0&&(w=jo(v))))):(G=y&~C,G!==0?w=jo(G):R!==0?w=jo(R):v||(v=y&~u,v!==0&&(w=jo(v)))),w===0?0:f!==0&&f!==w&&(f&C)===0&&(C=w&-w,v=f&-f,C>=v||C===32&&(v&4194048)!==0)?f:w}function tc(u,f){return(u.pendingLanes&~(u.suspendedLanes&~u.pingedLanes)&f)===0}function d4(u,f){switch(u){case 1:case 2:case 4:case 8:case 64:return f+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 f+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 mw(){var u=Wh;return Wh<<=1,(Wh&62914560)===0&&(Wh=4194304),u}function Jg(u){for(var f=[],v=0;31>v;v++)f.push(u);return f}function ec(u,f){u.pendingLanes|=f,f!==268435456&&(u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0)}function v4(u,f,v,y,w,C){var R=u.pendingLanes;u.pendingLanes=v,u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0,u.expiredLanes&=v,u.entangledLanes&=v,u.errorRecoveryDisabledLanes&=v,u.shellSuspendCounter=0;var G=u.entanglements,$=u.expirationTimes,nt=u.hiddenUpdates;for(v=R&~v;0<v;){var lt=31-Le(v),ft=1<<lt;G[lt]=0,$[lt]=-1;var rt=nt[lt];if(rt!==null)for(nt[lt]=null,lt=0;lt<rt.length;lt++){var it=rt[lt];it!==null&&(it.lane&=-536870913)}v&=~ft}y!==0&&yw(u,y,0),C!==0&&w===0&&u.tag!==0&&(u.suspendedLanes|=C&~(R&~f))}function yw(u,f,v){u.pendingLanes|=f,u.suspendedLanes&=~f;var y=31-Le(f);u.entangledLanes|=f,u.entanglements[y]=u.entanglements[y]|1073741824|v&261930}function xw(u,f){var v=u.entangledLanes|=f;for(u=u.entanglements;v;){var y=31-Le(v),w=1<<y;w&f|u[y]&f&&(u[y]|=f),v&=~w}}function bw(u,f){var v=f&-f;return v=(v&42)!==0?1:tm(v),(v&(u.suspendedLanes|f))!==0?0:v}function tm(u){switch(u){case 2:u=1;break;case 8:u=4;break;case 32:u=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:u=128;break;case 268435456:u=134217728;break;default:u=0}return u}function em(u){return u&=-u,2<u?8<u?(u&134217727)!==0?32:268435456:8:2}function _w(){var u=X.p;return u!==0?u:(u=window.event,u===void 0?32:oM(u.type))}function Sw(u,f){var v=X.p;try{return X.p=u,f()}finally{X.p=v}}var Ra=Math.random().toString(36).slice(2),mn="__reactFiber$"+Ra,Zn="__reactProps$"+Ra,ls="__reactContainer$"+Ra,nm="__reactEvents$"+Ra,p4="__reactListeners$"+Ra,g4="__reactHandles$"+Ra,ww="__reactResources$"+Ra,nc="__reactMarker$"+Ra;function rm(u){delete u[mn],delete u[Zn],delete u[nm],delete u[p4],delete u[g4]}function ss(u){var f=u[mn];if(f)return f;for(var v=u.parentNode;v;){if(f=v[ls]||v[mn]){if(v=f.alternate,f.child!==null||v!==null&&v.child!==null)for(u=U2(u);u!==null;){if(v=u[mn])return v;u=U2(u)}return f}u=v,v=u.parentNode}return null}function us(u){if(u=u[mn]||u[ls]){var f=u.tag;if(f===5||f===6||f===13||f===31||f===26||f===27||f===3)return u}return null}function rc(u){var f=u.tag;if(f===5||f===26||f===27||f===6)return u.stateNode;throw Error(r(33))}function cs(u){var f=u[ww];return f||(f=u[ww]={hoistableStyles:new Map,hoistableScripts:new Map}),f}function hn(u){u[nc]=!0}var Tw=new Set,Cw={};function Fo(u,f){fs(u,f),fs(u+"Capture",f)}function fs(u,f){for(Cw[u]=f,u=0;u<f.length;u++)Tw.add(f[u])}var m4=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]*$"),Mw={},Aw={};function y4(u){return An.call(Aw,u)?!0:An.call(Mw,u)?!1:m4.test(u)?Aw[u]=!0:(Mw[u]=!0,!1)}function qh(u,f,v){if(y4(f))if(v===null)u.removeAttribute(f);else{switch(typeof v){case"undefined":case"function":case"symbol":u.removeAttribute(f);return;case"boolean":var y=f.toLowerCase().slice(0,5);if(y!=="data-"&&y!=="aria-"){u.removeAttribute(f);return}}u.setAttribute(f,""+v)}}function Zh(u,f,v){if(v===null)u.removeAttribute(f);else{switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":u.removeAttribute(f);return}u.setAttribute(f,""+v)}}function $i(u,f,v,y){if(y===null)u.removeAttribute(v);else{switch(typeof y){case"undefined":case"function":case"symbol":case"boolean":u.removeAttribute(v);return}u.setAttributeNS(f,v,""+y)}}function Ar(u){switch(typeof u){case"bigint":case"boolean":case"number":case"string":case"undefined":return u;case"object":return u;default:return""}}function Dw(u){var f=u.type;return(u=u.nodeName)&&u.toLowerCase()==="input"&&(f==="checkbox"||f==="radio")}function x4(u,f,v){var y=Object.getOwnPropertyDescriptor(u.constructor.prototype,f);if(!u.hasOwnProperty(f)&&typeof y<"u"&&typeof y.get=="function"&&typeof y.set=="function"){var w=y.get,C=y.set;return Object.defineProperty(u,f,{configurable:!0,get:function(){return w.call(this)},set:function(R){v=""+R,C.call(this,R)}}),Object.defineProperty(u,f,{enumerable:y.enumerable}),{getValue:function(){return v},setValue:function(R){v=""+R},stopTracking:function(){u._valueTracker=null,delete u[f]}}}}function im(u){if(!u._valueTracker){var f=Dw(u)?"checked":"value";u._valueTracker=x4(u,f,""+u[f])}}function kw(u){if(!u)return!1;var f=u._valueTracker;if(!f)return!0;var v=f.getValue(),y="";return u&&(y=Dw(u)?u.checked?"true":"false":u.value),u=y,u!==v?(f.setValue(u),!0):!1}function $h(u){if(u=u||(typeof document<"u"?document:void 0),typeof u>"u")return null;try{return u.activeElement||u.body}catch{return u.body}}var b4=/[\n"\\]/g;function Dr(u){return u.replace(b4,function(f){return"\\"+f.charCodeAt(0).toString(16)+" "})}function am(u,f,v,y,w,C,R,G){u.name="",R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?u.type=R:u.removeAttribute("type"),f!=null?R==="number"?(f===0&&u.value===""||u.value!=f)&&(u.value=""+Ar(f)):u.value!==""+Ar(f)&&(u.value=""+Ar(f)):R!=="submit"&&R!=="reset"||u.removeAttribute("value"),f!=null?om(u,R,Ar(f)):v!=null?om(u,R,Ar(v)):y!=null&&u.removeAttribute("value"),w==null&&C!=null&&(u.defaultChecked=!!C),w!=null&&(u.checked=w&&typeof w!="function"&&typeof w!="symbol"),G!=null&&typeof G!="function"&&typeof G!="symbol"&&typeof G!="boolean"?u.name=""+Ar(G):u.removeAttribute("name")}function Lw(u,f,v,y,w,C,R,G){if(C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(u.type=C),f!=null||v!=null){if(!(C!=="submit"&&C!=="reset"||f!=null)){im(u);return}v=v!=null?""+Ar(v):"",f=f!=null?""+Ar(f):v,G||f===u.value||(u.value=f),u.defaultValue=f}y=y??w,y=typeof y!="function"&&typeof y!="symbol"&&!!y,u.checked=G?u.checked:!!y,u.defaultChecked=!!y,R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"&&(u.name=R),im(u)}function om(u,f,v){f==="number"&&$h(u.ownerDocument)===u||u.defaultValue===""+v||(u.defaultValue=""+v)}function hs(u,f,v,y){if(u=u.options,f){f={};for(var w=0;w<v.length;w++)f["$"+v[w]]=!0;for(v=0;v<u.length;v++)w=f.hasOwnProperty("$"+u[v].value),u[v].selected!==w&&(u[v].selected=w),w&&y&&(u[v].defaultSelected=!0)}else{for(v=""+Ar(v),f=null,w=0;w<u.length;w++){if(u[w].value===v){u[w].selected=!0,y&&(u[w].defaultSelected=!0);return}f!==null||u[w].disabled||(f=u[w])}f!==null&&(f.selected=!0)}}function Ew(u,f,v){if(f!=null&&(f=""+Ar(f),f!==u.value&&(u.value=f),v==null)){u.defaultValue!==f&&(u.defaultValue=f);return}u.defaultValue=v!=null?""+Ar(v):""}function Rw(u,f,v,y){if(f==null){if(y!=null){if(v!=null)throw Error(r(92));if(W(y)){if(1<y.length)throw Error(r(93));y=y[0]}v=y}v==null&&(v=""),f=v}v=Ar(f),u.defaultValue=v,y=u.textContent,y===v&&y!==""&&y!==null&&(u.value=y),im(u)}function ds(u,f){if(f){var v=u.firstChild;if(v&&v===u.lastChild&&v.nodeType===3){v.nodeValue=f;return}}u.textContent=f}var _4=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 Iw(u,f,v){var y=f.indexOf("--")===0;v==null||typeof v=="boolean"||v===""?y?u.setProperty(f,""):f==="float"?u.cssFloat="":u[f]="":y?u.setProperty(f,v):typeof v!="number"||v===0||_4.has(f)?f==="float"?u.cssFloat=v:u[f]=(""+v).trim():u[f]=v+"px"}function Ow(u,f,v){if(f!=null&&typeof f!="object")throw Error(r(62));if(u=u.style,v!=null){for(var y in v)!v.hasOwnProperty(y)||f!=null&&f.hasOwnProperty(y)||(y.indexOf("--")===0?u.setProperty(y,""):y==="float"?u.cssFloat="":u[y]="");for(var w in f)y=f[w],f.hasOwnProperty(w)&&v[w]!==y&&Iw(u,w,y)}else for(var C in f)f.hasOwnProperty(C)&&Iw(u,C,f[C])}function lm(u){if(u.indexOf("-")===-1)return!1;switch(u){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 S4=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"]]),w4=/^[\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 Qh(u){return w4.test(""+u)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":u}function Qi(){}var sm=null;function um(u){return u=u.target||u.srcElement||window,u.correspondingUseElement&&(u=u.correspondingUseElement),u.nodeType===3?u.parentNode:u}var vs=null,ps=null;function zw(u){var f=us(u);if(f&&(u=f.stateNode)){var v=u[Zn]||null;t:switch(u=f.stateNode,f.type){case"input":if(am(u,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name),f=v.name,v.type==="radio"&&f!=null){for(v=u;v.parentNode;)v=v.parentNode;for(v=v.querySelectorAll('input[name="'+Dr(""+f)+'"][type="radio"]'),f=0;f<v.length;f++){var y=v[f];if(y!==u&&y.form===u.form){var w=y[Zn]||null;if(!w)throw Error(r(90));am(y,w.value,w.defaultValue,w.defaultValue,w.checked,w.defaultChecked,w.type,w.name)}}for(f=0;f<v.length;f++)y=v[f],y.form===u.form&&kw(y)}break t;case"textarea":Ew(u,v.value,v.defaultValue);break t;case"select":f=v.value,f!=null&&hs(u,!!v.multiple,f,!1)}}}var cm=!1;function Bw(u,f,v){if(cm)return u(f,v);cm=!0;try{var y=u(f);return y}finally{if(cm=!1,(vs!==null||ps!==null)&&(Pd(),vs&&(f=vs,u=ps,ps=vs=null,zw(f),u)))for(f=0;f<u.length;f++)zw(u[f])}}function ic(u,f){var v=u.stateNode;if(v===null)return null;var y=v[Zn]||null;if(y===null)return null;v=y[f];t:switch(f){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(y=!y.disabled)||(u=u.type,y=!(u==="button"||u==="input"||u==="select"||u==="textarea")),u=!y;break t;default:u=!1}if(u)return null;if(v&&typeof v!="function")throw Error(r(231,f,typeof v));return v}var Ki=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fm=!1;if(Ki)try{var ac={};Object.defineProperty(ac,"passive",{get:function(){fm=!0}}),window.addEventListener("test",ac,ac),window.removeEventListener("test",ac,ac)}catch{fm=!1}var Ia=null,hm=null,Kh=null;function Nw(){if(Kh)return Kh;var u,f=hm,v=f.length,y,w="value"in Ia?Ia.value:Ia.textContent,C=w.length;for(u=0;u<v&&f[u]===w[u];u++);var R=v-u;for(y=1;y<=R&&f[v-y]===w[C-y];y++);return Kh=w.slice(u,1<y?1-y:void 0)}function Jh(u){var f=u.keyCode;return"charCode"in u?(u=u.charCode,u===0&&f===13&&(u=13)):u=f,u===10&&(u=13),32<=u||u===13?u:0}function td(){return!0}function Pw(){return!1}function $n(u){function f(v,y,w,C,R){this._reactName=v,this._targetInst=w,this.type=y,this.nativeEvent=C,this.target=R,this.currentTarget=null;for(var G in u)u.hasOwnProperty(G)&&(v=u[G],this[G]=v?v(C):C[G]);return this.isDefaultPrevented=(C.defaultPrevented!=null?C.defaultPrevented:C.returnValue===!1)?td:Pw,this.isPropagationStopped=Pw,this}return d(f.prototype,{preventDefault:function(){this.defaultPrevented=!0;var v=this.nativeEvent;v&&(v.preventDefault?v.preventDefault():typeof v.returnValue!="unknown"&&(v.returnValue=!1),this.isDefaultPrevented=td)},stopPropagation:function(){var v=this.nativeEvent;v&&(v.stopPropagation?v.stopPropagation():typeof v.cancelBubble!="unknown"&&(v.cancelBubble=!0),this.isPropagationStopped=td)},persist:function(){},isPersistent:td}),f}var Go={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(u){return u.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ed=$n(Go),oc=d({},Go,{view:0,detail:0}),T4=$n(oc),dm,vm,lc,nd=d({},oc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gm,button:0,buttons:0,relatedTarget:function(u){return u.relatedTarget===void 0?u.fromElement===u.srcElement?u.toElement:u.fromElement:u.relatedTarget},movementX:function(u){return"movementX"in u?u.movementX:(u!==lc&&(lc&&u.type==="mousemove"?(dm=u.screenX-lc.screenX,vm=u.screenY-lc.screenY):vm=dm=0,lc=u),dm)},movementY:function(u){return"movementY"in u?u.movementY:vm}}),Vw=$n(nd),C4=d({},nd,{dataTransfer:0}),M4=$n(C4),A4=d({},oc,{relatedTarget:0}),pm=$n(A4),D4=d({},Go,{animationName:0,elapsedTime:0,pseudoElement:0}),k4=$n(D4),L4=d({},Go,{clipboardData:function(u){return"clipboardData"in u?u.clipboardData:window.clipboardData}}),E4=$n(L4),R4=d({},Go,{data:0}),Hw=$n(R4),I4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},O4={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"},z4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function B4(u){var f=this.nativeEvent;return f.getModifierState?f.getModifierState(u):(u=z4[u])?!!f[u]:!1}function gm(){return B4}var N4=d({},oc,{key:function(u){if(u.key){var f=I4[u.key]||u.key;if(f!=="Unidentified")return f}return u.type==="keypress"?(u=Jh(u),u===13?"Enter":String.fromCharCode(u)):u.type==="keydown"||u.type==="keyup"?O4[u.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gm,charCode:function(u){return u.type==="keypress"?Jh(u):0},keyCode:function(u){return u.type==="keydown"||u.type==="keyup"?u.keyCode:0},which:function(u){return u.type==="keypress"?Jh(u):u.type==="keydown"||u.type==="keyup"?u.keyCode:0}}),P4=$n(N4),V4=d({},nd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jw=$n(V4),H4=d({},oc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gm}),j4=$n(H4),F4=d({},Go,{propertyName:0,elapsedTime:0,pseudoElement:0}),G4=$n(F4),U4=d({},nd,{deltaX:function(u){return"deltaX"in u?u.deltaX:"wheelDeltaX"in u?-u.wheelDeltaX:0},deltaY:function(u){return"deltaY"in u?u.deltaY:"wheelDeltaY"in u?-u.wheelDeltaY:"wheelDelta"in u?-u.wheelDelta:0},deltaZ:0,deltaMode:0}),Y4=$n(U4),W4=d({},Go,{newState:0,oldState:0}),X4=$n(W4),q4=[9,13,27,32],mm=Ki&&"CompositionEvent"in window,sc=null;Ki&&"documentMode"in document&&(sc=document.documentMode);var Z4=Ki&&"TextEvent"in window&&!sc,Fw=Ki&&(!mm||sc&&8<sc&&11>=sc),Gw=" ",Uw=!1;function Yw(u,f){switch(u){case"keyup":return q4.indexOf(f.keyCode)!==-1;case"keydown":return f.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ww(u){return u=u.detail,typeof u=="object"&&"data"in u?u.data:null}var gs=!1;function $4(u,f){switch(u){case"compositionend":return Ww(f);case"keypress":return f.which!==32?null:(Uw=!0,Gw);case"textInput":return u=f.data,u===Gw&&Uw?null:u;default:return null}}function Q4(u,f){if(gs)return u==="compositionend"||!mm&&Yw(u,f)?(u=Nw(),Kh=hm=Ia=null,gs=!1,u):null;switch(u){case"paste":return null;case"keypress":if(!(f.ctrlKey||f.altKey||f.metaKey)||f.ctrlKey&&f.altKey){if(f.char&&1<f.char.length)return f.char;if(f.which)return String.fromCharCode(f.which)}return null;case"compositionend":return Fw&&f.locale!=="ko"?null:f.data;default:return null}}var K4={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 Xw(u){var f=u&&u.nodeName&&u.nodeName.toLowerCase();return f==="input"?!!K4[u.type]:f==="textarea"}function qw(u,f,v,y){vs?ps?ps.push(y):ps=[y]:vs=y,f=Yd(f,"onChange"),0<f.length&&(v=new ed("onChange","change",null,v,y),u.push({event:v,listeners:f}))}var uc=null,cc=null;function J4(u){L2(u,0)}function rd(u){var f=rc(u);if(kw(f))return u}function Zw(u,f){if(u==="change")return f}var $w=!1;if(Ki){var ym;if(Ki){var xm="oninput"in document;if(!xm){var Qw=document.createElement("div");Qw.setAttribute("oninput","return;"),xm=typeof Qw.oninput=="function"}ym=xm}else ym=!1;$w=ym&&(!document.documentMode||9<document.documentMode)}function Kw(){uc&&(uc.detachEvent("onpropertychange",Jw),cc=uc=null)}function Jw(u){if(u.propertyName==="value"&&rd(cc)){var f=[];qw(f,cc,u,um(u)),Bw(J4,f)}}function tN(u,f,v){u==="focusin"?(Kw(),uc=f,cc=v,uc.attachEvent("onpropertychange",Jw)):u==="focusout"&&Kw()}function eN(u){if(u==="selectionchange"||u==="keyup"||u==="keydown")return rd(cc)}function nN(u,f){if(u==="click")return rd(f)}function rN(u,f){if(u==="input"||u==="change")return rd(f)}function iN(u,f){return u===f&&(u!==0||1/u===1/f)||u!==u&&f!==f}var hr=typeof Object.is=="function"?Object.is:iN;function fc(u,f){if(hr(u,f))return!0;if(typeof u!="object"||u===null||typeof f!="object"||f===null)return!1;var v=Object.keys(u),y=Object.keys(f);if(v.length!==y.length)return!1;for(y=0;y<v.length;y++){var w=v[y];if(!An.call(f,w)||!hr(u[w],f[w]))return!1}return!0}function tT(u){for(;u&&u.firstChild;)u=u.firstChild;return u}function eT(u,f){var v=tT(u);u=0;for(var y;v;){if(v.nodeType===3){if(y=u+v.textContent.length,u<=f&&y>=f)return{node:v,offset:f-u};u=y}t:{for(;v;){if(v.nextSibling){v=v.nextSibling;break t}v=v.parentNode}v=void 0}v=tT(v)}}function nT(u,f){return u&&f?u===f?!0:u&&u.nodeType===3?!1:f&&f.nodeType===3?nT(u,f.parentNode):"contains"in u?u.contains(f):u.compareDocumentPosition?!!(u.compareDocumentPosition(f)&16):!1:!1}function rT(u){u=u!=null&&u.ownerDocument!=null&&u.ownerDocument.defaultView!=null?u.ownerDocument.defaultView:window;for(var f=$h(u.document);f instanceof u.HTMLIFrameElement;){try{var v=typeof f.contentWindow.location.href=="string"}catch{v=!1}if(v)u=f.contentWindow;else break;f=$h(u.document)}return f}function bm(u){var f=u&&u.nodeName&&u.nodeName.toLowerCase();return f&&(f==="input"&&(u.type==="text"||u.type==="search"||u.type==="tel"||u.type==="url"||u.type==="password")||f==="textarea"||u.contentEditable==="true")}var aN=Ki&&"documentMode"in document&&11>=document.documentMode,ms=null,_m=null,hc=null,Sm=!1;function iT(u,f,v){var y=v.window===v?v.document:v.nodeType===9?v:v.ownerDocument;Sm||ms==null||ms!==$h(y)||(y=ms,"selectionStart"in y&&bm(y)?y={start:y.selectionStart,end:y.selectionEnd}:(y=(y.ownerDocument&&y.ownerDocument.defaultView||window).getSelection(),y={anchorNode:y.anchorNode,anchorOffset:y.anchorOffset,focusNode:y.focusNode,focusOffset:y.focusOffset}),hc&&fc(hc,y)||(hc=y,y=Yd(_m,"onSelect"),0<y.length&&(f=new ed("onSelect","select",null,f,v),u.push({event:f,listeners:y}),f.target=ms)))}function Uo(u,f){var v={};return v[u.toLowerCase()]=f.toLowerCase(),v["Webkit"+u]="webkit"+f,v["Moz"+u]="moz"+f,v}var ys={animationend:Uo("Animation","AnimationEnd"),animationiteration:Uo("Animation","AnimationIteration"),animationstart:Uo("Animation","AnimationStart"),transitionrun:Uo("Transition","TransitionRun"),transitionstart:Uo("Transition","TransitionStart"),transitioncancel:Uo("Transition","TransitionCancel"),transitionend:Uo("Transition","TransitionEnd")},wm={},aT={};Ki&&(aT=document.createElement("div").style,"AnimationEvent"in window||(delete ys.animationend.animation,delete ys.animationiteration.animation,delete ys.animationstart.animation),"TransitionEvent"in window||delete ys.transitionend.transition);function Yo(u){if(wm[u])return wm[u];if(!ys[u])return u;var f=ys[u],v;for(v in f)if(f.hasOwnProperty(v)&&v in aT)return wm[u]=f[v];return u}var oT=Yo("animationend"),lT=Yo("animationiteration"),sT=Yo("animationstart"),oN=Yo("transitionrun"),lN=Yo("transitionstart"),sN=Yo("transitioncancel"),uT=Yo("transitionend"),cT=new Map,Tm="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(" ");Tm.push("scrollEnd");function ii(u,f){cT.set(u,f),Fo(f,[u])}var id=typeof reportError=="function"?reportError:function(u){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var f=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(f))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",u);return}console.error(u)},kr=[],xs=0,Cm=0;function ad(){for(var u=xs,f=Cm=xs=0;f<u;){var v=kr[f];kr[f++]=null;var y=kr[f];kr[f++]=null;var w=kr[f];kr[f++]=null;var C=kr[f];if(kr[f++]=null,y!==null&&w!==null){var R=y.pending;R===null?w.next=w:(w.next=R.next,R.next=w),y.pending=w}C!==0&&fT(v,w,C)}}function od(u,f,v,y){kr[xs++]=u,kr[xs++]=f,kr[xs++]=v,kr[xs++]=y,Cm|=y,u.lanes|=y,u=u.alternate,u!==null&&(u.lanes|=y)}function Mm(u,f,v,y){return od(u,f,v,y),ld(u)}function Wo(u,f){return od(u,null,null,f),ld(u)}function fT(u,f,v){u.lanes|=v;var y=u.alternate;y!==null&&(y.lanes|=v);for(var w=!1,C=u.return;C!==null;)C.childLanes|=v,y=C.alternate,y!==null&&(y.childLanes|=v),C.tag===22&&(u=C.stateNode,u===null||u._visibility&1||(w=!0)),u=C,C=C.return;return u.tag===3?(C=u.stateNode,w&&f!==null&&(w=31-Le(v),u=C.hiddenUpdates,y=u[w],y===null?u[w]=[f]:y.push(f),f.lane=v|536870912),C):null}function ld(u){if(50<Oc)throw Oc=0,zy=null,Error(r(185));for(var f=u.return;f!==null;)u=f,f=u.return;return u.tag===3?u.stateNode:null}var bs={};function uN(u,f,v,y){this.tag=u,this.key=v,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=f,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=y,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dr(u,f,v,y){return new uN(u,f,v,y)}function Am(u){return u=u.prototype,!(!u||!u.isReactComponent)}function Ji(u,f){var v=u.alternate;return v===null?(v=dr(u.tag,f,u.key,u.mode),v.elementType=u.elementType,v.type=u.type,v.stateNode=u.stateNode,v.alternate=u,u.alternate=v):(v.pendingProps=f,v.type=u.type,v.flags=0,v.subtreeFlags=0,v.deletions=null),v.flags=u.flags&65011712,v.childLanes=u.childLanes,v.lanes=u.lanes,v.child=u.child,v.memoizedProps=u.memoizedProps,v.memoizedState=u.memoizedState,v.updateQueue=u.updateQueue,f=u.dependencies,v.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},v.sibling=u.sibling,v.index=u.index,v.ref=u.ref,v.refCleanup=u.refCleanup,v}function hT(u,f){u.flags&=65011714;var v=u.alternate;return v===null?(u.childLanes=0,u.lanes=f,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=v.childLanes,u.lanes=v.lanes,u.child=v.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=v.memoizedProps,u.memoizedState=v.memoizedState,u.updateQueue=v.updateQueue,u.type=v.type,f=v.dependencies,u.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext}),u}function sd(u,f,v,y,w,C){var R=0;if(y=u,typeof u=="function")Am(u)&&(R=1);else if(typeof u=="string")R=vP(u,v,J.current)?26:u==="html"||u==="head"||u==="body"?27:5;else t:switch(u){case z:return u=dr(31,v,f,w),u.elementType=z,u.lanes=C,u;case x:return Xo(v.children,w,C,f);case _:R=8,w|=24;break;case b:return u=dr(12,v,f,w|2),u.elementType=b,u.lanes=C,u;case D:return u=dr(13,v,f,w),u.elementType=D,u.lanes=C,u;case M:return u=dr(19,v,f,w),u.elementType=M,u.lanes=C,u;default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case T:R=10;break t;case S:R=9;break t;case A:R=11;break t;case k:R=14;break t;case I:R=16,y=null;break t}R=29,v=Error(r(130,u===null?"null":typeof u,"")),y=null}return f=dr(R,v,f,w),f.elementType=u,f.type=y,f.lanes=C,f}function Xo(u,f,v,y){return u=dr(7,u,y,f),u.lanes=v,u}function Dm(u,f,v){return u=dr(6,u,null,f),u.lanes=v,u}function dT(u){var f=dr(18,null,null,0);return f.stateNode=u,f}function km(u,f,v){return f=dr(4,u.children!==null?u.children:[],u.key,f),f.lanes=v,f.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},f}var vT=new WeakMap;function Lr(u,f){if(typeof u=="object"&&u!==null){var v=vT.get(u);return v!==void 0?v:(f={value:u,source:f,stack:cr(f)},vT.set(u,f),f)}return{value:u,source:f,stack:cr(f)}}var _s=[],Ss=0,ud=null,dc=0,Er=[],Rr=0,Oa=null,Si=1,wi="";function ta(u,f){_s[Ss++]=dc,_s[Ss++]=ud,ud=u,dc=f}function pT(u,f,v){Er[Rr++]=Si,Er[Rr++]=wi,Er[Rr++]=Oa,Oa=u;var y=Si;u=wi;var w=32-Le(y)-1;y&=~(1<<w),v+=1;var C=32-Le(f)+w;if(30<C){var R=w-w%5;C=(y&(1<<R)-1).toString(32),y>>=R,w-=R,Si=1<<32-Le(f)+w|v<<w|y,wi=C+u}else Si=1<<C|v<<w|y,wi=u}function Lm(u){u.return!==null&&(ta(u,1),pT(u,1,0))}function Em(u){for(;u===ud;)ud=_s[--Ss],_s[Ss]=null,dc=_s[--Ss],_s[Ss]=null;for(;u===Oa;)Oa=Er[--Rr],Er[Rr]=null,wi=Er[--Rr],Er[Rr]=null,Si=Er[--Rr],Er[Rr]=null}function gT(u,f){Er[Rr++]=Si,Er[Rr++]=wi,Er[Rr++]=Oa,Si=f.id,wi=f.overflow,Oa=u}var yn=null,Ne=null,se=!1,za=null,Ir=!1,Rm=Error(r(519));function Ba(u){var f=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vc(Lr(f,u)),Rm}function mT(u){var f=u.stateNode,v=u.type,y=u.memoizedProps;switch(f[mn]=u,f[Zn]=y,v){case"dialog":ne("cancel",f),ne("close",f);break;case"iframe":case"object":case"embed":ne("load",f);break;case"video":case"audio":for(v=0;v<Bc.length;v++)ne(Bc[v],f);break;case"source":ne("error",f);break;case"img":case"image":case"link":ne("error",f),ne("load",f);break;case"details":ne("toggle",f);break;case"input":ne("invalid",f),Lw(f,y.value,y.defaultValue,y.checked,y.defaultChecked,y.type,y.name,!0);break;case"select":ne("invalid",f);break;case"textarea":ne("invalid",f),Rw(f,y.value,y.defaultValue,y.children)}v=y.children,typeof v!="string"&&typeof v!="number"&&typeof v!="bigint"||f.textContent===""+v||y.suppressHydrationWarning===!0||O2(f.textContent,v)?(y.popover!=null&&(ne("beforetoggle",f),ne("toggle",f)),y.onScroll!=null&&ne("scroll",f),y.onScrollEnd!=null&&ne("scrollend",f),y.onClick!=null&&(f.onclick=Qi),f=!0):f=!1,f||Ba(u,!0)}function yT(u){for(yn=u.return;yn;)switch(yn.tag){case 5:case 31:case 13:Ir=!1;return;case 27:case 3:Ir=!0;return;default:yn=yn.return}}function ws(u){if(u!==yn)return!1;if(!se)return yT(u),se=!0,!1;var f=u.tag,v;if((v=f!==3&&f!==27)&&((v=f===5)&&(v=u.type,v=!(v!=="form"&&v!=="button")||$y(u.type,u.memoizedProps)),v=!v),v&&Ne&&Ba(u),yT(u),f===13){if(u=u.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));Ne=G2(u)}else if(f===31){if(u=u.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));Ne=G2(u)}else f===27?(f=Ne,$a(u.type)?(u=e0,e0=null,Ne=u):Ne=f):Ne=yn?zr(u.stateNode.nextSibling):null;return!0}function qo(){Ne=yn=null,se=!1}function Im(){var u=za;return u!==null&&(tr===null?tr=u:tr.push.apply(tr,u),za=null),u}function vc(u){za===null?za=[u]:za.push(u)}var Om=U(null),Zo=null,ea=null;function Na(u,f,v){P(Om,f._currentValue),f._currentValue=v}function na(u){u._currentValue=Om.current,q(Om)}function zm(u,f,v){for(;u!==null;){var y=u.alternate;if((u.childLanes&f)!==f?(u.childLanes|=f,y!==null&&(y.childLanes|=f)):y!==null&&(y.childLanes&f)!==f&&(y.childLanes|=f),u===v)break;u=u.return}}function Bm(u,f,v,y){var w=u.child;for(w!==null&&(w.return=u);w!==null;){var C=w.dependencies;if(C!==null){var R=w.child;C=C.firstContext;t:for(;C!==null;){var G=C;C=w;for(var $=0;$<f.length;$++)if(G.context===f[$]){C.lanes|=v,G=C.alternate,G!==null&&(G.lanes|=v),zm(C.return,v,u),y||(R=null);break t}C=G.next}}else if(w.tag===18){if(R=w.return,R===null)throw Error(r(341));R.lanes|=v,C=R.alternate,C!==null&&(C.lanes|=v),zm(R,v,u),R=null}else R=w.child;if(R!==null)R.return=w;else for(R=w;R!==null;){if(R===u){R=null;break}if(w=R.sibling,w!==null){w.return=R.return,R=w;break}R=R.return}w=R}}function Ts(u,f,v,y){u=null;for(var w=f,C=!1;w!==null;){if(!C){if((w.flags&524288)!==0)C=!0;else if((w.flags&262144)!==0)break}if(w.tag===10){var R=w.alternate;if(R===null)throw Error(r(387));if(R=R.memoizedProps,R!==null){var G=w.type;hr(w.pendingProps.value,R.value)||(u!==null?u.push(G):u=[G])}}else if(w===wt.current){if(R=w.alternate,R===null)throw Error(r(387));R.memoizedState.memoizedState!==w.memoizedState.memoizedState&&(u!==null?u.push(jc):u=[jc])}w=w.return}u!==null&&Bm(f,u,v,y),f.flags|=262144}function cd(u){for(u=u.firstContext;u!==null;){if(!hr(u.context._currentValue,u.memoizedValue))return!0;u=u.next}return!1}function $o(u){Zo=u,ea=null,u=u.dependencies,u!==null&&(u.firstContext=null)}function xn(u){return xT(Zo,u)}function fd(u,f){return Zo===null&&$o(u),xT(u,f)}function xT(u,f){var v=f._currentValue;if(f={context:f,memoizedValue:v,next:null},ea===null){if(u===null)throw Error(r(308));ea=f,u.dependencies={lanes:0,firstContext:f},u.flags|=524288}else ea=ea.next=f;return v}var cN=typeof AbortController<"u"?AbortController:function(){var u=[],f=this.signal={aborted:!1,addEventListener:function(v,y){u.push(y)}};this.abort=function(){f.aborted=!0,u.forEach(function(v){return v()})}},fN=t.unstable_scheduleCallback,hN=t.unstable_NormalPriority,tn={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Nm(){return{controller:new cN,data:new Map,refCount:0}}function pc(u){u.refCount--,u.refCount===0&&fN(hN,function(){u.controller.abort()})}var gc=null,Pm=0,Cs=0,Ms=null;function dN(u,f){if(gc===null){var v=gc=[];Pm=0,Cs=jy(),Ms={status:"pending",value:void 0,then:function(y){v.push(y)}}}return Pm++,f.then(bT,bT),f}function bT(){if(--Pm===0&&gc!==null){Ms!==null&&(Ms.status="fulfilled");var u=gc;gc=null,Cs=0,Ms=null;for(var f=0;f<u.length;f++)(0,u[f])()}}function vN(u,f){var v=[],y={status:"pending",value:null,reason:null,then:function(w){v.push(w)}};return u.then(function(){y.status="fulfilled",y.value=f;for(var w=0;w<v.length;w++)(0,v[w])(f)},function(w){for(y.status="rejected",y.reason=w,w=0;w<v.length;w++)(0,v[w])(void 0)}),y}var _T=V.S;V.S=function(u,f){i2=Bn(),typeof f=="object"&&f!==null&&typeof f.then=="function"&&dN(u,f),_T!==null&&_T(u,f)};var Qo=U(null);function Vm(){var u=Qo.current;return u!==null?u:Ee.pooledCache}function hd(u,f){f===null?P(Qo,Qo.current):P(Qo,f.pool)}function ST(){var u=Vm();return u===null?null:{parent:tn._currentValue,pool:u}}var As=Error(r(460)),Hm=Error(r(474)),dd=Error(r(542)),vd={then:function(){}};function wT(u){return u=u.status,u==="fulfilled"||u==="rejected"}function TT(u,f,v){switch(v=u[v],v===void 0?u.push(f):v!==f&&(f.then(Qi,Qi),f=v),f.status){case"fulfilled":return f.value;case"rejected":throw u=f.reason,MT(u),u;default:if(typeof f.status=="string")f.then(Qi,Qi);else{if(u=Ee,u!==null&&100<u.shellSuspendCounter)throw Error(r(482));u=f,u.status="pending",u.then(function(y){if(f.status==="pending"){var w=f;w.status="fulfilled",w.value=y}},function(y){if(f.status==="pending"){var w=f;w.status="rejected",w.reason=y}})}switch(f.status){case"fulfilled":return f.value;case"rejected":throw u=f.reason,MT(u),u}throw Jo=f,As}}function Ko(u){try{var f=u._init;return f(u._payload)}catch(v){throw v!==null&&typeof v=="object"&&typeof v.then=="function"?(Jo=v,As):v}}var Jo=null;function CT(){if(Jo===null)throw Error(r(459));var u=Jo;return Jo=null,u}function MT(u){if(u===As||u===dd)throw Error(r(483))}var Ds=null,mc=0;function pd(u){var f=mc;return mc+=1,Ds===null&&(Ds=[]),TT(Ds,u,f)}function yc(u,f){f=f.props.ref,u.ref=f!==void 0?f:null}function gd(u,f){throw f.$$typeof===g?Error(r(525)):(u=Object.prototype.toString.call(f),Error(r(31,u==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":u)))}function AT(u){function f(K,Q){if(u){var et=K.deletions;et===null?(K.deletions=[Q],K.flags|=16):et.push(Q)}}function v(K,Q){if(!u)return null;for(;Q!==null;)f(K,Q),Q=Q.sibling;return null}function y(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 w(K,Q){return K=Ji(K,Q),K.index=0,K.sibling=null,K}function C(K,Q,et){return K.index=et,u?(et=K.alternate,et!==null?(et=et.index,et<Q?(K.flags|=67108866,Q):et):(K.flags|=67108866,Q)):(K.flags|=1048576,Q)}function R(K){return u&&K.alternate===null&&(K.flags|=67108866),K}function G(K,Q,et,ct){return Q===null||Q.tag!==6?(Q=Dm(et,K.mode,ct),Q.return=K,Q):(Q=w(Q,et),Q.return=K,Q)}function $(K,Q,et,ct){var Ot=et.type;return Ot===x?lt(K,Q,et.props.children,ct,et.key):Q!==null&&(Q.elementType===Ot||typeof Ot=="object"&&Ot!==null&&Ot.$$typeof===I&&Ko(Ot)===Q.type)?(Q=w(Q,et.props),yc(Q,et),Q.return=K,Q):(Q=sd(et.type,et.key,et.props,null,K.mode,ct),yc(Q,et),Q.return=K,Q)}function nt(K,Q,et,ct){return Q===null||Q.tag!==4||Q.stateNode.containerInfo!==et.containerInfo||Q.stateNode.implementation!==et.implementation?(Q=km(et,K.mode,ct),Q.return=K,Q):(Q=w(Q,et.children||[]),Q.return=K,Q)}function lt(K,Q,et,ct,Ot){return Q===null||Q.tag!==7?(Q=Xo(et,K.mode,ct,Ot),Q.return=K,Q):(Q=w(Q,et),Q.return=K,Q)}function ft(K,Q,et){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return Q=Dm(""+Q,K.mode,et),Q.return=K,Q;if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case p:return et=sd(Q.type,Q.key,Q.props,null,K.mode,et),yc(et,Q),et.return=K,et;case m:return Q=km(Q,K.mode,et),Q.return=K,Q;case I:return Q=Ko(Q),ft(K,Q,et)}if(W(Q)||H(Q))return Q=Xo(Q,K.mode,et,null),Q.return=K,Q;if(typeof Q.then=="function")return ft(K,pd(Q),et);if(Q.$$typeof===T)return ft(K,fd(K,Q),et);gd(K,Q)}return null}function rt(K,Q,et,ct){var Ot=Q!==null?Q.key:null;if(typeof et=="string"&&et!==""||typeof et=="number"||typeof et=="bigint")return Ot!==null?null:G(K,Q,""+et,ct);if(typeof et=="object"&&et!==null){switch(et.$$typeof){case p:return et.key===Ot?$(K,Q,et,ct):null;case m:return et.key===Ot?nt(K,Q,et,ct):null;case I:return et=Ko(et),rt(K,Q,et,ct)}if(W(et)||H(et))return Ot!==null?null:lt(K,Q,et,ct,null);if(typeof et.then=="function")return rt(K,Q,pd(et),ct);if(et.$$typeof===T)return rt(K,Q,fd(K,et),ct);gd(K,et)}return null}function it(K,Q,et,ct,Ot){if(typeof ct=="string"&&ct!==""||typeof ct=="number"||typeof ct=="bigint")return K=K.get(et)||null,G(Q,K,""+ct,Ot);if(typeof ct=="object"&&ct!==null){switch(ct.$$typeof){case p:return K=K.get(ct.key===null?et:ct.key)||null,$(Q,K,ct,Ot);case m:return K=K.get(ct.key===null?et:ct.key)||null,nt(Q,K,ct,Ot);case I:return ct=Ko(ct),it(K,Q,et,ct,Ot)}if(W(ct)||H(ct))return K=K.get(et)||null,lt(Q,K,ct,Ot,null);if(typeof ct.then=="function")return it(K,Q,et,pd(ct),Ot);if(ct.$$typeof===T)return it(K,Q,et,fd(Q,ct),Ot);gd(Q,ct)}return null}function kt(K,Q,et,ct){for(var Ot=null,pe=null,Et=Q,Qt=Q=0,oe=null;Et!==null&&Qt<et.length;Qt++){Et.index>Qt?(oe=Et,Et=null):oe=Et.sibling;var ge=rt(K,Et,et[Qt],ct);if(ge===null){Et===null&&(Et=oe);break}u&&Et&&ge.alternate===null&&f(K,Et),Q=C(ge,Q,Qt),pe===null?Ot=ge:pe.sibling=ge,pe=ge,Et=oe}if(Qt===et.length)return v(K,Et),se&&ta(K,Qt),Ot;if(Et===null){for(;Qt<et.length;Qt++)Et=ft(K,et[Qt],ct),Et!==null&&(Q=C(Et,Q,Qt),pe===null?Ot=Et:pe.sibling=Et,pe=Et);return se&&ta(K,Qt),Ot}for(Et=y(Et);Qt<et.length;Qt++)oe=it(Et,K,Qt,et[Qt],ct),oe!==null&&(u&&oe.alternate!==null&&Et.delete(oe.key===null?Qt:oe.key),Q=C(oe,Q,Qt),pe===null?Ot=oe:pe.sibling=oe,pe=oe);return u&&Et.forEach(function(eo){return f(K,eo)}),se&&ta(K,Qt),Ot}function Vt(K,Q,et,ct){if(et==null)throw Error(r(151));for(var Ot=null,pe=null,Et=Q,Qt=Q=0,oe=null,ge=et.next();Et!==null&&!ge.done;Qt++,ge=et.next()){Et.index>Qt?(oe=Et,Et=null):oe=Et.sibling;var eo=rt(K,Et,ge.value,ct);if(eo===null){Et===null&&(Et=oe);break}u&&Et&&eo.alternate===null&&f(K,Et),Q=C(eo,Q,Qt),pe===null?Ot=eo:pe.sibling=eo,pe=eo,Et=oe}if(ge.done)return v(K,Et),se&&ta(K,Qt),Ot;if(Et===null){for(;!ge.done;Qt++,ge=et.next())ge=ft(K,ge.value,ct),ge!==null&&(Q=C(ge,Q,Qt),pe===null?Ot=ge:pe.sibling=ge,pe=ge);return se&&ta(K,Qt),Ot}for(Et=y(Et);!ge.done;Qt++,ge=et.next())ge=it(Et,K,Qt,ge.value,ct),ge!==null&&(u&&ge.alternate!==null&&Et.delete(ge.key===null?Qt:ge.key),Q=C(ge,Q,Qt),pe===null?Ot=ge:pe.sibling=ge,pe=ge);return u&&Et.forEach(function(CP){return f(K,CP)}),se&&ta(K,Qt),Ot}function ke(K,Q,et,ct){if(typeof et=="object"&&et!==null&&et.type===x&&et.key===null&&(et=et.props.children),typeof et=="object"&&et!==null){switch(et.$$typeof){case p:t:{for(var Ot=et.key;Q!==null;){if(Q.key===Ot){if(Ot=et.type,Ot===x){if(Q.tag===7){v(K,Q.sibling),ct=w(Q,et.props.children),ct.return=K,K=ct;break t}}else if(Q.elementType===Ot||typeof Ot=="object"&&Ot!==null&&Ot.$$typeof===I&&Ko(Ot)===Q.type){v(K,Q.sibling),ct=w(Q,et.props),yc(ct,et),ct.return=K,K=ct;break t}v(K,Q);break}else f(K,Q);Q=Q.sibling}et.type===x?(ct=Xo(et.props.children,K.mode,ct,et.key),ct.return=K,K=ct):(ct=sd(et.type,et.key,et.props,null,K.mode,ct),yc(ct,et),ct.return=K,K=ct)}return R(K);case m:t:{for(Ot=et.key;Q!==null;){if(Q.key===Ot)if(Q.tag===4&&Q.stateNode.containerInfo===et.containerInfo&&Q.stateNode.implementation===et.implementation){v(K,Q.sibling),ct=w(Q,et.children||[]),ct.return=K,K=ct;break t}else{v(K,Q);break}else f(K,Q);Q=Q.sibling}ct=km(et,K.mode,ct),ct.return=K,K=ct}return R(K);case I:return et=Ko(et),ke(K,Q,et,ct)}if(W(et))return kt(K,Q,et,ct);if(H(et)){if(Ot=H(et),typeof Ot!="function")throw Error(r(150));return et=Ot.call(et),Vt(K,Q,et,ct)}if(typeof et.then=="function")return ke(K,Q,pd(et),ct);if(et.$$typeof===T)return ke(K,Q,fd(K,et),ct);gd(K,et)}return typeof et=="string"&&et!==""||typeof et=="number"||typeof et=="bigint"?(et=""+et,Q!==null&&Q.tag===6?(v(K,Q.sibling),ct=w(Q,et),ct.return=K,K=ct):(v(K,Q),ct=Dm(et,K.mode,ct),ct.return=K,K=ct),R(K)):v(K,Q)}return function(K,Q,et,ct){try{mc=0;var Ot=ke(K,Q,et,ct);return Ds=null,Ot}catch(Et){if(Et===As||Et===dd)throw Et;var pe=dr(29,Et,null,K.mode);return pe.lanes=ct,pe.return=K,pe}finally{}}}var tl=AT(!0),DT=AT(!1),Pa=!1;function jm(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Fm(u,f){u=u.updateQueue,f.updateQueue===u&&(f.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,callbacks:null})}function Va(u){return{lane:u,tag:0,payload:null,callback:null,next:null}}function Ha(u,f,v){var y=u.updateQueue;if(y===null)return null;if(y=y.shared,(ye&2)!==0){var w=y.pending;return w===null?f.next=f:(f.next=w.next,w.next=f),y.pending=f,f=ld(u),fT(u,null,v),f}return od(u,y,f,v),ld(u)}function xc(u,f,v){if(f=f.updateQueue,f!==null&&(f=f.shared,(v&4194048)!==0)){var y=f.lanes;y&=u.pendingLanes,v|=y,f.lanes=v,xw(u,v)}}function Gm(u,f){var v=u.updateQueue,y=u.alternate;if(y!==null&&(y=y.updateQueue,v===y)){var w=null,C=null;if(v=v.firstBaseUpdate,v!==null){do{var R={lane:v.lane,tag:v.tag,payload:v.payload,callback:null,next:null};C===null?w=C=R:C=C.next=R,v=v.next}while(v!==null);C===null?w=C=f:C=C.next=f}else w=C=f;v={baseState:y.baseState,firstBaseUpdate:w,lastBaseUpdate:C,shared:y.shared,callbacks:y.callbacks},u.updateQueue=v;return}u=v.lastBaseUpdate,u===null?v.firstBaseUpdate=f:u.next=f,v.lastBaseUpdate=f}var Um=!1;function bc(){if(Um){var u=Ms;if(u!==null)throw u}}function _c(u,f,v,y){Um=!1;var w=u.updateQueue;Pa=!1;var C=w.firstBaseUpdate,R=w.lastBaseUpdate,G=w.shared.pending;if(G!==null){w.shared.pending=null;var $=G,nt=$.next;$.next=null,R===null?C=nt:R.next=nt,R=$;var lt=u.alternate;lt!==null&&(lt=lt.updateQueue,G=lt.lastBaseUpdate,G!==R&&(G===null?lt.firstBaseUpdate=nt:G.next=nt,lt.lastBaseUpdate=$))}if(C!==null){var ft=w.baseState;R=0,lt=nt=$=null,G=C;do{var rt=G.lane&-536870913,it=rt!==G.lane;if(it?(ae&rt)===rt:(y&rt)===rt){rt!==0&&rt===Cs&&(Um=!0),lt!==null&&(lt=lt.next={lane:0,tag:G.tag,payload:G.payload,callback:null,next:null});t:{var kt=u,Vt=G;rt=f;var ke=v;switch(Vt.tag){case 1:if(kt=Vt.payload,typeof kt=="function"){ft=kt.call(ke,ft,rt);break t}ft=kt;break t;case 3:kt.flags=kt.flags&-65537|128;case 0:if(kt=Vt.payload,rt=typeof kt=="function"?kt.call(ke,ft,rt):kt,rt==null)break t;ft=d({},ft,rt);break t;case 2:Pa=!0}}rt=G.callback,rt!==null&&(u.flags|=64,it&&(u.flags|=8192),it=w.callbacks,it===null?w.callbacks=[rt]:it.push(rt))}else it={lane:rt,tag:G.tag,payload:G.payload,callback:G.callback,next:null},lt===null?(nt=lt=it,$=ft):lt=lt.next=it,R|=rt;if(G=G.next,G===null){if(G=w.shared.pending,G===null)break;it=G,G=it.next,it.next=null,w.lastBaseUpdate=it,w.shared.pending=null}}while(!0);lt===null&&($=ft),w.baseState=$,w.firstBaseUpdate=nt,w.lastBaseUpdate=lt,C===null&&(w.shared.lanes=0),Ya|=R,u.lanes=R,u.memoizedState=ft}}function kT(u,f){if(typeof u!="function")throw Error(r(191,u));u.call(f)}function LT(u,f){var v=u.callbacks;if(v!==null)for(u.callbacks=null,u=0;u<v.length;u++)kT(v[u],f)}var ks=U(null),md=U(0);function ET(u,f){u=fa,P(md,u),P(ks,f),fa=u|f.baseLanes}function Ym(){P(md,fa),P(ks,ks.current)}function Wm(){fa=md.current,q(ks),q(md)}var vr=U(null),Or=null;function ja(u){var f=u.alternate;P(We,We.current&1),P(vr,u),Or===null&&(f===null||ks.current!==null||f.memoizedState!==null)&&(Or=u)}function Xm(u){P(We,We.current),P(vr,u),Or===null&&(Or=u)}function RT(u){u.tag===22?(P(We,We.current),P(vr,u),Or===null&&(Or=u)):Fa()}function Fa(){P(We,We.current),P(vr,vr.current)}function pr(u){q(vr),Or===u&&(Or=null),q(We)}var We=U(0);function yd(u){for(var f=u;f!==null;){if(f.tag===13){var v=f.memoizedState;if(v!==null&&(v=v.dehydrated,v===null||Jy(v)||t0(v)))return f}else if(f.tag===19&&(f.memoizedProps.revealOrder==="forwards"||f.memoizedProps.revealOrder==="backwards"||f.memoizedProps.revealOrder==="unstable_legacy-backwards"||f.memoizedProps.revealOrder==="together")){if((f.flags&128)!==0)return f}else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===u)break;for(;f.sibling===null;){if(f.return===null||f.return===u)return null;f=f.return}f.sibling.return=f.return,f=f.sibling}return null}var ra=0,Zt=null,Ae=null,en=null,xd=!1,Ls=!1,el=!1,bd=0,Sc=0,Es=null,pN=0;function je(){throw Error(r(321))}function qm(u,f){if(f===null)return!1;for(var v=0;v<f.length&&v<u.length;v++)if(!hr(u[v],f[v]))return!1;return!0}function Zm(u,f,v,y,w,C){return ra=C,Zt=f,f.memoizedState=null,f.updateQueue=null,f.lanes=0,V.H=u===null||u.memoizedState===null?pC:cy,el=!1,C=v(y,w),el=!1,Ls&&(C=OT(f,v,y,w)),IT(u),C}function IT(u){V.H=Cc;var f=Ae!==null&&Ae.next!==null;if(ra=0,en=Ae=Zt=null,xd=!1,Sc=0,Es=null,f)throw Error(r(300));u===null||nn||(u=u.dependencies,u!==null&&cd(u)&&(nn=!0))}function OT(u,f,v,y){Zt=u;var w=0;do{if(Ls&&(Es=null),Sc=0,Ls=!1,25<=w)throw Error(r(301));if(w+=1,en=Ae=null,u.updateQueue!=null){var C=u.updateQueue;C.lastEffect=null,C.events=null,C.stores=null,C.memoCache!=null&&(C.memoCache.index=0)}V.H=gC,C=f(v,y)}while(Ls);return C}function gN(){var u=V.H,f=u.useState()[0];return f=typeof f.then=="function"?wc(f):f,u=u.useState()[0],(Ae!==null?Ae.memoizedState:null)!==u&&(Zt.flags|=1024),f}function $m(){var u=bd!==0;return bd=0,u}function Qm(u,f,v){f.updateQueue=u.updateQueue,f.flags&=-2053,u.lanes&=~v}function Km(u){if(xd){for(u=u.memoizedState;u!==null;){var f=u.queue;f!==null&&(f.pending=null),u=u.next}xd=!1}ra=0,en=Ae=Zt=null,Ls=!1,Sc=bd=0,Es=null}function Pn(){var u={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return en===null?Zt.memoizedState=en=u:en=en.next=u,en}function Xe(){if(Ae===null){var u=Zt.alternate;u=u!==null?u.memoizedState:null}else u=Ae.next;var f=en===null?Zt.memoizedState:en.next;if(f!==null)en=f,Ae=u;else{if(u===null)throw Zt.alternate===null?Error(r(467)):Error(r(310));Ae=u,u={memoizedState:Ae.memoizedState,baseState:Ae.baseState,baseQueue:Ae.baseQueue,queue:Ae.queue,next:null},en===null?Zt.memoizedState=en=u:en=en.next=u}return en}function _d(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function wc(u){var f=Sc;return Sc+=1,Es===null&&(Es=[]),u=TT(Es,u,f),f=Zt,(en===null?f.memoizedState:en.next)===null&&(f=f.alternate,V.H=f===null||f.memoizedState===null?pC:cy),u}function Sd(u){if(u!==null&&typeof u=="object"){if(typeof u.then=="function")return wc(u);if(u.$$typeof===T)return xn(u)}throw Error(r(438,String(u)))}function Jm(u){var f=null,v=Zt.updateQueue;if(v!==null&&(f=v.memoCache),f==null){var y=Zt.alternate;y!==null&&(y=y.updateQueue,y!==null&&(y=y.memoCache,y!=null&&(f={data:y.data.map(function(w){return w.slice()}),index:0})))}if(f==null&&(f={data:[],index:0}),v===null&&(v=_d(),Zt.updateQueue=v),v.memoCache=f,v=f.data[f.index],v===void 0)for(v=f.data[f.index]=Array(u),y=0;y<u;y++)v[y]=L;return f.index++,v}function ia(u,f){return typeof f=="function"?f(u):f}function wd(u){var f=Xe();return ty(f,Ae,u)}function ty(u,f,v){var y=u.queue;if(y===null)throw Error(r(311));y.lastRenderedReducer=v;var w=u.baseQueue,C=y.pending;if(C!==null){if(w!==null){var R=w.next;w.next=C.next,C.next=R}f.baseQueue=w=C,y.pending=null}if(C=u.baseState,w===null)u.memoizedState=C;else{f=w.next;var G=R=null,$=null,nt=f,lt=!1;do{var ft=nt.lane&-536870913;if(ft!==nt.lane?(ae&ft)===ft:(ra&ft)===ft){var rt=nt.revertLane;if(rt===0)$!==null&&($=$.next={lane:0,revertLane:0,gesture:null,action:nt.action,hasEagerState:nt.hasEagerState,eagerState:nt.eagerState,next:null}),ft===Cs&&(lt=!0);else if((ra&rt)===rt){nt=nt.next,rt===Cs&&(lt=!0);continue}else ft={lane:0,revertLane:nt.revertLane,gesture:null,action:nt.action,hasEagerState:nt.hasEagerState,eagerState:nt.eagerState,next:null},$===null?(G=$=ft,R=C):$=$.next=ft,Zt.lanes|=rt,Ya|=rt;ft=nt.action,el&&v(C,ft),C=nt.hasEagerState?nt.eagerState:v(C,ft)}else rt={lane:ft,revertLane:nt.revertLane,gesture:nt.gesture,action:nt.action,hasEagerState:nt.hasEagerState,eagerState:nt.eagerState,next:null},$===null?(G=$=rt,R=C):$=$.next=rt,Zt.lanes|=ft,Ya|=ft;nt=nt.next}while(nt!==null&&nt!==f);if($===null?R=C:$.next=G,!hr(C,u.memoizedState)&&(nn=!0,lt&&(v=Ms,v!==null)))throw v;u.memoizedState=C,u.baseState=R,u.baseQueue=$,y.lastRenderedState=C}return w===null&&(y.lanes=0),[u.memoizedState,y.dispatch]}function ey(u){var f=Xe(),v=f.queue;if(v===null)throw Error(r(311));v.lastRenderedReducer=u;var y=v.dispatch,w=v.pending,C=f.memoizedState;if(w!==null){v.pending=null;var R=w=w.next;do C=u(C,R.action),R=R.next;while(R!==w);hr(C,f.memoizedState)||(nn=!0),f.memoizedState=C,f.baseQueue===null&&(f.baseState=C),v.lastRenderedState=C}return[C,y]}function zT(u,f,v){var y=Zt,w=Xe(),C=se;if(C){if(v===void 0)throw Error(r(407));v=v()}else v=f();var R=!hr((Ae||w).memoizedState,v);if(R&&(w.memoizedState=v,nn=!0),w=w.queue,iy(PT.bind(null,y,w,u),[u]),w.getSnapshot!==f||R||en!==null&&en.memoizedState.tag&1){if(y.flags|=2048,Rs(9,{destroy:void 0},NT.bind(null,y,w,v,f),null),Ee===null)throw Error(r(349));C||(ra&127)!==0||BT(y,f,v)}return v}function BT(u,f,v){u.flags|=16384,u={getSnapshot:f,value:v},f=Zt.updateQueue,f===null?(f=_d(),Zt.updateQueue=f,f.stores=[u]):(v=f.stores,v===null?f.stores=[u]:v.push(u))}function NT(u,f,v,y){f.value=v,f.getSnapshot=y,VT(f)&&HT(u)}function PT(u,f,v){return v(function(){VT(f)&&HT(u)})}function VT(u){var f=u.getSnapshot;u=u.value;try{var v=f();return!hr(u,v)}catch{return!0}}function HT(u){var f=Wo(u,2);f!==null&&er(f,u,2)}function ny(u){var f=Pn();if(typeof u=="function"){var v=u;if(u=v(),el){qn(!0);try{v()}finally{qn(!1)}}}return f.memoizedState=f.baseState=u,f.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:u},f}function jT(u,f,v,y){return u.baseState=v,ty(u,Ae,typeof y=="function"?y:ia)}function mN(u,f,v,y,w){if(Md(u))throw Error(r(485));if(u=f.action,u!==null){var C={payload:w,action:u,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(R){C.listeners.push(R)}};V.T!==null?v(!0):C.isTransition=!1,y(C),v=f.pending,v===null?(C.next=f.pending=C,FT(f,C)):(C.next=v.next,f.pending=v.next=C)}}function FT(u,f){var v=f.action,y=f.payload,w=u.state;if(f.isTransition){var C=V.T,R={};V.T=R;try{var G=v(w,y),$=V.S;$!==null&&$(R,G),GT(u,f,G)}catch(nt){ry(u,f,nt)}finally{C!==null&&R.types!==null&&(C.types=R.types),V.T=C}}else try{C=v(w,y),GT(u,f,C)}catch(nt){ry(u,f,nt)}}function GT(u,f,v){v!==null&&typeof v=="object"&&typeof v.then=="function"?v.then(function(y){UT(u,f,y)},function(y){return ry(u,f,y)}):UT(u,f,v)}function UT(u,f,v){f.status="fulfilled",f.value=v,YT(f),u.state=v,f=u.pending,f!==null&&(v=f.next,v===f?u.pending=null:(v=v.next,f.next=v,FT(u,v)))}function ry(u,f,v){var y=u.pending;if(u.pending=null,y!==null){y=y.next;do f.status="rejected",f.reason=v,YT(f),f=f.next;while(f!==y)}u.action=null}function YT(u){u=u.listeners;for(var f=0;f<u.length;f++)(0,u[f])()}function WT(u,f){return f}function XT(u,f){if(se){var v=Ee.formState;if(v!==null){t:{var y=Zt;if(se){if(Ne){e:{for(var w=Ne,C=Ir;w.nodeType!==8;){if(!C){w=null;break e}if(w=zr(w.nextSibling),w===null){w=null;break e}}C=w.data,w=C==="F!"||C==="F"?w:null}if(w){Ne=zr(w.nextSibling),y=w.data==="F!";break t}}Ba(y)}y=!1}y&&(f=v[0])}}return v=Pn(),v.memoizedState=v.baseState=f,y={pending:null,lanes:0,dispatch:null,lastRenderedReducer:WT,lastRenderedState:f},v.queue=y,v=hC.bind(null,Zt,y),y.dispatch=v,y=ny(!1),C=uy.bind(null,Zt,!1,y.queue),y=Pn(),w={state:f,dispatch:null,action:u,pending:null},y.queue=w,v=mN.bind(null,Zt,w,C,v),w.dispatch=v,y.memoizedState=u,[f,v,!1]}function qT(u){var f=Xe();return ZT(f,Ae,u)}function ZT(u,f,v){if(f=ty(u,f,WT)[0],u=wd(ia)[0],typeof f=="object"&&f!==null&&typeof f.then=="function")try{var y=wc(f)}catch(R){throw R===As?dd:R}else y=f;f=Xe();var w=f.queue,C=w.dispatch;return v!==f.memoizedState&&(Zt.flags|=2048,Rs(9,{destroy:void 0},yN.bind(null,w,v),null)),[y,C,u]}function yN(u,f){u.action=f}function $T(u){var f=Xe(),v=Ae;if(v!==null)return ZT(f,v,u);Xe(),f=f.memoizedState,v=Xe();var y=v.queue.dispatch;return v.memoizedState=u,[f,y,!1]}function Rs(u,f,v,y){return u={tag:u,create:v,deps:y,inst:f,next:null},f=Zt.updateQueue,f===null&&(f=_d(),Zt.updateQueue=f),v=f.lastEffect,v===null?f.lastEffect=u.next=u:(y=v.next,v.next=u,u.next=y,f.lastEffect=u),u}function QT(){return Xe().memoizedState}function Td(u,f,v,y){var w=Pn();Zt.flags|=u,w.memoizedState=Rs(1|f,{destroy:void 0},v,y===void 0?null:y)}function Cd(u,f,v,y){var w=Xe();y=y===void 0?null:y;var C=w.memoizedState.inst;Ae!==null&&y!==null&&qm(y,Ae.memoizedState.deps)?w.memoizedState=Rs(f,C,v,y):(Zt.flags|=u,w.memoizedState=Rs(1|f,C,v,y))}function KT(u,f){Td(8390656,8,u,f)}function iy(u,f){Cd(2048,8,u,f)}function xN(u){Zt.flags|=4;var f=Zt.updateQueue;if(f===null)f=_d(),Zt.updateQueue=f,f.events=[u];else{var v=f.events;v===null?f.events=[u]:v.push(u)}}function JT(u){var f=Xe().memoizedState;return xN({ref:f,nextImpl:u}),function(){if((ye&2)!==0)throw Error(r(440));return f.impl.apply(void 0,arguments)}}function tC(u,f){return Cd(4,2,u,f)}function eC(u,f){return Cd(4,4,u,f)}function nC(u,f){if(typeof f=="function"){u=u();var v=f(u);return function(){typeof v=="function"?v():f(null)}}if(f!=null)return u=u(),f.current=u,function(){f.current=null}}function rC(u,f,v){v=v!=null?v.concat([u]):null,Cd(4,4,nC.bind(null,f,u),v)}function ay(){}function iC(u,f){var v=Xe();f=f===void 0?null:f;var y=v.memoizedState;return f!==null&&qm(f,y[1])?y[0]:(v.memoizedState=[u,f],u)}function aC(u,f){var v=Xe();f=f===void 0?null:f;var y=v.memoizedState;if(f!==null&&qm(f,y[1]))return y[0];if(y=u(),el){qn(!0);try{u()}finally{qn(!1)}}return v.memoizedState=[y,f],y}function oy(u,f,v){return v===void 0||(ra&1073741824)!==0&&(ae&261930)===0?u.memoizedState=f:(u.memoizedState=v,u=o2(),Zt.lanes|=u,Ya|=u,v)}function oC(u,f,v,y){return hr(v,f)?v:ks.current!==null?(u=oy(u,v,y),hr(u,f)||(nn=!0),u):(ra&42)===0||(ra&1073741824)!==0&&(ae&261930)===0?(nn=!0,u.memoizedState=v):(u=o2(),Zt.lanes|=u,Ya|=u,f)}function lC(u,f,v,y,w){var C=X.p;X.p=C!==0&&8>C?C:8;var R=V.T,G={};V.T=G,uy(u,!1,f,v);try{var $=w(),nt=V.S;if(nt!==null&&nt(G,$),$!==null&&typeof $=="object"&&typeof $.then=="function"){var lt=vN($,y);Tc(u,f,lt,yr(u))}else Tc(u,f,y,yr(u))}catch(ft){Tc(u,f,{then:function(){},status:"rejected",reason:ft},yr())}finally{X.p=C,R!==null&&G.types!==null&&(R.types=G.types),V.T=R}}function bN(){}function ly(u,f,v,y){if(u.tag!==5)throw Error(r(476));var w=sC(u).queue;lC(u,w,f,Z,v===null?bN:function(){return uC(u),v(y)})}function sC(u){var f=u.memoizedState;if(f!==null)return f;f={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:Z},next:null};var v={};return f.next={memoizedState:v,baseState:v,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:v},next:null},u.memoizedState=f,u=u.alternate,u!==null&&(u.memoizedState=f),f}function uC(u){var f=sC(u);f.next===null&&(f=u.alternate.memoizedState),Tc(u,f.next.queue,{},yr())}function sy(){return xn(jc)}function cC(){return Xe().memoizedState}function fC(){return Xe().memoizedState}function _N(u){for(var f=u.return;f!==null;){switch(f.tag){case 24:case 3:var v=yr();u=Va(v);var y=Ha(f,u,v);y!==null&&(er(y,f,v),xc(y,f,v)),f={cache:Nm()},u.payload=f;return}f=f.return}}function SN(u,f,v){var y=yr();v={lane:y,revertLane:0,gesture:null,action:v,hasEagerState:!1,eagerState:null,next:null},Md(u)?dC(f,v):(v=Mm(u,f,v,y),v!==null&&(er(v,u,y),vC(v,f,y)))}function hC(u,f,v){var y=yr();Tc(u,f,v,y)}function Tc(u,f,v,y){var w={lane:y,revertLane:0,gesture:null,action:v,hasEagerState:!1,eagerState:null,next:null};if(Md(u))dC(f,w);else{var C=u.alternate;if(u.lanes===0&&(C===null||C.lanes===0)&&(C=f.lastRenderedReducer,C!==null))try{var R=f.lastRenderedState,G=C(R,v);if(w.hasEagerState=!0,w.eagerState=G,hr(G,R))return od(u,f,w,0),Ee===null&&ad(),!1}catch{}finally{}if(v=Mm(u,f,w,y),v!==null)return er(v,u,y),vC(v,f,y),!0}return!1}function uy(u,f,v,y){if(y={lane:2,revertLane:jy(),gesture:null,action:y,hasEagerState:!1,eagerState:null,next:null},Md(u)){if(f)throw Error(r(479))}else f=Mm(u,v,y,2),f!==null&&er(f,u,2)}function Md(u){var f=u.alternate;return u===Zt||f!==null&&f===Zt}function dC(u,f){Ls=xd=!0;var v=u.pending;v===null?f.next=f:(f.next=v.next,v.next=f),u.pending=f}function vC(u,f,v){if((v&4194048)!==0){var y=f.lanes;y&=u.pendingLanes,v|=y,f.lanes=v,xw(u,v)}}var Cc={readContext:xn,use:Sd,useCallback:je,useContext:je,useEffect:je,useImperativeHandle:je,useLayoutEffect:je,useInsertionEffect:je,useMemo:je,useReducer:je,useRef:je,useState:je,useDebugValue:je,useDeferredValue:je,useTransition:je,useSyncExternalStore:je,useId:je,useHostTransitionStatus:je,useFormState:je,useActionState:je,useOptimistic:je,useMemoCache:je,useCacheRefresh:je};Cc.useEffectEvent=je;var pC={readContext:xn,use:Sd,useCallback:function(u,f){return Pn().memoizedState=[u,f===void 0?null:f],u},useContext:xn,useEffect:KT,useImperativeHandle:function(u,f,v){v=v!=null?v.concat([u]):null,Td(4194308,4,nC.bind(null,f,u),v)},useLayoutEffect:function(u,f){return Td(4194308,4,u,f)},useInsertionEffect:function(u,f){Td(4,2,u,f)},useMemo:function(u,f){var v=Pn();f=f===void 0?null:f;var y=u();if(el){qn(!0);try{u()}finally{qn(!1)}}return v.memoizedState=[y,f],y},useReducer:function(u,f,v){var y=Pn();if(v!==void 0){var w=v(f);if(el){qn(!0);try{v(f)}finally{qn(!1)}}}else w=f;return y.memoizedState=y.baseState=w,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:w},y.queue=u,u=u.dispatch=SN.bind(null,Zt,u),[y.memoizedState,u]},useRef:function(u){var f=Pn();return u={current:u},f.memoizedState=u},useState:function(u){u=ny(u);var f=u.queue,v=hC.bind(null,Zt,f);return f.dispatch=v,[u.memoizedState,v]},useDebugValue:ay,useDeferredValue:function(u,f){var v=Pn();return oy(v,u,f)},useTransition:function(){var u=ny(!1);return u=lC.bind(null,Zt,u.queue,!0,!1),Pn().memoizedState=u,[!1,u]},useSyncExternalStore:function(u,f,v){var y=Zt,w=Pn();if(se){if(v===void 0)throw Error(r(407));v=v()}else{if(v=f(),Ee===null)throw Error(r(349));(ae&127)!==0||BT(y,f,v)}w.memoizedState=v;var C={value:v,getSnapshot:f};return w.queue=C,KT(PT.bind(null,y,C,u),[u]),y.flags|=2048,Rs(9,{destroy:void 0},NT.bind(null,y,C,v,f),null),v},useId:function(){var u=Pn(),f=Ee.identifierPrefix;if(se){var v=wi,y=Si;v=(y&~(1<<32-Le(y)-1)).toString(32)+v,f="_"+f+"R_"+v,v=bd++,0<v&&(f+="H"+v.toString(32)),f+="_"}else v=pN++,f="_"+f+"r_"+v.toString(32)+"_";return u.memoizedState=f},useHostTransitionStatus:sy,useFormState:XT,useActionState:XT,useOptimistic:function(u){var f=Pn();f.memoizedState=f.baseState=u;var v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return f.queue=v,f=uy.bind(null,Zt,!0,v),v.dispatch=f,[u,f]},useMemoCache:Jm,useCacheRefresh:function(){return Pn().memoizedState=_N.bind(null,Zt)},useEffectEvent:function(u){var f=Pn(),v={impl:u};return f.memoizedState=v,function(){if((ye&2)!==0)throw Error(r(440));return v.impl.apply(void 0,arguments)}}},cy={readContext:xn,use:Sd,useCallback:iC,useContext:xn,useEffect:iy,useImperativeHandle:rC,useInsertionEffect:tC,useLayoutEffect:eC,useMemo:aC,useReducer:wd,useRef:QT,useState:function(){return wd(ia)},useDebugValue:ay,useDeferredValue:function(u,f){var v=Xe();return oC(v,Ae.memoizedState,u,f)},useTransition:function(){var u=wd(ia)[0],f=Xe().memoizedState;return[typeof u=="boolean"?u:wc(u),f]},useSyncExternalStore:zT,useId:cC,useHostTransitionStatus:sy,useFormState:qT,useActionState:qT,useOptimistic:function(u,f){var v=Xe();return jT(v,Ae,u,f)},useMemoCache:Jm,useCacheRefresh:fC};cy.useEffectEvent=JT;var gC={readContext:xn,use:Sd,useCallback:iC,useContext:xn,useEffect:iy,useImperativeHandle:rC,useInsertionEffect:tC,useLayoutEffect:eC,useMemo:aC,useReducer:ey,useRef:QT,useState:function(){return ey(ia)},useDebugValue:ay,useDeferredValue:function(u,f){var v=Xe();return Ae===null?oy(v,u,f):oC(v,Ae.memoizedState,u,f)},useTransition:function(){var u=ey(ia)[0],f=Xe().memoizedState;return[typeof u=="boolean"?u:wc(u),f]},useSyncExternalStore:zT,useId:cC,useHostTransitionStatus:sy,useFormState:$T,useActionState:$T,useOptimistic:function(u,f){var v=Xe();return Ae!==null?jT(v,Ae,u,f):(v.baseState=u,[u,v.queue.dispatch])},useMemoCache:Jm,useCacheRefresh:fC};gC.useEffectEvent=JT;function fy(u,f,v,y){f=u.memoizedState,v=v(y,f),v=v==null?f:d({},f,v),u.memoizedState=v,u.lanes===0&&(u.updateQueue.baseState=v)}var hy={enqueueSetState:function(u,f,v){u=u._reactInternals;var y=yr(),w=Va(y);w.payload=f,v!=null&&(w.callback=v),f=Ha(u,w,y),f!==null&&(er(f,u,y),xc(f,u,y))},enqueueReplaceState:function(u,f,v){u=u._reactInternals;var y=yr(),w=Va(y);w.tag=1,w.payload=f,v!=null&&(w.callback=v),f=Ha(u,w,y),f!==null&&(er(f,u,y),xc(f,u,y))},enqueueForceUpdate:function(u,f){u=u._reactInternals;var v=yr(),y=Va(v);y.tag=2,f!=null&&(y.callback=f),f=Ha(u,y,v),f!==null&&(er(f,u,v),xc(f,u,v))}};function mC(u,f,v,y,w,C,R){return u=u.stateNode,typeof u.shouldComponentUpdate=="function"?u.shouldComponentUpdate(y,C,R):f.prototype&&f.prototype.isPureReactComponent?!fc(v,y)||!fc(w,C):!0}function yC(u,f,v,y){u=f.state,typeof f.componentWillReceiveProps=="function"&&f.componentWillReceiveProps(v,y),typeof f.UNSAFE_componentWillReceiveProps=="function"&&f.UNSAFE_componentWillReceiveProps(v,y),f.state!==u&&hy.enqueueReplaceState(f,f.state,null)}function nl(u,f){var v=f;if("ref"in f){v={};for(var y in f)y!=="ref"&&(v[y]=f[y])}if(u=u.defaultProps){v===f&&(v=d({},v));for(var w in u)v[w]===void 0&&(v[w]=u[w])}return v}function xC(u){id(u)}function bC(u){console.error(u)}function _C(u){id(u)}function Ad(u,f){try{var v=u.onUncaughtError;v(f.value,{componentStack:f.stack})}catch(y){setTimeout(function(){throw y})}}function SC(u,f,v){try{var y=u.onCaughtError;y(v.value,{componentStack:v.stack,errorBoundary:f.tag===1?f.stateNode:null})}catch(w){setTimeout(function(){throw w})}}function dy(u,f,v){return v=Va(v),v.tag=3,v.payload={element:null},v.callback=function(){Ad(u,f)},v}function wC(u){return u=Va(u),u.tag=3,u}function TC(u,f,v,y){var w=v.type.getDerivedStateFromError;if(typeof w=="function"){var C=y.value;u.payload=function(){return w(C)},u.callback=function(){SC(f,v,y)}}var R=v.stateNode;R!==null&&typeof R.componentDidCatch=="function"&&(u.callback=function(){SC(f,v,y),typeof w!="function"&&(Wa===null?Wa=new Set([this]):Wa.add(this));var G=y.stack;this.componentDidCatch(y.value,{componentStack:G!==null?G:""})})}function wN(u,f,v,y,w){if(v.flags|=32768,y!==null&&typeof y=="object"&&typeof y.then=="function"){if(f=v.alternate,f!==null&&Ts(f,v,w,!0),v=vr.current,v!==null){switch(v.tag){case 31:case 13:return Or===null?Vd():v.alternate===null&&Fe===0&&(Fe=3),v.flags&=-257,v.flags|=65536,v.lanes=w,y===vd?v.flags|=16384:(f=v.updateQueue,f===null?v.updateQueue=new Set([y]):f.add(y),Py(u,y,w)),!1;case 22:return v.flags|=65536,y===vd?v.flags|=16384:(f=v.updateQueue,f===null?(f={transitions:null,markerInstances:null,retryQueue:new Set([y])},v.updateQueue=f):(v=f.retryQueue,v===null?f.retryQueue=new Set([y]):v.add(y)),Py(u,y,w)),!1}throw Error(r(435,v.tag))}return Py(u,y,w),Vd(),!1}if(se)return f=vr.current,f!==null?((f.flags&65536)===0&&(f.flags|=256),f.flags|=65536,f.lanes=w,y!==Rm&&(u=Error(r(422),{cause:y}),vc(Lr(u,v)))):(y!==Rm&&(f=Error(r(423),{cause:y}),vc(Lr(f,v))),u=u.current.alternate,u.flags|=65536,w&=-w,u.lanes|=w,y=Lr(y,v),w=dy(u.stateNode,y,w),Gm(u,w),Fe!==4&&(Fe=2)),!1;var C=Error(r(520),{cause:y});if(C=Lr(C,v),Ic===null?Ic=[C]:Ic.push(C),Fe!==4&&(Fe=2),f===null)return!0;y=Lr(y,v),v=f;do{switch(v.tag){case 3:return v.flags|=65536,u=w&-w,v.lanes|=u,u=dy(v.stateNode,y,u),Gm(v,u),!1;case 1:if(f=v.type,C=v.stateNode,(v.flags&128)===0&&(typeof f.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(Wa===null||!Wa.has(C))))return v.flags|=65536,w&=-w,v.lanes|=w,w=wC(w),TC(w,u,v,y),Gm(v,w),!1}v=v.return}while(v!==null);return!1}var vy=Error(r(461)),nn=!1;function bn(u,f,v,y){f.child=u===null?DT(f,null,v,y):tl(f,u.child,v,y)}function CC(u,f,v,y,w){v=v.render;var C=f.ref;if("ref"in y){var R={};for(var G in y)G!=="ref"&&(R[G]=y[G])}else R=y;return $o(f),y=Zm(u,f,v,R,C,w),G=$m(),u!==null&&!nn?(Qm(u,f,w),aa(u,f,w)):(se&&G&&Lm(f),f.flags|=1,bn(u,f,y,w),f.child)}function MC(u,f,v,y,w){if(u===null){var C=v.type;return typeof C=="function"&&!Am(C)&&C.defaultProps===void 0&&v.compare===null?(f.tag=15,f.type=C,AC(u,f,C,y,w)):(u=sd(v.type,null,y,f,f.mode,w),u.ref=f.ref,u.return=f,f.child=u)}if(C=u.child,!Sy(u,w)){var R=C.memoizedProps;if(v=v.compare,v=v!==null?v:fc,v(R,y)&&u.ref===f.ref)return aa(u,f,w)}return f.flags|=1,u=Ji(C,y),u.ref=f.ref,u.return=f,f.child=u}function AC(u,f,v,y,w){if(u!==null){var C=u.memoizedProps;if(fc(C,y)&&u.ref===f.ref)if(nn=!1,f.pendingProps=y=C,Sy(u,w))(u.flags&131072)!==0&&(nn=!0);else return f.lanes=u.lanes,aa(u,f,w)}return py(u,f,v,y,w)}function DC(u,f,v,y){var w=y.children,C=u!==null?u.memoizedState:null;if(u===null&&f.stateNode===null&&(f.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),y.mode==="hidden"){if((f.flags&128)!==0){if(C=C!==null?C.baseLanes|v:v,u!==null){for(y=f.child=u.child,w=0;y!==null;)w=w|y.lanes|y.childLanes,y=y.sibling;y=w&~C}else y=0,f.child=null;return kC(u,f,C,v,y)}if((v&536870912)!==0)f.memoizedState={baseLanes:0,cachePool:null},u!==null&&hd(f,C!==null?C.cachePool:null),C!==null?ET(f,C):Ym(),RT(f);else return y=f.lanes=536870912,kC(u,f,C!==null?C.baseLanes|v:v,v,y)}else C!==null?(hd(f,C.cachePool),ET(f,C),Fa(),f.memoizedState=null):(u!==null&&hd(f,null),Ym(),Fa());return bn(u,f,w,v),f.child}function Mc(u,f){return u!==null&&u.tag===22||f.stateNode!==null||(f.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),f.sibling}function kC(u,f,v,y,w){var C=Vm();return C=C===null?null:{parent:tn._currentValue,pool:C},f.memoizedState={baseLanes:v,cachePool:C},u!==null&&hd(f,null),Ym(),RT(f),u!==null&&Ts(u,f,y,!0),f.childLanes=w,null}function Dd(u,f){return f=Ld({mode:f.mode,children:f.children},u.mode),f.ref=u.ref,u.child=f,f.return=u,f}function LC(u,f,v){return tl(f,u.child,null,v),u=Dd(f,f.pendingProps),u.flags|=2,pr(f),f.memoizedState=null,u}function TN(u,f,v){var y=f.pendingProps,w=(f.flags&128)!==0;if(f.flags&=-129,u===null){if(se){if(y.mode==="hidden")return u=Dd(f,y),f.lanes=536870912,Mc(null,u);if(Xm(f),(u=Ne)?(u=F2(u,Ir),u=u!==null&&u.data==="&"?u:null,u!==null&&(f.memoizedState={dehydrated:u,treeContext:Oa!==null?{id:Si,overflow:wi}:null,retryLane:536870912,hydrationErrors:null},v=dT(u),v.return=f,f.child=v,yn=f,Ne=null)):u=null,u===null)throw Ba(f);return f.lanes=536870912,null}return Dd(f,y)}var C=u.memoizedState;if(C!==null){var R=C.dehydrated;if(Xm(f),w)if(f.flags&256)f.flags&=-257,f=LC(u,f,v);else if(f.memoizedState!==null)f.child=u.child,f.flags|=128,f=null;else throw Error(r(558));else if(nn||Ts(u,f,v,!1),w=(v&u.childLanes)!==0,nn||w){if(y=Ee,y!==null&&(R=bw(y,v),R!==0&&R!==C.retryLane))throw C.retryLane=R,Wo(u,R),er(y,u,R),vy;Vd(),f=LC(u,f,v)}else u=C.treeContext,Ne=zr(R.nextSibling),yn=f,se=!0,za=null,Ir=!1,u!==null&&gT(f,u),f=Dd(f,y),f.flags|=4096;return f}return u=Ji(u.child,{mode:y.mode,children:y.children}),u.ref=f.ref,f.child=u,u.return=f,u}function kd(u,f){var v=f.ref;if(v===null)u!==null&&u.ref!==null&&(f.flags|=4194816);else{if(typeof v!="function"&&typeof v!="object")throw Error(r(284));(u===null||u.ref!==v)&&(f.flags|=4194816)}}function py(u,f,v,y,w){return $o(f),v=Zm(u,f,v,y,void 0,w),y=$m(),u!==null&&!nn?(Qm(u,f,w),aa(u,f,w)):(se&&y&&Lm(f),f.flags|=1,bn(u,f,v,w),f.child)}function EC(u,f,v,y,w,C){return $o(f),f.updateQueue=null,v=OT(f,y,v,w),IT(u),y=$m(),u!==null&&!nn?(Qm(u,f,C),aa(u,f,C)):(se&&y&&Lm(f),f.flags|=1,bn(u,f,v,C),f.child)}function RC(u,f,v,y,w){if($o(f),f.stateNode===null){var C=bs,R=v.contextType;typeof R=="object"&&R!==null&&(C=xn(R)),C=new v(y,C),f.memoizedState=C.state!==null&&C.state!==void 0?C.state:null,C.updater=hy,f.stateNode=C,C._reactInternals=f,C=f.stateNode,C.props=y,C.state=f.memoizedState,C.refs={},jm(f),R=v.contextType,C.context=typeof R=="object"&&R!==null?xn(R):bs,C.state=f.memoizedState,R=v.getDerivedStateFromProps,typeof R=="function"&&(fy(f,v,R,y),C.state=f.memoizedState),typeof v.getDerivedStateFromProps=="function"||typeof C.getSnapshotBeforeUpdate=="function"||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(R=C.state,typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount(),R!==C.state&&hy.enqueueReplaceState(C,C.state,null),_c(f,y,C,w),bc(),C.state=f.memoizedState),typeof C.componentDidMount=="function"&&(f.flags|=4194308),y=!0}else if(u===null){C=f.stateNode;var G=f.memoizedProps,$=nl(v,G);C.props=$;var nt=C.context,lt=v.contextType;R=bs,typeof lt=="object"&&lt!==null&&(R=xn(lt));var ft=v.getDerivedStateFromProps;lt=typeof ft=="function"||typeof C.getSnapshotBeforeUpdate=="function",G=f.pendingProps!==G,lt||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(G||nt!==R)&&yC(f,C,y,R),Pa=!1;var rt=f.memoizedState;C.state=rt,_c(f,y,C,w),bc(),nt=f.memoizedState,G||rt!==nt||Pa?(typeof ft=="function"&&(fy(f,v,ft,y),nt=f.memoizedState),($=Pa||mC(f,v,$,y,rt,nt,R))?(lt||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"&&(f.flags|=4194308)):(typeof C.componentDidMount=="function"&&(f.flags|=4194308),f.memoizedProps=y,f.memoizedState=nt),C.props=y,C.state=nt,C.context=R,y=$):(typeof C.componentDidMount=="function"&&(f.flags|=4194308),y=!1)}else{C=f.stateNode,Fm(u,f),R=f.memoizedProps,lt=nl(v,R),C.props=lt,ft=f.pendingProps,rt=C.context,nt=v.contextType,$=bs,typeof nt=="object"&&nt!==null&&($=xn(nt)),G=v.getDerivedStateFromProps,(nt=typeof G=="function"||typeof C.getSnapshotBeforeUpdate=="function")||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(R!==ft||rt!==$)&&yC(f,C,y,$),Pa=!1,rt=f.memoizedState,C.state=rt,_c(f,y,C,w),bc();var it=f.memoizedState;R!==ft||rt!==it||Pa||u!==null&&u.dependencies!==null&&cd(u.dependencies)?(typeof G=="function"&&(fy(f,v,G,y),it=f.memoizedState),(lt=Pa||mC(f,v,lt,y,rt,it,$)||u!==null&&u.dependencies!==null&&cd(u.dependencies))?(nt||typeof C.UNSAFE_componentWillUpdate!="function"&&typeof C.componentWillUpdate!="function"||(typeof C.componentWillUpdate=="function"&&C.componentWillUpdate(y,it,$),typeof C.UNSAFE_componentWillUpdate=="function"&&C.UNSAFE_componentWillUpdate(y,it,$)),typeof C.componentDidUpdate=="function"&&(f.flags|=4),typeof C.getSnapshotBeforeUpdate=="function"&&(f.flags|=1024)):(typeof C.componentDidUpdate!="function"||R===u.memoizedProps&&rt===u.memoizedState||(f.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||R===u.memoizedProps&&rt===u.memoizedState||(f.flags|=1024),f.memoizedProps=y,f.memoizedState=it),C.props=y,C.state=it,C.context=$,y=lt):(typeof C.componentDidUpdate!="function"||R===u.memoizedProps&&rt===u.memoizedState||(f.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||R===u.memoizedProps&&rt===u.memoizedState||(f.flags|=1024),y=!1)}return C=y,kd(u,f),y=(f.flags&128)!==0,C||y?(C=f.stateNode,v=y&&typeof v.getDerivedStateFromError!="function"?null:C.render(),f.flags|=1,u!==null&&y?(f.child=tl(f,u.child,null,w),f.child=tl(f,null,v,w)):bn(u,f,v,w),f.memoizedState=C.state,u=f.child):u=aa(u,f,w),u}function IC(u,f,v,y){return qo(),f.flags|=256,bn(u,f,v,y),f.child}var gy={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function my(u){return{baseLanes:u,cachePool:ST()}}function yy(u,f,v){return u=u!==null?u.childLanes&~v:0,f&&(u|=mr),u}function OC(u,f,v){var y=f.pendingProps,w=!1,C=(f.flags&128)!==0,R;if((R=C)||(R=u!==null&&u.memoizedState===null?!1:(We.current&2)!==0),R&&(w=!0,f.flags&=-129),R=(f.flags&32)!==0,f.flags&=-33,u===null){if(se){if(w?ja(f):Fa(),(u=Ne)?(u=F2(u,Ir),u=u!==null&&u.data!=="&"?u:null,u!==null&&(f.memoizedState={dehydrated:u,treeContext:Oa!==null?{id:Si,overflow:wi}:null,retryLane:536870912,hydrationErrors:null},v=dT(u),v.return=f,f.child=v,yn=f,Ne=null)):u=null,u===null)throw Ba(f);return t0(u)?f.lanes=32:f.lanes=536870912,null}var G=y.children;return y=y.fallback,w?(Fa(),w=f.mode,G=Ld({mode:"hidden",children:G},w),y=Xo(y,w,v,null),G.return=f,y.return=f,G.sibling=y,f.child=G,y=f.child,y.memoizedState=my(v),y.childLanes=yy(u,R,v),f.memoizedState=gy,Mc(null,y)):(ja(f),xy(f,G))}var $=u.memoizedState;if($!==null&&(G=$.dehydrated,G!==null)){if(C)f.flags&256?(ja(f),f.flags&=-257,f=by(u,f,v)):f.memoizedState!==null?(Fa(),f.child=u.child,f.flags|=128,f=null):(Fa(),G=y.fallback,w=f.mode,y=Ld({mode:"visible",children:y.children},w),G=Xo(G,w,v,null),G.flags|=2,y.return=f,G.return=f,y.sibling=G,f.child=y,tl(f,u.child,null,v),y=f.child,y.memoizedState=my(v),y.childLanes=yy(u,R,v),f.memoizedState=gy,f=Mc(null,y));else if(ja(f),t0(G)){if(R=G.nextSibling&&G.nextSibling.dataset,R)var nt=R.dgst;R=nt,y=Error(r(419)),y.stack="",y.digest=R,vc({value:y,source:null,stack:null}),f=by(u,f,v)}else if(nn||Ts(u,f,v,!1),R=(v&u.childLanes)!==0,nn||R){if(R=Ee,R!==null&&(y=bw(R,v),y!==0&&y!==$.retryLane))throw $.retryLane=y,Wo(u,y),er(R,u,y),vy;Jy(G)||Vd(),f=by(u,f,v)}else Jy(G)?(f.flags|=192,f.child=u.child,f=null):(u=$.treeContext,Ne=zr(G.nextSibling),yn=f,se=!0,za=null,Ir=!1,u!==null&&gT(f,u),f=xy(f,y.children),f.flags|=4096);return f}return w?(Fa(),G=y.fallback,w=f.mode,$=u.child,nt=$.sibling,y=Ji($,{mode:"hidden",children:y.children}),y.subtreeFlags=$.subtreeFlags&65011712,nt!==null?G=Ji(nt,G):(G=Xo(G,w,v,null),G.flags|=2),G.return=f,y.return=f,y.sibling=G,f.child=y,Mc(null,y),y=f.child,G=u.child.memoizedState,G===null?G=my(v):(w=G.cachePool,w!==null?($=tn._currentValue,w=w.parent!==$?{parent:$,pool:$}:w):w=ST(),G={baseLanes:G.baseLanes|v,cachePool:w}),y.memoizedState=G,y.childLanes=yy(u,R,v),f.memoizedState=gy,Mc(u.child,y)):(ja(f),v=u.child,u=v.sibling,v=Ji(v,{mode:"visible",children:y.children}),v.return=f,v.sibling=null,u!==null&&(R=f.deletions,R===null?(f.deletions=[u],f.flags|=16):R.push(u)),f.child=v,f.memoizedState=null,v)}function xy(u,f){return f=Ld({mode:"visible",children:f},u.mode),f.return=u,u.child=f}function Ld(u,f){return u=dr(22,u,null,f),u.lanes=0,u}function by(u,f,v){return tl(f,u.child,null,v),u=xy(f,f.pendingProps.children),u.flags|=2,f.memoizedState=null,u}function zC(u,f,v){u.lanes|=f;var y=u.alternate;y!==null&&(y.lanes|=f),zm(u.return,f,v)}function _y(u,f,v,y,w,C){var R=u.memoizedState;R===null?u.memoizedState={isBackwards:f,rendering:null,renderingStartTime:0,last:y,tail:v,tailMode:w,treeForkCount:C}:(R.isBackwards=f,R.rendering=null,R.renderingStartTime=0,R.last=y,R.tail=v,R.tailMode=w,R.treeForkCount=C)}function BC(u,f,v){var y=f.pendingProps,w=y.revealOrder,C=y.tail;y=y.children;var R=We.current,G=(R&2)!==0;if(G?(R=R&1|2,f.flags|=128):R&=1,P(We,R),bn(u,f,y,v),y=se?dc:0,!G&&u!==null&&(u.flags&128)!==0)t:for(u=f.child;u!==null;){if(u.tag===13)u.memoizedState!==null&&zC(u,v,f);else if(u.tag===19)zC(u,v,f);else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===f)break t;for(;u.sibling===null;){if(u.return===null||u.return===f)break t;u=u.return}u.sibling.return=u.return,u=u.sibling}switch(w){case"forwards":for(v=f.child,w=null;v!==null;)u=v.alternate,u!==null&&yd(u)===null&&(w=v),v=v.sibling;v=w,v===null?(w=f.child,f.child=null):(w=v.sibling,v.sibling=null),_y(f,!1,w,v,C,y);break;case"backwards":case"unstable_legacy-backwards":for(v=null,w=f.child,f.child=null;w!==null;){if(u=w.alternate,u!==null&&yd(u)===null){f.child=w;break}u=w.sibling,w.sibling=v,v=w,w=u}_y(f,!0,v,null,C,y);break;case"together":_y(f,!1,null,null,void 0,y);break;default:f.memoizedState=null}return f.child}function aa(u,f,v){if(u!==null&&(f.dependencies=u.dependencies),Ya|=f.lanes,(v&f.childLanes)===0)if(u!==null){if(Ts(u,f,v,!1),(v&f.childLanes)===0)return null}else return null;if(u!==null&&f.child!==u.child)throw Error(r(153));if(f.child!==null){for(u=f.child,v=Ji(u,u.pendingProps),f.child=v,v.return=f;u.sibling!==null;)u=u.sibling,v=v.sibling=Ji(u,u.pendingProps),v.return=f;v.sibling=null}return f.child}function Sy(u,f){return(u.lanes&f)!==0?!0:(u=u.dependencies,!!(u!==null&&cd(u)))}function CN(u,f,v){switch(f.tag){case 3:gt(f,f.stateNode.containerInfo),Na(f,tn,u.memoizedState.cache),qo();break;case 27:case 5:Dt(f);break;case 4:gt(f,f.stateNode.containerInfo);break;case 10:Na(f,f.type,f.memoizedProps.value);break;case 31:if(f.memoizedState!==null)return f.flags|=128,Xm(f),null;break;case 13:var y=f.memoizedState;if(y!==null)return y.dehydrated!==null?(ja(f),f.flags|=128,null):(v&f.child.childLanes)!==0?OC(u,f,v):(ja(f),u=aa(u,f,v),u!==null?u.sibling:null);ja(f);break;case 19:var w=(u.flags&128)!==0;if(y=(v&f.childLanes)!==0,y||(Ts(u,f,v,!1),y=(v&f.childLanes)!==0),w){if(y)return BC(u,f,v);f.flags|=128}if(w=f.memoizedState,w!==null&&(w.rendering=null,w.tail=null,w.lastEffect=null),P(We,We.current),y)break;return null;case 22:return f.lanes=0,DC(u,f,v,f.pendingProps);case 24:Na(f,tn,u.memoizedState.cache)}return aa(u,f,v)}function NC(u,f,v){if(u!==null)if(u.memoizedProps!==f.pendingProps)nn=!0;else{if(!Sy(u,v)&&(f.flags&128)===0)return nn=!1,CN(u,f,v);nn=(u.flags&131072)!==0}else nn=!1,se&&(f.flags&1048576)!==0&&pT(f,dc,f.index);switch(f.lanes=0,f.tag){case 16:t:{var y=f.pendingProps;if(u=Ko(f.elementType),f.type=u,typeof u=="function")Am(u)?(y=nl(u,y),f.tag=1,f=RC(null,f,u,y,v)):(f.tag=0,f=py(null,f,u,y,v));else{if(u!=null){var w=u.$$typeof;if(w===A){f.tag=11,f=CC(null,f,u,y,v);break t}else if(w===k){f.tag=14,f=MC(null,f,u,y,v);break t}}throw f=Y(u)||u,Error(r(306,f,""))}}return f;case 0:return py(u,f,f.type,f.pendingProps,v);case 1:return y=f.type,w=nl(y,f.pendingProps),RC(u,f,y,w,v);case 3:t:{if(gt(f,f.stateNode.containerInfo),u===null)throw Error(r(387));y=f.pendingProps;var C=f.memoizedState;w=C.element,Fm(u,f),_c(f,y,null,v);var R=f.memoizedState;if(y=R.cache,Na(f,tn,y),y!==C.cache&&Bm(f,[tn],v,!0),bc(),y=R.element,C.isDehydrated)if(C={element:y,isDehydrated:!1,cache:R.cache},f.updateQueue.baseState=C,f.memoizedState=C,f.flags&256){f=IC(u,f,y,v);break t}else if(y!==w){w=Lr(Error(r(424)),f),vc(w),f=IC(u,f,y,v);break t}else{switch(u=f.stateNode.containerInfo,u.nodeType){case 9:u=u.body;break;default:u=u.nodeName==="HTML"?u.ownerDocument.body:u}for(Ne=zr(u.firstChild),yn=f,se=!0,za=null,Ir=!0,v=DT(f,null,y,v),f.child=v;v;)v.flags=v.flags&-3|4096,v=v.sibling}else{if(qo(),y===w){f=aa(u,f,v);break t}bn(u,f,y,v)}f=f.child}return f;case 26:return kd(u,f),u===null?(v=q2(f.type,null,f.pendingProps,null))?f.memoizedState=v:se||(v=f.type,u=f.pendingProps,y=Wd(mt.current).createElement(v),y[mn]=f,y[Zn]=u,_n(y,v,u),hn(y),f.stateNode=y):f.memoizedState=q2(f.type,u.memoizedProps,f.pendingProps,u.memoizedState),null;case 27:return Dt(f),u===null&&se&&(y=f.stateNode=Y2(f.type,f.pendingProps,mt.current),yn=f,Ir=!0,w=Ne,$a(f.type)?(e0=w,Ne=zr(y.firstChild)):Ne=w),bn(u,f,f.pendingProps.children,v),kd(u,f),u===null&&(f.flags|=4194304),f.child;case 5:return u===null&&se&&((w=y=Ne)&&(y=eP(y,f.type,f.pendingProps,Ir),y!==null?(f.stateNode=y,yn=f,Ne=zr(y.firstChild),Ir=!1,w=!0):w=!1),w||Ba(f)),Dt(f),w=f.type,C=f.pendingProps,R=u!==null?u.memoizedProps:null,y=C.children,$y(w,C)?y=null:R!==null&&$y(w,R)&&(f.flags|=32),f.memoizedState!==null&&(w=Zm(u,f,gN,null,null,v),jc._currentValue=w),kd(u,f),bn(u,f,y,v),f.child;case 6:return u===null&&se&&((u=v=Ne)&&(v=nP(v,f.pendingProps,Ir),v!==null?(f.stateNode=v,yn=f,Ne=null,u=!0):u=!1),u||Ba(f)),null;case 13:return OC(u,f,v);case 4:return gt(f,f.stateNode.containerInfo),y=f.pendingProps,u===null?f.child=tl(f,null,y,v):bn(u,f,y,v),f.child;case 11:return CC(u,f,f.type,f.pendingProps,v);case 7:return bn(u,f,f.pendingProps,v),f.child;case 8:return bn(u,f,f.pendingProps.children,v),f.child;case 12:return bn(u,f,f.pendingProps.children,v),f.child;case 10:return y=f.pendingProps,Na(f,f.type,y.value),bn(u,f,y.children,v),f.child;case 9:return w=f.type._context,y=f.pendingProps.children,$o(f),w=xn(w),y=y(w),f.flags|=1,bn(u,f,y,v),f.child;case 14:return MC(u,f,f.type,f.pendingProps,v);case 15:return AC(u,f,f.type,f.pendingProps,v);case 19:return BC(u,f,v);case 31:return TN(u,f,v);case 22:return DC(u,f,v,f.pendingProps);case 24:return $o(f),y=xn(tn),u===null?(w=Vm(),w===null&&(w=Ee,C=Nm(),w.pooledCache=C,C.refCount++,C!==null&&(w.pooledCacheLanes|=v),w=C),f.memoizedState={parent:y,cache:w},jm(f),Na(f,tn,w)):((u.lanes&v)!==0&&(Fm(u,f),_c(f,null,null,v),bc()),w=u.memoizedState,C=f.memoizedState,w.parent!==y?(w={parent:y,cache:y},f.memoizedState=w,f.lanes===0&&(f.memoizedState=f.updateQueue.baseState=w),Na(f,tn,y)):(y=C.cache,Na(f,tn,y),y!==w.cache&&Bm(f,[tn],v,!0))),bn(u,f,f.pendingProps.children,v),f.child;case 29:throw f.pendingProps}throw Error(r(156,f.tag))}function oa(u){u.flags|=4}function wy(u,f,v,y,w){if((f=(u.mode&32)!==0)&&(f=!1),f){if(u.flags|=16777216,(w&335544128)===w)if(u.stateNode.complete)u.flags|=8192;else if(c2())u.flags|=8192;else throw Jo=vd,Hm}else u.flags&=-16777217}function PC(u,f){if(f.type!=="stylesheet"||(f.state.loading&4)!==0)u.flags&=-16777217;else if(u.flags|=16777216,!J2(f))if(c2())u.flags|=8192;else throw Jo=vd,Hm}function Ed(u,f){f!==null&&(u.flags|=4),u.flags&16384&&(f=u.tag!==22?mw():536870912,u.lanes|=f,Bs|=f)}function Ac(u,f){if(!se)switch(u.tailMode){case"hidden":f=u.tail;for(var v=null;f!==null;)f.alternate!==null&&(v=f),f=f.sibling;v===null?u.tail=null:v.sibling=null;break;case"collapsed":v=u.tail;for(var y=null;v!==null;)v.alternate!==null&&(y=v),v=v.sibling;y===null?f||u.tail===null?u.tail=null:u.tail.sibling=null:y.sibling=null}}function Pe(u){var f=u.alternate!==null&&u.alternate.child===u.child,v=0,y=0;if(f)for(var w=u.child;w!==null;)v|=w.lanes|w.childLanes,y|=w.subtreeFlags&65011712,y|=w.flags&65011712,w.return=u,w=w.sibling;else for(w=u.child;w!==null;)v|=w.lanes|w.childLanes,y|=w.subtreeFlags,y|=w.flags,w.return=u,w=w.sibling;return u.subtreeFlags|=y,u.childLanes=v,f}function MN(u,f,v){var y=f.pendingProps;switch(Em(f),f.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pe(f),null;case 1:return Pe(f),null;case 3:return v=f.stateNode,y=null,u!==null&&(y=u.memoizedState.cache),f.memoizedState.cache!==y&&(f.flags|=2048),na(tn),dt(),v.pendingContext&&(v.context=v.pendingContext,v.pendingContext=null),(u===null||u.child===null)&&(ws(f)?oa(f):u===null||u.memoizedState.isDehydrated&&(f.flags&256)===0||(f.flags|=1024,Im())),Pe(f),null;case 26:var w=f.type,C=f.memoizedState;return u===null?(oa(f),C!==null?(Pe(f),PC(f,C)):(Pe(f),wy(f,w,null,y,v))):C?C!==u.memoizedState?(oa(f),Pe(f),PC(f,C)):(Pe(f),f.flags&=-16777217):(u=u.memoizedProps,u!==y&&oa(f),Pe(f),wy(f,w,u,y,v)),null;case 27:if(yt(f),v=mt.current,w=f.type,u!==null&&f.stateNode!=null)u.memoizedProps!==y&&oa(f);else{if(!y){if(f.stateNode===null)throw Error(r(166));return Pe(f),null}u=J.current,ws(f)?mT(f):(u=Y2(w,y,v),f.stateNode=u,oa(f))}return Pe(f),null;case 5:if(yt(f),w=f.type,u!==null&&f.stateNode!=null)u.memoizedProps!==y&&oa(f);else{if(!y){if(f.stateNode===null)throw Error(r(166));return Pe(f),null}if(C=J.current,ws(f))mT(f);else{var R=Wd(mt.current);switch(C){case 1:C=R.createElementNS("http://www.w3.org/2000/svg",w);break;case 2:C=R.createElementNS("http://www.w3.org/1998/Math/MathML",w);break;default:switch(w){case"svg":C=R.createElementNS("http://www.w3.org/2000/svg",w);break;case"math":C=R.createElementNS("http://www.w3.org/1998/Math/MathML",w);break;case"script":C=R.createElement("div"),C.innerHTML="<script><\/script>",C=C.removeChild(C.firstChild);break;case"select":C=typeof y.is=="string"?R.createElement("select",{is:y.is}):R.createElement("select"),y.multiple?C.multiple=!0:y.size&&(C.size=y.size);break;default:C=typeof y.is=="string"?R.createElement(w,{is:y.is}):R.createElement(w)}}C[mn]=f,C[Zn]=y;t:for(R=f.child;R!==null;){if(R.tag===5||R.tag===6)C.appendChild(R.stateNode);else if(R.tag!==4&&R.tag!==27&&R.child!==null){R.child.return=R,R=R.child;continue}if(R===f)break t;for(;R.sibling===null;){if(R.return===null||R.return===f)break t;R=R.return}R.sibling.return=R.return,R=R.sibling}f.stateNode=C;t:switch(_n(C,w,y),w){case"button":case"input":case"select":case"textarea":y=!!y.autoFocus;break t;case"img":y=!0;break t;default:y=!1}y&&oa(f)}}return Pe(f),wy(f,f.type,u===null?null:u.memoizedProps,f.pendingProps,v),null;case 6:if(u&&f.stateNode!=null)u.memoizedProps!==y&&oa(f);else{if(typeof y!="string"&&f.stateNode===null)throw Error(r(166));if(u=mt.current,ws(f)){if(u=f.stateNode,v=f.memoizedProps,y=null,w=yn,w!==null)switch(w.tag){case 27:case 5:y=w.memoizedProps}u[mn]=f,u=!!(u.nodeValue===v||y!==null&&y.suppressHydrationWarning===!0||O2(u.nodeValue,v)),u||Ba(f,!0)}else u=Wd(u).createTextNode(y),u[mn]=f,f.stateNode=u}return Pe(f),null;case 31:if(v=f.memoizedState,u===null||u.memoizedState!==null){if(y=ws(f),v!==null){if(u===null){if(!y)throw Error(r(318));if(u=f.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(557));u[mn]=f}else qo(),(f.flags&128)===0&&(f.memoizedState=null),f.flags|=4;Pe(f),u=!1}else v=Im(),u!==null&&u.memoizedState!==null&&(u.memoizedState.hydrationErrors=v),u=!0;if(!u)return f.flags&256?(pr(f),f):(pr(f),null);if((f.flags&128)!==0)throw Error(r(558))}return Pe(f),null;case 13:if(y=f.memoizedState,u===null||u.memoizedState!==null&&u.memoizedState.dehydrated!==null){if(w=ws(f),y!==null&&y.dehydrated!==null){if(u===null){if(!w)throw Error(r(318));if(w=f.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error(r(317));w[mn]=f}else qo(),(f.flags&128)===0&&(f.memoizedState=null),f.flags|=4;Pe(f),w=!1}else w=Im(),u!==null&&u.memoizedState!==null&&(u.memoizedState.hydrationErrors=w),w=!0;if(!w)return f.flags&256?(pr(f),f):(pr(f),null)}return pr(f),(f.flags&128)!==0?(f.lanes=v,f):(v=y!==null,u=u!==null&&u.memoizedState!==null,v&&(y=f.child,w=null,y.alternate!==null&&y.alternate.memoizedState!==null&&y.alternate.memoizedState.cachePool!==null&&(w=y.alternate.memoizedState.cachePool.pool),C=null,y.memoizedState!==null&&y.memoizedState.cachePool!==null&&(C=y.memoizedState.cachePool.pool),C!==w&&(y.flags|=2048)),v!==u&&v&&(f.child.flags|=8192),Ed(f,f.updateQueue),Pe(f),null);case 4:return dt(),u===null&&Yy(f.stateNode.containerInfo),Pe(f),null;case 10:return na(f.type),Pe(f),null;case 19:if(q(We),y=f.memoizedState,y===null)return Pe(f),null;if(w=(f.flags&128)!==0,C=y.rendering,C===null)if(w)Ac(y,!1);else{if(Fe!==0||u!==null&&(u.flags&128)!==0)for(u=f.child;u!==null;){if(C=yd(u),C!==null){for(f.flags|=128,Ac(y,!1),u=C.updateQueue,f.updateQueue=u,Ed(f,u),f.subtreeFlags=0,u=v,v=f.child;v!==null;)hT(v,u),v=v.sibling;return P(We,We.current&1|2),se&&ta(f,y.treeForkCount),f.child}u=u.sibling}y.tail!==null&&Bn()>Bd&&(f.flags|=128,w=!0,Ac(y,!1),f.lanes=4194304)}else{if(!w)if(u=yd(C),u!==null){if(f.flags|=128,w=!0,u=u.updateQueue,f.updateQueue=u,Ed(f,u),Ac(y,!0),y.tail===null&&y.tailMode==="hidden"&&!C.alternate&&!se)return Pe(f),null}else 2*Bn()-y.renderingStartTime>Bd&&v!==536870912&&(f.flags|=128,w=!0,Ac(y,!1),f.lanes=4194304);y.isBackwards?(C.sibling=f.child,f.child=C):(u=y.last,u!==null?u.sibling=C:f.child=C,y.last=C)}return y.tail!==null?(u=y.tail,y.rendering=u,y.tail=u.sibling,y.renderingStartTime=Bn(),u.sibling=null,v=We.current,P(We,w?v&1|2:v&1),se&&ta(f,y.treeForkCount),u):(Pe(f),null);case 22:case 23:return pr(f),Wm(),y=f.memoizedState!==null,u!==null?u.memoizedState!==null!==y&&(f.flags|=8192):y&&(f.flags|=8192),y?(v&536870912)!==0&&(f.flags&128)===0&&(Pe(f),f.subtreeFlags&6&&(f.flags|=8192)):Pe(f),v=f.updateQueue,v!==null&&Ed(f,v.retryQueue),v=null,u!==null&&u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(v=u.memoizedState.cachePool.pool),y=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(y=f.memoizedState.cachePool.pool),y!==v&&(f.flags|=2048),u!==null&&q(Qo),null;case 24:return v=null,u!==null&&(v=u.memoizedState.cache),f.memoizedState.cache!==v&&(f.flags|=2048),na(tn),Pe(f),null;case 25:return null;case 30:return null}throw Error(r(156,f.tag))}function AN(u,f){switch(Em(f),f.tag){case 1:return u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 3:return na(tn),dt(),u=f.flags,(u&65536)!==0&&(u&128)===0?(f.flags=u&-65537|128,f):null;case 26:case 27:case 5:return yt(f),null;case 31:if(f.memoizedState!==null){if(pr(f),f.alternate===null)throw Error(r(340));qo()}return u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 13:if(pr(f),u=f.memoizedState,u!==null&&u.dehydrated!==null){if(f.alternate===null)throw Error(r(340));qo()}return u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 19:return q(We),null;case 4:return dt(),null;case 10:return na(f.type),null;case 22:case 23:return pr(f),Wm(),u!==null&&q(Qo),u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 24:return na(tn),null;case 25:return null;default:return null}}function VC(u,f){switch(Em(f),f.tag){case 3:na(tn),dt();break;case 26:case 27:case 5:yt(f);break;case 4:dt();break;case 31:f.memoizedState!==null&&pr(f);break;case 13:pr(f);break;case 19:q(We);break;case 10:na(f.type);break;case 22:case 23:pr(f),Wm(),u!==null&&q(Qo);break;case 24:na(tn)}}function Dc(u,f){try{var v=f.updateQueue,y=v!==null?v.lastEffect:null;if(y!==null){var w=y.next;v=w;do{if((v.tag&u)===u){y=void 0;var C=v.create,R=v.inst;y=C(),R.destroy=y}v=v.next}while(v!==w)}}catch(G){Ce(f,f.return,G)}}function Ga(u,f,v){try{var y=f.updateQueue,w=y!==null?y.lastEffect:null;if(w!==null){var C=w.next;y=C;do{if((y.tag&u)===u){var R=y.inst,G=R.destroy;if(G!==void 0){R.destroy=void 0,w=f;var $=v,nt=G;try{nt()}catch(lt){Ce(w,$,lt)}}}y=y.next}while(y!==C)}}catch(lt){Ce(f,f.return,lt)}}function HC(u){var f=u.updateQueue;if(f!==null){var v=u.stateNode;try{LT(f,v)}catch(y){Ce(u,u.return,y)}}}function jC(u,f,v){v.props=nl(u.type,u.memoizedProps),v.state=u.memoizedState;try{v.componentWillUnmount()}catch(y){Ce(u,f,y)}}function kc(u,f){try{var v=u.ref;if(v!==null){switch(u.tag){case 26:case 27:case 5:var y=u.stateNode;break;case 30:y=u.stateNode;break;default:y=u.stateNode}typeof v=="function"?u.refCleanup=v(y):v.current=y}}catch(w){Ce(u,f,w)}}function Ti(u,f){var v=u.ref,y=u.refCleanup;if(v!==null)if(typeof y=="function")try{y()}catch(w){Ce(u,f,w)}finally{u.refCleanup=null,u=u.alternate,u!=null&&(u.refCleanup=null)}else if(typeof v=="function")try{v(null)}catch(w){Ce(u,f,w)}else v.current=null}function FC(u){var f=u.type,v=u.memoizedProps,y=u.stateNode;try{t:switch(f){case"button":case"input":case"select":case"textarea":v.autoFocus&&y.focus();break t;case"img":v.src?y.src=v.src:v.srcSet&&(y.srcset=v.srcSet)}}catch(w){Ce(u,u.return,w)}}function Ty(u,f,v){try{var y=u.stateNode;ZN(y,u.type,v,f),y[Zn]=f}catch(w){Ce(u,u.return,w)}}function GC(u){return u.tag===5||u.tag===3||u.tag===26||u.tag===27&&$a(u.type)||u.tag===4}function Cy(u){t:for(;;){for(;u.sibling===null;){if(u.return===null||GC(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.tag===27&&$a(u.type)||u.flags&2||u.child===null||u.tag===4)continue t;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function My(u,f,v){var y=u.tag;if(y===5||y===6)u=u.stateNode,f?(v.nodeType===9?v.body:v.nodeName==="HTML"?v.ownerDocument.body:v).insertBefore(u,f):(f=v.nodeType===9?v.body:v.nodeName==="HTML"?v.ownerDocument.body:v,f.appendChild(u),v=v._reactRootContainer,v!=null||f.onclick!==null||(f.onclick=Qi));else if(y!==4&&(y===27&&$a(u.type)&&(v=u.stateNode,f=null),u=u.child,u!==null))for(My(u,f,v),u=u.sibling;u!==null;)My(u,f,v),u=u.sibling}function Rd(u,f,v){var y=u.tag;if(y===5||y===6)u=u.stateNode,f?v.insertBefore(u,f):v.appendChild(u);else if(y!==4&&(y===27&&$a(u.type)&&(v=u.stateNode),u=u.child,u!==null))for(Rd(u,f,v),u=u.sibling;u!==null;)Rd(u,f,v),u=u.sibling}function UC(u){var f=u.stateNode,v=u.memoizedProps;try{for(var y=u.type,w=f.attributes;w.length;)f.removeAttributeNode(w[0]);_n(f,y,v),f[mn]=u,f[Zn]=v}catch(C){Ce(u,u.return,C)}}var la=!1,rn=!1,Ay=!1,YC=typeof WeakSet=="function"?WeakSet:Set,dn=null;function DN(u,f){if(u=u.containerInfo,qy=Jd,u=rT(u),bm(u)){if("selectionStart"in u)var v={start:u.selectionStart,end:u.selectionEnd};else t:{v=(v=u.ownerDocument)&&v.defaultView||window;var y=v.getSelection&&v.getSelection();if(y&&y.rangeCount!==0){v=y.anchorNode;var w=y.anchorOffset,C=y.focusNode;y=y.focusOffset;try{v.nodeType,C.nodeType}catch{v=null;break t}var R=0,G=-1,$=-1,nt=0,lt=0,ft=u,rt=null;e:for(;;){for(var it;ft!==v||w!==0&&ft.nodeType!==3||(G=R+w),ft!==C||y!==0&&ft.nodeType!==3||($=R+y),ft.nodeType===3&&(R+=ft.nodeValue.length),(it=ft.firstChild)!==null;)rt=ft,ft=it;for(;;){if(ft===u)break e;if(rt===v&&++nt===w&&(G=R),rt===C&&++lt===y&&($=R),(it=ft.nextSibling)!==null)break;ft=rt,rt=ft.parentNode}ft=it}v=G===-1||$===-1?null:{start:G,end:$}}else v=null}v=v||{start:0,end:0}}else v=null;for(Zy={focusedElem:u,selectionRange:v},Jd=!1,dn=f;dn!==null;)if(f=dn,u=f.child,(f.subtreeFlags&1028)!==0&&u!==null)u.return=f,dn=u;else for(;dn!==null;){switch(f=dn,C=f.alternate,u=f.flags,f.tag){case 0:if((u&4)!==0&&(u=f.updateQueue,u=u!==null?u.events:null,u!==null))for(v=0;v<u.length;v++)w=u[v],w.ref.impl=w.nextImpl;break;case 11:case 15:break;case 1:if((u&1024)!==0&&C!==null){u=void 0,v=f,w=C.memoizedProps,C=C.memoizedState,y=v.stateNode;try{var kt=nl(v.type,w);u=y.getSnapshotBeforeUpdate(kt,C),y.__reactInternalSnapshotBeforeUpdate=u}catch(Vt){Ce(v,v.return,Vt)}}break;case 3:if((u&1024)!==0){if(u=f.stateNode.containerInfo,v=u.nodeType,v===9)Ky(u);else if(v===1)switch(u.nodeName){case"HEAD":case"HTML":case"BODY":Ky(u);break;default:u.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((u&1024)!==0)throw Error(r(163))}if(u=f.sibling,u!==null){u.return=f.return,dn=u;break}dn=f.return}}function WC(u,f,v){var y=v.flags;switch(v.tag){case 0:case 11:case 15:ua(u,v),y&4&&Dc(5,v);break;case 1:if(ua(u,v),y&4)if(u=v.stateNode,f===null)try{u.componentDidMount()}catch(R){Ce(v,v.return,R)}else{var w=nl(v.type,f.memoizedProps);f=f.memoizedState;try{u.componentDidUpdate(w,f,u.__reactInternalSnapshotBeforeUpdate)}catch(R){Ce(v,v.return,R)}}y&64&&HC(v),y&512&&kc(v,v.return);break;case 3:if(ua(u,v),y&64&&(u=v.updateQueue,u!==null)){if(f=null,v.child!==null)switch(v.child.tag){case 27:case 5:f=v.child.stateNode;break;case 1:f=v.child.stateNode}try{LT(u,f)}catch(R){Ce(v,v.return,R)}}break;case 27:f===null&&y&4&&UC(v);case 26:case 5:ua(u,v),f===null&&y&4&&FC(v),y&512&&kc(v,v.return);break;case 12:ua(u,v);break;case 31:ua(u,v),y&4&&ZC(u,v);break;case 13:ua(u,v),y&4&&$C(u,v),y&64&&(u=v.memoizedState,u!==null&&(u=u.dehydrated,u!==null&&(v=NN.bind(null,v),rP(u,v))));break;case 22:if(y=v.memoizedState!==null||la,!y){f=f!==null&&f.memoizedState!==null||rn,w=la;var C=rn;la=y,(rn=f)&&!C?ca(u,v,(v.subtreeFlags&8772)!==0):ua(u,v),la=w,rn=C}break;case 30:break;default:ua(u,v)}}function XC(u){var f=u.alternate;f!==null&&(u.alternate=null,XC(f)),u.child=null,u.deletions=null,u.sibling=null,u.tag===5&&(f=u.stateNode,f!==null&&rm(f)),u.stateNode=null,u.return=null,u.dependencies=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.stateNode=null,u.updateQueue=null}var Ve=null,Qn=!1;function sa(u,f,v){for(v=v.child;v!==null;)qC(u,f,v),v=v.sibling}function qC(u,f,v){if(sn&&typeof sn.onCommitFiberUnmount=="function")try{sn.onCommitFiberUnmount(Nn,v)}catch{}switch(v.tag){case 26:rn||Ti(v,f),sa(u,f,v),v.memoizedState?v.memoizedState.count--:v.stateNode&&(v=v.stateNode,v.parentNode.removeChild(v));break;case 27:rn||Ti(v,f);var y=Ve,w=Qn;$a(v.type)&&(Ve=v.stateNode,Qn=!1),sa(u,f,v),Pc(v.stateNode),Ve=y,Qn=w;break;case 5:rn||Ti(v,f);case 6:if(y=Ve,w=Qn,Ve=null,sa(u,f,v),Ve=y,Qn=w,Ve!==null)if(Qn)try{(Ve.nodeType===9?Ve.body:Ve.nodeName==="HTML"?Ve.ownerDocument.body:Ve).removeChild(v.stateNode)}catch(C){Ce(v,f,C)}else try{Ve.removeChild(v.stateNode)}catch(C){Ce(v,f,C)}break;case 18:Ve!==null&&(Qn?(u=Ve,H2(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,v.stateNode),Us(u)):H2(Ve,v.stateNode));break;case 4:y=Ve,w=Qn,Ve=v.stateNode.containerInfo,Qn=!0,sa(u,f,v),Ve=y,Qn=w;break;case 0:case 11:case 14:case 15:Ga(2,v,f),rn||Ga(4,v,f),sa(u,f,v);break;case 1:rn||(Ti(v,f),y=v.stateNode,typeof y.componentWillUnmount=="function"&&jC(v,f,y)),sa(u,f,v);break;case 21:sa(u,f,v);break;case 22:rn=(y=rn)||v.memoizedState!==null,sa(u,f,v),rn=y;break;default:sa(u,f,v)}}function ZC(u,f){if(f.memoizedState===null&&(u=f.alternate,u!==null&&(u=u.memoizedState,u!==null))){u=u.dehydrated;try{Us(u)}catch(v){Ce(f,f.return,v)}}}function $C(u,f){if(f.memoizedState===null&&(u=f.alternate,u!==null&&(u=u.memoizedState,u!==null&&(u=u.dehydrated,u!==null))))try{Us(u)}catch(v){Ce(f,f.return,v)}}function kN(u){switch(u.tag){case 31:case 13:case 19:var f=u.stateNode;return f===null&&(f=u.stateNode=new YC),f;case 22:return u=u.stateNode,f=u._retryCache,f===null&&(f=u._retryCache=new YC),f;default:throw Error(r(435,u.tag))}}function Id(u,f){var v=kN(u);f.forEach(function(y){if(!v.has(y)){v.add(y);var w=PN.bind(null,u,y);y.then(w,w)}})}function Kn(u,f){var v=f.deletions;if(v!==null)for(var y=0;y<v.length;y++){var w=v[y],C=u,R=f,G=R;t:for(;G!==null;){switch(G.tag){case 27:if($a(G.type)){Ve=G.stateNode,Qn=!1;break t}break;case 5:Ve=G.stateNode,Qn=!1;break t;case 3:case 4:Ve=G.stateNode.containerInfo,Qn=!0;break t}G=G.return}if(Ve===null)throw Error(r(160));qC(C,R,w),Ve=null,Qn=!1,C=w.alternate,C!==null&&(C.return=null),w.return=null}if(f.subtreeFlags&13886)for(f=f.child;f!==null;)QC(f,u),f=f.sibling}var ai=null;function QC(u,f){var v=u.alternate,y=u.flags;switch(u.tag){case 0:case 11:case 14:case 15:Kn(f,u),Jn(u),y&4&&(Ga(3,u,u.return),Dc(3,u),Ga(5,u,u.return));break;case 1:Kn(f,u),Jn(u),y&512&&(rn||v===null||Ti(v,v.return)),y&64&&la&&(u=u.updateQueue,u!==null&&(y=u.callbacks,y!==null&&(v=u.shared.hiddenCallbacks,u.shared.hiddenCallbacks=v===null?y:v.concat(y))));break;case 26:var w=ai;if(Kn(f,u),Jn(u),y&512&&(rn||v===null||Ti(v,v.return)),y&4){var C=v!==null?v.memoizedState:null;if(y=u.memoizedState,v===null)if(y===null)if(u.stateNode===null){t:{y=u.type,v=u.memoizedProps,w=w.ownerDocument||w;e:switch(y){case"title":C=w.getElementsByTagName("title")[0],(!C||C[nc]||C[mn]||C.namespaceURI==="http://www.w3.org/2000/svg"||C.hasAttribute("itemprop"))&&(C=w.createElement(y),w.head.insertBefore(C,w.querySelector("head > title"))),_n(C,y,v),C[mn]=u,hn(C),y=C;break t;case"link":var R=Q2("link","href",w).get(y+(v.href||""));if(R){for(var G=0;G<R.length;G++)if(C=R[G],C.getAttribute("href")===(v.href==null||v.href===""?null:v.href)&&C.getAttribute("rel")===(v.rel==null?null:v.rel)&&C.getAttribute("title")===(v.title==null?null:v.title)&&C.getAttribute("crossorigin")===(v.crossOrigin==null?null:v.crossOrigin)){R.splice(G,1);break e}}C=w.createElement(y),_n(C,y,v),w.head.appendChild(C);break;case"meta":if(R=Q2("meta","content",w).get(y+(v.content||""))){for(G=0;G<R.length;G++)if(C=R[G],C.getAttribute("content")===(v.content==null?null:""+v.content)&&C.getAttribute("name")===(v.name==null?null:v.name)&&C.getAttribute("property")===(v.property==null?null:v.property)&&C.getAttribute("http-equiv")===(v.httpEquiv==null?null:v.httpEquiv)&&C.getAttribute("charset")===(v.charSet==null?null:v.charSet)){R.splice(G,1);break e}}C=w.createElement(y),_n(C,y,v),w.head.appendChild(C);break;default:throw Error(r(468,y))}C[mn]=u,hn(C),y=C}u.stateNode=y}else K2(w,u.type,u.stateNode);else u.stateNode=$2(w,y,u.memoizedProps);else C!==y?(C===null?v.stateNode!==null&&(v=v.stateNode,v.parentNode.removeChild(v)):C.count--,y===null?K2(w,u.type,u.stateNode):$2(w,y,u.memoizedProps)):y===null&&u.stateNode!==null&&Ty(u,u.memoizedProps,v.memoizedProps)}break;case 27:Kn(f,u),Jn(u),y&512&&(rn||v===null||Ti(v,v.return)),v!==null&&y&4&&Ty(u,u.memoizedProps,v.memoizedProps);break;case 5:if(Kn(f,u),Jn(u),y&512&&(rn||v===null||Ti(v,v.return)),u.flags&32){w=u.stateNode;try{ds(w,"")}catch(kt){Ce(u,u.return,kt)}}y&4&&u.stateNode!=null&&(w=u.memoizedProps,Ty(u,w,v!==null?v.memoizedProps:w)),y&1024&&(Ay=!0);break;case 6:if(Kn(f,u),Jn(u),y&4){if(u.stateNode===null)throw Error(r(162));y=u.memoizedProps,v=u.stateNode;try{v.nodeValue=y}catch(kt){Ce(u,u.return,kt)}}break;case 3:if(Zd=null,w=ai,ai=Xd(f.containerInfo),Kn(f,u),ai=w,Jn(u),y&4&&v!==null&&v.memoizedState.isDehydrated)try{Us(f.containerInfo)}catch(kt){Ce(u,u.return,kt)}Ay&&(Ay=!1,KC(u));break;case 4:y=ai,ai=Xd(u.stateNode.containerInfo),Kn(f,u),Jn(u),ai=y;break;case 12:Kn(f,u),Jn(u);break;case 31:Kn(f,u),Jn(u),y&4&&(y=u.updateQueue,y!==null&&(u.updateQueue=null,Id(u,y)));break;case 13:Kn(f,u),Jn(u),u.child.flags&8192&&u.memoizedState!==null!=(v!==null&&v.memoizedState!==null)&&(zd=Bn()),y&4&&(y=u.updateQueue,y!==null&&(u.updateQueue=null,Id(u,y)));break;case 22:w=u.memoizedState!==null;var $=v!==null&&v.memoizedState!==null,nt=la,lt=rn;if(la=nt||w,rn=lt||$,Kn(f,u),rn=lt,la=nt,Jn(u),y&8192)t:for(f=u.stateNode,f._visibility=w?f._visibility&-2:f._visibility|1,w&&(v===null||$||la||rn||rl(u)),v=null,f=u;;){if(f.tag===5||f.tag===26){if(v===null){$=v=f;try{if(C=$.stateNode,w)R=C.style,typeof R.setProperty=="function"?R.setProperty("display","none","important"):R.display="none";else{G=$.stateNode;var ft=$.memoizedProps.style,rt=ft!=null&&ft.hasOwnProperty("display")?ft.display:null;G.style.display=rt==null||typeof rt=="boolean"?"":(""+rt).trim()}}catch(kt){Ce($,$.return,kt)}}}else if(f.tag===6){if(v===null){$=f;try{$.stateNode.nodeValue=w?"":$.memoizedProps}catch(kt){Ce($,$.return,kt)}}}else if(f.tag===18){if(v===null){$=f;try{var it=$.stateNode;w?j2(it,!0):j2($.stateNode,!1)}catch(kt){Ce($,$.return,kt)}}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===u)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===u)break t;for(;f.sibling===null;){if(f.return===null||f.return===u)break t;v===f&&(v=null),f=f.return}v===f&&(v=null),f.sibling.return=f.return,f=f.sibling}y&4&&(y=u.updateQueue,y!==null&&(v=y.retryQueue,v!==null&&(y.retryQueue=null,Id(u,v))));break;case 19:Kn(f,u),Jn(u),y&4&&(y=u.updateQueue,y!==null&&(u.updateQueue=null,Id(u,y)));break;case 30:break;case 21:break;default:Kn(f,u),Jn(u)}}function Jn(u){var f=u.flags;if(f&2){try{for(var v,y=u.return;y!==null;){if(GC(y)){v=y;break}y=y.return}if(v==null)throw Error(r(160));switch(v.tag){case 27:var w=v.stateNode,C=Cy(u);Rd(u,C,w);break;case 5:var R=v.stateNode;v.flags&32&&(ds(R,""),v.flags&=-33);var G=Cy(u);Rd(u,G,R);break;case 3:case 4:var $=v.stateNode.containerInfo,nt=Cy(u);My(u,nt,$);break;default:throw Error(r(161))}}catch(lt){Ce(u,u.return,lt)}u.flags&=-3}f&4096&&(u.flags&=-4097)}function KC(u){if(u.subtreeFlags&1024)for(u=u.child;u!==null;){var f=u;KC(f),f.tag===5&&f.flags&1024&&f.stateNode.reset(),u=u.sibling}}function ua(u,f){if(f.subtreeFlags&8772)for(f=f.child;f!==null;)WC(u,f.alternate,f),f=f.sibling}function rl(u){for(u=u.child;u!==null;){var f=u;switch(f.tag){case 0:case 11:case 14:case 15:Ga(4,f,f.return),rl(f);break;case 1:Ti(f,f.return);var v=f.stateNode;typeof v.componentWillUnmount=="function"&&jC(f,f.return,v),rl(f);break;case 27:Pc(f.stateNode);case 26:case 5:Ti(f,f.return),rl(f);break;case 22:f.memoizedState===null&&rl(f);break;case 30:rl(f);break;default:rl(f)}u=u.sibling}}function ca(u,f,v){for(v=v&&(f.subtreeFlags&8772)!==0,f=f.child;f!==null;){var y=f.alternate,w=u,C=f,R=C.flags;switch(C.tag){case 0:case 11:case 15:ca(w,C,v),Dc(4,C);break;case 1:if(ca(w,C,v),y=C,w=y.stateNode,typeof w.componentDidMount=="function")try{w.componentDidMount()}catch(nt){Ce(y,y.return,nt)}if(y=C,w=y.updateQueue,w!==null){var G=y.stateNode;try{var $=w.shared.hiddenCallbacks;if($!==null)for(w.shared.hiddenCallbacks=null,w=0;w<$.length;w++)kT($[w],G)}catch(nt){Ce(y,y.return,nt)}}v&&R&64&&HC(C),kc(C,C.return);break;case 27:UC(C);case 26:case 5:ca(w,C,v),v&&y===null&&R&4&&FC(C),kc(C,C.return);break;case 12:ca(w,C,v);break;case 31:ca(w,C,v),v&&R&4&&ZC(w,C);break;case 13:ca(w,C,v),v&&R&4&&$C(w,C);break;case 22:C.memoizedState===null&&ca(w,C,v),kc(C,C.return);break;case 30:break;default:ca(w,C,v)}f=f.sibling}}function Dy(u,f){var v=null;u!==null&&u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(v=u.memoizedState.cachePool.pool),u=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(u=f.memoizedState.cachePool.pool),u!==v&&(u!=null&&u.refCount++,v!=null&&pc(v))}function ky(u,f){u=null,f.alternate!==null&&(u=f.alternate.memoizedState.cache),f=f.memoizedState.cache,f!==u&&(f.refCount++,u!=null&&pc(u))}function oi(u,f,v,y){if(f.subtreeFlags&10256)for(f=f.child;f!==null;)JC(u,f,v,y),f=f.sibling}function JC(u,f,v,y){var w=f.flags;switch(f.tag){case 0:case 11:case 15:oi(u,f,v,y),w&2048&&Dc(9,f);break;case 1:oi(u,f,v,y);break;case 3:oi(u,f,v,y),w&2048&&(u=null,f.alternate!==null&&(u=f.alternate.memoizedState.cache),f=f.memoizedState.cache,f!==u&&(f.refCount++,u!=null&&pc(u)));break;case 12:if(w&2048){oi(u,f,v,y),u=f.stateNode;try{var C=f.memoizedProps,R=C.id,G=C.onPostCommit;typeof G=="function"&&G(R,f.alternate===null?"mount":"update",u.passiveEffectDuration,-0)}catch($){Ce(f,f.return,$)}}else oi(u,f,v,y);break;case 31:oi(u,f,v,y);break;case 13:oi(u,f,v,y);break;case 23:break;case 22:C=f.stateNode,R=f.alternate,f.memoizedState!==null?C._visibility&2?oi(u,f,v,y):Lc(u,f):C._visibility&2?oi(u,f,v,y):(C._visibility|=2,Is(u,f,v,y,(f.subtreeFlags&10256)!==0||!1)),w&2048&&Dy(R,f);break;case 24:oi(u,f,v,y),w&2048&&ky(f.alternate,f);break;default:oi(u,f,v,y)}}function Is(u,f,v,y,w){for(w=w&&((f.subtreeFlags&10256)!==0||!1),f=f.child;f!==null;){var C=u,R=f,G=v,$=y,nt=R.flags;switch(R.tag){case 0:case 11:case 15:Is(C,R,G,$,w),Dc(8,R);break;case 23:break;case 22:var lt=R.stateNode;R.memoizedState!==null?lt._visibility&2?Is(C,R,G,$,w):Lc(C,R):(lt._visibility|=2,Is(C,R,G,$,w)),w&&nt&2048&&Dy(R.alternate,R);break;case 24:Is(C,R,G,$,w),w&&nt&2048&&ky(R.alternate,R);break;default:Is(C,R,G,$,w)}f=f.sibling}}function Lc(u,f){if(f.subtreeFlags&10256)for(f=f.child;f!==null;){var v=u,y=f,w=y.flags;switch(y.tag){case 22:Lc(v,y),w&2048&&Dy(y.alternate,y);break;case 24:Lc(v,y),w&2048&&ky(y.alternate,y);break;default:Lc(v,y)}f=f.sibling}}var Ec=8192;function Os(u,f,v){if(u.subtreeFlags&Ec)for(u=u.child;u!==null;)t2(u,f,v),u=u.sibling}function t2(u,f,v){switch(u.tag){case 26:Os(u,f,v),u.flags&Ec&&u.memoizedState!==null&&pP(v,ai,u.memoizedState,u.memoizedProps);break;case 5:Os(u,f,v);break;case 3:case 4:var y=ai;ai=Xd(u.stateNode.containerInfo),Os(u,f,v),ai=y;break;case 22:u.memoizedState===null&&(y=u.alternate,y!==null&&y.memoizedState!==null?(y=Ec,Ec=16777216,Os(u,f,v),Ec=y):Os(u,f,v));break;default:Os(u,f,v)}}function e2(u){var f=u.alternate;if(f!==null&&(u=f.child,u!==null)){f.child=null;do f=u.sibling,u.sibling=null,u=f;while(u!==null)}}function Rc(u){var f=u.deletions;if((u.flags&16)!==0){if(f!==null)for(var v=0;v<f.length;v++){var y=f[v];dn=y,r2(y,u)}e2(u)}if(u.subtreeFlags&10256)for(u=u.child;u!==null;)n2(u),u=u.sibling}function n2(u){switch(u.tag){case 0:case 11:case 15:Rc(u),u.flags&2048&&Ga(9,u,u.return);break;case 3:Rc(u);break;case 12:Rc(u);break;case 22:var f=u.stateNode;u.memoizedState!==null&&f._visibility&2&&(u.return===null||u.return.tag!==13)?(f._visibility&=-3,Od(u)):Rc(u);break;default:Rc(u)}}function Od(u){var f=u.deletions;if((u.flags&16)!==0){if(f!==null)for(var v=0;v<f.length;v++){var y=f[v];dn=y,r2(y,u)}e2(u)}for(u=u.child;u!==null;){switch(f=u,f.tag){case 0:case 11:case 15:Ga(8,f,f.return),Od(f);break;case 22:v=f.stateNode,v._visibility&2&&(v._visibility&=-3,Od(f));break;default:Od(f)}u=u.sibling}}function r2(u,f){for(;dn!==null;){var v=dn;switch(v.tag){case 0:case 11:case 15:Ga(8,v,f);break;case 23:case 22:if(v.memoizedState!==null&&v.memoizedState.cachePool!==null){var y=v.memoizedState.cachePool.pool;y!=null&&y.refCount++}break;case 24:pc(v.memoizedState.cache)}if(y=v.child,y!==null)y.return=v,dn=y;else t:for(v=u;dn!==null;){y=dn;var w=y.sibling,C=y.return;if(XC(y),y===v){dn=null;break t}if(w!==null){w.return=C,dn=w;break t}dn=C}}}var LN={getCacheForType:function(u){var f=xn(tn),v=f.data.get(u);return v===void 0&&(v=u(),f.data.set(u,v)),v},cacheSignal:function(){return xn(tn).controller.signal}},EN=typeof WeakMap=="function"?WeakMap:Map,ye=0,Ee=null,ee=null,ae=0,Te=0,gr=null,Ua=!1,zs=!1,Ly=!1,fa=0,Fe=0,Ya=0,il=0,Ey=0,mr=0,Bs=0,Ic=null,tr=null,Ry=!1,zd=0,i2=0,Bd=1/0,Nd=null,Wa=null,un=0,Xa=null,Ns=null,ha=0,Iy=0,Oy=null,a2=null,Oc=0,zy=null;function yr(){return(ye&2)!==0&&ae!==0?ae&-ae:V.T!==null?jy():_w()}function o2(){if(mr===0)if((ae&536870912)===0||se){var u=Yh;Yh<<=1,(Yh&3932160)===0&&(Yh=262144),mr=u}else mr=536870912;return u=vr.current,u!==null&&(u.flags|=32),mr}function er(u,f,v){(u===Ee&&(Te===2||Te===9)||u.cancelPendingCommit!==null)&&(Ps(u,0),qa(u,ae,mr,!1)),ec(u,v),((ye&2)===0||u!==Ee)&&(u===Ee&&((ye&2)===0&&(il|=v),Fe===4&&qa(u,ae,mr,!1)),Ci(u))}function l2(u,f,v){if((ye&6)!==0)throw Error(r(327));var y=!v&&(f&127)===0&&(f&u.expiredLanes)===0||tc(u,f),w=y?ON(u,f):Ny(u,f,!0),C=y;do{if(w===0){zs&&!y&&qa(u,f,0,!1);break}else{if(v=u.current.alternate,C&&!RN(v)){w=Ny(u,f,!1),C=!1;continue}if(w===2){if(C=f,u.errorRecoveryDisabledLanes&C)var R=0;else R=u.pendingLanes&-536870913,R=R!==0?R:R&536870912?536870912:0;if(R!==0){f=R;t:{var G=u;w=Ic;var $=G.current.memoizedState.isDehydrated;if($&&(Ps(G,R).flags|=256),R=Ny(G,R,!1),R!==2){if(Ly&&!$){G.errorRecoveryDisabledLanes|=C,il|=C,w=4;break t}C=tr,tr=w,C!==null&&(tr===null?tr=C:tr.push.apply(tr,C))}w=R}if(C=!1,w!==2)continue}}if(w===1){Ps(u,0),qa(u,f,0,!0);break}t:{switch(y=u,C=w,C){case 0:case 1:throw Error(r(345));case 4:if((f&4194048)!==f)break;case 6:qa(y,f,mr,!Ua);break t;case 2:tr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((f&62914560)===f&&(w=zd+300-Bn(),10<w)){if(qa(y,f,mr,!Ua),Xh(y,0,!0)!==0)break t;ha=f,y.timeoutHandle=P2(s2.bind(null,y,v,tr,Nd,Ry,f,mr,il,Bs,Ua,C,"Throttled",-0,0),w);break t}s2(y,v,tr,Nd,Ry,f,mr,il,Bs,Ua,C,null,-0,0)}}break}while(!0);Ci(u)}function s2(u,f,v,y,w,C,R,G,$,nt,lt,ft,rt,it){if(u.timeoutHandle=-1,ft=f.subtreeFlags,ft&8192||(ft&16785408)===16785408){ft={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qi},t2(f,C,ft);var kt=(C&62914560)===C?zd-Bn():(C&4194048)===C?i2-Bn():0;if(kt=gP(ft,kt),kt!==null){ha=C,u.cancelPendingCommit=kt(g2.bind(null,u,f,C,v,y,w,R,G,$,lt,ft,null,rt,it)),qa(u,C,R,!nt);return}}g2(u,f,C,v,y,w,R,G,$)}function RN(u){for(var f=u;;){var v=f.tag;if((v===0||v===11||v===15)&&f.flags&16384&&(v=f.updateQueue,v!==null&&(v=v.stores,v!==null)))for(var y=0;y<v.length;y++){var w=v[y],C=w.getSnapshot;w=w.value;try{if(!hr(C(),w))return!1}catch{return!1}}if(v=f.child,f.subtreeFlags&16384&&v!==null)v.return=f,f=v;else{if(f===u)break;for(;f.sibling===null;){if(f.return===null||f.return===u)return!0;f=f.return}f.sibling.return=f.return,f=f.sibling}}return!0}function qa(u,f,v,y){f&=~Ey,f&=~il,u.suspendedLanes|=f,u.pingedLanes&=~f,y&&(u.warmLanes|=f),y=u.expirationTimes;for(var w=f;0<w;){var C=31-Le(w),R=1<<C;y[C]=-1,w&=~R}v!==0&&yw(u,v,f)}function Pd(){return(ye&6)===0?(zc(0),!1):!0}function By(){if(ee!==null){if(Te===0)var u=ee.return;else u=ee,ea=Zo=null,Km(u),Ds=null,mc=0,u=ee;for(;u!==null;)VC(u.alternate,u),u=u.return;ee=null}}function Ps(u,f){var v=u.timeoutHandle;v!==-1&&(u.timeoutHandle=-1,KN(v)),v=u.cancelPendingCommit,v!==null&&(u.cancelPendingCommit=null,v()),ha=0,By(),Ee=u,ee=v=Ji(u.current,null),ae=f,Te=0,gr=null,Ua=!1,zs=tc(u,f),Ly=!1,Bs=mr=Ey=il=Ya=Fe=0,tr=Ic=null,Ry=!1,(f&8)!==0&&(f|=f&32);var y=u.entangledLanes;if(y!==0)for(u=u.entanglements,y&=f;0<y;){var w=31-Le(y),C=1<<w;f|=u[w],y&=~C}return fa=f,ad(),v}function u2(u,f){Zt=null,V.H=Cc,f===As||f===dd?(f=CT(),Te=3):f===Hm?(f=CT(),Te=4):Te=f===vy?8:f!==null&&typeof f=="object"&&typeof f.then=="function"?6:1,gr=f,ee===null&&(Fe=1,Ad(u,Lr(f,u.current)))}function c2(){var u=vr.current;return u===null?!0:(ae&4194048)===ae?Or===null:(ae&62914560)===ae||(ae&536870912)!==0?u===Or:!1}function f2(){var u=V.H;return V.H=Cc,u===null?Cc:u}function h2(){var u=V.A;return V.A=LN,u}function Vd(){Fe=4,Ua||(ae&4194048)!==ae&&vr.current!==null||(zs=!0),(Ya&134217727)===0&&(il&134217727)===0||Ee===null||qa(Ee,ae,mr,!1)}function Ny(u,f,v){var y=ye;ye|=2;var w=f2(),C=h2();(Ee!==u||ae!==f)&&(Nd=null,Ps(u,f)),f=!1;var R=Fe;t:do try{if(Te!==0&&ee!==null){var G=ee,$=gr;switch(Te){case 8:By(),R=6;break t;case 3:case 2:case 9:case 6:vr.current===null&&(f=!0);var nt=Te;if(Te=0,gr=null,Vs(u,G,$,nt),v&&zs){R=0;break t}break;default:nt=Te,Te=0,gr=null,Vs(u,G,$,nt)}}IN(),R=Fe;break}catch(lt){u2(u,lt)}while(!0);return f&&u.shellSuspendCounter++,ea=Zo=null,ye=y,V.H=w,V.A=C,ee===null&&(Ee=null,ae=0,ad()),R}function IN(){for(;ee!==null;)d2(ee)}function ON(u,f){var v=ye;ye|=2;var y=f2(),w=h2();Ee!==u||ae!==f?(Nd=null,Bd=Bn()+500,Ps(u,f)):zs=tc(u,f);t:do try{if(Te!==0&&ee!==null){f=ee;var C=gr;e:switch(Te){case 1:Te=0,gr=null,Vs(u,f,C,1);break;case 2:case 9:if(wT(C)){Te=0,gr=null,v2(f);break}f=function(){Te!==2&&Te!==9||Ee!==u||(Te=7),Ci(u)},C.then(f,f);break t;case 3:Te=7;break t;case 4:Te=5;break t;case 7:wT(C)?(Te=0,gr=null,v2(f)):(Te=0,gr=null,Vs(u,f,C,7));break;case 5:var R=null;switch(ee.tag){case 26:R=ee.memoizedState;case 5:case 27:var G=ee;if(R?J2(R):G.stateNode.complete){Te=0,gr=null;var $=G.sibling;if($!==null)ee=$;else{var nt=G.return;nt!==null?(ee=nt,Hd(nt)):ee=null}break e}}Te=0,gr=null,Vs(u,f,C,5);break;case 6:Te=0,gr=null,Vs(u,f,C,6);break;case 8:By(),Fe=6;break t;default:throw Error(r(462))}}zN();break}catch(lt){u2(u,lt)}while(!0);return ea=Zo=null,V.H=y,V.A=w,ye=v,ee!==null?0:(Ee=null,ae=0,ad(),Fe)}function zN(){for(;ee!==null&&!Ho();)d2(ee)}function d2(u){var f=NC(u.alternate,u,fa);u.memoizedProps=u.pendingProps,f===null?Hd(u):ee=f}function v2(u){var f=u,v=f.alternate;switch(f.tag){case 15:case 0:f=EC(v,f,f.pendingProps,f.type,void 0,ae);break;case 11:f=EC(v,f,f.pendingProps,f.type.render,f.ref,ae);break;case 5:Km(f);default:VC(v,f),f=ee=hT(f,fa),f=NC(v,f,fa)}u.memoizedProps=u.pendingProps,f===null?Hd(u):ee=f}function Vs(u,f,v,y){ea=Zo=null,Km(f),Ds=null,mc=0;var w=f.return;try{if(wN(u,w,f,v,ae)){Fe=1,Ad(u,Lr(v,u.current)),ee=null;return}}catch(C){if(w!==null)throw ee=w,C;Fe=1,Ad(u,Lr(v,u.current)),ee=null;return}f.flags&32768?(se||y===1?u=!0:zs||(ae&536870912)!==0?u=!1:(Ua=u=!0,(y===2||y===9||y===3||y===6)&&(y=vr.current,y!==null&&y.tag===13&&(y.flags|=16384))),p2(f,u)):Hd(f)}function Hd(u){var f=u;do{if((f.flags&32768)!==0){p2(f,Ua);return}u=f.return;var v=MN(f.alternate,f,fa);if(v!==null){ee=v;return}if(f=f.sibling,f!==null){ee=f;return}ee=f=u}while(f!==null);Fe===0&&(Fe=5)}function p2(u,f){do{var v=AN(u.alternate,u);if(v!==null){v.flags&=32767,ee=v;return}if(v=u.return,v!==null&&(v.flags|=32768,v.subtreeFlags=0,v.deletions=null),!f&&(u=u.sibling,u!==null)){ee=u;return}ee=u=v}while(u!==null);Fe=6,ee=null}function g2(u,f,v,y,w,C,R,G,$){u.cancelPendingCommit=null;do jd();while(un!==0);if((ye&6)!==0)throw Error(r(327));if(f!==null){if(f===u.current)throw Error(r(177));if(C=f.lanes|f.childLanes,C|=Cm,v4(u,v,C,R,G,$),u===Ee&&(ee=Ee=null,ae=0),Ns=f,Xa=u,ha=v,Iy=C,Oy=w,a2=y,(f.subtreeFlags&10256)!==0||(f.flags&10256)!==0?(u.callbackNode=null,u.callbackPriority=0,VN(Ht,function(){return _2(),null})):(u.callbackNode=null,u.callbackPriority=0),y=(f.flags&13878)!==0,(f.subtreeFlags&13878)!==0||y){y=V.T,V.T=null,w=X.p,X.p=2,R=ye,ye|=4;try{DN(u,f,v)}finally{ye=R,X.p=w,V.T=y}}un=1,m2(),y2(),x2()}}function m2(){if(un===1){un=0;var u=Xa,f=Ns,v=(f.flags&13878)!==0;if((f.subtreeFlags&13878)!==0||v){v=V.T,V.T=null;var y=X.p;X.p=2;var w=ye;ye|=4;try{QC(f,u);var C=Zy,R=rT(u.containerInfo),G=C.focusedElem,$=C.selectionRange;if(R!==G&&G&&G.ownerDocument&&nT(G.ownerDocument.documentElement,G)){if($!==null&&bm(G)){var nt=$.start,lt=$.end;if(lt===void 0&&(lt=nt),"selectionStart"in G)G.selectionStart=nt,G.selectionEnd=Math.min(lt,G.value.length);else{var ft=G.ownerDocument||document,rt=ft&&ft.defaultView||window;if(rt.getSelection){var it=rt.getSelection(),kt=G.textContent.length,Vt=Math.min($.start,kt),ke=$.end===void 0?Vt:Math.min($.end,kt);!it.extend&&Vt>ke&&(R=ke,ke=Vt,Vt=R);var K=eT(G,Vt),Q=eT(G,ke);if(K&&Q&&(it.rangeCount!==1||it.anchorNode!==K.node||it.anchorOffset!==K.offset||it.focusNode!==Q.node||it.focusOffset!==Q.offset)){var et=ft.createRange();et.setStart(K.node,K.offset),it.removeAllRanges(),Vt>ke?(it.addRange(et),it.extend(Q.node,Q.offset)):(et.setEnd(Q.node,Q.offset),it.addRange(et))}}}}for(ft=[],it=G;it=it.parentNode;)it.nodeType===1&&ft.push({element:it,left:it.scrollLeft,top:it.scrollTop});for(typeof G.focus=="function"&&G.focus(),G=0;G<ft.length;G++){var ct=ft[G];ct.element.scrollLeft=ct.left,ct.element.scrollTop=ct.top}}Jd=!!qy,Zy=qy=null}finally{ye=w,X.p=y,V.T=v}}u.current=f,un=2}}function y2(){if(un===2){un=0;var u=Xa,f=Ns,v=(f.flags&8772)!==0;if((f.subtreeFlags&8772)!==0||v){v=V.T,V.T=null;var y=X.p;X.p=2;var w=ye;ye|=4;try{WC(u,f.alternate,f)}finally{ye=w,X.p=y,V.T=v}}un=3}}function x2(){if(un===4||un===3){un=0,Qg();var u=Xa,f=Ns,v=ha,y=a2;(f.subtreeFlags&10256)!==0||(f.flags&10256)!==0?un=5:(un=0,Ns=Xa=null,b2(u,u.pendingLanes));var w=u.pendingLanes;if(w===0&&(Wa=null),em(v),f=f.stateNode,sn&&typeof sn.onCommitFiberRoot=="function")try{sn.onCommitFiberRoot(Nn,f,void 0,(f.current.flags&128)===128)}catch{}if(y!==null){f=V.T,w=X.p,X.p=2,V.T=null;try{for(var C=u.onRecoverableError,R=0;R<y.length;R++){var G=y[R];C(G.value,{componentStack:G.stack})}}finally{V.T=f,X.p=w}}(ha&3)!==0&&jd(),Ci(u),w=u.pendingLanes,(v&261930)!==0&&(w&42)!==0?u===zy?Oc++:(Oc=0,zy=u):Oc=0,zc(0)}}function b2(u,f){(u.pooledCacheLanes&=f)===0&&(f=u.pooledCache,f!=null&&(u.pooledCache=null,pc(f)))}function jd(){return m2(),y2(),x2(),_2()}function _2(){if(un!==5)return!1;var u=Xa,f=Iy;Iy=0;var v=em(ha),y=V.T,w=X.p;try{X.p=32>v?32:v,V.T=null,v=Oy,Oy=null;var C=Xa,R=ha;if(un=0,Ns=Xa=null,ha=0,(ye&6)!==0)throw Error(r(331));var G=ye;if(ye|=4,n2(C.current),JC(C,C.current,R,v),ye=G,zc(0,!1),sn&&typeof sn.onPostCommitFiberRoot=="function")try{sn.onPostCommitFiberRoot(Nn,C)}catch{}return!0}finally{X.p=w,V.T=y,b2(u,f)}}function S2(u,f,v){f=Lr(v,f),f=dy(u.stateNode,f,2),u=Ha(u,f,2),u!==null&&(ec(u,2),Ci(u))}function Ce(u,f,v){if(u.tag===3)S2(u,u,v);else for(;f!==null;){if(f.tag===3){S2(f,u,v);break}else if(f.tag===1){var y=f.stateNode;if(typeof f.type.getDerivedStateFromError=="function"||typeof y.componentDidCatch=="function"&&(Wa===null||!Wa.has(y))){u=Lr(v,u),v=wC(2),y=Ha(f,v,2),y!==null&&(TC(v,y,f,u),ec(y,2),Ci(y));break}}f=f.return}}function Py(u,f,v){var y=u.pingCache;if(y===null){y=u.pingCache=new EN;var w=new Set;y.set(f,w)}else w=y.get(f),w===void 0&&(w=new Set,y.set(f,w));w.has(v)||(Ly=!0,w.add(v),u=BN.bind(null,u,f,v),f.then(u,u))}function BN(u,f,v){var y=u.pingCache;y!==null&&y.delete(f),u.pingedLanes|=u.suspendedLanes&v,u.warmLanes&=~v,Ee===u&&(ae&v)===v&&(Fe===4||Fe===3&&(ae&62914560)===ae&&300>Bn()-zd?(ye&2)===0&&Ps(u,0):Ey|=v,Bs===ae&&(Bs=0)),Ci(u)}function w2(u,f){f===0&&(f=mw()),u=Wo(u,f),u!==null&&(ec(u,f),Ci(u))}function NN(u){var f=u.memoizedState,v=0;f!==null&&(v=f.retryLane),w2(u,v)}function PN(u,f){var v=0;switch(u.tag){case 31:case 13:var y=u.stateNode,w=u.memoizedState;w!==null&&(v=w.retryLane);break;case 19:y=u.stateNode;break;case 22:y=u.stateNode._retryCache;break;default:throw Error(r(314))}y!==null&&y.delete(f),w2(u,v)}function VN(u,f){return ni(u,f)}var Fd=null,Hs=null,Vy=!1,Gd=!1,Hy=!1,Za=0;function Ci(u){u!==Hs&&u.next===null&&(Hs===null?Fd=Hs=u:Hs=Hs.next=u),Gd=!0,Vy||(Vy=!0,jN())}function zc(u,f){if(!Hy&&Gd){Hy=!0;do for(var v=!1,y=Fd;y!==null;){if(u!==0){var w=y.pendingLanes;if(w===0)var C=0;else{var R=y.suspendedLanes,G=y.pingedLanes;C=(1<<31-Le(42|u)+1)-1,C&=w&~(R&~G),C=C&201326741?C&201326741|1:C?C|2:0}C!==0&&(v=!0,A2(y,C))}else C=ae,C=Xh(y,y===Ee?C:0,y.cancelPendingCommit!==null||y.timeoutHandle!==-1),(C&3)===0||tc(y,C)||(v=!0,A2(y,C));y=y.next}while(v);Hy=!1}}function HN(){T2()}function T2(){Gd=Vy=!1;var u=0;Za!==0&&QN()&&(u=Za);for(var f=Bn(),v=null,y=Fd;y!==null;){var w=y.next,C=C2(y,f);C===0?(y.next=null,v===null?Fd=w:v.next=w,w===null&&(Hs=v)):(v=y,(u!==0||(C&3)!==0)&&(Gd=!0)),y=w}un!==0&&un!==5||zc(u),Za!==0&&(Za=0)}function C2(u,f){for(var v=u.suspendedLanes,y=u.pingedLanes,w=u.expirationTimes,C=u.pendingLanes&-62914561;0<C;){var R=31-Le(C),G=1<<R,$=w[R];$===-1?((G&v)===0||(G&y)!==0)&&(w[R]=d4(G,f)):$<=f&&(u.expiredLanes|=G),C&=~G}if(f=Ee,v=ae,v=Xh(u,u===f?v:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),y=u.callbackNode,v===0||u===f&&(Te===2||Te===9)||u.cancelPendingCommit!==null)return y!==null&&y!==null&&qi(y),u.callbackNode=null,u.callbackPriority=0;if((v&3)===0||tc(u,v)){if(f=v&-v,f===u.callbackPriority)return f;switch(y!==null&&qi(y),em(v)){case 2:case 8:v=_t;break;case 32:v=Ht;break;case 268435456:v=Se;break;default:v=Ht}return y=M2.bind(null,u),v=ni(v,y),u.callbackPriority=f,u.callbackNode=v,f}return y!==null&&y!==null&&qi(y),u.callbackPriority=2,u.callbackNode=null,2}function M2(u,f){if(un!==0&&un!==5)return u.callbackNode=null,u.callbackPriority=0,null;var v=u.callbackNode;if(jd()&&u.callbackNode!==v)return null;var y=ae;return y=Xh(u,u===Ee?y:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),y===0?null:(l2(u,y,f),C2(u,Bn()),u.callbackNode!=null&&u.callbackNode===v?M2.bind(null,u):null)}function A2(u,f){if(jd())return null;l2(u,f,!0)}function jN(){JN(function(){(ye&6)!==0?ni(ut,HN):T2()})}function jy(){if(Za===0){var u=Cs;u===0&&(u=Uh,Uh<<=1,(Uh&261888)===0&&(Uh=256)),Za=u}return Za}function D2(u){return u==null||typeof u=="symbol"||typeof u=="boolean"?null:typeof u=="function"?u:Qh(""+u)}function k2(u,f){var v=f.ownerDocument.createElement("input");return v.name=f.name,v.value=f.value,u.id&&v.setAttribute("form",u.id),f.parentNode.insertBefore(v,f),u=new FormData(u),v.parentNode.removeChild(v),u}function FN(u,f,v,y,w){if(f==="submit"&&v&&v.stateNode===w){var C=D2((w[Zn]||null).action),R=y.submitter;R&&(f=(f=R[Zn]||null)?D2(f.formAction):R.getAttribute("formAction"),f!==null&&(C=f,R=null));var G=new ed("action","action",null,y,w);u.push({event:G,listeners:[{instance:null,listener:function(){if(y.defaultPrevented){if(Za!==0){var $=R?k2(w,R):new FormData(w);ly(v,{pending:!0,data:$,method:w.method,action:C},null,$)}}else typeof C=="function"&&(G.preventDefault(),$=R?k2(w,R):new FormData(w),ly(v,{pending:!0,data:$,method:w.method,action:C},C,$))},currentTarget:w}]})}}for(var Fy=0;Fy<Tm.length;Fy++){var Gy=Tm[Fy],GN=Gy.toLowerCase(),UN=Gy[0].toUpperCase()+Gy.slice(1);ii(GN,"on"+UN)}ii(oT,"onAnimationEnd"),ii(lT,"onAnimationIteration"),ii(sT,"onAnimationStart"),ii("dblclick","onDoubleClick"),ii("focusin","onFocus"),ii("focusout","onBlur"),ii(oN,"onTransitionRun"),ii(lN,"onTransitionStart"),ii(sN,"onTransitionCancel"),ii(uT,"onTransitionEnd"),fs("onMouseEnter",["mouseout","mouseover"]),fs("onMouseLeave",["mouseout","mouseover"]),fs("onPointerEnter",["pointerout","pointerover"]),fs("onPointerLeave",["pointerout","pointerover"]),Fo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Fo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Fo("onBeforeInput",["compositionend","keypress","textInput","paste"]),Fo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Fo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Fo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bc="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(" "),YN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bc));function L2(u,f){f=(f&4)!==0;for(var v=0;v<u.length;v++){var y=u[v],w=y.event;y=y.listeners;t:{var C=void 0;if(f)for(var R=y.length-1;0<=R;R--){var G=y[R],$=G.instance,nt=G.currentTarget;if(G=G.listener,$!==C&&w.isPropagationStopped())break t;C=G,w.currentTarget=nt;try{C(w)}catch(lt){id(lt)}w.currentTarget=null,C=$}else for(R=0;R<y.length;R++){if(G=y[R],$=G.instance,nt=G.currentTarget,G=G.listener,$!==C&&w.isPropagationStopped())break t;C=G,w.currentTarget=nt;try{C(w)}catch(lt){id(lt)}w.currentTarget=null,C=$}}}}function ne(u,f){var v=f[nm];v===void 0&&(v=f[nm]=new Set);var y=u+"__bubble";v.has(y)||(E2(f,u,2,!1),v.add(y))}function Uy(u,f,v){var y=0;f&&(y|=4),E2(v,u,y,f)}var Ud="_reactListening"+Math.random().toString(36).slice(2);function Yy(u){if(!u[Ud]){u[Ud]=!0,Tw.forEach(function(v){v!=="selectionchange"&&(YN.has(v)||Uy(v,!1,u),Uy(v,!0,u))});var f=u.nodeType===9?u:u.ownerDocument;f===null||f[Ud]||(f[Ud]=!0,Uy("selectionchange",!1,f))}}function E2(u,f,v,y){switch(oM(f)){case 2:var w=xP;break;case 8:w=bP;break;default:w=o0}v=w.bind(null,f,v,u),w=void 0,!fm||f!=="touchstart"&&f!=="touchmove"&&f!=="wheel"||(w=!0),y?w!==void 0?u.addEventListener(f,v,{capture:!0,passive:w}):u.addEventListener(f,v,!0):w!==void 0?u.addEventListener(f,v,{passive:w}):u.addEventListener(f,v,!1)}function Wy(u,f,v,y,w){var C=y;if((f&1)===0&&(f&2)===0&&y!==null)t:for(;;){if(y===null)return;var R=y.tag;if(R===3||R===4){var G=y.stateNode.containerInfo;if(G===w)break;if(R===4)for(R=y.return;R!==null;){var $=R.tag;if(($===3||$===4)&&R.stateNode.containerInfo===w)return;R=R.return}for(;G!==null;){if(R=ss(G),R===null)return;if($=R.tag,$===5||$===6||$===26||$===27){y=C=R;continue t}G=G.parentNode}}y=y.return}Bw(function(){var nt=C,lt=um(v),ft=[];t:{var rt=cT.get(u);if(rt!==void 0){var it=ed,kt=u;switch(u){case"keypress":if(Jh(v)===0)break t;case"keydown":case"keyup":it=P4;break;case"focusin":kt="focus",it=pm;break;case"focusout":kt="blur",it=pm;break;case"beforeblur":case"afterblur":it=pm;break;case"click":if(v.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":it=Vw;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":it=M4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":it=j4;break;case oT:case lT:case sT:it=k4;break;case uT:it=G4;break;case"scroll":case"scrollend":it=T4;break;case"wheel":it=Y4;break;case"copy":case"cut":case"paste":it=E4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":it=jw;break;case"toggle":case"beforetoggle":it=X4}var Vt=(f&4)!==0,ke=!Vt&&(u==="scroll"||u==="scrollend"),K=Vt?rt!==null?rt+"Capture":null:rt;Vt=[];for(var Q=nt,et;Q!==null;){var ct=Q;if(et=ct.stateNode,ct=ct.tag,ct!==5&&ct!==26&&ct!==27||et===null||K===null||(ct=ic(Q,K),ct!=null&&Vt.push(Nc(Q,ct,et))),ke)break;Q=Q.return}0<Vt.length&&(rt=new it(rt,kt,null,v,lt),ft.push({event:rt,listeners:Vt}))}}if((f&7)===0){t:{if(rt=u==="mouseover"||u==="pointerover",it=u==="mouseout"||u==="pointerout",rt&&v!==sm&&(kt=v.relatedTarget||v.fromElement)&&(ss(kt)||kt[ls]))break t;if((it||rt)&&(rt=lt.window===lt?lt:(rt=lt.ownerDocument)?rt.defaultView||rt.parentWindow:window,it?(kt=v.relatedTarget||v.toElement,it=nt,kt=kt?ss(kt):null,kt!==null&&(ke=a(kt),Vt=kt.tag,kt!==ke||Vt!==5&&Vt!==27&&Vt!==6)&&(kt=null)):(it=null,kt=nt),it!==kt)){if(Vt=Vw,ct="onMouseLeave",K="onMouseEnter",Q="mouse",(u==="pointerout"||u==="pointerover")&&(Vt=jw,ct="onPointerLeave",K="onPointerEnter",Q="pointer"),ke=it==null?rt:rc(it),et=kt==null?rt:rc(kt),rt=new Vt(ct,Q+"leave",it,v,lt),rt.target=ke,rt.relatedTarget=et,ct=null,ss(lt)===nt&&(Vt=new Vt(K,Q+"enter",kt,v,lt),Vt.target=et,Vt.relatedTarget=ke,ct=Vt),ke=ct,it&&kt)e:{for(Vt=WN,K=it,Q=kt,et=0,ct=K;ct;ct=Vt(ct))et++;ct=0;for(var Ot=Q;Ot;Ot=Vt(Ot))ct++;for(;0<et-ct;)K=Vt(K),et--;for(;0<ct-et;)Q=Vt(Q),ct--;for(;et--;){if(K===Q||Q!==null&&K===Q.alternate){Vt=K;break e}K=Vt(K),Q=Vt(Q)}Vt=null}else Vt=null;it!==null&&R2(ft,rt,it,Vt,!1),kt!==null&&ke!==null&&R2(ft,ke,kt,Vt,!0)}}t:{if(rt=nt?rc(nt):window,it=rt.nodeName&&rt.nodeName.toLowerCase(),it==="select"||it==="input"&&rt.type==="file")var pe=Zw;else if(Xw(rt))if($w)pe=rN;else{pe=eN;var Et=tN}else it=rt.nodeName,!it||it.toLowerCase()!=="input"||rt.type!=="checkbox"&&rt.type!=="radio"?nt&&lm(nt.elementType)&&(pe=Zw):pe=nN;if(pe&&(pe=pe(u,nt))){qw(ft,pe,v,lt);break t}Et&&Et(u,rt,nt),u==="focusout"&&nt&&rt.type==="number"&&nt.memoizedProps.value!=null&&om(rt,"number",rt.value)}switch(Et=nt?rc(nt):window,u){case"focusin":(Xw(Et)||Et.contentEditable==="true")&&(ms=Et,_m=nt,hc=null);break;case"focusout":hc=_m=ms=null;break;case"mousedown":Sm=!0;break;case"contextmenu":case"mouseup":case"dragend":Sm=!1,iT(ft,v,lt);break;case"selectionchange":if(aN)break;case"keydown":case"keyup":iT(ft,v,lt)}var Qt;if(mm)t:{switch(u){case"compositionstart":var oe="onCompositionStart";break t;case"compositionend":oe="onCompositionEnd";break t;case"compositionupdate":oe="onCompositionUpdate";break t}oe=void 0}else gs?Yw(u,v)&&(oe="onCompositionEnd"):u==="keydown"&&v.keyCode===229&&(oe="onCompositionStart");oe&&(Fw&&v.locale!=="ko"&&(gs||oe!=="onCompositionStart"?oe==="onCompositionEnd"&&gs&&(Qt=Nw()):(Ia=lt,hm="value"in Ia?Ia.value:Ia.textContent,gs=!0)),Et=Yd(nt,oe),0<Et.length&&(oe=new Hw(oe,u,null,v,lt),ft.push({event:oe,listeners:Et}),Qt?oe.data=Qt:(Qt=Ww(v),Qt!==null&&(oe.data=Qt)))),(Qt=Z4?$4(u,v):Q4(u,v))&&(oe=Yd(nt,"onBeforeInput"),0<oe.length&&(Et=new Hw("onBeforeInput","beforeinput",null,v,lt),ft.push({event:Et,listeners:oe}),Et.data=Qt)),FN(ft,u,nt,v,lt)}L2(ft,f)})}function Nc(u,f,v){return{instance:u,listener:f,currentTarget:v}}function Yd(u,f){for(var v=f+"Capture",y=[];u!==null;){var w=u,C=w.stateNode;if(w=w.tag,w!==5&&w!==26&&w!==27||C===null||(w=ic(u,v),w!=null&&y.unshift(Nc(u,w,C)),w=ic(u,f),w!=null&&y.push(Nc(u,w,C))),u.tag===3)return y;u=u.return}return[]}function WN(u){if(u===null)return null;do u=u.return;while(u&&u.tag!==5&&u.tag!==27);return u||null}function R2(u,f,v,y,w){for(var C=f._reactName,R=[];v!==null&&v!==y;){var G=v,$=G.alternate,nt=G.stateNode;if(G=G.tag,$!==null&&$===y)break;G!==5&&G!==26&&G!==27||nt===null||($=nt,w?(nt=ic(v,C),nt!=null&&R.unshift(Nc(v,nt,$))):w||(nt=ic(v,C),nt!=null&&R.push(Nc(v,nt,$)))),v=v.return}R.length!==0&&u.push({event:f,listeners:R})}var XN=/\r\n?/g,qN=/\u0000|\uFFFD/g;function I2(u){return(typeof u=="string"?u:""+u).replace(XN,`
49
+ `).replace(qN,"")}function O2(u,f){return f=I2(f),I2(u)===f}function De(u,f,v,y,w,C){switch(v){case"children":typeof y=="string"?f==="body"||f==="textarea"&&y===""||ds(u,y):(typeof y=="number"||typeof y=="bigint")&&f!=="body"&&ds(u,""+y);break;case"className":Zh(u,"class",y);break;case"tabIndex":Zh(u,"tabindex",y);break;case"dir":case"role":case"viewBox":case"width":case"height":Zh(u,v,y);break;case"style":Ow(u,y,C);break;case"data":if(f!=="object"){Zh(u,"data",y);break}case"src":case"href":if(y===""&&(f!=="a"||v!=="href")){u.removeAttribute(v);break}if(y==null||typeof y=="function"||typeof y=="symbol"||typeof y=="boolean"){u.removeAttribute(v);break}y=Qh(""+y),u.setAttribute(v,y);break;case"action":case"formAction":if(typeof y=="function"){u.setAttribute(v,"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"&&(v==="formAction"?(f!=="input"&&De(u,f,"name",w.name,w,null),De(u,f,"formEncType",w.formEncType,w,null),De(u,f,"formMethod",w.formMethod,w,null),De(u,f,"formTarget",w.formTarget,w,null)):(De(u,f,"encType",w.encType,w,null),De(u,f,"method",w.method,w,null),De(u,f,"target",w.target,w,null)));if(y==null||typeof y=="symbol"||typeof y=="boolean"){u.removeAttribute(v);break}y=Qh(""+y),u.setAttribute(v,y);break;case"onClick":y!=null&&(u.onclick=Qi);break;case"onScroll":y!=null&&ne("scroll",u);break;case"onScrollEnd":y!=null&&ne("scrollend",u);break;case"dangerouslySetInnerHTML":if(y!=null){if(typeof y!="object"||!("__html"in y))throw Error(r(61));if(v=y.__html,v!=null){if(w.children!=null)throw Error(r(60));u.innerHTML=v}}break;case"multiple":u.multiple=y&&typeof y!="function"&&typeof y!="symbol";break;case"muted":u.muted=y&&typeof y!="function"&&typeof y!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(y==null||typeof y=="function"||typeof y=="boolean"||typeof y=="symbol"){u.removeAttribute("xlink:href");break}v=Qh(""+y),u.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",v);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":y!=null&&typeof y!="function"&&typeof y!="symbol"?u.setAttribute(v,""+y):u.removeAttribute(v);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":y&&typeof y!="function"&&typeof y!="symbol"?u.setAttribute(v,""):u.removeAttribute(v);break;case"capture":case"download":y===!0?u.setAttribute(v,""):y!==!1&&y!=null&&typeof y!="function"&&typeof y!="symbol"?u.setAttribute(v,y):u.removeAttribute(v);break;case"cols":case"rows":case"size":case"span":y!=null&&typeof y!="function"&&typeof y!="symbol"&&!isNaN(y)&&1<=y?u.setAttribute(v,y):u.removeAttribute(v);break;case"rowSpan":case"start":y==null||typeof y=="function"||typeof y=="symbol"||isNaN(y)?u.removeAttribute(v):u.setAttribute(v,y);break;case"popover":ne("beforetoggle",u),ne("toggle",u),qh(u,"popover",y);break;case"xlinkActuate":$i(u,"http://www.w3.org/1999/xlink","xlink:actuate",y);break;case"xlinkArcrole":$i(u,"http://www.w3.org/1999/xlink","xlink:arcrole",y);break;case"xlinkRole":$i(u,"http://www.w3.org/1999/xlink","xlink:role",y);break;case"xlinkShow":$i(u,"http://www.w3.org/1999/xlink","xlink:show",y);break;case"xlinkTitle":$i(u,"http://www.w3.org/1999/xlink","xlink:title",y);break;case"xlinkType":$i(u,"http://www.w3.org/1999/xlink","xlink:type",y);break;case"xmlBase":$i(u,"http://www.w3.org/XML/1998/namespace","xml:base",y);break;case"xmlLang":$i(u,"http://www.w3.org/XML/1998/namespace","xml:lang",y);break;case"xmlSpace":$i(u,"http://www.w3.org/XML/1998/namespace","xml:space",y);break;case"is":qh(u,"is",y);break;case"innerText":case"textContent":break;default:(!(2<v.length)||v[0]!=="o"&&v[0]!=="O"||v[1]!=="n"&&v[1]!=="N")&&(v=S4.get(v)||v,qh(u,v,y))}}function Xy(u,f,v,y,w,C){switch(v){case"style":Ow(u,y,C);break;case"dangerouslySetInnerHTML":if(y!=null){if(typeof y!="object"||!("__html"in y))throw Error(r(61));if(v=y.__html,v!=null){if(w.children!=null)throw Error(r(60));u.innerHTML=v}}break;case"children":typeof y=="string"?ds(u,y):(typeof y=="number"||typeof y=="bigint")&&ds(u,""+y);break;case"onScroll":y!=null&&ne("scroll",u);break;case"onScrollEnd":y!=null&&ne("scrollend",u);break;case"onClick":y!=null&&(u.onclick=Qi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Cw.hasOwnProperty(v))t:{if(v[0]==="o"&&v[1]==="n"&&(w=v.endsWith("Capture"),f=v.slice(2,w?v.length-7:void 0),C=u[Zn]||null,C=C!=null?C[v]:null,typeof C=="function"&&u.removeEventListener(f,C,w),typeof y=="function")){typeof C!="function"&&C!==null&&(v in u?u[v]=null:u.hasAttribute(v)&&u.removeAttribute(v)),u.addEventListener(f,y,w);break t}v in u?u[v]=y:y===!0?u.setAttribute(v,""):qh(u,v,y)}}}function _n(u,f,v){switch(f){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ne("error",u),ne("load",u);var y=!1,w=!1,C;for(C in v)if(v.hasOwnProperty(C)){var R=v[C];if(R!=null)switch(C){case"src":y=!0;break;case"srcSet":w=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,f));default:De(u,f,C,R,v,null)}}w&&De(u,f,"srcSet",v.srcSet,v,null),y&&De(u,f,"src",v.src,v,null);return;case"input":ne("invalid",u);var G=C=R=w=null,$=null,nt=null;for(y in v)if(v.hasOwnProperty(y)){var lt=v[y];if(lt!=null)switch(y){case"name":w=lt;break;case"type":R=lt;break;case"checked":$=lt;break;case"defaultChecked":nt=lt;break;case"value":C=lt;break;case"defaultValue":G=lt;break;case"children":case"dangerouslySetInnerHTML":if(lt!=null)throw Error(r(137,f));break;default:De(u,f,y,lt,v,null)}}Lw(u,C,G,$,nt,R,w,!1);return;case"select":ne("invalid",u),y=R=C=null;for(w in v)if(v.hasOwnProperty(w)&&(G=v[w],G!=null))switch(w){case"value":C=G;break;case"defaultValue":R=G;break;case"multiple":y=G;default:De(u,f,w,G,v,null)}f=C,v=R,u.multiple=!!y,f!=null?hs(u,!!y,f,!1):v!=null&&hs(u,!!y,v,!0);return;case"textarea":ne("invalid",u),C=w=y=null;for(R in v)if(v.hasOwnProperty(R)&&(G=v[R],G!=null))switch(R){case"value":y=G;break;case"defaultValue":w=G;break;case"children":C=G;break;case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(91));break;default:De(u,f,R,G,v,null)}Rw(u,y,w,C);return;case"option":for($ in v)if(v.hasOwnProperty($)&&(y=v[$],y!=null))switch($){case"selected":u.selected=y&&typeof y!="function"&&typeof y!="symbol";break;default:De(u,f,$,y,v,null)}return;case"dialog":ne("beforetoggle",u),ne("toggle",u),ne("cancel",u),ne("close",u);break;case"iframe":case"object":ne("load",u);break;case"video":case"audio":for(y=0;y<Bc.length;y++)ne(Bc[y],u);break;case"image":ne("error",u),ne("load",u);break;case"details":ne("toggle",u);break;case"embed":case"source":case"link":ne("error",u),ne("load",u);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(nt in v)if(v.hasOwnProperty(nt)&&(y=v[nt],y!=null))switch(nt){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,f));default:De(u,f,nt,y,v,null)}return;default:if(lm(f)){for(lt in v)v.hasOwnProperty(lt)&&(y=v[lt],y!==void 0&&Xy(u,f,lt,y,v,void 0));return}}for(G in v)v.hasOwnProperty(G)&&(y=v[G],y!=null&&De(u,f,G,y,v,null))}function ZN(u,f,v,y){switch(f){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var w=null,C=null,R=null,G=null,$=null,nt=null,lt=null;for(it in v){var ft=v[it];if(v.hasOwnProperty(it)&&ft!=null)switch(it){case"checked":break;case"value":break;case"defaultValue":$=ft;default:y.hasOwnProperty(it)||De(u,f,it,null,y,ft)}}for(var rt in y){var it=y[rt];if(ft=v[rt],y.hasOwnProperty(rt)&&(it!=null||ft!=null))switch(rt){case"type":C=it;break;case"name":w=it;break;case"checked":nt=it;break;case"defaultChecked":lt=it;break;case"value":R=it;break;case"defaultValue":G=it;break;case"children":case"dangerouslySetInnerHTML":if(it!=null)throw Error(r(137,f));break;default:it!==ft&&De(u,f,rt,it,y,ft)}}am(u,R,G,$,nt,lt,C,w);return;case"select":it=R=G=rt=null;for(C in v)if($=v[C],v.hasOwnProperty(C)&&$!=null)switch(C){case"value":break;case"multiple":it=$;default:y.hasOwnProperty(C)||De(u,f,C,null,y,$)}for(w in y)if(C=y[w],$=v[w],y.hasOwnProperty(w)&&(C!=null||$!=null))switch(w){case"value":rt=C;break;case"defaultValue":G=C;break;case"multiple":R=C;default:C!==$&&De(u,f,w,C,y,$)}f=G,v=R,y=it,rt!=null?hs(u,!!v,rt,!1):!!y!=!!v&&(f!=null?hs(u,!!v,f,!0):hs(u,!!v,v?[]:"",!1));return;case"textarea":it=rt=null;for(G in v)if(w=v[G],v.hasOwnProperty(G)&&w!=null&&!y.hasOwnProperty(G))switch(G){case"value":break;case"children":break;default:De(u,f,G,null,y,w)}for(R in y)if(w=y[R],C=v[R],y.hasOwnProperty(R)&&(w!=null||C!=null))switch(R){case"value":rt=w;break;case"defaultValue":it=w;break;case"children":break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(r(91));break;default:w!==C&&De(u,f,R,w,y,C)}Ew(u,rt,it);return;case"option":for(var kt in v)if(rt=v[kt],v.hasOwnProperty(kt)&&rt!=null&&!y.hasOwnProperty(kt))switch(kt){case"selected":u.selected=!1;break;default:De(u,f,kt,null,y,rt)}for($ in y)if(rt=y[$],it=v[$],y.hasOwnProperty($)&&rt!==it&&(rt!=null||it!=null))switch($){case"selected":u.selected=rt&&typeof rt!="function"&&typeof rt!="symbol";break;default:De(u,f,$,rt,y,it)}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 v)rt=v[Vt],v.hasOwnProperty(Vt)&&rt!=null&&!y.hasOwnProperty(Vt)&&De(u,f,Vt,null,y,rt);for(nt in y)if(rt=y[nt],it=v[nt],y.hasOwnProperty(nt)&&rt!==it&&(rt!=null||it!=null))switch(nt){case"children":case"dangerouslySetInnerHTML":if(rt!=null)throw Error(r(137,f));break;default:De(u,f,nt,rt,y,it)}return;default:if(lm(f)){for(var ke in v)rt=v[ke],v.hasOwnProperty(ke)&&rt!==void 0&&!y.hasOwnProperty(ke)&&Xy(u,f,ke,void 0,y,rt);for(lt in y)rt=y[lt],it=v[lt],!y.hasOwnProperty(lt)||rt===it||rt===void 0&&it===void 0||Xy(u,f,lt,rt,y,it);return}}for(var K in v)rt=v[K],v.hasOwnProperty(K)&&rt!=null&&!y.hasOwnProperty(K)&&De(u,f,K,null,y,rt);for(ft in y)rt=y[ft],it=v[ft],!y.hasOwnProperty(ft)||rt===it||rt==null&&it==null||De(u,f,ft,rt,y,it)}function z2(u){switch(u){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function $N(){if(typeof performance.getEntriesByType=="function"){for(var u=0,f=0,v=performance.getEntriesByType("resource"),y=0;y<v.length;y++){var w=v[y],C=w.transferSize,R=w.initiatorType,G=w.duration;if(C&&G&&z2(R)){for(R=0,G=w.responseEnd,y+=1;y<v.length;y++){var $=v[y],nt=$.startTime;if(nt>G)break;var lt=$.transferSize,ft=$.initiatorType;lt&&z2(ft)&&($=$.responseEnd,R+=lt*($<G?1:(G-nt)/($-nt)))}if(--y,f+=8*(C+R)/(w.duration/1e3),u++,10<u)break}}if(0<u)return f/u/1e6}return navigator.connection&&(u=navigator.connection.downlink,typeof u=="number")?u:5}var qy=null,Zy=null;function Wd(u){return u.nodeType===9?u:u.ownerDocument}function B2(u){switch(u){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function N2(u,f){if(u===0)switch(f){case"svg":return 1;case"math":return 2;default:return 0}return u===1&&f==="foreignObject"?0:u}function $y(u,f){return u==="textarea"||u==="noscript"||typeof f.children=="string"||typeof f.children=="number"||typeof f.children=="bigint"||typeof f.dangerouslySetInnerHTML=="object"&&f.dangerouslySetInnerHTML!==null&&f.dangerouslySetInnerHTML.__html!=null}var Qy=null;function QN(){var u=window.event;return u&&u.type==="popstate"?u===Qy?!1:(Qy=u,!0):(Qy=null,!1)}var P2=typeof setTimeout=="function"?setTimeout:void 0,KN=typeof clearTimeout=="function"?clearTimeout:void 0,V2=typeof Promise=="function"?Promise:void 0,JN=typeof queueMicrotask=="function"?queueMicrotask:typeof V2<"u"?function(u){return V2.resolve(null).then(u).catch(tP)}:P2;function tP(u){setTimeout(function(){throw u})}function $a(u){return u==="head"}function H2(u,f){var v=f,y=0;do{var w=v.nextSibling;if(u.removeChild(v),w&&w.nodeType===8)if(v=w.data,v==="/$"||v==="/&"){if(y===0){u.removeChild(w),Us(f);return}y--}else if(v==="$"||v==="$?"||v==="$~"||v==="$!"||v==="&")y++;else if(v==="html")Pc(u.ownerDocument.documentElement);else if(v==="head"){v=u.ownerDocument.head,Pc(v);for(var C=v.firstChild;C;){var R=C.nextSibling,G=C.nodeName;C[nc]||G==="SCRIPT"||G==="STYLE"||G==="LINK"&&C.rel.toLowerCase()==="stylesheet"||v.removeChild(C),C=R}}else v==="body"&&Pc(u.ownerDocument.body);v=w}while(v);Us(f)}function j2(u,f){var v=u;u=0;do{var y=v.nextSibling;if(v.nodeType===1?f?(v._stashedDisplay=v.style.display,v.style.display="none"):(v.style.display=v._stashedDisplay||"",v.getAttribute("style")===""&&v.removeAttribute("style")):v.nodeType===3&&(f?(v._stashedText=v.nodeValue,v.nodeValue=""):v.nodeValue=v._stashedText||""),y&&y.nodeType===8)if(v=y.data,v==="/$"){if(u===0)break;u--}else v!=="$"&&v!=="$?"&&v!=="$~"&&v!=="$!"||u++;v=y}while(v)}function Ky(u){var f=u.firstChild;for(f&&f.nodeType===10&&(f=f.nextSibling);f;){var v=f;switch(f=f.nextSibling,v.nodeName){case"HTML":case"HEAD":case"BODY":Ky(v),rm(v);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(v.rel.toLowerCase()==="stylesheet")continue}u.removeChild(v)}}function eP(u,f,v,y){for(;u.nodeType===1;){var w=v;if(u.nodeName.toLowerCase()!==f.toLowerCase()){if(!y&&(u.nodeName!=="INPUT"||u.type!=="hidden"))break}else if(y){if(!u[nc])switch(f){case"meta":if(!u.hasAttribute("itemprop"))break;return u;case"link":if(C=u.getAttribute("rel"),C==="stylesheet"&&u.hasAttribute("data-precedence"))break;if(C!==w.rel||u.getAttribute("href")!==(w.href==null||w.href===""?null:w.href)||u.getAttribute("crossorigin")!==(w.crossOrigin==null?null:w.crossOrigin)||u.getAttribute("title")!==(w.title==null?null:w.title))break;return u;case"style":if(u.hasAttribute("data-precedence"))break;return u;case"script":if(C=u.getAttribute("src"),(C!==(w.src==null?null:w.src)||u.getAttribute("type")!==(w.type==null?null:w.type)||u.getAttribute("crossorigin")!==(w.crossOrigin==null?null:w.crossOrigin))&&C&&u.hasAttribute("async")&&!u.hasAttribute("itemprop"))break;return u;default:return u}}else if(f==="input"&&u.type==="hidden"){var C=w.name==null?null:""+w.name;if(w.type==="hidden"&&u.getAttribute("name")===C)return u}else return u;if(u=zr(u.nextSibling),u===null)break}return null}function nP(u,f,v){if(f==="")return null;for(;u.nodeType!==3;)if((u.nodeType!==1||u.nodeName!=="INPUT"||u.type!=="hidden")&&!v||(u=zr(u.nextSibling),u===null))return null;return u}function F2(u,f){for(;u.nodeType!==8;)if((u.nodeType!==1||u.nodeName!=="INPUT"||u.type!=="hidden")&&!f||(u=zr(u.nextSibling),u===null))return null;return u}function Jy(u){return u.data==="$?"||u.data==="$~"}function t0(u){return u.data==="$!"||u.data==="$?"&&u.ownerDocument.readyState!=="loading"}function rP(u,f){var v=u.ownerDocument;if(u.data==="$~")u._reactRetry=f;else if(u.data!=="$?"||v.readyState!=="loading")f();else{var y=function(){f(),v.removeEventListener("DOMContentLoaded",y)};v.addEventListener("DOMContentLoaded",y),u._reactRetry=y}}function zr(u){for(;u!=null;u=u.nextSibling){var f=u.nodeType;if(f===1||f===3)break;if(f===8){if(f=u.data,f==="$"||f==="$!"||f==="$?"||f==="$~"||f==="&"||f==="F!"||f==="F")break;if(f==="/$"||f==="/&")return null}}return u}var e0=null;function G2(u){u=u.nextSibling;for(var f=0;u;){if(u.nodeType===8){var v=u.data;if(v==="/$"||v==="/&"){if(f===0)return zr(u.nextSibling);f--}else v!=="$"&&v!=="$!"&&v!=="$?"&&v!=="$~"&&v!=="&"||f++}u=u.nextSibling}return null}function U2(u){u=u.previousSibling;for(var f=0;u;){if(u.nodeType===8){var v=u.data;if(v==="$"||v==="$!"||v==="$?"||v==="$~"||v==="&"){if(f===0)return u;f--}else v!=="/$"&&v!=="/&"||f++}u=u.previousSibling}return null}function Y2(u,f,v){switch(f=Wd(v),u){case"html":if(u=f.documentElement,!u)throw Error(r(452));return u;case"head":if(u=f.head,!u)throw Error(r(453));return u;case"body":if(u=f.body,!u)throw Error(r(454));return u;default:throw Error(r(451))}}function Pc(u){for(var f=u.attributes;f.length;)u.removeAttributeNode(f[0]);rm(u)}var Br=new Map,W2=new Set;function Xd(u){return typeof u.getRootNode=="function"?u.getRootNode():u.nodeType===9?u:u.ownerDocument}var da=X.d;X.d={f:iP,r:aP,D:oP,C:lP,L:sP,m:uP,X:fP,S:cP,M:hP};function iP(){var u=da.f(),f=Pd();return u||f}function aP(u){var f=us(u);f!==null&&f.tag===5&&f.type==="form"?uC(f):da.r(u)}var js=typeof document>"u"?null:document;function X2(u,f,v){var y=js;if(y&&typeof f=="string"&&f){var w=Dr(f);w='link[rel="'+u+'"][href="'+w+'"]',typeof v=="string"&&(w+='[crossorigin="'+v+'"]'),W2.has(w)||(W2.add(w),u={rel:u,crossOrigin:v,href:f},y.querySelector(w)===null&&(f=y.createElement("link"),_n(f,"link",u),hn(f),y.head.appendChild(f)))}}function oP(u){da.D(u),X2("dns-prefetch",u,null)}function lP(u,f){da.C(u,f),X2("preconnect",u,f)}function sP(u,f,v){da.L(u,f,v);var y=js;if(y&&u&&f){var w='link[rel="preload"][as="'+Dr(f)+'"]';f==="image"&&v&&v.imageSrcSet?(w+='[imagesrcset="'+Dr(v.imageSrcSet)+'"]',typeof v.imageSizes=="string"&&(w+='[imagesizes="'+Dr(v.imageSizes)+'"]')):w+='[href="'+Dr(u)+'"]';var C=w;switch(f){case"style":C=Fs(u);break;case"script":C=Gs(u)}Br.has(C)||(u=d({rel:"preload",href:f==="image"&&v&&v.imageSrcSet?void 0:u,as:f},v),Br.set(C,u),y.querySelector(w)!==null||f==="style"&&y.querySelector(Vc(C))||f==="script"&&y.querySelector(Hc(C))||(f=y.createElement("link"),_n(f,"link",u),hn(f),y.head.appendChild(f)))}}function uP(u,f){da.m(u,f);var v=js;if(v&&u){var y=f&&typeof f.as=="string"?f.as:"script",w='link[rel="modulepreload"][as="'+Dr(y)+'"][href="'+Dr(u)+'"]',C=w;switch(y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":C=Gs(u)}if(!Br.has(C)&&(u=d({rel:"modulepreload",href:u},f),Br.set(C,u),v.querySelector(w)===null)){switch(y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(v.querySelector(Hc(C)))return}y=v.createElement("link"),_n(y,"link",u),hn(y),v.head.appendChild(y)}}}function cP(u,f,v){da.S(u,f,v);var y=js;if(y&&u){var w=cs(y).hoistableStyles,C=Fs(u);f=f||"default";var R=w.get(C);if(!R){var G={loading:0,preload:null};if(R=y.querySelector(Vc(C)))G.loading=5;else{u=d({rel:"stylesheet",href:u,"data-precedence":f},v),(v=Br.get(C))&&n0(u,v);var $=R=y.createElement("link");hn($),_n($,"link",u),$._p=new Promise(function(nt,lt){$.onload=nt,$.onerror=lt}),$.addEventListener("load",function(){G.loading|=1}),$.addEventListener("error",function(){G.loading|=2}),G.loading|=4,qd(R,f,y)}R={type:"stylesheet",instance:R,count:1,state:G},w.set(C,R)}}}function fP(u,f){da.X(u,f);var v=js;if(v&&u){var y=cs(v).hoistableScripts,w=Gs(u),C=y.get(w);C||(C=v.querySelector(Hc(w)),C||(u=d({src:u,async:!0},f),(f=Br.get(w))&&r0(u,f),C=v.createElement("script"),hn(C),_n(C,"link",u),v.head.appendChild(C)),C={type:"script",instance:C,count:1,state:null},y.set(w,C))}}function hP(u,f){da.M(u,f);var v=js;if(v&&u){var y=cs(v).hoistableScripts,w=Gs(u),C=y.get(w);C||(C=v.querySelector(Hc(w)),C||(u=d({src:u,async:!0,type:"module"},f),(f=Br.get(w))&&r0(u,f),C=v.createElement("script"),hn(C),_n(C,"link",u),v.head.appendChild(C)),C={type:"script",instance:C,count:1,state:null},y.set(w,C))}}function q2(u,f,v,y){var w=(w=mt.current)?Xd(w):null;if(!w)throw Error(r(446));switch(u){case"meta":case"title":return null;case"style":return typeof v.precedence=="string"&&typeof v.href=="string"?(f=Fs(v.href),v=cs(w).hoistableStyles,y=v.get(f),y||(y={type:"style",instance:null,count:0,state:null},v.set(f,y)),y):{type:"void",instance:null,count:0,state:null};case"link":if(v.rel==="stylesheet"&&typeof v.href=="string"&&typeof v.precedence=="string"){u=Fs(v.href);var C=cs(w).hoistableStyles,R=C.get(u);if(R||(w=w.ownerDocument||w,R={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},C.set(u,R),(C=w.querySelector(Vc(u)))&&!C._p&&(R.instance=C,R.state.loading=5),Br.has(u)||(v={rel:"preload",as:"style",href:v.href,crossOrigin:v.crossOrigin,integrity:v.integrity,media:v.media,hrefLang:v.hrefLang,referrerPolicy:v.referrerPolicy},Br.set(u,v),C||dP(w,u,v,R.state))),f&&y===null)throw Error(r(528,""));return R}if(f&&y!==null)throw Error(r(529,""));return null;case"script":return f=v.async,v=v.src,typeof v=="string"&&f&&typeof f!="function"&&typeof f!="symbol"?(f=Gs(v),v=cs(w).hoistableScripts,y=v.get(f),y||(y={type:"script",instance:null,count:0,state:null},v.set(f,y)),y):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,u))}}function Fs(u){return'href="'+Dr(u)+'"'}function Vc(u){return'link[rel="stylesheet"]['+u+"]"}function Z2(u){return d({},u,{"data-precedence":u.precedence,precedence:null})}function dP(u,f,v,y){u.querySelector('link[rel="preload"][as="style"]['+f+"]")?y.loading=1:(f=u.createElement("link"),y.preload=f,f.addEventListener("load",function(){return y.loading|=1}),f.addEventListener("error",function(){return y.loading|=2}),_n(f,"link",v),hn(f),u.head.appendChild(f))}function Gs(u){return'[src="'+Dr(u)+'"]'}function Hc(u){return"script[async]"+u}function $2(u,f,v){if(f.count++,f.instance===null)switch(f.type){case"style":var y=u.querySelector('style[data-href~="'+Dr(v.href)+'"]');if(y)return f.instance=y,hn(y),y;var w=d({},v,{"data-href":v.href,"data-precedence":v.precedence,href:null,precedence:null});return y=(u.ownerDocument||u).createElement("style"),hn(y),_n(y,"style",w),qd(y,v.precedence,u),f.instance=y;case"stylesheet":w=Fs(v.href);var C=u.querySelector(Vc(w));if(C)return f.state.loading|=4,f.instance=C,hn(C),C;y=Z2(v),(w=Br.get(w))&&n0(y,w),C=(u.ownerDocument||u).createElement("link"),hn(C);var R=C;return R._p=new Promise(function(G,$){R.onload=G,R.onerror=$}),_n(C,"link",y),f.state.loading|=4,qd(C,v.precedence,u),f.instance=C;case"script":return C=Gs(v.src),(w=u.querySelector(Hc(C)))?(f.instance=w,hn(w),w):(y=v,(w=Br.get(C))&&(y=d({},v),r0(y,w)),u=u.ownerDocument||u,w=u.createElement("script"),hn(w),_n(w,"link",y),u.head.appendChild(w),f.instance=w);case"void":return null;default:throw Error(r(443,f.type))}else f.type==="stylesheet"&&(f.state.loading&4)===0&&(y=f.instance,f.state.loading|=4,qd(y,v.precedence,u));return f.instance}function qd(u,f,v){for(var y=v.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),w=y.length?y[y.length-1]:null,C=w,R=0;R<y.length;R++){var G=y[R];if(G.dataset.precedence===f)C=G;else if(C!==w)break}C?C.parentNode.insertBefore(u,C.nextSibling):(f=v.nodeType===9?v.head:v,f.insertBefore(u,f.firstChild))}function n0(u,f){u.crossOrigin==null&&(u.crossOrigin=f.crossOrigin),u.referrerPolicy==null&&(u.referrerPolicy=f.referrerPolicy),u.title==null&&(u.title=f.title)}function r0(u,f){u.crossOrigin==null&&(u.crossOrigin=f.crossOrigin),u.referrerPolicy==null&&(u.referrerPolicy=f.referrerPolicy),u.integrity==null&&(u.integrity=f.integrity)}var Zd=null;function Q2(u,f,v){if(Zd===null){var y=new Map,w=Zd=new Map;w.set(v,y)}else w=Zd,y=w.get(v),y||(y=new Map,w.set(v,y));if(y.has(u))return y;for(y.set(u,null),v=v.getElementsByTagName(u),w=0;w<v.length;w++){var C=v[w];if(!(C[nc]||C[mn]||u==="link"&&C.getAttribute("rel")==="stylesheet")&&C.namespaceURI!=="http://www.w3.org/2000/svg"){var R=C.getAttribute(f)||"";R=u+R;var G=y.get(R);G?G.push(C):y.set(R,[C])}}return y}function K2(u,f,v){u=u.ownerDocument||u,u.head.insertBefore(v,f==="title"?u.querySelector("head > title"):null)}function vP(u,f,v){if(v===1||f.itemProp!=null)return!1;switch(u){case"meta":case"title":return!0;case"style":if(typeof f.precedence!="string"||typeof f.href!="string"||f.href==="")break;return!0;case"link":if(typeof f.rel!="string"||typeof f.href!="string"||f.href===""||f.onLoad||f.onError)break;switch(f.rel){case"stylesheet":return u=f.disabled,typeof f.precedence=="string"&&u==null;default:return!0}case"script":if(f.async&&typeof f.async!="function"&&typeof f.async!="symbol"&&!f.onLoad&&!f.onError&&f.src&&typeof f.src=="string")return!0}return!1}function J2(u){return!(u.type==="stylesheet"&&(u.state.loading&3)===0)}function pP(u,f,v,y){if(v.type==="stylesheet"&&(typeof y.media!="string"||matchMedia(y.media).matches!==!1)&&(v.state.loading&4)===0){if(v.instance===null){var w=Fs(y.href),C=f.querySelector(Vc(w));if(C){f=C._p,f!==null&&typeof f=="object"&&typeof f.then=="function"&&(u.count++,u=$d.bind(u),f.then(u,u)),v.state.loading|=4,v.instance=C,hn(C);return}C=f.ownerDocument||f,y=Z2(y),(w=Br.get(w))&&n0(y,w),C=C.createElement("link"),hn(C);var R=C;R._p=new Promise(function(G,$){R.onload=G,R.onerror=$}),_n(C,"link",y),v.instance=C}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(v,f),(f=v.state.preload)&&(v.state.loading&3)===0&&(u.count++,v=$d.bind(u),f.addEventListener("load",v),f.addEventListener("error",v))}}var i0=0;function gP(u,f){return u.stylesheets&&u.count===0&&Kd(u,u.stylesheets),0<u.count||0<u.imgCount?function(v){var y=setTimeout(function(){if(u.stylesheets&&Kd(u,u.stylesheets),u.unsuspend){var C=u.unsuspend;u.unsuspend=null,C()}},6e4+f);0<u.imgBytes&&i0===0&&(i0=62500*$N());var w=setTimeout(function(){if(u.waitingForImages=!1,u.count===0&&(u.stylesheets&&Kd(u,u.stylesheets),u.unsuspend)){var C=u.unsuspend;u.unsuspend=null,C()}},(u.imgBytes>i0?50:800)+f);return u.unsuspend=v,function(){u.unsuspend=null,clearTimeout(y),clearTimeout(w)}}:null}function $d(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Kd(this,this.stylesheets);else if(this.unsuspend){var u=this.unsuspend;this.unsuspend=null,u()}}}var Qd=null;function Kd(u,f){u.stylesheets=null,u.unsuspend!==null&&(u.count++,Qd=new Map,f.forEach(mP,u),Qd=null,$d.call(u))}function mP(u,f){if(!(f.state.loading&4)){var v=Qd.get(u);if(v)var y=v.get(null);else{v=new Map,Qd.set(u,v);for(var w=u.querySelectorAll("link[data-precedence],style[data-precedence]"),C=0;C<w.length;C++){var R=w[C];(R.nodeName==="LINK"||R.getAttribute("media")!=="not all")&&(v.set(R.dataset.precedence,R),y=R)}y&&v.set(null,y)}w=f.instance,R=w.getAttribute("data-precedence"),C=v.get(R)||y,C===y&&v.set(null,w),v.set(R,w),this.count++,y=$d.bind(this),w.addEventListener("load",y),w.addEventListener("error",y),C?C.parentNode.insertBefore(w,C.nextSibling):(u=u.nodeType===9?u.head:u,u.insertBefore(w,u.firstChild)),f.state.loading|=4}}var jc={$$typeof:T,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function yP(u,f,v,y,w,C,R,G,$){this.tag=1,this.containerInfo=u,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=Jg(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jg(0),this.hiddenUpdates=Jg(null),this.identifierPrefix=y,this.onUncaughtError=w,this.onCaughtError=C,this.onRecoverableError=R,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=$,this.incompleteTransitions=new Map}function tM(u,f,v,y,w,C,R,G,$,nt,lt,ft){return u=new yP(u,f,v,R,$,nt,lt,ft,G),f=1,C===!0&&(f|=24),C=dr(3,null,null,f),u.current=C,C.stateNode=u,f=Nm(),f.refCount++,u.pooledCache=f,f.refCount++,C.memoizedState={element:y,isDehydrated:v,cache:f},jm(C),u}function eM(u){return u?(u=bs,u):bs}function nM(u,f,v,y,w,C){w=eM(w),y.context===null?y.context=w:y.pendingContext=w,y=Va(f),y.payload={element:v},C=C===void 0?null:C,C!==null&&(y.callback=C),v=Ha(u,y,f),v!==null&&(er(v,u,f),xc(v,u,f))}function rM(u,f){if(u=u.memoizedState,u!==null&&u.dehydrated!==null){var v=u.retryLane;u.retryLane=v!==0&&v<f?v:f}}function a0(u,f){rM(u,f),(u=u.alternate)&&rM(u,f)}function iM(u){if(u.tag===13||u.tag===31){var f=Wo(u,67108864);f!==null&&er(f,u,67108864),a0(u,67108864)}}function aM(u){if(u.tag===13||u.tag===31){var f=yr();f=tm(f);var v=Wo(u,f);v!==null&&er(v,u,f),a0(u,f)}}var Jd=!0;function xP(u,f,v,y){var w=V.T;V.T=null;var C=X.p;try{X.p=2,o0(u,f,v,y)}finally{X.p=C,V.T=w}}function bP(u,f,v,y){var w=V.T;V.T=null;var C=X.p;try{X.p=8,o0(u,f,v,y)}finally{X.p=C,V.T=w}}function o0(u,f,v,y){if(Jd){var w=l0(y);if(w===null)Wy(u,f,y,tv,v),lM(u,y);else if(SP(w,u,f,v,y))y.stopPropagation();else if(lM(u,y),f&4&&-1<_P.indexOf(u)){for(;w!==null;){var C=us(w);if(C!==null)switch(C.tag){case 3:if(C=C.stateNode,C.current.memoizedState.isDehydrated){var R=jo(C.pendingLanes);if(R!==0){var G=C;for(G.pendingLanes|=2,G.entangledLanes|=2;R;){var $=1<<31-Le(R);G.entanglements[1]|=$,R&=~$}Ci(C),(ye&6)===0&&(Bd=Bn()+500,zc(0))}}break;case 31:case 13:G=Wo(C,2),G!==null&&er(G,C,2),Pd(),a0(C,2)}if(C=l0(y),C===null&&Wy(u,f,y,tv,v),C===w)break;w=C}w!==null&&y.stopPropagation()}else Wy(u,f,y,null,v)}}function l0(u){return u=um(u),s0(u)}var tv=null;function s0(u){if(tv=null,u=ss(u),u!==null){var f=a(u);if(f===null)u=null;else{var v=f.tag;if(v===13){if(u=o(f),u!==null)return u;u=null}else if(v===31){if(u=l(f),u!==null)return u;u=null}else if(v===3){if(f.stateNode.current.memoizedState.isDehydrated)return f.tag===3?f.stateNode.containerInfo:null;u=null}else f!==u&&(u=null)}}return tv=u,null}function oM(u){switch(u){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(Kg()){case ut:return 2;case _t:return 8;case Ht:case te:return 32;case Se:return 268435456;default:return 32}default:return 32}}var u0=!1,Qa=null,Ka=null,Ja=null,Fc=new Map,Gc=new Map,to=[],_P="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 lM(u,f){switch(u){case"focusin":case"focusout":Qa=null;break;case"dragenter":case"dragleave":Ka=null;break;case"mouseover":case"mouseout":Ja=null;break;case"pointerover":case"pointerout":Fc.delete(f.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gc.delete(f.pointerId)}}function Uc(u,f,v,y,w,C){return u===null||u.nativeEvent!==C?(u={blockedOn:f,domEventName:v,eventSystemFlags:y,nativeEvent:C,targetContainers:[w]},f!==null&&(f=us(f),f!==null&&iM(f)),u):(u.eventSystemFlags|=y,f=u.targetContainers,w!==null&&f.indexOf(w)===-1&&f.push(w),u)}function SP(u,f,v,y,w){switch(f){case"focusin":return Qa=Uc(Qa,u,f,v,y,w),!0;case"dragenter":return Ka=Uc(Ka,u,f,v,y,w),!0;case"mouseover":return Ja=Uc(Ja,u,f,v,y,w),!0;case"pointerover":var C=w.pointerId;return Fc.set(C,Uc(Fc.get(C)||null,u,f,v,y,w)),!0;case"gotpointercapture":return C=w.pointerId,Gc.set(C,Uc(Gc.get(C)||null,u,f,v,y,w)),!0}return!1}function sM(u){var f=ss(u.target);if(f!==null){var v=a(f);if(v!==null){if(f=v.tag,f===13){if(f=o(v),f!==null){u.blockedOn=f,Sw(u.priority,function(){aM(v)});return}}else if(f===31){if(f=l(v),f!==null){u.blockedOn=f,Sw(u.priority,function(){aM(v)});return}}else if(f===3&&v.stateNode.current.memoizedState.isDehydrated){u.blockedOn=v.tag===3?v.stateNode.containerInfo:null;return}}}u.blockedOn=null}function ev(u){if(u.blockedOn!==null)return!1;for(var f=u.targetContainers;0<f.length;){var v=l0(u.nativeEvent);if(v===null){v=u.nativeEvent;var y=new v.constructor(v.type,v);sm=y,v.target.dispatchEvent(y),sm=null}else return f=us(v),f!==null&&iM(f),u.blockedOn=v,!1;f.shift()}return!0}function uM(u,f,v){ev(u)&&v.delete(f)}function wP(){u0=!1,Qa!==null&&ev(Qa)&&(Qa=null),Ka!==null&&ev(Ka)&&(Ka=null),Ja!==null&&ev(Ja)&&(Ja=null),Fc.forEach(uM),Gc.forEach(uM)}function nv(u,f){u.blockedOn===f&&(u.blockedOn=null,u0||(u0=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,wP)))}var rv=null;function cM(u){rv!==u&&(rv=u,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){rv===u&&(rv=null);for(var f=0;f<u.length;f+=3){var v=u[f],y=u[f+1],w=u[f+2];if(typeof y!="function"){if(s0(y||v)===null)continue;break}var C=us(v);C!==null&&(u.splice(f,3),f-=3,ly(C,{pending:!0,data:w,method:v.method,action:y},y,w))}}))}function Us(u){function f($){return nv($,u)}Qa!==null&&nv(Qa,u),Ka!==null&&nv(Ka,u),Ja!==null&&nv(Ja,u),Fc.forEach(f),Gc.forEach(f);for(var v=0;v<to.length;v++){var y=to[v];y.blockedOn===u&&(y.blockedOn=null)}for(;0<to.length&&(v=to[0],v.blockedOn===null);)sM(v),v.blockedOn===null&&to.shift();if(v=(u.ownerDocument||u).$$reactFormReplay,v!=null)for(y=0;y<v.length;y+=3){var w=v[y],C=v[y+1],R=w[Zn]||null;if(typeof C=="function")R||cM(v);else if(R){var G=null;if(C&&C.hasAttribute("formAction")){if(w=C,R=C[Zn]||null)G=R.formAction;else if(s0(w)!==null)continue}else G=R.action;typeof G=="function"?v[y+1]=G:(v.splice(y,3),y-=3),cM(v)}}}function fM(){function u(C){C.canIntercept&&C.info==="react-transition"&&C.intercept({handler:function(){return new Promise(function(R){return w=R})},focusReset:"manual",scroll:"manual"})}function f(){w!==null&&(w(),w=null),y||setTimeout(v,20)}function v(){if(!y&&!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 y=!1,w=null;return navigation.addEventListener("navigate",u),navigation.addEventListener("navigatesuccess",f),navigation.addEventListener("navigateerror",f),setTimeout(v,100),function(){y=!0,navigation.removeEventListener("navigate",u),navigation.removeEventListener("navigatesuccess",f),navigation.removeEventListener("navigateerror",f),w!==null&&(w(),w=null)}}}function c0(u){this._internalRoot=u}iv.prototype.render=c0.prototype.render=function(u){var f=this._internalRoot;if(f===null)throw Error(r(409));var v=f.current,y=yr();nM(v,y,u,f,null,null)},iv.prototype.unmount=c0.prototype.unmount=function(){var u=this._internalRoot;if(u!==null){this._internalRoot=null;var f=u.containerInfo;nM(u.current,2,null,u,null,null),Pd(),f[ls]=null}};function iv(u){this._internalRoot=u}iv.prototype.unstable_scheduleHydration=function(u){if(u){var f=_w();u={blockedOn:null,target:u,priority:f};for(var v=0;v<to.length&&f!==0&&f<to[v].priority;v++);to.splice(v,0,u),v===0&&sM(u)}};var hM=e.version;if(hM!=="19.2.4")throw Error(r(527,hM,"19.2.4"));X.findDOMNode=function(u){var f=u._reactInternals;if(f===void 0)throw typeof u.render=="function"?Error(r(188)):(u=Object.keys(u).join(","),Error(r(268,u)));return u=c(f),u=u!==null?h(u):null,u=u===null?null:u.stateNode,u};var TP={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var av=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!av.isDisabled&&av.supportsFiber)try{Nn=av.inject(TP),sn=av}catch{}}return Wc.createRoot=function(u,f){if(!i(u))throw Error(r(299));var v=!1,y="",w=xC,C=bC,R=_C;return f!=null&&(f.unstable_strictMode===!0&&(v=!0),f.identifierPrefix!==void 0&&(y=f.identifierPrefix),f.onUncaughtError!==void 0&&(w=f.onUncaughtError),f.onCaughtError!==void 0&&(C=f.onCaughtError),f.onRecoverableError!==void 0&&(R=f.onRecoverableError)),f=tM(u,1,!1,null,null,v,y,null,w,C,R,fM),u[ls]=f.current,Yy(u),new c0(f)},Wc.hydrateRoot=function(u,f,v){if(!i(u))throw Error(r(299));var y=!1,w="",C=xC,R=bC,G=_C,$=null;return v!=null&&(v.unstable_strictMode===!0&&(y=!0),v.identifierPrefix!==void 0&&(w=v.identifierPrefix),v.onUncaughtError!==void 0&&(C=v.onUncaughtError),v.onCaughtError!==void 0&&(R=v.onCaughtError),v.onRecoverableError!==void 0&&(G=v.onRecoverableError),v.formState!==void 0&&($=v.formState)),f=tM(u,1,!0,f,v??null,y,w,$,C,R,G,fM),f.context=eM(null),v=f.current,y=yr(),y=tm(y),w=Va(y),w.callback=null,Ha(v,w,y),v=y,f.current.lanes=v,ec(f,v),Ci(f),u[ls]=f.current,Yy(u),new iv(f)},Wc.version="19.2.4",Wc}var SM;function OP(){if(SM)return d0.exports;SM=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),d0.exports=IP(),d0.exports}var zP=OP();const B={orange:"#FF8C42",orangeHover:"#FF7A28",orangeLight:"#FFE5D6",teal:"#00695C",tealHover:"#00796B",tealLight:"#E0F2F1",tealDark:"#004D40",neutral:"#2C3E50",blue:"#1E88E5",textPrimary:"#1A1A1A",textSecondary:"#666666",textTertiary:"#999999",textDisabled:"#CCCCCC",background:"#FAFAFA",surface:"#FFFFFF",surfaceHover:"#F5F5F5",border:"#E0E0E0",borderLight:"#F0F0F0",divider:"#E8E8E8",error:"#E53935",warning:"#FF9800"},ze={xs:"0 1px 2px rgba(0,0,0,0.05)",sm:"0 1px 3px rgba(0,0,0,0.06)",md:"0 2px 8px rgba(0,0,0,0.08)",lg:"0 4px 16px rgba(0,0,0,0.1)",focusOrange:"0 0 0 3px rgba(255, 140, 66, 0.25)",focusTeal:"0 0 0 3px rgba(0, 105, 92, 0.25)"},Gt={fast:"120ms cubic-bezier(0.4, 0, 0.2, 1)",normal:"200ms cubic-bezier(0.4, 0, 0.2, 1)",slow:"300ms cubic-bezier(0.4, 0, 0.2, 1)"},wM={width:320,minHeight:320,maxHeight:320,padding:"28px 28px",background:B.surface,border:`1.5px solid ${B.border}`,borderRadius:20,boxShadow:ze.md,transition:Gt.normal,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:16,textAlign:"center",overflow:"hidden",boxSizing:"border-box"};function BP(){return E.jsxs("svg",{width:"56",height:"56",viewBox:"0 0 56 56",fill:"none",children:[E.jsx("rect",{x:"8",y:"8",width:"40",height:"28",rx:"4",stroke:B.orange,strokeWidth:"2.2"}),E.jsx("rect",{x:"12",y:"12",width:"32",height:"20",rx:"2",fill:B.orangeLight}),E.jsx("path",{d:"M17 19L22 23L17 27",stroke:B.orange,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{d:"M24 27H32",stroke:B.orange,strokeWidth:"2",strokeLinecap:"round"}),E.jsx("path",{d:"M22 36H34",stroke:B.orange,strokeWidth:"2.2",strokeLinecap:"round"}),E.jsx("path",{d:"M28 36V40",stroke:B.orange,strokeWidth:"2.2",strokeLinecap:"round"}),E.jsx("path",{d:"M20 40H36",stroke:B.orange,strokeWidth:"2.2",strokeLinecap:"round"}),E.jsx("circle",{cx:"28",cy:"44",r:"0",fill:"none"})]})}function NP(){return E.jsxs("svg",{width:"56",height:"56",viewBox:"0 0 56 56",fill:"none",children:[E.jsx("circle",{cx:"20",cy:"28",r:"11",stroke:B.orange,strokeWidth:"2.2"}),E.jsx("circle",{cx:"20",cy:"28",r:"5",fill:B.orangeLight,stroke:B.orange,strokeWidth:"1.5"}),E.jsx("path",{d:"M31 28H44Q48 28 48 32V35",stroke:B.orange,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),E.jsx("path",{d:"M40 28V34",stroke:B.orange,strokeWidth:"2.2",strokeLinecap:"round"})]})}function PP({onConnect:t}){const[e,n]=vt.useState(""),[r,i]=vt.useState(null),[a,o]=vt.useState(null),l=async c=>{i(c),o(null);try{await t(c,c==="apikey"?e.trim():void 0)}catch(h){o({target:c,message:h instanceof Error?h.message:String(h)})}finally{i(null)}},s=r!==null;return E.jsxs("div",{style:{minHeight:"100vh",background:`linear-gradient(135deg, ${B.background} 0%, #FFF5EE 50%, ${B.background} 100%)`,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",fontFamily:'system-ui, -apple-system, "Segoe UI", sans-serif',padding:24},children:[E.jsx("img",{src:"/Analitoly.png",alt:"Analitoly",style:{height:64,objectFit:"contain",marginBottom:12}}),E.jsx("p",{style:{color:B.textTertiary,fontSize:15,marginBottom:48,letterSpacing:.2},children:"AI-аналитик для вашего продукта"}),E.jsxs("div",{style:{display:"flex",gap:24,flexWrap:"wrap",justifyContent:"center"},children:[E.jsxs("button",{onClick:()=>l("local"),disabled:s,style:{...wM,cursor:s?"not-allowed":"pointer",opacity:s&&r!=="local"?.5:1},onMouseEnter:c=>{s||(c.currentTarget.style.borderColor=B.orange,c.currentTarget.style.boxShadow=ze.lg,c.currentTarget.style.transform="translateY(-2px)")},onMouseLeave:c=>{c.currentTarget.style.borderColor=B.border,c.currentTarget.style.boxShadow=ze.md,c.currentTarget.style.transform="none"},children:[r==="local"?E.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:14},children:[E.jsx("div",{style:{width:48,height:48,border:`3px solid ${B.borderLight}`,borderTopColor:B.orange,borderRadius:"50%",animation:"auth-spin 0.8s linear infinite"}}),E.jsx("span",{style:{fontSize:14,color:B.textTertiary},children:"Подключение..."})]}):E.jsxs(E.Fragment,{children:[E.jsx(BP,{}),E.jsxs("div",{children:[E.jsx("div",{style:{fontSize:17,fontWeight:600,color:B.textPrimary,marginBottom:6},children:"Локальная сессия"}),E.jsxs("div",{style:{fontSize:13,color:B.textTertiary,lineHeight:1.5},children:["Подключиться через ключ,",E.jsx("br",{}),"настроенный на сервере"]})]})]}),(a==null?void 0:a.target)==="local"&&E.jsx("div",{style:{marginTop:4,padding:"10px 14px",background:"#FFF5F5",border:"1px solid #FECACA",borderRadius:10,fontSize:13,color:B.error,lineHeight:1.5,textAlign:"left",width:"100%"},children:a.message})]}),E.jsxs("div",{style:{...wM,opacity:s&&r!=="apikey"?.5:1},children:[r==="apikey"?E.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:14},children:[E.jsx("div",{style:{width:48,height:48,border:`3px solid ${B.borderLight}`,borderTopColor:B.orange,borderRadius:"50%",animation:"auth-spin 0.8s linear infinite"}}),E.jsx("span",{style:{fontSize:14,color:B.textTertiary},children:"Подключение..."})]}):E.jsxs(E.Fragment,{children:[E.jsx(NP,{}),E.jsxs("div",{children:[E.jsx("div",{style:{fontSize:17,fontWeight:600,color:B.textPrimary,marginBottom:6},children:"API ключ"}),E.jsxs("div",{style:{fontSize:13,color:B.textTertiary,lineHeight:1.5},children:["Подключиться с помощью",E.jsx("br",{}),"Anthropic API ключа"]})]})]}),E.jsxs("div",{style:{width:"100%",display:"flex",flexDirection:"column",gap:8},children:[E.jsx("input",{type:"password",value:e,onChange:c=>n(c.target.value),placeholder:"sk-ant-api03-...",disabled:s,onKeyDown:c=>{c.key==="Enter"&&e.trim()&&!s&&l("apikey")},style:{width:"100%",padding:"9px 12px",fontSize:13,fontFamily:'Monaco, "Courier New", monospace',borderRadius:10,border:`1.5px solid ${B.border}`,background:B.background,color:B.textPrimary,outline:"none",transition:Gt.fast,boxSizing:"border-box"},onFocus:c=>{c.currentTarget.style.borderColor=B.teal,c.currentTarget.style.boxShadow=ze.focusTeal},onBlur:c=>{c.currentTarget.style.borderColor=B.border,c.currentTarget.style.boxShadow="none"}}),E.jsx("button",{onClick:()=>l("apikey"),disabled:s||!e.trim(),style:{width:"100%",padding:"9px 14px",fontSize:13,fontWeight:600,background:s||!e.trim()?B.textDisabled:B.teal,color:"#fff",border:"none",borderRadius:10,cursor:s||!e.trim()?"not-allowed":"pointer",transition:Gt.fast},onMouseEnter:c=>{!s&&e.trim()&&(c.currentTarget.style.background=B.tealHover)},onMouseLeave:c=>{!s&&e.trim()&&(c.currentTarget.style.background=B.teal)},children:"Подключиться"})]}),(a==null?void 0:a.target)==="apikey"&&E.jsx("div",{style:{padding:"10px 14px",background:"#FFF5F5",border:"1px solid #FECACA",borderRadius:10,fontSize:13,color:B.error,lineHeight:1.5,textAlign:"left",width:"100%"},children:a.message})]})]}),E.jsx("style",{children:`
50
+ @keyframes auth-spin {
51
+ to { transform: rotate(360deg); }
52
+ }
53
+ `})]})}function VP({message:t}){return E.jsx("div",{style:{marginBottom:16,textAlign:"right"},children:E.jsx("div",{style:{display:"inline-block",maxWidth:"75%",padding:"10px 16px",borderRadius:12,background:B.tealDark,color:B.surface,whiteSpace:"pre-wrap",textAlign:"left",fontSize:14,lineHeight:1.6,boxShadow:ze.sm},children:t.content})})}function HP({onSend:t,onStop:e,disabled:n}){const[r,i]=vt.useState(""),[a,o]=vt.useState(!1),l=T=>{T.preventDefault();const A=r.trim();!A||n||(i(""),t(A))},s=!n&&r.trim().length>0,c=n&&!!e,h={border:"none",cursor:"pointer",fontSize:c?14:18,fontWeight:600,transition:Gt.normal,display:"flex",alignItems:"center",justifyContent:"center"},d=s?B.orange:B.border,g=B.error,p=c?g:d,m=c||s,x=a?{...h,padding:"10px 16px",borderRadius:12,background:p,color:B.surface,opacity:m?1:.5,cursor:m?"pointer":"not-allowed",flexShrink:0,height:38}:{...h,position:"absolute",right:1,top:1,bottom:1,padding:"0 16px",borderRadius:10,background:p,color:B.surface,opacity:m?1:.5,cursor:m?"pointer":"not-allowed"},_=()=>{c&&e()},b=c?"#C62828":B.orangeHover,S=p;return E.jsxs("form",{onSubmit:l,style:{display:"flex",gap:8,alignItems:"center",position:"relative"},children:[E.jsx("textarea",{value:r,onChange:T=>i(T.target.value),placeholder:"Спроси о структуре данных или выполни запрос...",disabled:n,rows:1,onInput:T=>{const A=T.target;A.style.height="auto";const D=Math.min(A.scrollHeight,200);A.style.height=D+"px",o(D>45)},onKeyDown:T=>{T.key==="Enter"&&!T.shiftKey&&(T.preventDefault(),l(T))},style:{flex:1,padding:a?"9px 14px":"9px 50px 9px 14px",fontSize:14,lineHeight:1.6,borderRadius:12,border:`1px solid ${B.border}`,background:B.surface,color:B.textPrimary,outline:"none",transition:Gt.normal,resize:"none",minHeight:38,maxHeight:200,fontFamily:"inherit",overflow:"hidden",boxSizing:"border-box"},onFocus:T=>{T.currentTarget.style.borderColor=B.orange,T.currentTarget.style.boxShadow=ze.focusOrange},onBlur:T=>{T.currentTarget.style.borderColor=B.border,T.currentTarget.style.boxShadow="none"}}),E.jsx("button",{type:c?"button":"submit",disabled:!m,onClick:_,style:x,onMouseEnter:T=>{m&&(T.currentTarget.style.background=b,T.currentTarget.style.boxShadow=c?"0 2px 8px rgba(229, 57, 53, 0.3)":"0 2px 8px rgba(255, 140, 66, 0.3)")},onMouseLeave:T=>{m&&(T.currentTarget.style.background=S,T.currentTarget.style.boxShadow="none")},children:c?"■":"→"})]})}function ap({copied:t}){return t?E.jsx("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{d:"M3 8L6 11L13 4",stroke:"#00695C",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):E.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",children:[E.jsx("rect",{x:"5",y:"5",width:"8",height:"8",rx:"1.5",fill:"#FF8C42",stroke:"#FF8C42",strokeWidth:"1.3"}),E.jsx("rect",{x:"3",y:"3",width:"8",height:"8",rx:"1.5",fill:"#FFE5D6"})]})}const jP=/\b(SELECT|FROM|WHERE|JOIN|LEFT|RIGHT|INNER|OUTER|ON|AND|OR|NOT|IN|IS|NULL|AS|ORDER|BY|GROUP|HAVING|LIMIT|OFFSET|INSERT|UPDATE|DELETE|CREATE|ALTER|DROP|SET|VALUES|INTO|DISTINCT|COUNT|SUM|AVG|MIN|MAX|CASE|WHEN|THEN|ELSE|END|UNION|ALL|EXISTS|BETWEEN|LIKE|ILIKE|ASC|DESC|WITH|RECURSIVE|EXPLAIN|ANALYZE|VERBOSE|FORMAT)\b/gi,FP=/('[^']*')/g,GP=/\b(\d+(?:\.\d+)?)\b/g,UP=/("[\w$]+")\s*:/g,YP=/:\s*("[^"]*")/g,WP=/:\s*(\d+(?:\.\d+)?)/g,XP=/\b(true|false|null)\b/g,Sa={bg:"#1E1E1E",text:"#D4D4D4",keyword:"#4EC9B0",string:"#CE9178",number:"#B5CEA8",key:"#9CDCFE",boolean:"#569CD6"};function qP(t){const e=t.replace("mcp__analitoly__","");return["execute_query","pg_explain_query","pg_top_queries"].includes(e)}function ZP(t){let e=t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");return e=e.replace(FP,`<span style="color:${Sa.string}">$1</span>`),e=e.replace(jP,`<span style="color:${Sa.keyword}">$1</span>`),e=e.replace(GP,`<span style="color:${Sa.number}">$1</span>`),e}function $P(t){let e=t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");return e=e.replace(YP,`: <span style="color:${Sa.string}">$1</span>`),e=e.replace(UP,`<span style="color:${Sa.key}">$1</span>:`),e=e.replace(WP,`: <span style="color:${Sa.number}">$1</span>`),e=e.replace(XP,`<span style="color:${Sa.boolean}">$1</span>`),e}function QP({query:t,tool:e}){const[n,r]=vt.useState(!1),i=qP(e)?ZP(t):$P(t),a=()=>{navigator.clipboard.writeText(t),r(!0),setTimeout(()=>r(!1),1e3)};return E.jsxs("div",{style:{position:"relative"},className:"copyable-block",children:[E.jsx("style",{children:`.copyable-block .copy-btn { opacity: 0; transition: opacity ${Gt.fast}; }
54
+ .copyable-block:hover .copy-btn { opacity: 1; }`}),E.jsx("button",{className:"copy-btn",onClick:a,style:{position:"absolute",top:8,right:8,background:"rgba(255,255,255,0.1)",border:"1px solid rgba(255,255,255,0.2)",borderRadius:4,color:"#D4D4D4",cursor:"pointer",fontSize:12,padding:"2px 6px"},children:E.jsx(ap,{copied:n})}),E.jsx("pre",{style:{margin:0,padding:12,background:Sa.bg,borderRadius:6,whiteSpace:"pre-wrap",fontSize:13,lineHeight:1.5,fontFamily:'Monaco, "Courier New", monospace',color:Sa.text,overflow:"auto"},dangerouslySetInnerHTML:{__html:i}})]})}function BR(t){if(!t)return!1;if(t.startsWith("Error:")||t.startsWith("error:"))return!0;try{const e=JSON.parse(t);return e&&typeof e=="object"&&"error"in e}catch{return!1}}const bx="Генерация графика...";function KP(t){try{const e=JSON.parse(t);return Array.isArray(e)&&e.length>0&&typeof e[0]=="object"&&e[0]!==null?{type:"table",columns:Array.from(new Set(e.flatMap(r=>Object.keys(r)))),rows:e}:typeof e=="object"&&e!==null&&!Array.isArray(e)?{type:"kv",entries:Object.entries(e)}:{type:"raw"}}catch{return{type:"raw"}}}function JP(t){return t==null?{text:"null",isNull:!0,isNumber:!1}:typeof t=="number"?{text:String(t),isNull:!1,isNumber:!0}:typeof t=="object"?{text:JSON.stringify(t),isNull:!1,isNumber:!1}:{text:String(t),isNull:!1,isNumber:!1}}const NR={padding:"6px 10px",borderBottom:`1px solid ${B.border}`,fontSize:13,fontFamily:'Monaco, "Courier New", monospace',maxWidth:300,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t6={...NR,position:"sticky",top:0,background:B.surfaceHover,fontWeight:600,color:B.textPrimary,zIndex:1};function e6({result:t}){const[e,n]=vt.useState(!1),r=()=>{navigator.clipboard.writeText(t),n(!0),setTimeout(()=>n(!1),1e3)};if(BR(t))return E.jsxs("div",{style:{position:"relative"},className:"copyable-block",children:[E.jsx("style",{children:`.copyable-block .copy-btn { opacity: 0; transition: opacity ${Gt.fast}; }
55
+ .copyable-block:hover .copy-btn { opacity: 1; }`}),E.jsx("button",{className:"copy-btn",onClick:r,style:{position:"absolute",top:8,right:8,background:B.surfaceHover,border:`1px solid ${B.border}`,borderRadius:4,cursor:"pointer",fontSize:12,padding:"2px 6px"},children:E.jsx(ap,{copied:e})}),E.jsx("pre",{style:{margin:0,padding:12,background:"#FFF5F5",border:`1px solid ${B.error}`,borderRadius:6,whiteSpace:"pre-wrap",fontSize:13,lineHeight:1.5,fontFamily:'Monaco, "Courier New", monospace',color:B.error},children:t})]});const i=KP(t);if(i.type==="raw")return E.jsxs("div",{style:{position:"relative"},className:"copyable-block",children:[E.jsx("style",{children:`.copyable-block .copy-btn { opacity: 0; transition: opacity ${Gt.fast}; }
56
+ .copyable-block:hover .copy-btn { opacity: 1; }`}),E.jsx("button",{className:"copy-btn",onClick:r,style:{position:"absolute",top:8,right:8,background:B.surfaceHover,border:`1px solid ${B.border}`,borderRadius:4,cursor:"pointer",fontSize:12,padding:"2px 6px"},children:E.jsx(ap,{copied:e})}),E.jsx("pre",{style:{margin:0,padding:12,background:B.surface,border:`1px solid ${B.border}`,borderRadius:6,whiteSpace:"pre-wrap",fontSize:13,lineHeight:1.5,fontFamily:'Monaco, "Courier New", monospace',maxHeight:300,overflow:"auto"},children:t})]});const a=(l,s)=>E.jsxs("div",{style:{position:"relative"},className:"copyable-block",children:[E.jsx("style",{children:`.copyable-block .copy-btn { opacity: 0; transition: opacity ${Gt.fast}; }
57
+ .copyable-block:hover .copy-btn { opacity: 1; }`}),E.jsx("button",{className:"copy-btn",onClick:r,style:{position:"absolute",top:8,right:8,background:B.surfaceHover,border:`1px solid ${B.border}`,borderRadius:4,cursor:"pointer",padding:"4px 6px",zIndex:2,display:"flex",alignItems:"center",justifyContent:"center"},children:E.jsx(ap,{copied:e})}),E.jsx("div",{style:{maxHeight:300,overflow:"auto",border:`1px solid ${B.border}`,borderRadius:6},children:E.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13,fontFamily:'Monaco, "Courier New", monospace'},children:[E.jsx("thead",{children:E.jsx("tr",{children:l.map(c=>E.jsx("th",{style:t6,children:c},c))})}),E.jsx("tbody",{children:s.map((c,h)=>E.jsx("tr",{style:{background:h%2===0?B.surface:B.surfaceHover},children:l.map(d=>{const g=JP(c[d]);return E.jsx("td",{title:g.text,style:{...NR,textAlign:g.isNumber?"right":"left",color:g.isNull?B.textTertiary:B.textPrimary,fontStyle:g.isNull?"italic":"normal"},children:g.text},d)})},h))})]})})]});if(i.type==="table")return a(i.columns,i.rows);const o=i.entries.map(([l,s])=>({key:l,value:s}));return a(["key","value"],o)}function n6(){return E.jsx("svg",{width:"18",height:"18",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{d:"M8 2L14 8L8 14L2 8Z",fill:"#FF8C42",opacity:"0.5",stroke:"#00695C",strokeWidth:"1.5",strokeLinejoin:"round",strokeLinecap:"round"})})}function r6(){return E.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 18",fill:"none",stroke:"#FF8C42",strokeWidth:"1.3",strokeLinecap:"round",children:[E.jsx("circle",{cx:"12",cy:"2",r:"1.2",fill:"#FF8C42"}),E.jsx("line",{x1:"12",y1:"3.2",x2:"12",y2:"6"}),E.jsx("line",{x1:"12",y1:"6",x2:"6",y2:"9"}),E.jsx("line",{x1:"12",y1:"6",x2:"18",y2:"9"}),E.jsx("circle",{cx:"6",cy:"9",r:"1.2",fill:"#FF8C42"}),E.jsx("circle",{cx:"18",cy:"9",r:"1.2",fill:"#FF8C42"}),E.jsx("line",{x1:"6",y1:"10.2",x2:"3",y2:"13.5"}),E.jsx("line",{x1:"6",y1:"10.2",x2:"9",y2:"13.5"}),E.jsx("line",{x1:"18",y1:"10.2",x2:"15",y2:"13.5"}),E.jsx("line",{x1:"18",y1:"10.2",x2:"21",y2:"13.5"}),E.jsx("circle",{cx:"3",cy:"15",r:"1.2",fill:"#FF8C42"}),E.jsx("circle",{cx:"9",cy:"15",r:"1.2",fill:"#FF8C42"}),E.jsx("circle",{cx:"15",cy:"15",r:"1.2",fill:"#FF8C42"}),E.jsx("circle",{cx:"21",cy:"15",r:"1.2",fill:"#FF8C42"})]})}function i6(){return E.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 16 16",fill:"none",children:[E.jsx("rect",{x:"2",y:"2",width:"12",height:"12",rx:"1.5",fill:"#00695C",stroke:"#00695C",strokeWidth:"1.5"}),E.jsx("line",{x1:"2",y1:"7",x2:"14",y2:"7",stroke:"#E0F2F1",strokeWidth:"1.3"}),E.jsx("circle",{cx:"4.5",cy:"4.5",r:"0.8",fill:"#E0F2F1"}),E.jsx("circle",{cx:"7.5",cy:"4.5",r:"0.8",fill:"#E0F2F1"}),E.jsx("circle",{cx:"10.5",cy:"4.5",r:"0.8",fill:"#E0F2F1"}),E.jsx("circle",{cx:"4.5",cy:"10.5",r:"0.8",fill:"#E0F2F1"}),E.jsx("circle",{cx:"7.5",cy:"10.5",r:"0.8",fill:"#E0F2F1"}),E.jsx("circle",{cx:"10.5",cy:"10.5",r:"0.8",fill:"#E0F2F1"})]})}const PR={execute_query:"svg",get_schema:"svg",get_datasources:"svg",pg_explain_query:"/PostgreSQL.png",pg_top_queries:"/PostgreSQL.png",pg_db_health:"/PostgreSQL.png",mongo_explain:"/Mongodb.png",mongo_count:"/Mongodb.png",mongo_stats:"/Mongodb.png",mongo_list_indexes:"/Mongodb.png"};function a6(t){const e=t.replace("mcp__analitoly__",""),n=PR[e]??"⚙";return n.startsWith("/")||n==="svg"?null:n}function TM(t){const e=t.replace("mcp__analitoly__","");return e==="execute_query"?E.jsx(n6,{}):e==="get_schema"?E.jsx(r6,{}):e==="get_datasources"?E.jsx(i6,{}):null}function CM(t){const e=t.replace("mcp__analitoly__",""),n=PR[e];return n!=null&&n.startsWith("/")?n:null}const o6=t=>t.replace("mcp__analitoly__","").replace(/_/g," "),l6={pending:"transparent",success:B.teal,error:B.error},s6=`
58
+ @keyframes pulse-dot {
59
+ 0%, 100% { opacity: 1; }
60
+ 50% { opacity: 0.3; }
61
+ }`;function u6({meta:t}){const[e,n]=vt.useState(!1),r=t.status==="pending";return E.jsxs("div",{style:{background:B.surfaceHover,border:`1px solid ${B.border}`,borderLeft:`3px solid ${l6[t.status]}`,borderRadius:8,padding:"12px 16px",marginBottom:8,fontSize:13,fontFamily:'Monaco, "Courier New", monospace',transition:Gt.normal},children:[r&&E.jsx("style",{children:s6}),E.jsxs("div",{role:r?void 0:"button",tabIndex:r?void 0:0,onClick:()=>!r&&n(!e),onKeyDown:i=>{!r&&(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),n(!e))},style:{cursor:r?"default":"pointer",display:"flex",alignItems:"center",gap:6},children:[!r&&E.jsx("svg",{width:"18",height:"18",viewBox:"0 0 16 16",fill:"none",style:{transition:Gt.normal,transform:e?"rotate(-90deg)":"none"},children:E.jsx("path",{d:"M10 3L5 8L10 13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),r&&E.jsx("span",{style:{display:"inline-block",width:8,height:8,borderRadius:"50%",background:B.orange,animation:"pulse-dot 1.2s ease-in-out infinite"}}),CM(t.tool)?E.jsx("img",{src:CM(t.tool),alt:"",style:{width:18,height:18,objectFit:"contain"}}):TM(t.tool)?TM(t.tool):E.jsx("span",{style:{fontSize:14},children:a6(t.tool)}),E.jsx("span",{style:{fontWeight:600,color:B.teal,fontSize:13},children:o6(t.tool)}),r&&E.jsx("span",{style:{color:B.textTertiary,fontStyle:"italic",fontSize:12},children:"Выполняется..."})]}),!r&&e&&E.jsxs("div",{style:{marginTop:8},children:[t.query&&E.jsxs("div",{style:{marginBottom:8},children:[E.jsx("div",{style:{color:B.textTertiary,fontSize:11,marginBottom:4,fontWeight:500,letterSpacing:.5},children:"QUERY"}),E.jsx(QP,{query:t.query,tool:t.tool})]}),t.result&&E.jsxs("div",{children:[E.jsx("div",{style:{color:B.textTertiary,fontSize:11,marginBottom:4,fontWeight:500,letterSpacing:.5},children:"RESULT"}),E.jsx(e6,{result:t.result})]})]})]})}/*! *****************************************************************************
62
+ Copyright (c) Microsoft Corporation.
63
+
64
+ Permission to use, copy, modify, and/or distribute this software for any
65
+ purpose with or without fee is hereby granted.
66
+
67
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
68
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
69
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
70
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
71
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
72
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
73
+ PERFORMANCE OF THIS SOFTWARE.
74
+ ***************************************************************************** */var _x=function(t,e){return _x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},_x(t,e)};function at(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");_x(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var c6=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),f6=(function(){function t(){this.browser=new c6,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 t})(),Ft=new f6;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ft.wxa=!0,Ft.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Ft.worker=!0:!Ft.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Ft.node=!0,Ft.svgSupported=!0):h6(navigator.userAgent,Ft);function h6(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(".")[0]>18),o&&(n.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11);var l=e.domSupported=typeof document<"u";if(l){var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}}var p_=12,d6="sans-serif",Eo=p_+"px "+d6,v6=20,p6=100,g6="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function m6(t){var e={};if(typeof JSON>"u")return e;for(var n=0;n<t.length;n++){var r=String.fromCharCode(n+32),i=(t.charCodeAt(n)-v6)/p6;e[r]=i}return e}var y6=m6(g6),gi={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(n,r){if(!t){var i=gi.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==r&&(e=t.font=r||Eo),t.measureText(n);n=n||"",r=r||Eo;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||p_,l=0;if(r.indexOf("mono")>=0)l=o*n.length;else for(var s=0;s<n.length;s++){var c=y6[n[s]];l+=c==null?o:c*o}return{width:l}}})(),loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}},VR=Ro(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),HR=Ro(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Ah=Object.prototype.toString,xg=Array.prototype,x6=xg.forEach,b6=xg.filter,g_=xg.slice,_6=xg.map,MM=(function(){}).constructor,ov=MM?MM.prototype:null,m_="__proto__",S6=2311;function jR(){return S6++}function y_(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function Rt(t){if(t==null||typeof t!="object")return t;var e=t,n=Ah.call(t);if(n==="[object Array]"){if(!Bf(t)){e=[];for(var r=0,i=t.length;r<i;r++)e[r]=Rt(t[r])}}else if(HR[n]){if(!Bf(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var r=0,i=t.length;r<i;r++)e[r]=t[r]}}}else if(!VR[n]&&!Bf(t)&&!Ru(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==m_&&(e[o]=Rt(t[o]))}return e}function Xt(t,e,n){if(!Lt(e)||!Lt(t))return n?Rt(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==m_){var i=t[r],a=e[r];Lt(a)&&Lt(i)&&!pt(a)&&!pt(i)&&!Ru(a)&&!Ru(i)&&!AM(a)&&!AM(i)&&!Bf(a)&&!Bf(i)?Xt(i,a,n):(n||!(r in t))&&(t[r]=Rt(e[r]))}return t}function ht(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==m_&&(t[n]=e[n]);return t}function qt(t,e,n){for(var r=Be(e),i=0,a=r.length;i<a;i++){var o=r[i];(n?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}function Yt(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n}return-1}function w6(t,e){var n=t.prototype;function r(){}r.prototype=e.prototype,t.prototype=new r;for(var i in n)n.hasOwnProperty(i)&&(t.prototype[i]=n[i]);t.prototype.constructor=t,t.superClass=e}function Xn(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var a=r[i];a!=="constructor"&&(n?e[a]!=null:t[a]==null)&&(t[a]=e[a])}else qt(t,e,n)}function lr(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function N(t,e,n){if(t&&e)if(t.forEach&&t.forEach===x6)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,i=t.length;r<i;r++)e.call(n,t[r],r,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(n,t[a],a,t)}function bt(t,e,n){if(!t)return[];if(!e)return x_(t);if(t.map&&t.map===_6)return t.map(e,n);for(var r=[],i=0,a=t.length;i<a;i++)r.push(e.call(n,t[i],i,t));return r}function Ro(t,e,n,r){if(t&&e){for(var i=0,a=t.length;i<a;i++)n=e.call(r,n,t[i],i,t);return n}}function Ze(t,e,n){if(!t)return[];if(!e)return x_(t);if(t.filter&&t.filter===b6)return t.filter(e,n);for(var r=[],i=0,a=t.length;i<a;i++)e.call(n,t[i],i,t)&&r.push(t[i]);return r}function FR(t,e,n){if(t&&e){for(var r=0,i=t.length;r<i;r++)if(e.call(n,t[r],r,t))return t[r]}}function Be(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function T6(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(g_.call(arguments)))}}var Tt=ov&&It(ov.bind)?ov.call.bind(ov.bind):T6;function Wt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(g_.call(arguments)))}}function pt(t){return Array.isArray?Array.isArray(t):Ah.call(t)==="[object Array]"}function It(t){return typeof t=="function"}function St(t){return typeof t=="string"}function Sx(t){return Ah.call(t)==="[object String]"}function ve(t){return typeof t=="number"}function Lt(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function AM(t){return!!VR[Ah.call(t)]}function sr(t){return!!HR[Ah.call(t)]}function Ru(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function bg(t){return t.colorStops!=null}function C6(t){return t.image!=null}function To(t){return t!==t}function Io(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;n<r;n++)if(t[n]!=null)return t[n]}function zt(t,e){return t??e}function Co(t,e,n){return t??e??n}function x_(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return g_.apply(t,e)}function _g(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function $r(t,e){if(!t)throw new Error(e)}function zi(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var GR="__ec_primitive__";function Tp(t){t[GR]=!0}function Bf(t){return t[GR]}var M6=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var n=this.has(e);return n&&delete this.data[e],n},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,n){return this.data[e]=n,this},t.prototype.keys=function(){return Be(this.data)},t.prototype.forEach=function(e){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&e(n[r],r)},t})(),UR=typeof Map=="function";function A6(){return UR?new Map:new M6}var D6=(function(){function t(e){var n=pt(e);this.data=A6();var r=this;e instanceof t?e.each(i):e&&N(e,i);function i(a,o){n?r.set(a,o):r.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,n){return this.data.set(e,n),n},t.prototype.each=function(e,n){this.data.forEach(function(r,i){e.call(n,r,i)})},t.prototype.keys=function(){var e=this.data.keys();return UR?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function Bt(t){return new D6(t)}function YR(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];for(var i=t.length,r=0;r<e.length;r++)n[r+i]=e[r];return n}function Sg(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&ht(n,e),n}function WR(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function fi(t,e){return t.hasOwnProperty(e)}function cn(){}var k6=180/Math.PI;function Gu(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function L6(t,e){return t[0]=e[0],t[1]=e[1],t}function E6(t){return[t[0],t[1]]}function DM(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function R6(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function I6(t){return Math.sqrt(O6(t))}function O6(t){return t[0]*t[0]+t[1]*t[1]}function m0(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function z6(t,e){var n=I6(e);return n===0?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function Tx(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Cx=Tx;function B6(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Au=B6;function y0(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function Gn(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function bu(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function _u(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var Ys=(function(){function t(e,n){this.target=e,this.topTarget=n&&n.topTarget}return t})(),N6=(function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var n=e.target;n&&!n.draggable;)n=n.parent||n.__hostTarget;n&&(this._draggingTarget=n,n.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Ys(n,e),"dragstart",e.event))},t.prototype._drag=function(e){var n=this._draggingTarget;if(n){var r=e.offsetX,i=e.offsetY,a=r-this._x,o=i-this._y;this._x=r,this._y=i,n.drift(a,o,e),this.handler.dispatchToElement(new Ys(n,e),"drag",e.event);var l=this.handler.findHover(r,i,n).target,s=this._dropTarget;this._dropTarget=l,n!==l&&(s&&l!==s&&this.handler.dispatchToElement(new Ys(s,e),"dragleave",e.event),l&&l!==s&&this.handler.dispatchToElement(new Ys(l,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new Ys(n,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Ys(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),Kr=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,n,r,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof n=="function"&&(i=r,r=n,n=null),!r||!e)return this;var o=this._$eventProcessor;n!=null&&o&&o.normalizeQuery&&(n=o.normalizeQuery(n)),a[e]||(a[e]=[]);for(var l=0;l<a[e].length;l++)if(a[e][l].h===r)return this;var s={h:r,query:n,ctx:i||this,callAtLast:r.zrEventfulCallAtLast},c=a[e].length-1,h=a[e][c];return h&&h.callAtLast?a[e].splice(c,0,s):a[e].push(s),this},t.prototype.isSilent=function(e){var n=this._$handlers;return!n||!n[e]||!n[e].length},t.prototype.off=function(e,n){var r=this._$handlers;if(!r)return this;if(!e)return this._$handlers={},this;if(n){if(r[e]){for(var i=[],a=0,o=r[e].length;a<o;a++)r[e][a].h!==n&&i.push(r[e][a]);r[e]=i}r[e]&&r[e].length===0&&delete r[e]}else delete r[e];return this},t.prototype.trigger=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=n.length,l=i.length,s=0;s<l;s++){var c=i[s];if(!(a&&a.filter&&c.query!=null&&!a.filter(e,c.query)))switch(o){case 0:c.h.call(c.ctx);break;case 1:c.h.call(c.ctx,n[0]);break;case 2:c.h.call(c.ctx,n[0],n[1]);break;default:c.h.apply(c.ctx,n);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=n.length,l=n[o-1],s=i.length,c=0;c<s;c++){var h=i[c];if(!(a&&a.filter&&h.query!=null&&!a.filter(e,h.query)))switch(o){case 0:h.h.call(l);break;case 1:h.h.call(l,n[0]);break;case 2:h.h.call(l,n[0],n[1]);break;default:h.h.apply(l,n.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t})(),P6=Math.log(2);function Mx(t,e,n,r,i,a){var o=r+"-"+i,l=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var s=Math.round(Math.log((1<<l)-1&~i)/P6);return t[n][s]}for(var c=r|1<<n,h=n+1;r&1<<h;)h++;for(var d=0,g=0,p=0;g<l;g++){var m=1<<g;m&i||(d+=(p%2?-1:1)*t[n][g]*Mx(t,e-1,h,c,i|m,a),p++)}return a[o]=d,d}function kM(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},i=Mx(n,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var l=0;l<8;l++)a[l]==null&&(a[l]=0),a[l]+=((o+l)%2?-1:1)*Mx(n,7,o===0?1:0,1<<o,1<<l,r)/i*e[o];return function(s,c,h){var d=c*a[6]+h*a[7]+1;s[0]=(c*a[0]+h*a[1]+a[2])/d,s[1]=(c*a[3]+h*a[4]+a[5])/d}}}var Cp="___zrEVENTSAVED",x0=[];function V6(t,e,n,r,i){return Ax(x0,e,r,i,!0)&&Ax(t,n,x0[0],x0[1])}function H6(t,e){t&&n(t),e&&n(e);function n(r){var i=r[Cp];i&&(i.clearMarkers&&i.clearMarkers(),delete r[Cp])}}function Ax(t,e,n,r,i){if(e.getBoundingClientRect&&Ft.domSupported&&!XR(e)){var a=e[Cp]||(e[Cp]={}),o=j6(e,a),l=F6(o,a,i);if(l)return l(t,n,r),!0}return!1}function j6(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),l=o.style,s=a%2,c=(a>>1)%2;l.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[s]+":0",i[c]+":0",r[1-s]+":auto",i[1-c]+":auto",""].join("!important;"),t.appendChild(o),n.push(o)}return e.clearMarkers=function(){N(n,function(h){h.parentNode&&h.parentNode.removeChild(h)})},n}function F6(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],a=e.srcCoords,o=[],l=[],s=!0,c=0;c<4;c++){var h=t[c].getBoundingClientRect(),d=2*c,g=h.left,p=h.top;o.push(g,p),s=s&&a&&g===a[d]&&p===a[d+1],l.push(t[c].offsetLeft,t[c].offsetTop)}return s&&i?i:(e.srcCoords=o,e[r]=n?kM(l,o):kM(o,l))}function XR(t){return t.nodeName.toUpperCase()==="CANVAS"}var G6=/([&<>"'])/g,U6={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ir(t){return t==null?"":(t+"").replace(G6,function(e,n){return U6[n]})}var Y6=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,b0=[],W6=Ft.browser.firefox&&+Ft.browser.version.split(".")[0]<39;function Dx(t,e,n,r){return n=n||{},r?LM(t,e,n):W6&&e.layerX!=null&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):e.offsetX!=null?(n.zrX=e.offsetX,n.zrY=e.offsetY):LM(t,e,n),n}function LM(t,e,n){if(Ft.domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(XR(t)){var a=t.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}else if(Ax(b0,t,r,i)){n.zrX=b0[0],n.zrY=b0[1];return}}n.zrX=n.zrY=0}function b_(t){return t||window.event}function Vr(t,e,n){if(e=b_(e),e.zrX!=null)return e;var r=e.type,i=r&&r.indexOf("touch")>=0;if(i){var o=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Dx(t,o,e,n)}else{Dx(t,e,e,n);var a=X6(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var l=e.button;return e.which==null&&l!==void 0&&Y6.test(e.type)&&(e.which=l&1?1:l&2?3:l&4?2:0),e}function X6(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(n==null||r==null)return e;var i=Math.abs(r!==0?r:n),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function kx(t,e,n,r){t.addEventListener(e,n,r)}function q6(t,e,n,r){t.removeEventListener(e,n,r)}var Aa=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function EM(t){return t.which===2||t.which===3}var Z6=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,n,r){return this._doTrack(e,n,r),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,n,r){var i=e.touches;if(i){for(var a={points:[],touches:[],target:n,event:e},o=0,l=i.length;o<l;o++){var s=i[o],c=Dx(r,s,{});a.points.push([c.zrX,c.zrY]),a.touches.push(s)}this._track.push(a)}},t.prototype._recognize=function(e){for(var n in _0)if(_0.hasOwnProperty(n)){var r=_0[n](this._track,e);if(r)return r}},t})();function RM(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function $6(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var _0={pinch:function(t,e){var n=t.length;if(n){var r=(t[n-1]||{}).points,i=(t[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=RM(r)/RM(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=$6(r);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function hi(){return[1,0,0,1,0,0]}function __(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function S_(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Nf(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],a=e[0]*n[2]+e[2]*n[3],o=e[1]*n[2]+e[3]*n[3],l=e[0]*n[4]+e[2]*n[5]+e[4],s=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=l,t[5]=s,t}function Jf(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function w_(t,e,n,r){r===void 0&&(r=[0,0]);var i=e[0],a=e[2],o=e[4],l=e[1],s=e[3],c=e[5],h=Math.sin(n),d=Math.cos(n);return t[0]=i*d+l*h,t[1]=-i*h+l*d,t[2]=a*d+s*h,t[3]=-a*h+d*s,t[4]=d*(o-r[0])+h*(c-r[1])+r[0],t[5]=d*(c-r[1])-h*(o-r[0])+r[1],t}function qR(t,e,n){var r=n[0],i=n[1];return t[0]=e[0]*r,t[1]=e[1]*i,t[2]=e[2]*r,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*i,t}function Uu(t,e){var n=e[0],r=e[2],i=e[4],a=e[1],o=e[3],l=e[5],s=n*o-a*r;return s?(s=1/s,t[0]=o*s,t[1]=-a*s,t[2]=-r*s,t[3]=n*s,t[4]=(r*l-o*i)*s,t[5]=(a*i-n*l)*s,t):null}var jt=(function(){function t(e,n){this.x=e||0,this.y=n||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,n){return this.x=e,this.y=n,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,n){this.x+=e.x*n,this.y+=e.y*n},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var n=this.x-e.x,r=this.y-e.y;return Math.sqrt(n*n+r*r)},t.prototype.distanceSquare=function(e){var n=this.x-e.x,r=this.y-e.y;return n*n+r*r},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var n=this.x,r=this.y;return this.x=e[0]*n+e[2]*r+e[4],this.y=e[1]*n+e[3]*r+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,n,r){e.x=n,e.y=r},t.copy=function(e,n){e.x=n.x,e.y=n.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,n){return e.x*n.x+e.y*n.y},t.add=function(e,n,r){e.x=n.x+r.x,e.y=n.y+r.y},t.sub=function(e,n,r){e.x=n.x-r.x,e.y=n.y-r.y},t.scale=function(e,n,r){e.x=n.x*r,e.y=n.y*r},t.scaleAndAdd=function(e,n,r,i){e.x=n.x+r.x*i,e.y=n.y+r.y*i},t.lerp=function(e,n,r,i){var a=1-i;e.x=a*n.x+i*r.x,e.y=a*n.y+i*r.y},t})(),Il=Math.min,Su=Math.max,Lx=Math.abs,IM=["x","y"],Q6=["width","height"],al=new jt,ol=new jt,ll=new jt,sl=new jt,br=ZR(),Af=br.minTv,Ex=br.maxTv,Pf=[0,0],Pt=(function(){function t(e,n,r,i){t.set(this,e,n,r,i)}return t.set=function(e,n,r,i,a){return i<0&&(n=n+i,i=-i),a<0&&(r=r+a,a=-a),e.x=n,e.y=r,e.width=i,e.height=a,e},t.prototype.union=function(e){var n=Il(e.x,this.x),r=Il(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Su(e.x+e.width,this.x+this.width)-n:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Su(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=n,this.y=r},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var n=this,r=e.width/n.width,i=e.height/n.height,a=hi();return Jf(a,a,[-n.x,-n.y]),qR(a,a,[r,i]),Jf(a,a,[e.x,e.y]),a},t.prototype.intersect=function(e,n,r){return t.intersect(this,e,n,r)},t.intersect=function(e,n,r,i){r&&jt.set(r,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!n)return!1;e instanceof t||(e=t.set(K6,e.x,e.y,e.width,e.height)),n instanceof t||(n=t.set(J6,n.x,n.y,n.width,n.height));var l=!!r;br.reset(i,l);var s=br.touchThreshold,c=e.x+s,h=e.x+e.width-s,d=e.y+s,g=e.y+e.height-s,p=n.x+s,m=n.x+n.width-s,x=n.y+s,_=n.y+n.height-s;if(c>h||d>g||p>m||x>_)return!1;var b=!(h<p||m<c||g<x||_<d);return(l||a)&&(Pf[0]=1/0,Pf[1]=0,OM(c,h,p,m,0,l,a,o),OM(d,g,x,_,1,l,a,o),l&&jt.copy(r,b?br.useDir?br.dirMinTv:Af:Ex)),b},t.contain=function(e,n,r){return n>=e.x&&n<=e.x+e.width&&r>=e.y&&r<=e.y+e.height},t.prototype.contain=function(e,n){return t.contain(this,e,n)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,n){return e.x=n.x,e.y=n.y,e.width=n.width,e.height=n.height,e},t.applyTransform=function(e,n,r){if(!r){e!==n&&t.copy(e,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],a=r[3],o=r[4],l=r[5];e.x=n.x*i+o,e.y=n.y*a+l,e.width=n.width*i,e.height=n.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}al.x=ll.x=n.x,al.y=sl.y=n.y,ol.x=sl.x=n.x+n.width,ol.y=ll.y=n.y+n.height,al.transform(r),sl.transform(r),ol.transform(r),ll.transform(r),e.x=Il(al.x,ol.x,ll.x,sl.x),e.y=Il(al.y,ol.y,ll.y,sl.y);var s=Su(al.x,ol.x,ll.x,sl.x),c=Su(al.y,ol.y,ll.y,sl.y);e.width=s-e.x,e.height=c-e.y},t})(),K6=new Pt(0,0,0,0),J6=new Pt(0,0,0,0);function OM(t,e,n,r,i,a,o,l){var s=Lx(e-n),c=Lx(r-t),h=Il(s,c),d=IM[i],g=IM[1-i],p=Q6[i];e<n||r<t?s<c?(a&&(Ex[d]=-s),l&&(o[d]=e,o[p]=0)):(a&&(Ex[d]=c),l&&(o[d]=t,o[p]=0)):(o&&(o[d]=Su(t,n),o[p]=Il(e,r)-o[d]),a&&(h<Pf[0]||br.useDir)&&(Pf[0]=Il(h,Pf[0]),(s<c||!br.bidirectional)&&(Af[d]=s,Af[g]=0,br.useDir&&br.calcDirMTV()),(s>=c||!br.bidirectional)&&(Af[d]=-c,Af[g]=0,br.useDir&&br.calcDirMTV())))}function ZR(){var t=0,e=new jt,n=new jt,r={minTv:new jt,maxTv:new jt,useDir:!1,dirMinTv:new jt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){r.touchThreshold=0,a&&a.touchThreshold!=null&&(r.touchThreshold=Su(0,a.touchThreshold)),r.negativeSize=!1,o&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,a&&a.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),t=a.direction,r.bidirectional=a.bidirectional==null||!!a.bidirectional,r.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=r.minTv,o=r.dirMinTv,l=a.y*a.y+a.x*a.x,s=Math.sin(t),c=Math.cos(t),h=s*a.y+c*a.x;if(i(h)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(n.x=l*c/h,n.y=l*s/h,i(n.x)&&i(n.y)){o.set(0,0);return}(r.bidirectional||e.dot(n)>0)&&n.len()<o.len()&&o.copy(n)}};function i(a){return Lx(a)<1e-10}return r}var $R="silent";function tV(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:eV}}function eV(){Aa(this.event)}var nV=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.handler=null,n}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(Kr),Xc=(function(){function t(e,n){this.x=e,this.y=n}return t})(),rV=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],S0=new Pt(0,0,0,0),QR=(function(t){at(e,t);function e(n,r,i,a,o){var l=t.call(this)||this;return l._hovered=new Xc(0,0),l.storage=n,l.painter=r,l.painterRoot=a,l._pointerSize=o,i=i||new nV,l.proxy=null,l.setHandlerProxy(i),l._draggingMgr=new N6(l),l}return e.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(N(rV,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},e.prototype.mousemove=function(n){var r=n.zrX,i=n.zrY,a=KR(this,r,i),o=this._hovered,l=o.target;l&&!l.__zr&&(o=this.findHover(o.x,o.y),l=o.target);var s=this._hovered=a?new Xc(r,i):this.findHover(r,i),c=s.target,h=this.proxy;h.setCursor&&h.setCursor(c?c.cursor:"default"),l&&c!==l&&this.dispatchToElement(o,"mouseout",n),this.dispatchToElement(s,"mousemove",n),c&&c!==l&&this.dispatchToElement(s,"mouseover",n)},e.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},e.prototype.resize=function(){this._hovered=new Xc(0,0)},e.prototype.dispatch=function(n,r){var i=this[n];i&&i.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},e.prototype.dispatchToElement=function(n,r,i){n=n||{};var a=n.target;if(!(a&&a.silent)){for(var o="on"+r,l=tV(r,n,i);a&&(a[o]&&(l.cancelBubble=!!a[o].call(a,l)),a.trigger(r,l),a=a.__hostTarget?a.__hostTarget:a.parent,!l.cancelBubble););l.cancelBubble||(this.trigger(r,l),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(s){typeof s[o]=="function"&&s[o].call(s,l),s.trigger&&s.trigger(r,l)}))}},e.prototype.findHover=function(n,r,i){var a=this.storage.getDisplayList(),o=new Xc(n,r);if(zM(a,o,n,r,i),this._pointerSize&&!o.target){for(var l=[],s=this._pointerSize,c=s/2,h=new Pt(n-c,r-c,s,s),d=a.length-1;d>=0;d--){var g=a[d];g!==i&&!g.ignore&&!g.ignoreCoarsePointer&&(!g.parent||!g.parent.ignoreCoarsePointer)&&(S0.copy(g.getBoundingRect()),g.transform&&S0.applyTransform(g.transform),S0.intersect(h)&&l.push(g))}if(l.length)for(var p=4,m=Math.PI/12,x=Math.PI*2,_=0;_<c;_+=p)for(var b=0;b<x;b+=m){var S=n+_*Math.cos(b),T=r+_*Math.sin(b);if(zM(l,o,S,T,i),o.target)return o}}return o},e.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new Z6);var i=this._gestureMgr;r==="start"&&i.clear();var a=i.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(r==="end"&&i.clear(),a){var o=a.type;n.gestureEvent=o;var l=new Xc;l.target=a.target,this.dispatchToElement(l,o,a.event)}},e})(Kr);N(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){QR.prototype[t]=function(e){var n=e.zrX,r=e.zrY,i=KR(this,n,r),a,o;if((t!=="mouseup"||!i)&&(a=this.findHover(n,r),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||Cx(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function iV(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r=t,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(e,n))return!1}r.silent&&(i=!0);var l=r.__hostTarget;r=l?r.ignoreHostSilent?null:l:r.parent}return i?$R:!0}return!1}function zM(t,e,n,r,i){for(var a=t.length-1;a>=0;a--){var o=t[a],l=void 0;if(o!==i&&!o.ignore&&(l=iV(o,n,r))&&(!e.topTarget&&(e.topTarget=o),l!==$R)){e.target=o;break}}}function KR(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}var JR=32,qc=7;function aV(t){for(var e=0;t>=JR;)e|=t&1,t>>=1;return t+e}function BM(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){for(;i<n&&r(t[i],t[i-1])<0;)i++;oV(t,e,i)}else for(;i<n&&r(t[i],t[i-1])>=0;)i++;return i-e}function oV(t,e,n){for(n--;e<n;){var r=t[e];t[e++]=t[n],t[n--]=r}}function NM(t,e,n,r,i){for(r===e&&r++;r<n;r++){for(var a=t[r],o=e,l=r,s;o<l;)s=o+l>>>1,i(a,t[s])<0?l=s:o=s+1;var c=r-o;switch(c){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;c>0;)t[o+c]=t[o+c-1],c--}t[o]=a}}function w0(t,e,n,r,i,a){var o=0,l=0,s=1;if(a(t,e[n+i])>0){for(l=r-i;s<l&&a(t,e[n+i+s])>0;)o=s,s=(s<<1)+1,s<=0&&(s=l);s>l&&(s=l),o+=i,s+=i}else{for(l=i+1;s<l&&a(t,e[n+i-s])<=0;)o=s,s=(s<<1)+1,s<=0&&(s=l);s>l&&(s=l);var c=o;o=i-s,s=i-c}for(o++;o<s;){var h=o+(s-o>>>1);a(t,e[n+h])>0?o=h+1:s=h}return s}function T0(t,e,n,r,i,a){var o=0,l=0,s=1;if(a(t,e[n+i])<0){for(l=i+1;s<l&&a(t,e[n+i-s])<0;)o=s,s=(s<<1)+1,s<=0&&(s=l);s>l&&(s=l);var c=o;o=i-s,s=i-c}else{for(l=r-i;s<l&&a(t,e[n+i+s])>=0;)o=s,s=(s<<1)+1,s<=0&&(s=l);s>l&&(s=l),o+=i,s+=i}for(o++;o<s;){var h=o+(s-o>>>1);a(t,e[n+h])<0?s=h:o=h+1}return s}function lV(t,e){var n=qc,r,i,a=0,o=[];r=[],i=[];function l(p,m){r[a]=p,i[a]=m,a+=1}function s(){for(;a>1;){var p=a-2;if(p>=1&&i[p-1]<=i[p]+i[p+1]||p>=2&&i[p-2]<=i[p]+i[p-1])i[p-1]<i[p+1]&&p--;else if(i[p]>i[p+1])break;h(p)}}function c(){for(;a>1;){var p=a-2;p>0&&i[p-1]<i[p+1]&&p--,h(p)}}function h(p){var m=r[p],x=i[p],_=r[p+1],b=i[p+1];i[p]=x+b,p===a-3&&(r[p+1]=r[p+2],i[p+1]=i[p+2]),a--;var S=T0(t[_],t,m,x,0,e);m+=S,x-=S,x!==0&&(b=w0(t[m+x-1],t,_,b,b-1,e),b!==0&&(x<=b?d(m,x,_,b):g(m,x,_,b)))}function d(p,m,x,_){var b=0;for(b=0;b<m;b++)o[b]=t[p+b];var S=0,T=x,A=p;if(t[A++]=t[T++],--_===0){for(b=0;b<m;b++)t[A+b]=o[S+b];return}if(m===1){for(b=0;b<_;b++)t[A+b]=t[T+b];t[A+_]=o[S];return}for(var D=n,M,k,I;;){M=0,k=0,I=!1;do if(e(t[T],o[S])<0){if(t[A++]=t[T++],k++,M=0,--_===0){I=!0;break}}else if(t[A++]=o[S++],M++,k=0,--m===1){I=!0;break}while((M|k)<D);if(I)break;do{if(M=T0(t[T],o,S,m,0,e),M!==0){for(b=0;b<M;b++)t[A+b]=o[S+b];if(A+=M,S+=M,m-=M,m<=1){I=!0;break}}if(t[A++]=t[T++],--_===0){I=!0;break}if(k=w0(o[S],t,T,_,0,e),k!==0){for(b=0;b<k;b++)t[A+b]=t[T+b];if(A+=k,T+=k,_-=k,_===0){I=!0;break}}if(t[A++]=o[S++],--m===1){I=!0;break}D--}while(M>=qc||k>=qc);if(I)break;D<0&&(D=0),D+=2}if(n=D,n<1&&(n=1),m===1){for(b=0;b<_;b++)t[A+b]=t[T+b];t[A+_]=o[S]}else{if(m===0)throw new Error;for(b=0;b<m;b++)t[A+b]=o[S+b]}}function g(p,m,x,_){var b=0;for(b=0;b<_;b++)o[b]=t[x+b];var S=p+m-1,T=_-1,A=x+_-1,D=0,M=0;if(t[A--]=t[S--],--m===0){for(D=A-(_-1),b=0;b<_;b++)t[D+b]=o[b];return}if(_===1){for(A-=m,S-=m,M=A+1,D=S+1,b=m-1;b>=0;b--)t[M+b]=t[D+b];t[A]=o[T];return}for(var k=n;;){var I=0,z=0,L=!1;do if(e(o[T],t[S])<0){if(t[A--]=t[S--],I++,z=0,--m===0){L=!0;break}}else if(t[A--]=o[T--],z++,I=0,--_===1){L=!0;break}while((I|z)<k);if(L)break;do{if(I=m-T0(o[T],t,p,m,m-1,e),I!==0){for(A-=I,S-=I,m-=I,M=A+1,D=S+1,b=I-1;b>=0;b--)t[M+b]=t[D+b];if(m===0){L=!0;break}}if(t[A--]=o[T--],--_===1){L=!0;break}if(z=_-w0(t[S],o,0,_,_-1,e),z!==0){for(A-=z,T-=z,_-=z,M=A+1,D=T+1,b=0;b<z;b++)t[M+b]=o[D+b];if(_<=1){L=!0;break}}if(t[A--]=t[S--],--m===0){L=!0;break}k--}while(I>=qc||z>=qc);if(L)break;k<0&&(k=0),k+=2}if(n=k,n<1&&(n=1),_===1){for(A-=m,S-=m,M=A+1,D=S+1,b=m-1;b>=0;b--)t[M+b]=t[D+b];t[A]=o[T]}else{if(_===0)throw new Error;for(D=A-(_-1),b=0;b<_;b++)t[D+b]=o[b]}}return{mergeRuns:s,forceMergeRuns:c,pushRun:l}}function op(t,e,n,r){n||(n=0),r||(r=t.length);var i=r-n;if(!(i<2)){var a=0;if(i<JR){a=BM(t,n,r,e),NM(t,n,r,n+a,e);return}var o=lV(t,e),l=aV(i);do{if(a=BM(t,n,r,e),a<l){var s=i;s>l&&(s=l),NM(t,n,n+s,n+a,e),a=s}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var _r=1,Df=2,gu=4,PM=!1;function C0(){PM||(PM=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function VM(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var sV=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=VM}return t.prototype.traverse=function(e,n){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(e,n)},t.prototype.getDisplayList=function(e,n){n=n||!1;var r=this._displayList;return(e||!r.length)&&this.updateDisplayList(n),r},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var n=this._roots,r=this._displayList,i=0,a=n.length;i<a;i++)this._updateAndAddDisplayable(n[i],null,e);r.length=this._displayListLen,op(r,VM)},t.prototype._updateAndAddDisplayable=function(e,n,r){if(!(e.ignore&&!r)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath(),a=n&&n.length,o=0,l=e.__clipPaths;if(!e.ignoreClip&&(a||i)){if(l||(l=e.__clipPaths=[]),a)for(var s=0;s<n.length;s++)l[o++]=n[s];for(var c=i,h=e;c;)c.parent=h,c.updateTransform(),l[o++]=c,h=c,c=c.getClipPath()}if(l&&(l.length=o),e.childrenRef){for(var d=e.childrenRef(),g=0;g<d.length;g++){var p=d[g];e.__dirty&&(p.__dirty|=_r),this._updateAndAddDisplayable(p,l,r)}e.__dirty=0}else{var m=e;isNaN(m.z)&&(C0(),m.z=0),isNaN(m.z2)&&(C0(),m.z2=0),isNaN(m.zlevel)&&(C0(),m.zlevel=0),this._displayList[this._displayListLen++]=m}var x=e.getDecalElement&&e.getDecalElement();x&&this._updateAndAddDisplayable(x,l,r);var _=e.getTextGuideLine();_&&this._updateAndAddDisplayable(_,l,r);var b=e.getTextContent();b&&this._updateAndAddDisplayable(b,l,r)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var n=0,r=e.length;n<r;n++)this.delRoot(e[n]);return}var i=Yt(this._roots,e);i>=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),Mp;Mp=Ft.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Vf={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)))},elasticOut:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)):n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Vf.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?Vf.bounceIn(t*2)*.5:Vf.bounceOut(t*2-1)*.5+.5}},lv=Math.pow,Mo=Math.sqrt,Ap=1e-8,tI=1e-4,HM=Mo(3),sv=1/3,Ii=Gu(),Fr=Gu(),Du=Gu();function go(t){return t>-Ap&&t<Ap}function eI(t){return t>Ap||t<-Ap}function Tn(t,e,n,r,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*r+3*a*n)}function jM(t,e,n,r,i){var a=1-i;return 3*(((e-t)*a+2*(n-e)*i)*a+(r-n)*i*i)}function Dp(t,e,n,r,i,a){var o=r+3*(e-n)-t,l=3*(n-e*2+t),s=3*(e-t),c=t-i,h=l*l-3*o*s,d=l*s-9*o*c,g=s*s-3*l*c,p=0;if(go(h)&&go(d))if(go(l))a[0]=0;else{var m=-s/l;m>=0&&m<=1&&(a[p++]=m)}else{var x=d*d-4*h*g;if(go(x)){var _=d/h,m=-l/o+_,b=-_/2;m>=0&&m<=1&&(a[p++]=m),b>=0&&b<=1&&(a[p++]=b)}else if(x>0){var S=Mo(x),T=h*l+1.5*o*(-d+S),A=h*l+1.5*o*(-d-S);T<0?T=-lv(-T,sv):T=lv(T,sv),A<0?A=-lv(-A,sv):A=lv(A,sv);var m=(-l-(T+A))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var D=(2*h*l-3*o*d)/(2*Mo(h*h*h)),M=Math.acos(D)/3,k=Mo(h),I=Math.cos(M),m=(-l-2*k*I)/(3*o),b=(-l+k*(I+HM*Math.sin(M)))/(3*o),z=(-l+k*(I-HM*Math.sin(M)))/(3*o);m>=0&&m<=1&&(a[p++]=m),b>=0&&b<=1&&(a[p++]=b),z>=0&&z<=1&&(a[p++]=z)}}return p}function nI(t,e,n,r,i){var a=6*n-12*e+6*t,o=9*e+3*r-3*t-9*n,l=3*e-3*t,s=0;if(go(o)){if(eI(a)){var c=-l/a;c>=0&&c<=1&&(i[s++]=c)}}else{var h=a*a-4*o*l;if(go(h))i[0]=-a/(2*o);else if(h>0){var d=Mo(h),c=(-a+d)/(2*o),g=(-a-d)/(2*o);c>=0&&c<=1&&(i[s++]=c),g>=0&&g<=1&&(i[s++]=g)}}return s}function kp(t,e,n,r,i,a){var o=(e-t)*i+t,l=(n-e)*i+e,s=(r-n)*i+n,c=(l-o)*i+o,h=(s-l)*i+l,d=(h-c)*i+c;a[0]=t,a[1]=o,a[2]=c,a[3]=d,a[4]=d,a[5]=h,a[6]=s,a[7]=r}function uV(t,e,n,r,i,a,o,l,s,c,h){var d,g=.005,p=1/0,m,x,_,b;Ii[0]=s,Ii[1]=c;for(var S=0;S<1;S+=.05)Fr[0]=Tn(t,n,i,o,S),Fr[1]=Tn(e,r,a,l,S),_=Au(Ii,Fr),_<p&&(d=S,p=_);p=1/0;for(var T=0;T<32&&!(g<tI);T++)m=d-g,x=d+g,Fr[0]=Tn(t,n,i,o,m),Fr[1]=Tn(e,r,a,l,m),_=Au(Fr,Ii),m>=0&&_<p?(d=m,p=_):(Du[0]=Tn(t,n,i,o,x),Du[1]=Tn(e,r,a,l,x),b=Au(Du,Ii),x<=1&&b<p?(d=x,p=b):g*=.5);return Mo(p)}function cV(t,e,n,r,i,a,o,l,s){for(var c=t,h=e,d=0,g=1/s,p=1;p<=s;p++){var m=p*g,x=Tn(t,n,i,o,m),_=Tn(e,r,a,l,m),b=x-c,S=_-h;d+=Math.sqrt(b*b+S*S),c=x,h=_}return d}function ar(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function FM(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function fV(t,e,n,r,i){var a=t-2*e+n,o=2*(e-t),l=t-r,s=0;if(go(a)){if(eI(o)){var c=-l/o;c>=0&&c<=1&&(i[s++]=c)}}else{var h=o*o-4*a*l;if(go(h)){var c=-o/(2*a);c>=0&&c<=1&&(i[s++]=c)}else if(h>0){var d=Mo(h),c=(-o+d)/(2*a),g=(-o-d)/(2*a);c>=0&&c<=1&&(i[s++]=c),g>=0&&g<=1&&(i[s++]=g)}}return s}function rI(t,e,n){var r=t+n-2*e;return r===0?.5:(t-e)/r}function Lp(t,e,n,r,i){var a=(e-t)*r+t,o=(n-e)*r+e,l=(o-a)*r+a;i[0]=t,i[1]=a,i[2]=l,i[3]=l,i[4]=o,i[5]=n}function hV(t,e,n,r,i,a,o,l,s){var c,h=.005,d=1/0;Ii[0]=o,Ii[1]=l;for(var g=0;g<1;g+=.05){Fr[0]=ar(t,n,i,g),Fr[1]=ar(e,r,a,g);var p=Au(Ii,Fr);p<d&&(c=g,d=p)}d=1/0;for(var m=0;m<32&&!(h<tI);m++){var x=c-h,_=c+h;Fr[0]=ar(t,n,i,x),Fr[1]=ar(e,r,a,x);var p=Au(Fr,Ii);if(x>=0&&p<d)c=x,d=p;else{Du[0]=ar(t,n,i,_),Du[1]=ar(e,r,a,_);var b=Au(Du,Ii);_<=1&&b<d?(c=_,d=b):h*=.5}}return Mo(d)}function dV(t,e,n,r,i,a,o){for(var l=t,s=e,c=0,h=1/o,d=1;d<=o;d++){var g=d*h,p=ar(t,n,i,g),m=ar(e,r,a,g),x=p-l,_=m-s;c+=Math.sqrt(x*x+_*_),l=p,s=m}return c}var vV=/cubic-bezier\(([0-9,\.e ]+)\)/;function iI(t){var e=t&&vV.exec(t);if(e){var n=e[1].split(","),r=+zi(n[0]),i=+zi(n[1]),a=+zi(n[2]),o=+zi(n[3]);if(isNaN(r+i+a+o))return;var l=[];return function(s){return s<=0?0:s>=1?1:Dp(0,r,a,1,s,l)&&Tn(0,i,o,1,l[0])}}}var pV=(function(){function t(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||cn,this.ondestroy=e.ondestroy||cn,this.onrestart=e.onrestart||cn,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,n){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,i=e-this._startTime-this._pausedTime,a=i/r;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,l=o?o(a):a;if(this.onframe(l),a===1)if(this.loop){var s=i%r;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=It(e)?e:Vf[e]||iI(e)},t})(),aI=(function(){function t(e){this.value=e}return t})(),gV=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var n=new aI(e);return this.insertEntry(n),n},t.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++},t.prototype.remove=function(e){var n=e.prev,r=e.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})(),Iu=(function(){function t(e){this._list=new gV,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,n){var r=this._list,i=this._map,a=null;if(i[e]==null){var o=r.len(),l=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=r.head;r.remove(s),delete i[s.key],a=s.value,this._lastRemovedEntry=s}l?l.value=n:l=new aI(n),l.key=e,r.insertEntry(l),i[e]=l}return a},t.prototype.get=function(e){var n=this._map[e],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),GM={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 di(t){return t=Math.round(t),t<0?0:t>255?255:t}function mV(t){return t=Math.round(t),t<0?0:t>360?360:t}function th(t){return t<0?0:t>1?1:t}function M0(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?di(parseFloat(e)/100*255):di(parseInt(e,10))}function Hl(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?th(parseFloat(e)/100):th(parseFloat(e))}function A0(t,e,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?t+(e-t)*n*6:n*2<1?e:n*3<2?t+(e-t)*(2/3-n)*6:t}function mo(t,e,n){return t+(e-t)*n}function Pr(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function Rx(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var oI=new Iu(20),uv=null;function Ws(t,e){uv&&Rx(uv,e),uv=oI.put(t,uv||e.slice())}function qr(t,e){if(t){e=e||[];var n=oI.get(t);if(n)return Rx(e,n);t=t+"";var r=t.replace(/ /g,"").toLowerCase();if(r in GM)return Rx(e,GM[r]),Ws(t,e),e;var i=r.length;if(r.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){Pr(e,0,0,0,1);return}return Pr(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),Ws(t,e),e}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Pr(e,0,0,0,1);return}return Pr(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),Ws(t,e),e}return}var o=r.indexOf("("),l=r.indexOf(")");if(o!==-1&&l+1===i){var s=r.substr(0,o),c=r.substr(o+1,l-(o+1)).split(","),h=1;switch(s){case"rgba":if(c.length!==4)return c.length===3?Pr(e,+c[0],+c[1],+c[2],1):Pr(e,0,0,0,1);h=Hl(c.pop());case"rgb":if(c.length>=3)return Pr(e,M0(c[0]),M0(c[1]),M0(c[2]),c.length===3?h:Hl(c[3])),Ws(t,e),e;Pr(e,0,0,0,1);return;case"hsla":if(c.length!==4){Pr(e,0,0,0,1);return}return c[3]=Hl(c[3]),Ix(c,e),Ws(t,e),e;case"hsl":if(c.length!==3){Pr(e,0,0,0,1);return}return Ix(c,e),Ws(t,e),e;default:return}}Pr(e,0,0,0,1)}}function Ix(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=Hl(t[1]),i=Hl(t[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return e=e||[],Pr(e,di(A0(o,a,n+1/3)*255),di(A0(o,a,n)*255),di(A0(o,a,n-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function yV(t){if(t){var e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=a-i,l=(a+i)/2,s,c;if(o===0)s=0,c=0;else{l<.5?c=o/(a+i):c=o/(2-a-i);var h=((a-e)/6+o/2)/o,d=((a-n)/6+o/2)/o,g=((a-r)/6+o/2)/o;e===a?s=g-d:n===a?s=1/3+h-g:r===a&&(s=2/3+d-h),s<0&&(s+=1),s>1&&(s-=1)}var p=[s*360,c,l];return t[3]!=null&&p.push(t[3]),p}}function Ox(t,e){var n=qr(t);if(n){for(var r=0;r<3;r++)e<0?n[r]=n[r]*(1-e)|0:n[r]=(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Ca(n,n.length===4?"rgba":"rgb")}}function D0(t,e,n){if(!(!(e&&e.length)||!(t>=0&&t<=1))){n=n||[];var r=t*(e.length-1),i=Math.floor(r),a=Math.ceil(r),o=e[i],l=e[a],s=r-i;return n[0]=di(mo(o[0],l[0],s)),n[1]=di(mo(o[1],l[1],s)),n[2]=di(mo(o[2],l[2],s)),n[3]=th(mo(o[3],l[3],s)),n}}function xV(t,e,n){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var r=t*(e.length-1),i=Math.floor(r),a=Math.ceil(r),o=qr(e[i]),l=qr(e[a]),s=r-i,c=Ca([di(mo(o[0],l[0],s)),di(mo(o[1],l[1],s)),di(mo(o[2],l[2],s)),th(mo(o[3],l[3],s))],"rgba");return n?{color:c,leftIndex:i,rightIndex:a,value:r}:c}}function Ao(t,e,n,r){var i=qr(t);if(t)return i=yV(i),e!=null&&(i[0]=mV(It(e)?e(i[0]):e)),n!=null&&(i[1]=Hl(It(n)?n(i[1]):n)),r!=null&&(i[2]=Hl(It(r)?r(i[2]):r)),Ca(Ix(i),"rgba")}function lI(t,e){var n=qr(t);if(n&&e!=null)return n[3]=th(e),Ca(n,"rgba")}function Ca(t,e){if(!(!t||!t.length)){var n=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(n+=","+t[3]),e+"("+n+")"}}function Ep(t,e){var n=qr(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var UM=new Iu(100);function YM(t){if(St(t)){var e=UM.get(t);return e||(e=Ox(t,-.1),UM.put(t,e)),e}else if(bg(t)){var n=ht({},t);return n.colorStops=bt(t.colorStops,function(r){return{offset:r.offset,color:Ox(r.color,-.1)}}),n}return t}function bV(t){return t.type==="linear"}function _V(t){return t.type==="radial"}(function(){return Ft.hasGlobalWindow&&It(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}})();var zx=Array.prototype.slice;function xa(t,e,n){return(e-t)*n+t}function k0(t,e,n,r){for(var i=e.length,a=0;a<i;a++)t[a]=xa(e[a],n[a],r);return t}function SV(t,e,n,r){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var l=0;l<a;l++)t[o][l]=xa(e[o][l],n[o][l],r)}return t}function cv(t,e,n,r){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+n[a]*r;return t}function WM(t,e,n,r){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var l=0;l<a;l++)t[o][l]=e[o][l]+n[o][l]*r}return t}function wV(t,e){for(var n=t.length,r=e.length,i=n>r?e:t,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},l=a;l<Math.max(n,r);l++)i.push({offset:o.offset,color:o.color.slice()})}function TV(t,e,n){var r=t,i=e;if(!(!r.push||!i.push)){var a=r.length,o=i.length;if(a!==o){var l=a>o;if(l)r.length=o;else for(var s=a;s<o;s++)r.push(n===1?i[s]:zx.call(i[s]))}for(var c=r[0]&&r[0].length,s=0;s<r.length;s++)if(n===1)isNaN(r[s])&&(r[s]=i[s]);else for(var h=0;h<c;h++)isNaN(r[s][h])&&(r[s][h]=i[s][h])}}function lp(t){if(lr(t)){var e=t.length;if(lr(t[0])){for(var n=[],r=0;r<e;r++)n.push(zx.call(t[r]));return n}return zx.call(t)}return t}function sp(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function CV(t){return lr(t&&t[0])?2:1}var fv=0,up=1,sI=2,kf=3,Bx=4,Nx=5,XM=6;function qM(t){return t===Bx||t===Nx}function hv(t){return t===up||t===sI}var Zc=[0,0,0,0],MV=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,n,r){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,l=XM,s=n;if(lr(n)){var c=CV(n);l=c,(c===1&&!ve(n[0])||c===2&&!ve(n[0][0]))&&(o=!0)}else if(ve(n)&&!To(n))l=fv;else if(St(n))if(!isNaN(+n))l=fv;else{var h=qr(n);h&&(s=h,l=kf)}else if(bg(n)){var d=ht({},s);d.colorStops=bt(n.colorStops,function(p){return{offset:p.offset,color:qr(p.color)}}),bV(n)?l=Bx:_V(n)&&(l=Nx),s=d}a===0?this.valType=l:(l!==this.valType||l===XM)&&(o=!0),this.discrete=this.discrete||o;var g={time:e,value:s,rawValue:n,percent:0};return r&&(g.easing=r,g.easingFunc=It(r)?r:Vf[r]||iI(r)),i.push(g),g},t.prototype.prepare=function(e,n){var r=this.keyframes;this._needsSort&&r.sort(function(x,_){return x.time-_.time});for(var i=this.valType,a=r.length,o=r[a-1],l=this.discrete,s=hv(i),c=qM(i),h=0;h<a;h++){var d=r[h],g=d.value,p=o.value;d.percent=d.time/e,l||(s&&h!==a-1?TV(g,p,i):c&&wV(g.colorStops,p.colorStops))}if(!l&&i!==Nx&&n&&this.needsAnimate()&&n.needsAnimate()&&i===n.valType&&!n._finished){this._additiveTrack=n;for(var m=r[0].value,h=0;h<a;h++)i===fv?r[h].additiveValue=r[h].value-m:i===kf?r[h].additiveValue=cv([],r[h].value,m,-1):hv(i)&&(r[h].additiveValue=i===up?cv([],r[h].value,m,-1):WM([],r[h].value,m,-1))}},t.prototype.step=function(e,n){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var r=this._additiveTrack!=null,i=r?"additiveValue":"value",a=this.valType,o=this.keyframes,l=o.length,s=this.propName,c=a===kf,h,d=this._lastFr,g=Math.min,p,m;if(l===1)p=m=o[0];else{if(n<0)h=0;else if(n<this._lastFrP){var x=g(d+1,l-1);for(h=x;h>=0&&!(o[h].percent<=n);h--);h=g(h,l-2)}else{for(h=d;h<l&&!(o[h].percent>n);h++);h=g(h-1,l-2)}m=o[h+1],p=o[h]}if(p&&m){this._lastFr=h,this._lastFrP=n;var _=m.percent-p.percent,b=_===0?1:g((n-p.percent)/_,1);m.easingFunc&&(b=m.easingFunc(b));var S=r?this._additiveValue:c?Zc:e[s];if((hv(a)||c)&&!S&&(S=this._additiveValue=[]),this.discrete)e[s]=b<1?p.rawValue:m.rawValue;else if(hv(a))a===up?k0(S,p[i],m[i],b):SV(S,p[i],m[i],b);else if(qM(a)){var T=p[i],A=m[i],D=a===Bx;e[s]={type:D?"linear":"radial",x:xa(T.x,A.x,b),y:xa(T.y,A.y,b),colorStops:bt(T.colorStops,function(k,I){var z=A.colorStops[I];return{offset:xa(k.offset,z.offset,b),color:sp(k0([],k.color,z.color,b))}}),global:A.global},D?(e[s].x2=xa(T.x2,A.x2,b),e[s].y2=xa(T.y2,A.y2,b)):e[s].r=xa(T.r,A.r,b)}else if(c)k0(S,p[i],m[i],b),r||(e[s]=sp(S));else{var M=xa(p[i],m[i],b);r?this._additiveValue=M:e[s]=M}r&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var n=this.valType,r=this.propName,i=this._additiveValue;n===fv?e[r]=e[r]+i:n===kf?(qr(e[r],Zc),cv(Zc,Zc,i,1),e[r]=sp(Zc)):n===up?cv(e[r],e[r],i,1):n===sI&&WM(e[r],e[r],i,1)},t})(),T_=(function(){function t(e,n,r,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=n,n&&i){y_("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=r}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,n,r){return this.whenWithKeys(e,n,Be(n),r)},t.prototype.whenWithKeys=function(e,n,r,i){for(var a=this._tracks,o=0;o<r.length;o++){var l=r[o],s=a[l];if(!s){s=a[l]=new MV(l);var c=void 0,h=this._getAdditiveTrack(l);if(h){var d=h.keyframes,g=d[d.length-1];c=g&&g.value,h.valType===kf&&c&&(c=sp(c))}else c=this._target[l];if(c==null)continue;e>0&&s.addKeyframe(0,lp(c),i),this._trackKeys.push(l)}s.addKeyframe(e,lp(n[l]),i)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var n=e.length,r=0;r<n;r++)e[r].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,n=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,n)for(var r=0;r<n.length;r++)n[r].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,n=this._trackKeys,r=0;r<n.length;r++)e[n[r]].setFinished()},t.prototype._getAdditiveTrack=function(e){var n,r=this._additiveAnimators;if(r)for(var i=0;i<r.length;i++){var a=r[i].getTrack(e);a&&(n=a)}return n},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var n=this,r=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],l=this._tracks[o],s=this._getAdditiveTrack(o),c=l.keyframes,h=c.length;if(l.prepare(i,s),l.needsAnimate())if(!this._allowDiscrete&&l.discrete){var d=c[h-1];d&&(n._target[l.propName]=d.rawValue),l.setFinished()}else r.push(l)}if(r.length||this._force){var g=new pV({life:i,loop:this._loop,delay:this._delay||0,onframe:function(p){n._started=2;var m=n._additiveAnimators;if(m){for(var x=!1,_=0;_<m.length;_++)if(m[_]._clip){x=!0;break}x||(n._additiveAnimators=null)}for(var _=0;_<r.length;_++)r[_].step(n._target,p);var b=n._onframeCbs;if(b)for(var _=0;_<b.length;_++)b[_](n._target,p)},ondestroy:function(){n._doneCallback()}});this._clip=g,this.animation&&this.animation.addClip(g),e&&g.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var n=this._clip;e&&n.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return bt(this._trackKeys,function(n){return e._tracks[n]})},t.prototype.stopTracks=function(e,n){if(!e.length||!this._clip)return!0;for(var r=this._tracks,i=this._trackKeys,a=0;a<e.length;a++){var o=r[e[a]];o&&!o.isFinished()&&(n?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var l=!0,a=0;a<i.length;a++)if(!r[i[a]].isFinished()){l=!1;break}return l&&this._abortedCallback(),l},t.prototype.saveTo=function(e,n,r){if(e){n=n||this._trackKeys;for(var i=0;i<n.length;i++){var a=n[i],o=this._tracks[a];if(!(!o||o.isFinished())){var l=o.keyframes,s=l[r?0:l.length-1];s&&(e[a]=lp(s.rawValue))}}}},t.prototype.__changeFinalValue=function(e,n){n=n||Be(e);for(var r=0;r<n.length;r++){var i=n[r],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var l=o.pop();a.addKeyframe(l.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t})();function wu(){return new Date().getTime()}var AV=(function(t){at(e,t);function e(n){var r=t.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return e.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},e.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(n){if(n.animation){var r=n.prev,i=n.next;r?r.next=i:this._head=i,i?i.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},e.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},e.prototype.update=function(n){for(var r=wu()-this._pausedTime,i=r-this._time,a=this._head;a;){var o=a.next,l=a.step(r,i);l&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=r,n||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(Mp(r),!n._paused&&n.update())}Mp(r)},e.prototype.start=function(){this._running||(this._time=wu(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=wu(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=wu()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(n,r){r=r||{},this.start();var i=new T_(n,r.loop);return this.addAnimator(i),i},e})(Kr),DV=300,L0=Ft.domSupported,E0=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=bt(t,function(i){var a=i.replace("mouse","pointer");return n.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:r}})(),ZM={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},$M=!1;function Px(t){var e=t.pointerType;return e==="pen"||e==="touch"}function kV(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function R0(t){t&&(t.zrByTouch=!0)}function LV(t,e){return Vr(t.dom,new EV(t,e),!0)}function uI(t,e){for(var n=e,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return r}var EV=(function(){function t(e,n){this.stopPropagation=cn,this.stopImmediatePropagation=cn,this.preventDefault=cn,this.type=n.type,this.target=this.currentTarget=e.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return t})(),ui={mousedown:function(t){t=Vr(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Vr(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Vr(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Vr(this.dom,t);var e=t.toElement||t.relatedTarget;uI(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){$M=!0,t=Vr(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){$M||(t=Vr(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Vr(this.dom,t),R0(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),ui.mousemove.call(this,t),ui.mousedown.call(this,t)},touchmove:function(t){t=Vr(this.dom,t),R0(t),this.handler.processGesture(t,"change"),ui.mousemove.call(this,t)},touchend:function(t){t=Vr(this.dom,t),R0(t),this.handler.processGesture(t,"end"),ui.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<DV&&ui.click.call(this,t)},pointerdown:function(t){ui.mousedown.call(this,t)},pointermove:function(t){Px(t)||ui.mousemove.call(this,t)},pointerup:function(t){ui.mouseup.call(this,t)},pointerout:function(t){Px(t)||ui.mouseout.call(this,t)}};N(["click","dblclick","contextmenu"],function(t){ui[t]=function(e){e=Vr(this.dom,e),this.trigger(t,e)}});var Vx={pointermove:function(t){Px(t)||Vx.mousemove.call(this,t)},pointerup:function(t){Vx.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function RV(t,e){var n=e.domHandlers;Ft.pointerEventsSupported?N(E0.pointer,function(r){cp(e,r,function(i){n[r].call(t,i)})}):(Ft.touchEventsSupported&&N(E0.touch,function(r){cp(e,r,function(i){n[r].call(t,i),kV(e)})}),N(E0.mouse,function(r){cp(e,r,function(i){i=b_(i),e.touching||n[r].call(t,i)})}))}function IV(t,e){Ft.pointerEventsSupported?N(ZM.pointer,n):Ft.touchEventsSupported||N(ZM.mouse,n);function n(r){function i(a){a=b_(a),uI(t,a.target)||(a=LV(t,a),e.domHandlers[r].call(t,a))}cp(e,r,i,{capture:!0})}}function cp(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,kx(t.domTarget,e,n,r)}function I0(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&q6(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var QM=(function(){function t(e,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=n}return t})(),OV=(function(t){at(e,t);function e(n,r){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=n,i.painterRoot=r,i._localHandlerScope=new QM(n,ui),L0&&(i._globalHandlerScope=new QM(document,Vx)),RV(i,i._localHandlerScope),i}return e.prototype.dispose=function(){I0(this._localHandlerScope),L0&&I0(this._globalHandlerScope)},e.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},e.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,L0&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?IV(this,r):I0(r)}},e})(Kr),cI=1;Ft.hasGlobalWindow&&(cI=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Rp=cI,Hx=.4,jx="#333",Fx="#ccc",zV="#eee",KM=__,JM=5e-5;function ul(t){return t>JM||t<-JM}var cl=[],Xs=[],O0=hi(),z0=Math.abs,Ol=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return ul(this.rotation)||ul(this.x)||ul(this.y)||ul(this.scaleX-1)||ul(this.scaleY-1)||ul(this.skewX)||ul(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||e)){r&&(KM(r),this.invTransform=null);return}r=r||hi(),n?this.getLocalTransform(r):KM(r),e&&(n?Nf(r,e,r):S_(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},t.prototype._resolveGlobalScaleRatio=function(e){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(cl);var r=cl[0]<0?-1:1,i=cl[1]<0?-1:1,a=((cl[0]-r)*n+r)/cl[0]||0,o=((cl[1]-i)*n+i)/cl[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||hi(),Uu(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,n=[];e;)n.push(e),e=e.parent;for(;e=n.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var n=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(a),n=Math.sqrt(n),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,n=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||hi(),Nf(Xs,e.invTransform,n),n=Xs);var r=this.originX,i=this.originY;(r||i)&&(O0[4]=r,O0[5]=i,Nf(Xs,n,O0),Xs[4]-=r,Xs[5]-=i,n=Xs),this.setLocalTransform(n)}},t.prototype.getGlobalScale=function(e){var n=this.transform;return e=e||[],n?(e[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),e[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(e[0]=-e[0]),n[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,n){var r=[e,n],i=this.invTransform;return i&&Gn(r,r,i),r},t.prototype.transformCoordToGlobal=function(e,n){var r=[e,n],i=this.transform;return i&&Gn(r,r,i),r},t.prototype.getLineScale=function(){var e=this.transform;return e&&z0(e[0]-1)>1e-10&&z0(e[3]-1)>1e-10?Math.sqrt(z0(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){Gx(this,e)},t.getLocalTransform=function(e,n){n=n||[];var r=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,l=e.anchorX,s=e.anchorY,c=e.rotation||0,h=e.x,d=e.y,g=e.skewX?Math.tan(e.skewX):0,p=e.skewY?Math.tan(-e.skewY):0;if(r||i||l||s){var m=r+l,x=i+s;n[4]=-m*a-g*x*o,n[5]=-x*o-p*m*a}else n[4]=n[5]=0;return n[0]=a,n[3]=o,n[1]=p*a,n[2]=g*o,c&&w_(n,n,c),n[4]+=r+h,n[5]+=i+d,n},t.initDefaultProps=(function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),t})(),eh=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Gx(t,e){for(var n=0;n<eh.length;n++){var r=eh[n];t[r]=e[r]}}function Vi(t){dv||(dv=new Iu(100)),t=t||Eo;var e=dv.get(t);return e||(e={font:t,strWidthCache:new Iu(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:gi.measureText("国",t).width,asciiCharWidth:gi.measureText("a",t).width},dv.put(t,e)),e}var dv;function BV(t){if(!(B0>=tA)){t=t||Eo;for(var e=[],n=+new Date,r=0;r<=127;r++)e[r]=gi.measureText(String.fromCharCode(r),t).width;var i=+new Date-n;return i>16?B0=tA:i>2&&B0++,e}}var B0=0,tA=5;function fI(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=BV(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function Hi(t,e){var n=t.strWidthCache,r=n.get(e);return r==null&&(r=gi.measureText(e,t.font).width,n.put(e,r)),r}function eA(t,e,n,r){var i=Hi(Vi(e),t),a=wg(e),o=Ou(0,i,n),l=jl(0,a,r),s=new Pt(o,l,i,a);return s}function C_(t,e,n,r){var i=((t||"")+"").split(`
75
+ `),a=i.length;if(a===1)return eA(i[0],e,n,r);for(var o=new Pt(0,0,0,0),l=0;l<i.length;l++){var s=eA(i[l],e,n,r);l===0?o.copy(s):o.union(s)}return o}function Ou(t,e,n,r){return n==="right"?r?t+=e:t-=e:n==="center"&&(r?t+=e/2:t-=e/2),t}function jl(t,e,n,r){return n==="middle"?r?t+=e/2:t-=e/2:n==="bottom"&&(r?t+=e:t-=e),t}function wg(t){return Vi(t).stWideCharWidth}function ji(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Ip(t,e,n){var r=e.position||"inside",i=e.distance!=null?e.distance:5,a=n.height,o=n.width,l=a/2,s=n.x,c=n.y,h="left",d="top";if(r instanceof Array)s+=ji(r[0],n.width),c+=ji(r[1],n.height),h=null,d=null;else switch(r){case"left":s-=i,c+=l,h="right",d="middle";break;case"right":s+=i+o,c+=l,d="middle";break;case"top":s+=o/2,c-=i,h="center",d="bottom";break;case"bottom":s+=o/2,c+=a+i,h="center";break;case"inside":s+=o/2,c+=l,h="center",d="middle";break;case"insideLeft":s+=i,c+=l,d="middle";break;case"insideRight":s+=o-i,c+=l,h="right",d="middle";break;case"insideTop":s+=o/2,c+=i,h="center";break;case"insideBottom":s+=o/2,c+=a-i,h="center",d="bottom";break;case"insideTopLeft":s+=i,c+=i;break;case"insideTopRight":s+=o-i,c+=i,h="right";break;case"insideBottomLeft":s+=i,c+=a-i,d="bottom";break;case"insideBottomRight":s+=o-i,c+=a-i,h="right",d="bottom";break}return t=t||{},t.x=s,t.y=c,t.align=h,t.verticalAlign=d,t}var N0="__zr_normal__",P0=eh.concat(["ignore"]),NV=Ro(eh,function(t,e){return t[e]=!0,t},{ignore:!1}),qs={},PV=new Pt(0,0,0,0),vv=[],Tg=(function(){function t(e){this.id=jR(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=n,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var n=this._textContent;if(n&&(!n.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,i=r.local,a=n.innerTransformable,o=void 0,l=void 0,s=!1;a.parent=i?this:null;var c=!1;a.copyTransform(n);var h=r.position!=null,d=r.autoOverflowArea,g=void 0;if((d||h)&&(g=PV,r.layoutRect?g.copy(r.layoutRect):g.copy(this.getBoundingRect()),i||g.applyTransform(this.transform)),h){this.calculateTextPosition?this.calculateTextPosition(qs,r,g):Ip(qs,r,g),a.x=qs.x,a.y=qs.y,o=qs.align,l=qs.verticalAlign;var p=r.origin;if(p&&r.rotation!=null){var m=void 0,x=void 0;p==="center"?(m=g.width*.5,x=g.height*.5):(m=ji(p[0],g.width),x=ji(p[1],g.height)),c=!0,a.originX=-a.x+m+(i?0:g.x),a.originY=-a.y+x+(i?0:g.y)}}r.rotation!=null&&(a.rotation=r.rotation);var _=r.offset;_&&(a.x+=_[0],a.y+=_[1],c||(a.originX=-_[0],a.originY=-_[1]));var b=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(d){var S=b.overflowRect=b.overflowRect||new Pt(0,0,0,0);a.getLocalTransform(vv),Uu(vv,vv),Pt.copy(S,g),S.applyTransform(vv)}else b.overflowRect=null;var T=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,A=void 0,D=void 0,M=void 0;T&&this.canBeInsideText()?(A=r.insideFill,D=r.insideStroke,(A==null||A==="auto")&&(A=this.getInsideTextFill()),(D==null||D==="auto")&&(D=this.getInsideTextStroke(A),M=!0)):(A=r.outsideFill,D=r.outsideStroke,(A==null||A==="auto")&&(A=this.getOutsideFill()),(D==null||D==="auto")&&(D=this.getOutsideStroke(A),M=!0)),A=A||"#000",(A!==b.fill||D!==b.stroke||M!==b.autoStroke||o!==b.align||l!==b.verticalAlign)&&(s=!0,b.fill=A,b.stroke=D,b.autoStroke=M,b.align=o,b.verticalAlign=l,n.setDefaultTextStyle(b)),n.__dirty|=_r,s&&n.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Fx:jx},t.prototype.getOutsideStroke=function(e){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&qr(n);r||(r=[255,255,255,1]);for(var i=r[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*i+(a?0:255)*(1-i);return r[3]=1,Ca(r,"rgba")},t.prototype.traverse=function(e,n){},t.prototype.attrKV=function(e,n){e==="textConfig"?this.setTextConfig(n):e==="textContent"?this.setTextContent(n):e==="clipPath"?this.setClipPath(n):e==="extra"?(this.extra=this.extra||{},ht(this.extra,n)):this[e]=n},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,n){if(typeof e=="string")this.attrKV(e,n);else if(Lt(e))for(var r=e,i=Be(r),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var n=this._normalState,r=0;r<this.animators.length;r++){var i=this.animators[r],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==N0)){var o=i.targetName,l=o?n[o]:n;i.saveTo(l)}}},t.prototype._innerSaveToNormal=function(e){var n=this._normalState;n||(n=this._normalState={}),e.textConfig&&!n.textConfig&&(n.textConfig=this.textConfig),this._savePrimaryToNormal(e,n,P0)},t.prototype._savePrimaryToNormal=function(e,n,r){for(var i=0;i<r.length;i++){var a=r[i];e[a]!=null&&!(a in n)&&(n[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var n=this.states;return n[e]||(n[e]={}),n[e]},t.prototype.clearStates=function(e){this.useState(N0,!1,e)},t.prototype.useState=function(e,n,r,i){var a=e===N0,o=this.hasState();if(!(!o&&a)){var l=this.currentStates,s=this.stateTransition;if(!(Yt(l,e)>=0&&(n||l.length===1))){var c;if(this.stateProxy&&!a&&(c=this.stateProxy(e)),c||(c=this.states&&this.states[e]),!c&&!a){y_("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(c);var h=!!(c&&c.hoverLayer||i);h&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,c,this._normalState,n,!r&&!this.__inHover&&s&&s.duration>0,s);var d=this._textContent,g=this._textGuide;return d&&d.useState(e,n,r,h),g&&g.useState(e,n,r,h),a?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~_r),c}}},t.prototype.useStates=function(e,n,r){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,l=o===a.length;if(l){for(var s=0;s<o;s++)if(e[s]!==a[s]){l=!1;break}}if(l)return;for(var s=0;s<o;s++){var c=e[s],h=void 0;this.stateProxy&&(h=this.stateProxy(c,e)),h||(h=this.states[c]),h&&i.push(h)}var d=i[o-1],g=!!(d&&d.hoverLayer||r);g&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(i),m=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(","),p,this._normalState,!1,!n&&!this.__inHover&&m&&m.duration>0,m);var x=this._textContent,_=this._textGuide;x&&x.useStates(e,n,g),_&&_.useStates(e,n,g),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!g&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~_r)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var n=e.__hostTarget;e=n?e.ignoreHostSilent?null:n:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var n=this.animators[e];n.targetName&&n.changeTarget(this[n.targetName])}},t.prototype.removeState=function(e){var n=Yt(this.currentStates,e);if(n>=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},t.prototype.replaceState=function(e,n,r){var i=this.currentStates.slice(),a=Yt(i,e),o=Yt(i,n)>=0;a>=0?o?i.splice(a,1):i[a]=n:r&&!o&&i.push(n),this.useStates(i)},t.prototype.toggleState=function(e,n){n?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var n={},r,i=0;i<e.length;i++){var a=e[i];ht(n,a),a.textConfig&&(r=r||{},ht(r,a.textConfig))}return r&&(n.textConfig=r),n},t.prototype._applyStateObj=function(e,n,r,i,a,o){var l=!(n&&i);n&&n.textConfig?(this.textConfig=ht({},i?this.textConfig:r.textConfig),ht(this.textConfig,n.textConfig)):l&&r.textConfig&&(this.textConfig=r.textConfig);for(var s={},c=!1,h=0;h<P0.length;h++){var d=P0[h],g=a&&NV[d];n&&n[d]!=null?g?(c=!0,s[d]=n[d]):this[d]=n[d]:l&&r[d]!=null&&(g?(c=!0,s[d]=r[d]):this[d]=r[d])}if(!a)for(var h=0;h<this.animators.length;h++){var p=this.animators[h],m=p.targetName;p.getLoop()||p.__changeFinalValue(m?(n||r)[m]:n||r)}c&&this._transitionState(e,s,o)},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var n=this.__zr;n&&e.addSelfToZr(n),e.__zr=n,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var n=this._textContent;n!==e&&(n&&n!==e&&this.removeTextContent(),e.innerTransformable=new Ol,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),ht(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=_r;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var n=this._textContent,r=this._textGuide;n&&(n.__inHover=e),r&&(r.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var n=this.animators;if(n)for(var r=0;r<n.length;r++)e.animation.addAnimator(n[r]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var n=this.animators;if(n)for(var r=0;r<n.length;r++)e.animation.removeAnimator(n[r]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,n,r){var i=e?this[e]:this,a=new T_(i,n,r);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,n){var r=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(n)}).done(function(){var a=i.animators,o=Yt(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,n){for(var r=this.animators,i=r.length,a=[],o=0;o<i;o++){var l=r[o];!e||e===l.scope?l.stop(n):a.push(l)}return this.animators=a,this},t.prototype.animateTo=function(e,n,r){V0(this,e,n,r)},t.prototype.animateFrom=function(e,n,r){V0(this,e,n,r,!0)},t.prototype._transitionState=function(e,n,r,i){for(var a=V0(this,n,r,i),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=_r;function n(r,i,a,o){Object.defineProperty(e,r,{get:function(){if(!this[i]){var s=this[i]=[];l(this,s)}return this[i]},set:function(s){this[a]=s[0],this[o]=s[1],this[i]=s,l(this,s)}});function l(s,c){Object.defineProperty(c,0,{get:function(){return s[a]},set:function(h){s[a]=h}}),Object.defineProperty(c,1,{get:function(){return s[o]},set:function(h){s[o]=h}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),t})();Xn(Tg,Kr);Xn(Tg,Ol);function V0(t,e,n,r,i){n=n||{};var a=[];hI(t,"",t,e,n,r,a,i);var o=a.length,l=!1,s=n.done,c=n.aborted,h=function(){l=!0,o--,o<=0&&(l?s&&s():c&&c())},d=function(){o--,o<=0&&(l?s&&s():c&&c())};o||s&&s(),a.length>0&&n.during&&a[0].during(function(m,x){n.during(x)});for(var g=0;g<a.length;g++){var p=a[g];h&&p.done(h),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function H0(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function VV(t){return lr(t[0])}function HV(t,e,n){if(lr(e[n]))if(lr(t[n])||(t[n]=[]),sr(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),H0(t[n],e[n],r))}else{var i=e[n],a=t[n],o=i.length;if(VV(i))for(var l=i[0].length,s=0;s<o;s++)a[s]?H0(a[s],i[s],l):a[s]=Array.prototype.slice.call(i[s]);else H0(a,i,o);a.length=i.length}else t[n]=e[n]}function jV(t,e){return t===e||lr(t)&&lr(e)&&FV(t,e)}function FV(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function hI(t,e,n,r,i,a,o,l){for(var s=Be(r),c=i.duration,h=i.delay,d=i.additive,g=i.setToFinal,p=!Lt(a),m=t.animators,x=[],_=0;_<s.length;_++){var b=s[_],S=r[b];if(S!=null&&n[b]!=null&&(p||a[b]))if(Lt(S)&&!lr(S)&&!bg(S)){if(e){l||(n[b]=S,t.updateDuringAnimation(e));continue}hI(t,b,n[b],S,i,a&&a[b],o,l)}else x.push(b);else l||(n[b]=S,t.updateDuringAnimation(e),x.push(b))}var T=x.length;if(!d&&T)for(var A=0;A<m.length;A++){var D=m[A];if(D.targetName===e){var M=D.stopTracks(x);if(M){var k=Yt(m,D);m.splice(k,1)}}}if(i.force||(x=Ze(x,function(O){return!jV(r[O],n[O])}),T=x.length),T>0||i.force&&!o.length){var I=void 0,z=void 0,L=void 0;if(l){z={},g&&(I={});for(var A=0;A<T;A++){var b=x[A];z[b]=n[b],g?I[b]=r[b]:n[b]=r[b]}}else if(g){L={};for(var A=0;A<T;A++){var b=x[A];L[b]=lp(n[b]),HV(n,r,b)}}var D=new T_(n,!1,!1,d?Ze(m,function(H){return H.targetName===e}):null);D.targetName=e,i.scope&&(D.scope=i.scope),g&&I&&D.whenWithKeys(0,I,x),L&&D.whenWithKeys(0,L,x),D.whenWithKeys(c??500,l?z:r,x).delay(h||0),t.addAnimator(D,e),o.push(D)}}var ie=(function(t){at(e,t);function e(n){var r=t.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(n),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(n){return this._children[n]},e.prototype.childOfName=function(n){for(var r=this._children,i=0;i<r.length;i++)if(r[i].name===n)return r[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(n){return n&&n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),this},e.prototype.addBefore=function(n,r){if(n&&n!==this&&n.parent!==this&&r&&r.parent===this){var i=this._children,a=i.indexOf(r);a>=0&&(i.splice(a,0,n),this._doAdd(n))}return this},e.prototype.replace=function(n,r){var i=Yt(this._children,n);return i>=0&&this.replaceAt(r,i),this},e.prototype.replaceAt=function(n,r){var i=this._children,a=i[r];if(n&&n!==this&&n.parent!==this&&n!==a){i[r]=n,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(n)}return this},e.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(n){var r=this.__zr,i=this._children,a=Yt(i,n);return a<0?this:(i.splice(a,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,i=0;i<n.length;i++){var a=n[i];r&&a.removeSelfFromZr(r),a.parent=null}return n.length=0,this},e.prototype.eachChild=function(n,r){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];n.call(r,o,a)}return this},e.prototype.traverse=function(n,r){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=n.call(r,a);a.isGroup&&!o&&a.traverse(n,r)}return this},e.prototype.addSelfToZr=function(n){t.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++){var i=this._children[r];i.addSelfToZr(n)}},e.prototype.removeSelfFromZr=function(n){t.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++){var i=this._children[r];i.removeSelfFromZr(n)}},e.prototype.getBoundingRect=function(n){for(var r=new Pt(0,0,0,0),i=n||this._children,a=[],o=null,l=0;l<i.length;l++){var s=i[l];if(!(s.ignore||s.invisible)){var c=s.getBoundingRect(),h=s.getLocalTransform(a);h?(Pt.applyTransform(r,c,h),o=o||r.clone(),o.union(r)):(o=o||c.clone(),o.union(c))}}return o||r},e})(Tg);ie.prototype.type="group";/*!
76
+ * ZRender, a high performance 2d drawing library.
77
+ *
78
+ * Copyright (c) 2013, Baidu Inc.
79
+ * All rights reserved.
80
+ *
81
+ * LICENSE
82
+ * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
83
+ */var fp={},dI={};function GV(t){delete dI[t]}function UV(t){if(!t)return!1;if(typeof t=="string")return Ep(t,1)<Hx;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,i=0;i<r;i++)n+=Ep(e[i].color,1);return n/=r,n<Hx}return!1}var YV=(function(){function t(e,n,r){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=n,this.id=e;var a=new sV,o=r.renderer||"canvas";fp[o]||(o=Be(fp)[0]),r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var l=new fp[o](n,a,r,e),s=r.ssr||l.ssrOnly;this.storage=a,this.painter=l;var c=!Ft.node&&!Ft.worker&&!s?new OV(l.getViewportRoot(),l.root):null,h=r.useCoarsePointer,d=h==null||h==="auto"?Ft.touchEventsSupported:!!h,g=44,p;d&&(p=zt(r.pointerSize,g)),this.handler=new QR(a,l,c,l.root,p),this.animation=new AV({stage:{update:s?null:function(){return i._flush(!0)}}}),s||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,n){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,n),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=UV(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(e){var n,r=wu();this._needsRefresh&&(n=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var i=wu();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,n){if(!this._disposed)return this.handler.findHover(e,n)},t.prototype.on=function(e,n,r){return this._disposed||this.handler.on(e,n,r),this},t.prototype.off=function(e,n){this._disposed||this.handler.off(e,n)},t.prototype.trigger=function(e,n){this._disposed||this.handler.trigger(e,n)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),n=0;n<e.length;n++)e[n]instanceof ie&&e[n].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,GV(this.id))},t})();function nA(t,e){var n=new YV(jR(),t,e);return dI[n.id]=n,n}function WV(t,e){fp[t]=e}var rA=1e-4,vI=20;function XV(t){return t.replace(/^\s+|\s+$/g,"")}var nh=Math.min,Sr=Math.max,Bi=Math.abs;function ue(t,e,n,r){var i=e[0],a=e[1],o=n[0],l=n[1],s=a-i,c=l-o;if(s===0)return c===0?o:(o+l)/2;if(r)if(s>0){if(t<=i)return o;if(t>=a)return l}else{if(t>=i)return o;if(t<=a)return l}else{if(t===i)return o;if(t===a)return l}return(t-i)/s*c+o}var At=qV;function qV(t,e,n){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return Ux(t,e,n)}function Ux(t,e,n){return St(t)?XV(t).match(/%$/)?parseFloat(t)/100*e+(n||0):parseFloat(t):t==null?NaN:+t}function gn(t,e,n){return e==null&&(e=10),e=Math.min(Math.max(0,e),vI),t=(+t).toFixed(e),n?t:+t}function yo(t){return t.sort(function(e,n){return e-n}),t}function wa(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n}return ZV(t)}function ZV(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-r)}function pI(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),a=Math.round(n(Bi(e[1]-e[0]))/r),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function $V(t,e){var n=Ro(t,function(p,m){return p+(isNaN(m)?0:m)},0);if(n===0)return[];for(var r=Math.pow(10,e),i=bt(t,function(p){return(isNaN(p)?0:p)/n*r*100}),a=r*100,o=bt(i,function(p){return Math.floor(p)}),l=Ro(o,function(p,m){return p+m},0),s=bt(i,function(p,m){return p-o[m]});l<a;){for(var c=Number.NEGATIVE_INFINITY,h=null,d=0,g=s.length;d<g;++d)s[d]>c&&(c=s[d],h=d);++o[h],s[h]=0,++l}return bt(o,function(p){return p/r})}function QV(t,e){var n=Math.max(wa(t),wa(e)),r=t+e;return n>vI?r:gn(r,n)}var iA=9007199254740991;function gI(t){var e=Math.PI*2;return(t%e+e)%e}function rh(t){return t>-rA&&t<rA}var KV=/^(?:(\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 Yu(t){if(t instanceof Date)return t;if(St(t)){var e=KV.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}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(t==null)return new Date(NaN);return new Date(Math.round(t))}function JV(t){return Math.pow(10,M_(t))}function M_(t){if(t===0)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function mI(t,e){var n=M_(t),r=Math.pow(10,n),i=t/r,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,t=a*r,n>=-20?+t.toFixed(n<0?-n:0):t}function j0(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],a=n-r;return a?i+a*(t[r]-i):i}function aA(t){t.sort(function(s,c){return l(s,c,0)?-1:1});for(var e=-1/0,n=1,r=0;r<t.length;){for(var i=t[r].interval,a=t[r].close,o=0;o<2;o++)i[o]<=e&&(i[o]=e,a[o]=o?1:1-n),e=i[o],n=a[o];i[0]===i[1]&&a[0]*a[1]!==1?t.splice(r,1):r++}return t;function l(s,c,h){return s.interval[h]<c.interval[h]||s.interval[h]===c.interval[h]&&(s.close[h]-c.close[h]===(h?-1:1)||!h&&l(s,c,1))}}function Op(t){var e=parseFloat(t);return e==t&&(e!==0||!St(t)||t.indexOf("x")<=0)?e:NaN}function tH(t){return!isNaN(Op(t))}function yI(){return Math.round(Math.random()*9)}function xI(t,e){return e===0?t:xI(e,t%e)}function oA(t,e){return t==null?e:e==null?t:t*e/xI(t,e)}var eH="[ECharts] ",nH=typeof console<"u"&&console.warn&&console.log;function rH(t,e,n){nH&&console[t](eH+e)}function bI(t,e){rH("error",t)}function jn(t){throw new Error(t)}function lA(t,e,n){return(e-t)*n+t}var _I="series\0",SI="\0_ec_\0";function ln(t){return t instanceof Array?t:t==null?[]:[t]}function zp(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var sA=["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 Dh(t){return Lt(t)&&!pt(t)&&!(t instanceof Date)?t.value:t}function iH(t){return Lt(t)&&!(t instanceof Array)}function aH(t,e,n){var r=n==="normalMerge",i=n==="replaceMerge",a=n==="replaceAll";t=t||[],e=(e||[]).slice();var o=Bt();N(e,function(s,c){if(!Lt(s)){e[c]=null;return}});var l=oH(t,o,n);return(r||i)&&lH(l,t,o,e),r&&sH(l,e),r||i?uH(l,e,i):a&&cH(l,e),fH(l),l}function oH(t,e,n){var r=[];if(n==="replaceAll")return r;for(var i=0;i<t.length;i++){var a=t[i];a&&a.id!=null&&e.set(a.id,i),r.push({existing:n==="replaceMerge"||ih(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function lH(t,e,n,r){N(r,function(i,a){if(!(!i||i.id==null)){var o=Hf(i.id),l=n.get(o);if(l!=null){var s=t[l];$r(!s.newOption,'Duplicated option on id "'+o+'".'),s.newOption=i,s.existing=e[l],r[a]=null}}})}function sH(t,e){N(e,function(n,r){if(!(!n||n.name==null))for(var i=0;i<t.length;i++){var a=t[i].existing;if(!t[i].newOption&&a&&(a.id==null||n.id==null)&&!ih(n)&&!ih(a)&&wI("name",a,n)){t[i].newOption=n,e[r]=null;return}}})}function uH(t,e,n){N(e,function(r){if(r){for(var i,a=0;(i=t[a])&&(i.newOption||ih(i.existing)||i.existing&&r.id!=null&&!wI("id",r,i.existing));)a++;i?(i.newOption=r,i.brandNew=n):t.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),a++}})}function cH(t,e){N(e,function(n){t.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function fH(t){var e=Bt();N(t,function(n){var r=n.existing;r&&e.set(r.id,n)}),N(t,function(n){var r=n.newOption;$r(!r||r.id==null||!e.get(r.id)||e.get(r.id)===n,"id duplicates: "+(r&&r.id)),r&&r.id!=null&&e.set(r.id,n),!n.keyInfo&&(n.keyInfo={})}),N(t,function(n,r){var i=n.existing,a=n.newOption,o=n.keyInfo;if(Lt(a)){if(o.name=a.name!=null?Hf(a.name):i?i.name:_I+r,i)o.id=Hf(i.id);else if(a.id!=null)o.id=Hf(a.id);else{var l=0;do o.id="\0"+o.name+"\0"+l++;while(e.get(o.id))}e.set(o.id,n)}})}function wI(t,e,n){var r=Un(e[t],null),i=Un(n[t],null);return r!=null&&i!=null&&r===i}function Hf(t){return Un(t,"")}function Un(t,e){return t==null?e:St(t)?t:ve(t)||Sx(t)?t+"":e}function A_(t){var e=t.name;return!!(e&&e.indexOf(_I))}function ih(t){return t&&t.id!=null&&Hf(t.id).indexOf(SI)===0}function hH(t){return SI+t}function dH(t,e,n){N(t,function(r){var i=r.newOption;Lt(i)&&(r.keyInfo.mainType=e,r.keyInfo.subType=vH(e,i,r.existing,n))})}function vH(t,e,n,r){var i=e.type?e.type:n?n.subType:r.determineSubType(t,e);return i}function pH(t,e){var n={},r={};return i(t||[],n),i(e||[],r,n),[a(n),a(r)];function i(o,l,s){for(var c=0,h=o.length;c<h;c++){var d=Un(o[c].seriesId,null);if(d==null)return;for(var g=ln(o[c].dataIndex),p=s&&s[d],m=0,x=g.length;m<x;m++){var _=g[m];p&&p[_]?p[_]=null:(l[d]||(l[d]={}))[_]=1}}}function a(o,l){var s=[];for(var c in o)if(o.hasOwnProperty(c)&&o[c]!=null)if(l)s.push(+c);else{var h=a(o[c],!0);h.length&&s.push({seriesId:c,dataIndex:h})}return s}}function ql(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return pt(e.dataIndex)?bt(e.dataIndex,function(n){return t.indexOfRawIndex(n)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return pt(e.name)?bt(e.name,function(n){return t.indexOfName(n)}):t.indexOfName(e.name)}function be(){var t="__ec_inner_"+gH++;return function(e){return e[t]||(e[t]={})}}var gH=yI();function jf(t,e,n){var r=D_(e,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,l=o,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(c,h){var d=Wu(t,h,c,{useDefault:s===h,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});l[h+"Models"]=d.models,l[h+"Model"]=d.models[0]}),l}function D_(t,e){var n;if(St(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var i=Bt(),a={},o=!1;return N(n,function(l,s){if(s==="dataIndex"||s==="dataIndexInside"){a[s]=l;return}var c=s.match(/^(\w+)(Index|Id|Name)$/)||[],h=c[1],d=(c[2]||"").toLowerCase();if(!(!h||!d||e&&e.includeMainTypes&&Yt(e.includeMainTypes,h)<0)){o=o||!!h;var g=i.get(h)||i.set(h,{});g[d]=l}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var En={useDefault:!0,enableAll:!1,enableNone:!1},mH={useDefault:!1,enableAll:!0,enableNone:!0};function Wu(t,e,n,r){r=r||En;var i=n.index,a=n.id,o=n.name,l={models:null,specified:i!=null||a!=null||o!=null};if(!l.specified){var s=void 0;return l.models=r.useDefault&&(s=t.getComponent(e))?[s]:[],l}if(i==="none"||i===!1){if(r.enableNone)return l.models=[],l;i=-1}return i==="all"&&(r.enableAll?i=a=o=null:i=-1),l.models=t.queryComponents({mainType:e,index:i,id:a,name:o}),l}function TI(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function yH(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function xH(t){return t==="auto"?Ft.domSupported?"html":"richText":t||"html"}function bH(t,e){var n=Bt(),r=[];return N(t,function(i){var a=e(i);(n.get(a)||(r.push(a),n.set(a,[]))).push(i)}),{keys:r,buckets:n}}function CI(t,e,n,r,i){var a=e==null||e==="auto";if(r==null)return r;if(ve(r)){var o=lA(n||0,r,i);return gn(o,a?Math.max(wa(n||0),wa(r)):e)}else{if(St(r))return i<1?n:r;for(var l=[],s=n,c=r,h=Math.max(s?s.length:0,c.length),d=0;d<h;++d){var g=t.getDimensionInfo(d);if(g&&g.type==="ordinal")l[d]=(i<1&&s?s:c)[d];else{var p=s&&s[d]?s[d]:0,m=c[d],o=lA(p,m,i);l[d]=gn(o,a?Math.max(wa(p),wa(m)):e)}}return l}}var _H=".",fl="___EC__COMPONENT__CONTAINER___",MI="___EC__EXTENDED_CLASS___";function Ni(t){var e={main:"",sub:""};if(t){var n=t.split(_H);e.main=n[0]||"",e.sub=n[1]||""}return e}function SH(t){$r(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function wH(t){return!!(t&&t[MI])}function k_(t,e){t.$constructor=t,t.extend=function(n){var r=this,i;return TH(r)?i=(function(a){at(o,a);function o(){return a.apply(this,arguments)||this}return o})(r):(i=function(){(n.$constructor||r).apply(this,arguments)},w6(i,this)),ht(i.prototype,n),i[MI]=!0,i.extend=this.extend,i.superCall=AH,i.superApply=DH,i.superClass=r,i}}function TH(t){return It(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function AI(t,e){t.extend=e.extend}var CH=Math.round(Math.random()*10);function MH(t){var e=["__\0is_clz",CH++].join("_");t.prototype[e]=!0,t.isInstance=function(n){return!!(n&&n[e])}}function AH(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function DH(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Cg(t){var e={};t.registerClass=function(r){var i=r.type||r.prototype.type;if(i){SH(i),r.prototype.type=i;var a=Ni(i);if(!a.sub)e[a.main]=r;else if(a.sub!==fl){var o=n(a);o[a.sub]=r}}return r},t.getClass=function(r,i,a){var o=e[r];if(o&&o[fl]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+r+"."+(i||"")+" is used but not imported.":r+".type should be specified.");return o},t.getClassesByMainType=function(r){var i=Ni(r),a=[],o=e[i.main];return o&&o[fl]?N(o,function(l,s){s!==fl&&a.push(l)}):a.push(o),a},t.hasClass=function(r){var i=Ni(r);return!!e[i.main]},t.getAllClassMainTypes=function(){var r=[];return N(e,function(i,a){r.push(a)}),r},t.hasSubTypes=function(r){var i=Ni(r),a=e[i.main];return a&&a[fl]};function n(r){var i=e[r.main];return(!i||!i[fl])&&(i=e[r.main]={},i[fl]=!0),i}}function zu(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(r,i,a){for(var o={},l=0;l<t.length;l++){var s=t[l][1];if(!(i&&Yt(i,s)>=0||a&&Yt(a,s)<0)){var c=r.getShallow(s,e);c!=null&&(o[t[l][0]]=c)}}return o}}var kH=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],LH=zu(kH),EH=(function(){function t(){}return t.prototype.getAreaStyle=function(e,n){return LH(this,e,n)},t})(),Yx=new Iu(50);function RH(t){if(typeof t=="string"){var e=Yx.get(t);return e&&e.image}else return t}function DI(t,e,n,r,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!n)return e;var a=Yx.get(t),o={hostEl:n,cb:r,cbPayload:i};return a?(e=a.image,!Mg(e)&&a.pending.push(o)):(e=gi.loadImage(t,uA,uA),e.__zrImageSrc=t,Yx.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function uA(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function Mg(t){return t&&t.width&&t.height}var F0=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function IH(t,e,n,r,i,a){if(!n){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
84
+ `);a=kI(n,r,i,a);for(var l=!1,s={},c=0,h=o.length;c<h;c++)LI(s,o[c],a),o[c]=s.textLine,l=l||s.isTruncated;t.text=o.join(`
85
+ `),t.isTruncated=l}function kI(t,e,n,r){r=r||{};var i=ht({},r);n=zt(n,"..."),i.maxIterations=zt(r.maxIterations,2);var a=i.minChar=zt(r.minChar,0),o=i.fontMeasureInfo=Vi(e),l=o.asciiCharWidth;i.placeholder=zt(r.placeholder,"");for(var s=t=Math.max(0,t-1),c=0;c<a&&s>=l;c++)s-=l;var h=Hi(o,n);return h>s&&(n="",h=0),s=t-h,i.ellipsis=n,i.ellipsisWidth=h,i.contentWidth=s,i.containerWidth=t,i}function LI(t,e,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r){t.textLine="",t.isTruncated=!1;return}var o=Hi(a,e);if(o<=r){t.textLine=e,t.isTruncated=!1;return}for(var l=0;;l++){if(o<=i||l>=n.maxIterations){e+=n.ellipsis;break}var s=l===0?OH(e,i,a):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,s),o=Hi(a,e)}e===""&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}function OH(t,e,n){for(var r=0,i=0,a=t.length;i<a&&r<e;i++)r+=fI(n,t.charCodeAt(i));return i}function zH(t,e,n,r){var i=L_(t),a=e.overflow,o=e.padding,l=o?o[1]+o[3]:0,s=o?o[0]+o[2]:0,c=e.font,h=a==="truncate",d=wg(c),g=zt(e.lineHeight,d),p=e.lineOverflow==="truncate",m=!1,x=e.width;x==null&&n!=null&&(x=n-l);var _=e.height;_==null&&r!=null&&(_=r-s);var b;x!=null&&(a==="break"||a==="breakAll")?b=i?EI(i,e.font,x,a==="breakAll",0).lines:[]:b=i?i.split(`
86
+ `):[];var S=b.length*g;if(_==null&&(_=S),S>_&&p){var T=Math.floor(_/g);m=m||b.length>T,b=b.slice(0,T),S=b.length*g}if(i&&h&&x!=null)for(var A=kI(x,c,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),D={},M=0;M<b.length;M++)LI(D,b[M],A),b[M]=D.textLine,m=m||D.isTruncated;for(var k=_,I=0,z=Vi(c),M=0;M<b.length;M++)I=Math.max(Hi(z,b[M]),I);x==null&&(x=I);var L=x;return k+=s,L+=l,{lines:b,height:_,outerWidth:L,outerHeight:k,lineHeight:g,calculatedLineHeight:d,contentWidth:I,contentHeight:S,width:x,isTruncated:m}}var BH=(function(){function t(){}return t})(),cA=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),NH=(function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t})();function PH(t,e,n,r,i){var a=new NH,o=L_(t);if(!o)return a;var l=e.padding,s=l?l[1]+l[3]:0,c=l?l[0]+l[2]:0,h=e.width;h==null&&n!=null&&(h=n-s);var d=e.height;d==null&&r!=null&&(d=r-c);for(var g=e.overflow,p=(g==="break"||g==="breakAll")&&h!=null?{width:h,accumWidth:0,breakAll:g==="breakAll"}:null,m=F0.lastIndex=0,x;(x=F0.exec(o))!=null;){var _=x.index;_>m&&G0(a,o.substring(m,_),e,p),G0(a,x[2],e,p,x[1]),m=F0.lastIndex}m<o.length&&G0(a,o.substring(m,o.length),e,p);var b=[],S=0,T=0,A=g==="truncate",D=e.lineOverflow==="truncate",M={};function k(mt,wt,gt){mt.width=wt,mt.lineHeight=gt,S+=gt,T=Math.max(T,wt)}t:for(var I=0;I<a.lines.length;I++){for(var z=a.lines[I],L=0,O=0,H=0;H<z.tokens.length;H++){var F=z.tokens[H],Y=F.styleName&&e.rich[F.styleName]||{},W=F.textPadding=Y.padding,V=W?W[1]+W[3]:0,X=F.font=Y.font||e.font;F.contentHeight=wg(X);var Z=zt(Y.height,F.contentHeight);if(F.innerHeight=Z,W&&(Z+=W[0]+W[2]),F.height=Z,F.lineHeight=Co(Y.lineHeight,e.lineHeight,Z),F.align=Y&&Y.align||i,F.verticalAlign=Y&&Y.verticalAlign||"middle",D&&d!=null&&S+F.lineHeight>d){var tt=a.lines.length;H>0?(z.tokens=z.tokens.slice(0,H),k(z,O,L),a.lines=a.lines.slice(0,I+1)):a.lines=a.lines.slice(0,I),a.isTruncated=a.isTruncated||a.lines.length<tt;break t}var j=Y.width,U=j==null||j==="auto";if(typeof j=="string"&&j.charAt(j.length-1)==="%")F.percentWidth=j,b.push(F),F.contentWidth=Hi(Vi(X),F.text);else{if(U){var q=Y.backgroundColor,P=q&&q.image;P&&(P=RH(P),Mg(P)&&(F.width=Math.max(F.width,P.width*Z/P.height)))}var J=A&&h!=null?h-O:null;J!=null&&J<F.width?!U||J<V?(F.text="",F.width=F.contentWidth=0):(IH(M,F.text,J-V,X,e.ellipsis,{minChar:e.truncateMinChar}),F.text=M.text,a.isTruncated=a.isTruncated||M.isTruncated,F.width=F.contentWidth=Hi(Vi(X),F.text)):F.contentWidth=Hi(Vi(X),F.text)}F.width+=V,O+=F.width,Y&&(L=Math.max(L,F.lineHeight))}k(z,O,L)}a.outerWidth=a.width=zt(h,T),a.outerHeight=a.height=zt(d,S),a.contentHeight=S,a.contentWidth=T,a.outerWidth+=s,a.outerHeight+=c;for(var I=0;I<b.length;I++){var F=b[I],st=F.percentWidth;F.width=parseInt(st,10)/100*a.width}return a}function G0(t,e,n,r,i){var a=e==="",o=i&&n.rich[i]||{},l=t.lines,s=o.font||n.font,c=!1,h,d;if(r){var g=o.padding,p=g?g[1]+g[3]:0;if(o.width!=null&&o.width!=="auto"){var m=ji(o.width,r.width)+p;l.length>0&&m+r.accumWidth>r.width&&(h=e.split(`
87
+ `),c=!0),r.accumWidth=m}else{var x=EI(e,s,r.width,r.breakAll,r.accumWidth);r.accumWidth=x.accumWidth+p,d=x.linesWidths,h=x.lines}}h||(h=e.split(`
88
+ `));for(var _=Vi(s),b=0;b<h.length;b++){var S=h[b],T=new BH;if(T.styleName=i,T.text=S,T.isLineHolder=!S&&!a,typeof o.width=="number"?T.width=o.width:T.width=d?d[b]:Hi(_,S),!b&&!c){var A=(l[l.length-1]||(l[0]=new cA)).tokens,D=A.length;D===1&&A[0].isLineHolder?A[0]=T:(S||!D||a)&&A.push(T)}else l.push(new cA([T]))}}function VH(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var HH=Ro(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function jH(t){return VH(t)?!!HH[t]:!0}function EI(t,e,n,r,i){for(var a=[],o=[],l="",s="",c=0,h=0,d=Vi(e),g=0;g<t.length;g++){var p=t.charAt(g);if(p===`
89
+ `){s&&(l+=s,h+=c),a.push(l),o.push(h),l="",s="",c=0,h=0;continue}var m=fI(d,p.charCodeAt(0)),x=r?!1:!jH(p);if(a.length?h+m>n:i+h+m>n){h?(l||s)&&(x?(l||(l=s,s="",c=0,h=c),a.push(l),o.push(h-c),s+=p,c+=m,l="",h=c):(s&&(l+=s,s="",c=0),a.push(l),o.push(h),l=p,h=m)):x?(a.push(s),o.push(c),s=p,c=m):(a.push(p),o.push(m));continue}h+=m,x?(s+=p,c+=m):(s&&(l+=s,s="",c=0),l+=p)}return s&&(l+=s),l&&(a.push(l),o.push(h)),a.length===1&&(h+=i),{accumWidth:h,lines:a,linesWidths:o}}function fA(t,e,n,r,i,a){if(t.baseX=n,t.baseY=r,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,l=e.height*2;Pt.set(hA,Ou(n,o,i),jl(r,l,a),o,l),Pt.intersect(e,hA,null,dA);var s=dA.outIntersectRect;t.outerWidth=s.width,t.outerHeight=s.height,t.baseX=Ou(s.x,s.width,i,!0),t.baseY=jl(s.y,s.height,a,!0)}}var hA=new Pt(0,0,0,0),dA={outIntersectRect:{},clamp:!0};function L_(t){return t!=null?t+="":t=""}function FH(t){var e=L_(t.text),n=t.font,r=Hi(Vi(n),e),i=wg(n);return Wx(t,r,i,null)}function Wx(t,e,n,r){var i=new Pt(Ou(t.x||0,e,t.textAlign),jl(t.y||0,n,t.textBaseline),e,n),a=r??(RI(t)?t.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function RI(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var Xx="__zr_style_"+Math.round(Math.random()*10),Fl={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ag={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Fl[Xx]=!0;var vA=["z","z2","invisible"],GH=["invisible"],Xu=(function(t){at(e,t);function e(n){return t.call(this,n)||this}return e.prototype._init=function(n){for(var r=Be(n),i=0;i<r.length;i++){var a=r[i];a==="style"?this.useStyle(n[a]):t.prototype.attrKV.call(this,a,n[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(n,r,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&UH(this,n,r)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths&&this.__clipPaths.length){for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1}if(a&&this.parent)for(var s=this.parent;s;){if(s.ignore)return!1;s=s.parent}return!0},e.prototype.contain=function(n,r){return this.rectContain(n,r)},e.prototype.traverse=function(n,r){n.call(r,this)},e.prototype.rectContain=function(n,r){var i=this.transformCoordToLocal(n,r),a=this.getBoundingRect();return a.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,l=a.shadowOffsetX||0,s=a.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new Pt(0,0,0,0)),r?Pt.applyTransform(n,i,r):n.copy(i),(o||l||s)&&(n.width+=o*2+Math.abs(l),n.height+=o*2+Math.abs(s),n.x=Math.min(n.x,n.x+l-o),n.y=Math.min(n.y,n.y+s-o));var c=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-c),n.y=Math.floor(n.y-c),n.width=Math.ceil(n.width+1+c*2),n.height=Math.ceil(n.height+1+c*2))}return n},e.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new Pt(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(n){return this.animate("style",n)},e.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(n,r){n!=="style"?t.prototype.attrKV.call(this,n,r):this.style?this.setStyle(r):this.useStyle(r)},e.prototype.setStyle=function(n,r){return typeof n=="string"?this.style[n]=r:ht(this.style,n),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=Df,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Df)},e.prototype.styleUpdated=function(){this.__dirty&=~Df},e.prototype.createStyle=function(n){return Sg(Fl,n)},e.prototype.useStyle=function(n){n[Xx]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},e.prototype.isStyleObject=function(n){return n[Xx]},e.prototype._innerSaveToNormal=function(n){t.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(n,r,vA)},e.prototype._applyStateObj=function(n,r,i,a,o,l){t.prototype._applyStateObj.call(this,n,r,i,a,o,l);var s=!(r&&a),c;if(r&&r.style?o?a?c=r.style:(c=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(c,r.style)):(c=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(c,r.style)):s&&(c=i.style),c)if(o){var h=this.style;if(this.style=this.createStyle(s?{}:h),s)for(var d=Be(h),g=0;g<d.length;g++){var p=d[g];p in c&&(c[p]=c[p],this.style[p]=h[p])}for(var m=Be(c),g=0;g<m.length;g++){var p=m[g];this.style[p]=this.style[p]}this._transitionState(n,{style:c},l,this.getAnimationStyleProps())}else this.useStyle(c);for(var x=this.__inHover?GH:vA,g=0;g<x.length;g++){var p=x[g];r&&r[p]!=null?this[p]=r[p]:s&&i[p]!=null&&(this[p]=i[p])}},e.prototype._mergeStates=function(n){for(var r=t.prototype._mergeStates.call(this,n),i,a=0;a<n.length;a++){var o=n[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(r.style=i),r},e.prototype._mergeStyle=function(n,r){return ht(n,r),n},e.prototype.getAnimationStyleProps=function(){return Ag},e.initDefaultProps=(function(){var n=e.prototype;n.type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,n.__dirty=_r|Df})(),e})(Tg),U0=new Pt(0,0,0,0),Y0=new Pt(0,0,0,0);function UH(t,e,n){return U0.copy(t.getBoundingRect()),t.transform&&U0.applyTransform(t.transform),Y0.width=e,Y0.height=n,!U0.intersect(Y0)}var Gr=Math.min,Ur=Math.max,W0=Math.sin,X0=Math.cos,hl=Math.PI*2,pv=Gu(),gv=Gu(),mv=Gu();function pA(t,e,n,r,i,a){i[0]=Gr(t,n),i[1]=Gr(e,r),a[0]=Ur(t,n),a[1]=Ur(e,r)}var gA=[],mA=[];function YH(t,e,n,r,i,a,o,l,s,c){var h=nI,d=Tn,g=h(t,n,i,o,gA);s[0]=1/0,s[1]=1/0,c[0]=-1/0,c[1]=-1/0;for(var p=0;p<g;p++){var m=d(t,n,i,o,gA[p]);s[0]=Gr(m,s[0]),c[0]=Ur(m,c[0])}g=h(e,r,a,l,mA);for(var p=0;p<g;p++){var x=d(e,r,a,l,mA[p]);s[1]=Gr(x,s[1]),c[1]=Ur(x,c[1])}s[0]=Gr(t,s[0]),c[0]=Ur(t,c[0]),s[0]=Gr(o,s[0]),c[0]=Ur(o,c[0]),s[1]=Gr(e,s[1]),c[1]=Ur(e,c[1]),s[1]=Gr(l,s[1]),c[1]=Ur(l,c[1])}function WH(t,e,n,r,i,a,o,l){var s=rI,c=ar,h=Ur(Gr(s(t,n,i),1),0),d=Ur(Gr(s(e,r,a),1),0),g=c(t,n,i,h),p=c(e,r,a,d);o[0]=Gr(t,i,g),o[1]=Gr(e,a,p),l[0]=Ur(t,i,g),l[1]=Ur(e,a,p)}function XH(t,e,n,r,i,a,o,l,s){var c=bu,h=_u,d=Math.abs(i-a);if(d%hl<1e-4&&d>1e-4){l[0]=t-n,l[1]=e-r,s[0]=t+n,s[1]=e+r;return}if(pv[0]=X0(i)*n+t,pv[1]=W0(i)*r+e,gv[0]=X0(a)*n+t,gv[1]=W0(a)*r+e,c(l,pv,gv),h(s,pv,gv),i=i%hl,i<0&&(i=i+hl),a=a%hl,a<0&&(a=a+hl),i>a&&!o?a+=hl:i<a&&o&&(i+=hl),o){var g=a;a=i,i=g}for(var p=0;p<a;p+=Math.PI/2)p>i&&(mv[0]=X0(p)*n+t,mv[1]=W0(p)*r+e,c(l,mv,l),h(s,mv,s))}var we={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},dl=[],vl=[],Mi=[],no=[],Ai=[],Di=[],q0=Math.min,Z0=Math.max,pl=Math.cos,gl=Math.sin,va=Math.abs,qx=Math.PI,ho=qx*2,$0=typeof Float32Array<"u",$c=[];function Q0(t){var e=Math.round(t/qx*1e8)/1e8;return e%2*qx}function E_(t,e){var n=Q0(t[0]);n<0&&(n+=ho);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=ho?i=n+ho:e&&n-i>=ho?i=n-ho:!e&&n>i?i=n+(ho-Q0(n-i)):e&&n<i&&(i=n-(ho-Q0(i-n))),t[0]=n,t[1]=i}var Zl=(function(){function t(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 t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,n,r){r=r||0,r>0&&(this._ux=va(r/Rp/e)||0,this._uy=va(r/Rp/n)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,n){return this._drawPendingPt(),this.addData(we.M,e,n),this._ctx&&this._ctx.moveTo(e,n),this._x0=e,this._y0=n,this._xi=e,this._yi=n,this},t.prototype.lineTo=function(e,n){var r=va(e-this._xi),i=va(n-this._yi),a=r>this._ux||i>this._uy;if(this.addData(we.L,e,n),this._ctx&&a&&this._ctx.lineTo(e,n),a)this._xi=e,this._yi=n,this._pendingPtDist=0;else{var o=r*r+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=n,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,n,r,i,a,o){return this._drawPendingPt(),this.addData(we.C,e,n,r,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,n,r,i,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,n,r,i){return this._drawPendingPt(),this.addData(we.Q,e,n,r,i),this._ctx&&this._ctx.quadraticCurveTo(e,n,r,i),this._xi=r,this._yi=i,this},t.prototype.arc=function(e,n,r,i,a,o){this._drawPendingPt(),$c[0]=i,$c[1]=a,E_($c,o),i=$c[0],a=$c[1];var l=a-i;return this.addData(we.A,e,n,r,r,i,l,0,o?0:1),this._ctx&&this._ctx.arc(e,n,r,i,a,o),this._xi=pl(a)*r+e,this._yi=gl(a)*r+n,this},t.prototype.arcTo=function(e,n,r,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,n,r,i,a),this},t.prototype.rect=function(e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,n,r,i),this.addData(we.R,e,n,r,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(we.Z);var e=this._ctx,n=this._x0,r=this._y0;return e&&e.closePath(),this._xi=n,this._yi=r,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var n=e.length;!(this.data&&this.data.length===n)&&$0&&(this.data=new Float32Array(n));for(var r=0;r<n;r++)this.data[r]=e[r];this._len=n}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var n=e.length,r=0,i=this._len,a=0;a<n;a++)r+=e[a].len();var o=this.data;if($0&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+r),i>0&&o))for(var l=0;l<i;l++)this.data[l]=o[l];for(var a=0;a<n;a++)for(var s=e[a].data,l=0;l<s.length;l++)this.data[i++]=s[l];this._len=i}},t.prototype.addData=function(e,n,r,i,a,o,l,s,c){if(this._saveData){var h=this.data;this._len+arguments.length>h.length&&(this._expandData(),h=this.data);for(var d=0;d<arguments.length;d++)h[this._len++]=arguments[d]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],n=0;n<this._len;n++)e[n]=this.data[n];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,$0&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Mi[0]=Mi[1]=Ai[0]=Ai[1]=Number.MAX_VALUE,no[0]=no[1]=Di[0]=Di[1]=-Number.MAX_VALUE;var e=this.data,n=0,r=0,i=0,a=0,o;for(o=0;o<this._len;){var l=e[o++],s=o===1;switch(s&&(n=e[o],r=e[o+1],i=n,a=r),l){case we.M:n=i=e[o++],r=a=e[o++],Ai[0]=i,Ai[1]=a,Di[0]=i,Di[1]=a;break;case we.L:pA(n,r,e[o],e[o+1],Ai,Di),n=e[o++],r=e[o++];break;case we.C:YH(n,r,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Ai,Di),n=e[o++],r=e[o++];break;case we.Q:WH(n,r,e[o++],e[o++],e[o],e[o+1],Ai,Di),n=e[o++],r=e[o++];break;case we.A:var c=e[o++],h=e[o++],d=e[o++],g=e[o++],p=e[o++],m=e[o++]+p;o+=1;var x=!e[o++];s&&(i=pl(p)*d+c,a=gl(p)*g+h),XH(c,h,d,g,p,m,x,Ai,Di),n=pl(m)*d+c,r=gl(m)*g+h;break;case we.R:i=n=e[o++],a=r=e[o++];var _=e[o++],b=e[o++];pA(i,a,i+_,a+b,Ai,Di);break;case we.Z:n=i,r=a;break}bu(Mi,Mi,Ai),_u(no,no,Di)}return o===0&&(Mi[0]=Mi[1]=no[0]=no[1]=0),new Pt(Mi[0],Mi[1],no[0]-Mi[0],no[1]-Mi[1])},t.prototype._calculateLength=function(){var e=this.data,n=this._len,r=this._ux,i=this._uy,a=0,o=0,l=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,h=0,d=0,g=0;g<n;){var p=e[g++],m=g===1;m&&(a=e[g],o=e[g+1],l=a,s=o);var x=-1;switch(p){case we.M:a=l=e[g++],o=s=e[g++];break;case we.L:{var _=e[g++],b=e[g++],S=_-a,T=b-o;(va(S)>r||va(T)>i||g===n-1)&&(x=Math.sqrt(S*S+T*T),a=_,o=b);break}case we.C:{var A=e[g++],D=e[g++],_=e[g++],b=e[g++],M=e[g++],k=e[g++];x=cV(a,o,A,D,_,b,M,k,10),a=M,o=k;break}case we.Q:{var A=e[g++],D=e[g++],_=e[g++],b=e[g++];x=dV(a,o,A,D,_,b,10),a=_,o=b;break}case we.A:var I=e[g++],z=e[g++],L=e[g++],O=e[g++],H=e[g++],F=e[g++],Y=F+H;g+=1,m&&(l=pl(H)*L+I,s=gl(H)*O+z),x=Z0(L,O)*q0(ho,Math.abs(F)),a=pl(Y)*L+I,o=gl(Y)*O+z;break;case we.R:{l=a=e[g++],s=o=e[g++];var W=e[g++],V=e[g++];x=W*2+V*2;break}case we.Z:{var S=l-a,T=s-o;x=Math.sqrt(S*S+T*T),a=l,o=s;break}}x>=0&&(c[d++]=x,h+=x)}return this._pathLen=h,h},t.prototype.rebuildPath=function(e,n){var r=this.data,i=this._ux,a=this._uy,o=this._len,l,s,c,h,d,g,p=n<1,m,x,_=0,b=0,S,T=0,A,D;if(!(p&&(this._pathSegLen||this._calculateLength(),m=this._pathSegLen,x=this._pathLen,S=n*x,!S)))t:for(var M=0;M<o;){var k=r[M++],I=M===1;switch(I&&(c=r[M],h=r[M+1],l=c,s=h),k!==we.L&&T>0&&(e.lineTo(A,D),T=0),k){case we.M:l=c=r[M++],s=h=r[M++],e.moveTo(c,h);break;case we.L:{d=r[M++],g=r[M++];var z=va(d-c),L=va(g-h);if(z>i||L>a){if(p){var O=m[b++];if(_+O>S){var H=(S-_)/O;e.lineTo(c*(1-H)+d*H,h*(1-H)+g*H);break t}_+=O}e.lineTo(d,g),c=d,h=g,T=0}else{var F=z*z+L*L;F>T&&(A=d,D=g,T=F)}break}case we.C:{var Y=r[M++],W=r[M++],V=r[M++],X=r[M++],Z=r[M++],tt=r[M++];if(p){var O=m[b++];if(_+O>S){var H=(S-_)/O;kp(c,Y,V,Z,H,dl),kp(h,W,X,tt,H,vl),e.bezierCurveTo(dl[1],vl[1],dl[2],vl[2],dl[3],vl[3]);break t}_+=O}e.bezierCurveTo(Y,W,V,X,Z,tt),c=Z,h=tt;break}case we.Q:{var Y=r[M++],W=r[M++],V=r[M++],X=r[M++];if(p){var O=m[b++];if(_+O>S){var H=(S-_)/O;Lp(c,Y,V,H,dl),Lp(h,W,X,H,vl),e.quadraticCurveTo(dl[1],vl[1],dl[2],vl[2]);break t}_+=O}e.quadraticCurveTo(Y,W,V,X),c=V,h=X;break}case we.A:var j=r[M++],U=r[M++],q=r[M++],P=r[M++],J=r[M++],st=r[M++],mt=r[M++],wt=!r[M++],gt=q>P?q:P,dt=va(q-P)>.001,Dt=J+st,yt=!1;if(p){var O=m[b++];_+O>S&&(Dt=J+st*(S-_)/O,yt=!0),_+=O}if(dt&&e.ellipse?e.ellipse(j,U,q,P,mt,J,Dt,wt):e.arc(j,U,gt,J,Dt,wt),yt)break t;I&&(l=pl(J)*q+j,s=gl(J)*P+U),c=pl(Dt)*q+j,h=gl(Dt)*P+U;break;case we.R:l=c=r[M],s=h=r[M+1],d=r[M++],g=r[M++];var Mt=r[M++],_e=r[M++];if(p){var O=m[b++];if(_+O>S){var Jt=S-_;e.moveTo(d,g),e.lineTo(d+q0(Jt,Mt),g),Jt-=Mt,Jt>0&&e.lineTo(d+Mt,g+q0(Jt,_e)),Jt-=_e,Jt>0&&e.lineTo(d+Z0(Mt-Jt,0),g+_e),Jt-=Mt,Jt>0&&e.lineTo(d,g+Z0(_e-Jt,0));break t}_+=O}e.rect(d,g,Mt,_e);break;case we.Z:if(p){var O=m[b++];if(_+O>S){var H=(S-_)/O;e.lineTo(c*(1-H)+l*H,h*(1-H)+s*H);break t}_+=O}e.closePath(),c=l,h=s}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=we,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})();function Zs(t,e,n,r,i,a,o){if(i===0)return!1;var l=i,s=0,c=t;if(o>e+l&&o>r+l||o<e-l&&o<r-l||a>t+l&&a>n+l||a<t-l&&a<n-l)return!1;if(t!==n)s=(e-r)/(t-n),c=(t*r-n*e)/(t-n);else return Math.abs(a-t)<=l/2;var h=s*a-o+c,d=h*h/(s*s+1);return d<=l/2*l/2}function qH(t,e,n,r,i,a,o,l,s,c,h){if(s===0)return!1;var d=s;if(h>e+d&&h>r+d&&h>a+d&&h>l+d||h<e-d&&h<r-d&&h<a-d&&h<l-d||c>t+d&&c>n+d&&c>i+d&&c>o+d||c<t-d&&c<n-d&&c<i-d&&c<o-d)return!1;var g=uV(t,e,n,r,i,a,o,l,c,h);return g<=d/2}function ZH(t,e,n,r,i,a,o,l,s){if(o===0)return!1;var c=o;if(s>e+c&&s>r+c&&s>a+c||s<e-c&&s<r-c&&s<a-c||l>t+c&&l>n+c&&l>i+c||l<t-c&&l<n-c&&l<i-c)return!1;var h=hV(t,e,n,r,i,a,l,s);return h<=c/2}var yA=Math.PI*2;function xo(t){return t%=yA,t<0&&(t+=yA),t}var Qc=Math.PI*2;function $H(t,e,n,r,i,a,o,l,s){if(o===0)return!1;var c=o;l-=t,s-=e;var h=Math.sqrt(l*l+s*s);if(h-c>n||h+c<n)return!1;if(Math.abs(r-i)%Qc<1e-4)return!0;if(a){var d=r;r=xo(i),i=xo(d)}else r=xo(r),i=xo(i);r>i&&(i+=Qc);var g=Math.atan2(s,l);return g<0&&(g+=Qc),g>=r&&g<=i||g+Qc>=r&&g+Qc<=i}function ba(t,e,n,r,i,a){if(a>e&&a>r||a<e&&a<r||r===e)return 0;var o=(a-e)/(r-e),l=r<e?1:-1;(o===1||o===0)&&(l=r<e?.5:-.5);var s=o*(n-t)+t;return s===i?1/0:s>i?l:0}var ro=Zl.CMD,ml=Math.PI*2,QH=1e-4;function KH(t,e){return Math.abs(t-e)<QH}var Vn=[-1,-1,-1],jr=[-1,-1];function JH(){var t=jr[0];jr[0]=jr[1],jr[1]=t}function t8(t,e,n,r,i,a,o,l,s,c){if(c>e&&c>r&&c>a&&c>l||c<e&&c<r&&c<a&&c<l)return 0;var h=Dp(e,r,a,l,c,Vn);if(h===0)return 0;for(var d=0,g=-1,p=void 0,m=void 0,x=0;x<h;x++){var _=Vn[x],b=_===0||_===1?.5:1,S=Tn(t,n,i,o,_);S<s||(g<0&&(g=nI(e,r,a,l,jr),jr[1]<jr[0]&&g>1&&JH(),p=Tn(e,r,a,l,jr[0]),g>1&&(m=Tn(e,r,a,l,jr[1]))),g===2?_<jr[0]?d+=p<e?b:-b:_<jr[1]?d+=m<p?b:-b:d+=l<m?b:-b:_<jr[0]?d+=p<e?b:-b:d+=l<p?b:-b)}return d}function e8(t,e,n,r,i,a,o,l){if(l>e&&l>r&&l>a||l<e&&l<r&&l<a)return 0;var s=fV(e,r,a,l,Vn);if(s===0)return 0;var c=rI(e,r,a);if(c>=0&&c<=1){for(var h=0,d=ar(e,r,a,c),g=0;g<s;g++){var p=Vn[g]===0||Vn[g]===1?.5:1,m=ar(t,n,i,Vn[g]);m<o||(Vn[g]<c?h+=d<e?p:-p:h+=a<d?p:-p)}return h}else{var p=Vn[0]===0||Vn[0]===1?.5:1,m=ar(t,n,i,Vn[0]);return m<o?0:a<e?p:-p}}function n8(t,e,n,r,i,a,o,l){if(l-=e,l>n||l<-n)return 0;var s=Math.sqrt(n*n-l*l);Vn[0]=-s,Vn[1]=s;var c=Math.abs(r-i);if(c<1e-4)return 0;if(c>=ml-1e-4){r=0,i=ml;var h=a?1:-1;return o>=Vn[0]+t&&o<=Vn[1]+t?h:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=ml,i+=ml);for(var g=0,p=0;p<2;p++){var m=Vn[p];if(m+t>o){var x=Math.atan2(l,m),h=a?1:-1;x<0&&(x=ml+x),(x>=r&&x<=i||x+ml>=r&&x+ml<=i)&&(x>Math.PI/2&&x<Math.PI*1.5&&(h=-h),g+=h)}}return g}function II(t,e,n,r,i){for(var a=t.data,o=t.len(),l=0,s=0,c=0,h=0,d=0,g,p,m=0;m<o;){var x=a[m++],_=m===1;switch(x===ro.M&&m>1&&(n||(l+=ba(s,c,h,d,r,i))),_&&(s=a[m],c=a[m+1],h=s,d=c),x){case ro.M:h=a[m++],d=a[m++],s=h,c=d;break;case ro.L:if(n){if(Zs(s,c,a[m],a[m+1],e,r,i))return!0}else l+=ba(s,c,a[m],a[m+1],r,i)||0;s=a[m++],c=a[m++];break;case ro.C:if(n){if(qH(s,c,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],e,r,i))return!0}else l+=t8(s,c,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;s=a[m++],c=a[m++];break;case ro.Q:if(n){if(ZH(s,c,a[m++],a[m++],a[m],a[m+1],e,r,i))return!0}else l+=e8(s,c,a[m++],a[m++],a[m],a[m+1],r,i)||0;s=a[m++],c=a[m++];break;case ro.A:var b=a[m++],S=a[m++],T=a[m++],A=a[m++],D=a[m++],M=a[m++];m+=1;var k=!!(1-a[m++]);g=Math.cos(D)*T+b,p=Math.sin(D)*A+S,_?(h=g,d=p):l+=ba(s,c,g,p,r,i);var I=(r-b)*A/T+b;if(n){if($H(b,S,A,D,D+M,k,e,I,i))return!0}else l+=n8(b,S,A,D,D+M,k,I,i);s=Math.cos(D+M)*T+b,c=Math.sin(D+M)*A+S;break;case ro.R:h=s=a[m++],d=c=a[m++];var z=a[m++],L=a[m++];if(g=h+z,p=d+L,n){if(Zs(h,d,g,d,e,r,i)||Zs(g,d,g,p,e,r,i)||Zs(g,p,h,p,e,r,i)||Zs(h,p,h,d,e,r,i))return!0}else l+=ba(g,d,g,p,r,i),l+=ba(h,p,h,d,r,i);break;case ro.Z:if(n){if(Zs(s,c,h,d,e,r,i))return!0}else l+=ba(s,c,h,d,r,i);s=h,c=d;break}}return!n&&!KH(c,d)&&(l+=ba(s,c,h,d,r,i)||0),l!==0}function r8(t,e,n){return II(t,0,!1,e,n)}function i8(t,e,n,r){return II(t,e,!0,n,r)}var OI=qt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Fl),a8={style:qt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ag.style)},K0=eh.concat(["invisible","culling","z","z2","zlevel","parent"]),fe=(function(t){at(e,t);function e(n){return t.call(this,n)||this}return e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(s){n.buildPath(s,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var l=0;l<K0.length;++l)i[K0[l]]=this[K0[l]];i.__dirty|=_r}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(n){var r=Be(n);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<r.length;a++){var o=r[a],l=n[o];o==="style"?this.style?ht(this.style,l):this.useStyle(l):o==="shape"?ht(this.shape,l):t.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 n=this.style.fill;if(n!=="none"){if(St(n)){var r=Ep(n,0);return r>.5?jx:r>.2?zV:Fx}else if(n)return Fx}return jx},e.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(St(r)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Ep(n,0)<Hx;if(a===o)return r}},e.prototype.buildPath=function(n,r,i){},e.prototype.pathUpdated=function(){this.__dirty&=~gu},e.prototype.getUpdatedPathProxy=function(n){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,n),this.path},e.prototype.createPathProxy=function(){this.path=new Zl(!1)},e.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return!(r==null||r==="none"||!(n.lineWidth>0))},e.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,i=!n;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&gu)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),n=o.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var l=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||i){l.copy(n);var s=r.strokeNoScale?this.getLineScale():1,c=r.lineWidth;if(!this.hasFill()){var h=this.strokeContainThreshold;c=Math.max(c,h??4)}s>1e-10&&(l.width+=c/s,l.height+=c/s,l.x-=c/s/2,l.y-=c/s/2)}return l}return n},e.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),a=this.getBoundingRect(),o=this.style;if(n=i[0],r=i[1],a.contain(n,r)){var l=this.path;if(this.hasStroke()){var s=o.lineWidth,c=o.strokeNoScale?this.getLineScale():1;if(c>1e-10&&(this.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),i8(l,s/c,n,r)))return!0}if(this.hasFill())return r8(l,n,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=gu,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(n){return this.animate("shape",n)},e.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):t.prototype.attrKV.call(this,n,r)},e.prototype.setShape=function(n,r){var i=this.shape;return i||(i=this.shape={}),typeof n=="string"?i[n]=r:ht(i,n),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&gu)},e.prototype.createStyle=function(n){return Sg(OI,n)},e.prototype._innerSaveToNormal=function(n){t.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=ht({},this.shape))},e.prototype._applyStateObj=function(n,r,i,a,o,l){t.prototype._applyStateObj.call(this,n,r,i,a,o,l);var s=!(r&&a),c;if(r&&r.shape?o?a?c=r.shape:(c=ht({},i.shape),ht(c,r.shape)):(c=ht({},a?this.shape:i.shape),ht(c,r.shape)):s&&(c=i.shape),c)if(o){this.shape=ht({},this.shape);for(var h={},d=Be(c),g=0;g<d.length;g++){var p=d[g];typeof c[p]=="object"?this.shape[p]=c[p]:h[p]=c[p]}this._transitionState(n,{shape:h},l)}else this.shape=c,this.dirtyShape()},e.prototype._mergeStates=function(n){for(var r=t.prototype._mergeStates.call(this,n),i,a=0;a<n.length;a++){var o=n[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(r.shape=i),r},e.prototype.getAnimationStyleProps=function(){return a8},e.prototype.isZeroArea=function(){return!1},e.extend=function(n){var r=(function(a){at(o,a);function o(l){var s=a.call(this,l)||this;return n.init&&n.init.call(s,l),s}return o.prototype.getDefaultStyle=function(){return Rt(n.style)},o.prototype.getDefaultShape=function(){return Rt(n.shape)},o})(e);for(var i in n)typeof n[i]=="function"&&(r.prototype[i]=n[i]);return r},e.initDefaultProps=(function(){var n=e.prototype;n.type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,n.__dirty=_r|Df|gu})(),e})(Xu),o8=qt({strokeFirst:!0,font:Eo,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},OI),Bp=(function(t){at(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return RI(this.style)},e.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(n){return Sg(o8,n)},e.prototype.setBoundingRect=function(n){this._rect=n},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=FH(this.style)),this._rect},e.initDefaultProps=(function(){var n=e.prototype;n.dirtyRectTolerance=10})(),e})(Xu);Bp.prototype.type="tspan";var l8=qt({x:0,y:0},Fl),s8={style:qt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ag.style)};function u8(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Jr=(function(t){at(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(n){return Sg(l8,n)},e.prototype._getSize=function(n){var r=this.style,i=r[n];if(i!=null)return i;var a=u8(r.image)?r.image:this.__image;if(!a)return 0;var o=n==="width"?"height":"width",l=r[o];return l==null?a[n]:a[n]/a[o]*l},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return s8},e.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new Pt(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},e})(Xu);Jr.prototype.type="image";function c8(t,e){var n=e.x,r=e.y,i=e.width,a=e.height,o=e.r,l,s,c,h;i<0&&(n=n+i,i=-i),a<0&&(r=r+a,a=-a),typeof o=="number"?l=s=c=h=o:o instanceof Array?o.length===1?l=s=c=h=o[0]:o.length===2?(l=c=o[0],s=h=o[1]):o.length===3?(l=o[0],s=h=o[1],c=o[2]):(l=o[0],s=o[1],c=o[2],h=o[3]):l=s=c=h=0;var d;l+s>i&&(d=l+s,l*=i/d,s*=i/d),c+h>i&&(d=c+h,c*=i/d,h*=i/d),s+c>a&&(d=s+c,s*=a/d,c*=a/d),l+h>a&&(d=l+h,l*=a/d,h*=a/d),t.moveTo(n+l,r),t.lineTo(n+i-s,r),s!==0&&t.arc(n+i-s,r+s,s,-Math.PI/2,0),t.lineTo(n+i,r+a-c),c!==0&&t.arc(n+i-c,r+a-c,c,0,Math.PI/2),t.lineTo(n+h,r+a),h!==0&&t.arc(n+h,r+a-h,h,Math.PI/2,Math.PI),t.lineTo(n,r+l),l!==0&&t.arc(n+l,r+l,l,Math.PI,Math.PI*1.5)}var Tu=Math.round;function zI(t,e,n){if(e){var r=e.x1,i=e.x2,a=e.y1,o=e.y2;t.x1=r,t.x2=i,t.y1=a,t.y2=o;var l=n&&n.lineWidth;return l&&(Tu(r*2)===Tu(i*2)&&(t.x1=t.x2=zl(r,l,!0)),Tu(a*2)===Tu(o*2)&&(t.y1=t.y2=zl(a,l,!0))),t}}function BI(t,e,n){if(e){var r=e.x,i=e.y,a=e.width,o=e.height;t.x=r,t.y=i,t.width=a,t.height=o;var l=n&&n.lineWidth;return l&&(t.x=zl(r,l,!0),t.y=zl(i,l,!0),t.width=Math.max(zl(r+a,l,!1)-t.x,a===0?0:1),t.height=Math.max(zl(i+o,l,!1)-t.y,o===0?0:1)),t}}function zl(t,e,n){if(!e)return t;var r=Tu(t*2);return(r+Tu(e))%2===0?r/2:(r+(n?1:-1))/2}var f8=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})(),h8={},le=(function(t){at(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new f8},e.prototype.buildPath=function(n,r){var i,a,o,l;if(this.subPixelOptimize){var s=BI(h8,r,this.style);i=s.x,a=s.y,o=s.width,l=s.height,s.r=r.r,r=s}else i=r.x,a=r.y,o=r.width,l=r.height;r.r?c8(n,r):n.rect(i,a,o,l)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(fe);le.prototype.type="rect";var xA={fill:"#000"},bA=2,ki={},d8={style:qt({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},Ag.style)},me=(function(t){at(e,t);function e(n){var r=t.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=xA,r.attr(n),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n<this._children.length;n++){var r=this._children[n];r.zlevel=this.zlevel,r.z=this.z,r.z2=this.z2,r.culling=this.culling,r.cursor=this.cursor,r.invisible=this.invisible}},e.prototype.updateTransform=function(){var n=this.innerTransformable;n?(n.updateTransform(),n.transform&&(this.transform=n.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(n){var r=this.innerTransformable;return r?r.getLocalTransform(n):t.prototype.getLocalTransform.call(this,n)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,y8(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(n){t.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=n},e.prototype.removeSelfFromZr=function(n){t.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var n=new Pt(0,0,0,0),r=this._children,i=[],a=null,o=0;o<r.length;o++){var l=r[o],s=l.getBoundingRect(),c=l.getLocalTransform(i);c?(n.copy(s),n.applyTransform(c),a=a||n.clone(),a.union(n)):(a=a||s.clone(),a.union(s))}this._rect=a||n}return this._rect},e.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||xA},e.prototype.setTextContent=function(n){},e.prototype._mergeStyle=function(n,r){if(!r)return n;var i=r.rich,a=n.rich||i&&{};return ht(n,r),i&&a?(this._mergeRich(a,i),n.rich=a):a&&(n.rich=a),n},e.prototype._mergeRich=function(n,r){for(var i=Be(r),a=0;a<i.length;a++){var o=i[a];n[o]=n[o]||{},ht(n[o],r[o])}},e.prototype.getAnimationStyleProps=function(){return d8},e.prototype._getOrCreateChild=function(n){var r=this._children[this._childCursor];return(!r||!(r instanceof n))&&(r=new n),this._children[this._childCursor++]=r,r.__zr=this.__zr,r.parent=this,r},e.prototype._updatePlainTexts=function(){var n=this.style,r=n.font||Eo,i=n.padding,a=this._defaultStyle,o=n.x||0,l=n.y||0,s=n.align||a.align||"left",c=n.verticalAlign||a.verticalAlign||"top";fA(ki,a.overflowRect,o,l,s,c),o=ki.baseX,l=ki.baseY;var h=AA(n),d=zH(h,n,ki.outerWidth,ki.outerHeight),g=J0(n),p=!!n.backgroundColor,m=d.outerHeight,x=d.outerWidth,_=d.lines,b=d.lineHeight;this.isTruncated=!!d.isTruncated;var S=o,T=jl(l,d.contentHeight,c);if(g||i){var A=Ou(o,x,s),D=jl(l,m,c);g&&this._renderBackground(n,n,A,D,x,m)}T+=b/2,i&&(S=MA(o,s,i),c==="top"?T+=i[0]:c==="bottom"&&(T-=i[2]));for(var M=0,k=!1,I=!1,z=CA("fill"in n?n.fill:(I=!0,a.fill)),L=TA("stroke"in n?n.stroke:!p&&(!a.autoStroke||I)?(M=bA,k=!0,a.stroke):null),O=n.textShadowBlur>0,H=0;H<_.length;H++){var F=this._getOrCreateChild(Bp),Y=F.createStyle();F.useStyle(Y),Y.text=_[H],Y.x=S,Y.y=T,Y.textAlign=s,Y.textBaseline="middle",Y.opacity=n.opacity,Y.strokeFirst=!0,O&&(Y.shadowBlur=n.textShadowBlur||0,Y.shadowColor=n.textShadowColor||"transparent",Y.shadowOffsetX=n.textShadowOffsetX||0,Y.shadowOffsetY=n.textShadowOffsetY||0),Y.stroke=L,Y.fill=z,L&&(Y.lineWidth=n.lineWidth||M,Y.lineDash=n.lineDash,Y.lineDashOffset=n.lineDashOffset||0),Y.font=r,SA(Y,n),T+=b,F.setBoundingRect(Wx(Y,d.contentWidth,d.calculatedLineHeight,k?0:null))}},e.prototype._updateRichTexts=function(){var n=this.style,r=this._defaultStyle,i=n.align||r.align,a=n.verticalAlign||r.verticalAlign,o=n.x||0,l=n.y||0;fA(ki,r.overflowRect,o,l,i,a),o=ki.baseX,l=ki.baseY;var s=AA(n),c=PH(s,n,ki.outerWidth,ki.outerHeight,i),h=c.width,d=c.outerWidth,g=c.outerHeight,p=n.padding;this.isTruncated=!!c.isTruncated;var m=Ou(o,d,i),x=jl(l,g,a),_=m,b=x;p&&(_+=p[3],b+=p[0]);var S=_+h;J0(n)&&this._renderBackground(n,n,m,x,d,g);for(var T=!!n.backgroundColor,A=0;A<c.lines.length;A++){for(var D=c.lines[A],M=D.tokens,k=M.length,I=D.lineHeight,z=D.width,L=0,O=_,H=S,F=k-1,Y=void 0;L<k&&(Y=M[L],!Y.align||Y.align==="left");)this._placeToken(Y,n,I,b,O,"left",T),z-=Y.width,O+=Y.width,L++;for(;F>=0&&(Y=M[F],Y.align==="right");)this._placeToken(Y,n,I,b,H,"right",T),z-=Y.width,H-=Y.width,F--;for(O+=(h-(O-_)-(S-H)-z)/2;L<=F;)Y=M[L],this._placeToken(Y,n,I,b,O+Y.width/2,"center",T),O+=Y.width,L++;b+=I}},e.prototype._placeToken=function(n,r,i,a,o,l,s){var c=r.rich[n.styleName]||{};c.text=n.text;var h=n.verticalAlign,d=a+i/2;h==="top"?d=a+n.height/2:h==="bottom"&&(d=a+i-n.height/2);var g=!n.isLineHolder&&J0(c);g&&this._renderBackground(c,r,l==="right"?o-n.width:l==="center"?o-n.width/2:o,d-n.height/2,n.width,n.height);var p=!!c.backgroundColor,m=n.textPadding;m&&(o=MA(o,l,m),d-=n.height/2-m[0]-n.innerHeight/2);var x=this._getOrCreateChild(Bp),_=x.createStyle();x.useStyle(_);var b=this._defaultStyle,S=!1,T=0,A=!1,D=CA("fill"in c?c.fill:"fill"in r?r.fill:(S=!0,b.fill)),M=TA("stroke"in c?c.stroke:"stroke"in r?r.stroke:!p&&!s&&(!b.autoStroke||S)?(T=bA,A=!0,b.stroke):null),k=c.textShadowBlur>0||r.textShadowBlur>0;_.text=n.text,_.x=o,_.y=d,k&&(_.shadowBlur=c.textShadowBlur||r.textShadowBlur||0,_.shadowColor=c.textShadowColor||r.textShadowColor||"transparent",_.shadowOffsetX=c.textShadowOffsetX||r.textShadowOffsetX||0,_.shadowOffsetY=c.textShadowOffsetY||r.textShadowOffsetY||0),_.textAlign=l,_.textBaseline="middle",_.font=n.font||Eo,_.opacity=Co(c.opacity,r.opacity,1),SA(_,c),M&&(_.lineWidth=Co(c.lineWidth,r.lineWidth,T),_.lineDash=zt(c.lineDash,r.lineDash),_.lineDashOffset=r.lineDashOffset||0,_.stroke=M),D&&(_.fill=D),x.setBoundingRect(Wx(_,n.contentWidth,n.contentHeight,A?0:null))},e.prototype._renderBackground=function(n,r,i,a,o,l){var s=n.backgroundColor,c=n.borderWidth,h=n.borderColor,d=s&&s.image,g=s&&!d,p=n.borderRadius,m=this,x,_;if(g||n.lineHeight||c&&h){x=this._getOrCreateChild(le),x.useStyle(x.createStyle()),x.style.fill=null;var b=x.shape;b.x=i,b.y=a,b.width=o,b.height=l,b.r=p,x.dirtyShape()}if(g){var S=x.style;S.fill=s||null,S.fillOpacity=zt(n.fillOpacity,1)}else if(d){_=this._getOrCreateChild(Jr),_.onload=function(){m.dirtyStyle()};var T=_.style;T.image=s.image,T.x=i,T.y=a,T.width=o,T.height=l}if(c&&h){var S=x.style;S.lineWidth=c,S.stroke=h,S.strokeOpacity=zt(n.strokeOpacity,1),S.lineDash=n.borderDash,S.lineDashOffset=n.borderDashOffset||0,x.strokeContainThreshold=0,x.hasFill()&&x.hasStroke()&&(S.strokeFirst=!0,S.lineWidth*=2)}var A=(x||_).style;A.shadowBlur=n.shadowBlur||0,A.shadowColor=n.shadowColor||"transparent",A.shadowOffsetX=n.shadowOffsetX||0,A.shadowOffsetY=n.shadowOffsetY||0,A.opacity=Co(n.opacity,r.opacity,1)},e.makeFont=function(n){var r="";return m8(n)&&(r=[n.fontStyle,n.fontWeight,g8(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&zi(r)||n.textFont||n.font},e})(Xu),v8={left:!0,right:1,center:1},p8={top:1,bottom:1,middle:1},_A=["fontStyle","fontWeight","fontSize","fontFamily"];function g8(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?p_+"px":t+"px"}function SA(t,e){for(var n=0;n<_A.length;n++){var r=_A[n],i=e[r];i!=null&&(t[r]=i)}}function m8(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function y8(t){return wA(t),N(t.rich,wA),t}function wA(t){if(t){t.font=me.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||v8[e]?e:"left";var n=t.verticalAlign;n==="center"&&(n="middle"),t.verticalAlign=n==null||p8[n]?n:"top";var r=t.padding;r&&(t.padding=_g(t.padding))}}function TA(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function CA(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function MA(t,e,n){return e==="right"?t-n[1]:e==="center"?t+n[3]/2-n[1]/2:t+n[3]}function AA(t){var e=t.text;return e!=null&&(e+=""),e}function J0(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var $t=be(),Zx=function(t,e,n,r){if(r){var i=$t(r);i.dataIndex=n,i.dataType=e,i.seriesIndex=t,i.ssrType="chart",r.type==="group"&&r.traverse(function(a){var o=$t(a);o.seriesIndex=t,o.dataIndex=n,o.dataType=e,o.ssrType="chart"})}},DA=1,kA={},NI=be(),R_=be(),I_=0,Dg=1,kg=2,Tr=["emphasis","blur","select"],ah=["normal","emphasis","blur","select"],kh=10,x8=9,Gl="highlight",hp="downplay",Np="select",$x="unselect",Pp="toggleSelect",O_="selectchanged";function $s(t){return t!=null&&t!=="none"}function Lg(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function PI(t){Lg(t,"emphasis",kg)}function VI(t){t.hoverState===kg&&Lg(t,"normal",I_)}function z_(t){Lg(t,"blur",Dg)}function HI(t){t.hoverState===Dg&&Lg(t,"normal",I_)}function b8(t){t.selected=!0}function _8(t){t.selected=!1}function LA(t,e,n){e(t,n)}function ka(t,e,n){LA(t,e,n),t.isGroup&&t.traverse(function(r){LA(r,e,n)})}function EA(t,e){switch(e){case"emphasis":t.hoverState=kg;break;case"normal":t.hoverState=I_;break;case"blur":t.hoverState=Dg;break;case"select":t.selected=!0}}function S8(t,e,n,r){for(var i=t.style,a={},o=0;o<e.length;o++){var l=e[o],s=i[l];a[l]=s??(r&&r[l])}for(var o=0;o<t.animators.length;o++){var c=t.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName==="style"&&c.saveTo(a,e)}return a}function w8(t,e,n,r){var i=n&&Yt(n,"select")>=0,a=!1;if(t instanceof fe){var o=NI(t),l=i&&o.selectFill||o.normalFill,s=i&&o.selectStroke||o.normalStroke;if($s(l)||$s(s)){r=r||{};var c=r.style||{};c.fill==="inherit"?(a=!0,r=ht({},r),c=ht({},c),c.fill=l):!$s(c.fill)&&$s(l)?(a=!0,r=ht({},r),c=ht({},c),c.fill=YM(l)):!$s(c.stroke)&&$s(s)&&(a||(r=ht({},r),c=ht({},c)),c.stroke=YM(s)),r.style=c}}if(r&&r.z2==null){a||(r=ht({},r));var h=t.z2EmphasisLift;r.z2=t.z2+(h??kh)}return r}function T8(t,e,n){if(n&&n.z2==null){n=ht({},n);var r=t.z2SelectLift;n.z2=t.z2+(r??x8)}return n}function C8(t,e,n){var r=Yt(t.currentStates,e)>=0,i=t.style.opacity,a=r?null:S8(t,["opacity"],e,{opacity:1});n=n||{};var o=n.style||{};return o.opacity==null&&(n=ht({},n),o=ht({opacity:r?i:a.opacity*.1},o),n.style=o),n}function t1(t,e){var n=this.states[t];if(this.style){if(t==="emphasis")return w8(this,t,e,n);if(t==="blur")return C8(this,t,n);if(t==="select")return T8(this,t,n)}return n}function Qx(t){t.stateProxy=t1;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=t1),n&&(n.stateProxy=t1)}function RA(t,e){!UI(t,e)&&!t.__highByOuter&&ka(t,PI)}function IA(t,e){!UI(t,e)&&!t.__highByOuter&&ka(t,VI)}function $l(t,e){t.__highByOuter|=1<<(e||0),ka(t,PI)}function Ql(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&ka(t,VI)}function M8(t){ka(t,z_)}function jI(t){ka(t,HI)}function FI(t){ka(t,b8)}function GI(t){ka(t,_8)}function UI(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function YI(t){var e=t.getModel(),n=[],r=[];e.eachComponent(function(i,a){var o=R_(a),l=i==="series",s=l?t.getViewOfSeriesModel(a):t.getViewOfComponentModel(a);!l&&r.push(s),o.isBlured&&(s.group.traverse(function(c){HI(c)}),l&&n.push(a)),o.isBlured=!1}),N(r,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(n,!1,e)})}function Kx(t,e,n,r){var i=r.getModel();n=n||"coordinateSystem";function a(c,h){for(var d=0;d<h.length;d++){var g=c.getItemGraphicEl(h[d]);g&&jI(g)}}if(t!=null&&!(!e||e==="none")){var o=i.getSeriesByIndex(t),l=o.coordinateSystem;l&&l.master&&(l=l.master);var s=[];i.eachSeries(function(c){var h=o===c,d=c.coordinateSystem;d&&d.master&&(d=d.master);var g=d&&l?d===l:h;if(!(n==="series"&&!h||n==="coordinateSystem"&&!g||e==="series"&&h)){var p=r.getViewOfSeriesModel(c);if(p.group.traverse(function(_){_.__highByOuter&&h&&e==="self"||z_(_)}),lr(e))a(c.getData(),e);else if(Lt(e))for(var m=Be(e),x=0;x<m.length;x++)a(c.getData(m[x]),e[m[x]]);s.push(c),R_(c).isBlured=!0}}),i.eachComponent(function(c,h){if(c!=="series"){var d=r.getViewOfComponentModel(h);d&&d.toggleBlurSeries&&d.toggleBlurSeries(s,!0,i)}})}}function Jx(t,e,n){if(!(t==null||e==null)){var r=n.getModel().getComponent(t,e);if(r){R_(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(a){z_(a)})}}}function A8(t,e,n){var r=t.seriesIndex,i=t.getData(e.dataType);if(i){var a=ql(i,e);a=(pt(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var l=i.count(),s=0;!o&&s<l;)o=i.getItemGraphicEl(s++);if(o){var c=$t(o);Kx(r,c.focus,c.blurScope,n)}else{var h=t.get(["emphasis","focus"]),d=t.get(["emphasis","blurScope"]);h!=null&&Kx(r,h,d,n)}}}function B_(t,e,n,r){var i={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||n==null)return i;var a=r.getModel().getComponent(t,e);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var l=o.findHighDownDispatchers(n),s,c=0;c<l.length;c++)if($t(l[c]).focus==="self"){s=!0;break}return{focusSelf:s,dispatchers:l}}function D8(t,e,n){var r=$t(t),i=B_(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&Jx(r.componentMainType,r.componentIndex,n),N(a,function(l){return RA(l,e)})):(Kx(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&Jx(r.componentMainType,r.componentIndex,n),RA(t,e))}function k8(t,e,n){YI(n);var r=$t(t),i=B_(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?N(i,function(a){return IA(a,e)}):IA(t,e)}function L8(t,e,n){if(eb(e)){var r=e.dataType,i=t.getData(r),a=ql(i,e);pt(a)||(a=[a]),t[e.type===Pp?"toggleSelect":e.type===Np?"select":"unselect"](a,r)}}function OA(t){var e=t.getAllData();N(e,function(n){var r=n.data,i=n.type;r.eachItemGraphicEl(function(a,o){t.isSelected(o,i)?FI(a):GI(a)})})}function E8(t){var e=[];return t.eachSeries(function(n){var r=n.getAllData();N(r,function(i){i.data;var a=i.type,o=n.getSelectedDataIndices();if(o.length>0){var l={dataIndex:o,seriesIndex:n.seriesIndex};a!=null&&(l.dataType=a),e.push(l)}})}),e}function Vp(t,e,n){Bl(t,!0),ka(t,Qx),tb(t,e,n)}function R8(t){Bl(t,!1)}function In(t,e,n,r){r?R8(t):Vp(t,e,n)}function tb(t,e,n){var r=$t(t);e!=null?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var zA=["emphasis","blur","select"],I8={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Cr(t,e,n,r){n=n||"itemStyle";for(var i=0;i<zA.length;i++){var a=zA[i],o=e.getModel([a,n]),l=t.ensureState(a);l.style=r?r(o):o[I8[n]]()}}function Bl(t,e){var n=e===!1,r=t;t.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function oh(t){return!!(t&&t.__highDownDispatcher)}function O8(t){var e=kA[t];return e==null&&DA<=32&&(e=kA[t]=DA++),e}function eb(t){var e=t.type;return e===Np||e===$x||e===Pp}function BA(t){var e=t.type;return e===Gl||e===hp}function z8(t){var e=NI(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}var Qs=Zl.CMD,B8=[[],[],[]],NA=Math.sqrt,N8=Math.atan2;function P8(t,e){if(e){var n=t.data,r=t.len(),i,a,o,l,s,c,h=Qs.M,d=Qs.C,g=Qs.L,p=Qs.R,m=Qs.A,x=Qs.Q;for(o=0,l=0;o<r;){switch(i=n[o++],l=o,a=0,i){case h:a=1;break;case g:a=1;break;case d:a=3;break;case x:a=2;break;case m:var _=e[4],b=e[5],S=NA(e[0]*e[0]+e[1]*e[1]),T=NA(e[2]*e[2]+e[3]*e[3]),A=N8(-e[1]/T,e[0]/S);n[o]*=S,n[o++]+=_,n[o]*=T,n[o++]+=b,n[o++]*=S,n[o++]*=T,n[o++]+=A,n[o++]+=A,o+=2,l=o;break;case p:c[0]=n[o++],c[1]=n[o++],Gn(c,c,e),n[l++]=c[0],n[l++]=c[1],c[0]+=n[o++],c[1]+=n[o++],Gn(c,c,e),n[l++]=c[0],n[l++]=c[1]}for(s=0;s<a;s++){var D=B8[s];D[0]=n[o++],D[1]=n[o++],Gn(D,D,e),n[l++]=D[0],n[l++]=D[1]}}t.increaseVersion()}}var e1=Math.sqrt,yv=Math.sin,xv=Math.cos,Kc=Math.PI;function PA(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function nb(t,e){return(t[0]*e[0]+t[1]*e[1])/(PA(t)*PA(e))}function VA(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(nb(t,e))}function HA(t,e,n,r,i,a,o,l,s,c,h){var d=s*(Kc/180),g=xv(d)*(t-n)/2+yv(d)*(e-r)/2,p=-1*yv(d)*(t-n)/2+xv(d)*(e-r)/2,m=g*g/(o*o)+p*p/(l*l);m>1&&(o*=e1(m),l*=e1(m));var x=(i===a?-1:1)*e1((o*o*(l*l)-o*o*(p*p)-l*l*(g*g))/(o*o*(p*p)+l*l*(g*g)))||0,_=x*o*p/l,b=x*-l*g/o,S=(t+n)/2+xv(d)*_-yv(d)*b,T=(e+r)/2+yv(d)*_+xv(d)*b,A=VA([1,0],[(g-_)/o,(p-b)/l]),D=[(g-_)/o,(p-b)/l],M=[(-1*g-_)/o,(-1*p-b)/l],k=VA(D,M);if(nb(D,M)<=-1&&(k=Kc),nb(D,M)>=1&&(k=0),k<0){var I=Math.round(k/Kc*1e6)/1e6;k=Kc*2+I%2*Kc}h.addData(c,S,T,o,l,A,k,d,a)}var V8=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,H8=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function j8(t){var e=new Zl;if(!t)return e;var n=0,r=0,i=n,a=r,o,l=Zl.CMD,s=t.match(V8);if(!s)return e;for(var c=0;c<s.length;c++){for(var h=s[c],d=h.charAt(0),g=void 0,p=h.match(H8)||[],m=p.length,x=0;x<m;x++)p[x]=parseFloat(p[x]);for(var _=0;_<m;){var b=void 0,S=void 0,T=void 0,A=void 0,D=void 0,M=void 0,k=void 0,I=n,z=r,L=void 0,O=void 0;switch(d){case"l":n+=p[_++],r+=p[_++],g=l.L,e.addData(g,n,r);break;case"L":n=p[_++],r=p[_++],g=l.L,e.addData(g,n,r);break;case"m":n+=p[_++],r+=p[_++],g=l.M,e.addData(g,n,r),i=n,a=r,d="l";break;case"M":n=p[_++],r=p[_++],g=l.M,e.addData(g,n,r),i=n,a=r,d="L";break;case"h":n+=p[_++],g=l.L,e.addData(g,n,r);break;case"H":n=p[_++],g=l.L,e.addData(g,n,r);break;case"v":r+=p[_++],g=l.L,e.addData(g,n,r);break;case"V":r=p[_++],g=l.L,e.addData(g,n,r);break;case"C":g=l.C,e.addData(g,p[_++],p[_++],p[_++],p[_++],p[_++],p[_++]),n=p[_-2],r=p[_-1];break;case"c":g=l.C,e.addData(g,p[_++]+n,p[_++]+r,p[_++]+n,p[_++]+r,p[_++]+n,p[_++]+r),n+=p[_-2],r+=p[_-1];break;case"S":b=n,S=r,L=e.len(),O=e.data,o===l.C&&(b+=n-O[L-4],S+=r-O[L-3]),g=l.C,I=p[_++],z=p[_++],n=p[_++],r=p[_++],e.addData(g,b,S,I,z,n,r);break;case"s":b=n,S=r,L=e.len(),O=e.data,o===l.C&&(b+=n-O[L-4],S+=r-O[L-3]),g=l.C,I=n+p[_++],z=r+p[_++],n+=p[_++],r+=p[_++],e.addData(g,b,S,I,z,n,r);break;case"Q":I=p[_++],z=p[_++],n=p[_++],r=p[_++],g=l.Q,e.addData(g,I,z,n,r);break;case"q":I=p[_++]+n,z=p[_++]+r,n+=p[_++],r+=p[_++],g=l.Q,e.addData(g,I,z,n,r);break;case"T":b=n,S=r,L=e.len(),O=e.data,o===l.Q&&(b+=n-O[L-4],S+=r-O[L-3]),n=p[_++],r=p[_++],g=l.Q,e.addData(g,b,S,n,r);break;case"t":b=n,S=r,L=e.len(),O=e.data,o===l.Q&&(b+=n-O[L-4],S+=r-O[L-3]),n+=p[_++],r+=p[_++],g=l.Q,e.addData(g,b,S,n,r);break;case"A":T=p[_++],A=p[_++],D=p[_++],M=p[_++],k=p[_++],I=n,z=r,n=p[_++],r=p[_++],g=l.A,HA(I,z,n,r,M,k,T,A,D,g,e);break;case"a":T=p[_++],A=p[_++],D=p[_++],M=p[_++],k=p[_++],I=n,z=r,n+=p[_++],r+=p[_++],g=l.A,HA(I,z,n,r,M,k,T,A,D,g,e);break}}(d==="z"||d==="Z")&&(g=l.Z,e.addData(g),n=i,r=a),o=g}return e.toStatic(),e}var WI=(function(t){at(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(n){},e})(fe);function XI(t){return t.setData!=null}function qI(t,e){var n=j8(t),r=ht({},e);return r.buildPath=function(i){var a=XI(i);if(a&&i.canSave()){i.appendPath(n);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=a?i.getContext():i;o&&n.rebuildPath(o,1)}},r.applyTransform=function(i){P8(n,i),this.dirtyShape()},r}function F8(t,e){return new WI(qI(t,e))}function G8(t,e){var n=qI(t,e),r=(function(i){at(a,i);function a(o){var l=i.call(this,o)||this;return l.applyTransform=n.applyTransform,l.buildPath=n.buildPath,l}return a})(WI);return r}function U8(t,e){for(var n=[],r=t.length,i=0;i<r;i++){var a=t[i];n.push(a.getUpdatedPathProxy(!0))}var o=new fe(e);return o.createPathProxy(),o.buildPath=function(l){if(XI(l)){l.appendPath(n);var s=l.getContext();s&&l.rebuildPath(s,1)}},o}var Y8=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})(),Lh=(function(t){at(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Y8},e.prototype.buildPath=function(n,r){n.moveTo(r.cx+r.r,r.cy),n.arc(r.cx,r.cy,r.r,0,Math.PI*2)},e})(fe);Lh.prototype.type="circle";var W8=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})(),N_=(function(t){at(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new W8},e.prototype.buildPath=function(n,r){var i=.5522848,a=r.cx,o=r.cy,l=r.rx,s=r.ry,c=l*i,h=s*i;n.moveTo(a-l,o),n.bezierCurveTo(a-l,o-h,a-c,o-s,a,o-s),n.bezierCurveTo(a+c,o-s,a+l,o-h,a+l,o),n.bezierCurveTo(a+l,o+h,a+c,o+s,a,o+s),n.bezierCurveTo(a-c,o+s,a-l,o+h,a-l,o),n.closePath()},e})(fe);N_.prototype.type="ellipse";var ZI=Math.PI,n1=ZI*2,yl=Math.sin,Ks=Math.cos,X8=Math.acos,kn=Math.atan2,jA=Math.abs,Ff=Math.sqrt,Lf=Math.max,Li=Math.min,si=1e-4;function q8(t,e,n,r,i,a,o,l){var s=n-t,c=r-e,h=o-i,d=l-a,g=d*s-h*c;if(!(g*g<si))return g=(h*(e-a)-d*(t-i))/g,[t+g*s,e+g*c]}function bv(t,e,n,r,i,a,o){var l=t-n,s=e-r,c=(o?a:-a)/Ff(l*l+s*s),h=c*s,d=-c*l,g=t+h,p=e+d,m=n+h,x=r+d,_=(g+m)/2,b=(p+x)/2,S=m-g,T=x-p,A=S*S+T*T,D=i-a,M=g*x-m*p,k=(T<0?-1:1)*Ff(Lf(0,D*D*A-M*M)),I=(M*T-S*k)/A,z=(-M*S-T*k)/A,L=(M*T+S*k)/A,O=(-M*S+T*k)/A,H=I-_,F=z-b,Y=L-_,W=O-b;return H*H+F*F>Y*Y+W*W&&(I=L,z=O),{cx:I,cy:z,x0:-h,y0:-d,x1:I*(i/D-1),y1:z*(i/D-1)}}function Z8(t){var e;if(pt(t)){var n=t.length;if(!n)return t;n===1?e=[t[0],t[0],0,0]:n===2?e=[t[0],t[0],t[1],t[1]]:n===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function $8(t,e){var n,r=Lf(e.r,0),i=Lf(e.r0||0,0),a=r>0,o=i>0;if(!(!a&&!o)){if(a||(r=i,i=0),i>r){var l=r;r=i,i=l}var s=e.startAngle,c=e.endAngle;if(!(isNaN(s)||isNaN(c))){var h=e.cx,d=e.cy,g=!!e.clockwise,p=jA(c-s),m=p>n1&&p%n1;if(m>si&&(p=m),!(r>si))t.moveTo(h,d);else if(p>n1-si)t.moveTo(h+r*Ks(s),d+r*yl(s)),t.arc(h,d,r,s,c,!g),i>si&&(t.moveTo(h+i*Ks(c),d+i*yl(c)),t.arc(h,d,i,c,s,g));else{var x=void 0,_=void 0,b=void 0,S=void 0,T=void 0,A=void 0,D=void 0,M=void 0,k=void 0,I=void 0,z=void 0,L=void 0,O=void 0,H=void 0,F=void 0,Y=void 0,W=r*Ks(s),V=r*yl(s),X=i*Ks(c),Z=i*yl(c),tt=p>si;if(tt){var j=e.cornerRadius;j&&(n=Z8(j),x=n[0],_=n[1],b=n[2],S=n[3]);var U=jA(r-i)/2;if(T=Li(U,b),A=Li(U,S),D=Li(U,x),M=Li(U,_),z=k=Lf(T,A),L=I=Lf(D,M),(k>si||I>si)&&(O=r*Ks(c),H=r*yl(c),F=i*Ks(s),Y=i*yl(s),p<ZI)){var q=q8(W,V,F,Y,O,H,X,Z);if(q){var P=W-q[0],J=V-q[1],st=O-q[0],mt=H-q[1],wt=1/yl(X8((P*st+J*mt)/(Ff(P*P+J*J)*Ff(st*st+mt*mt)))/2),gt=Ff(q[0]*q[0]+q[1]*q[1]);z=Li(k,(r-gt)/(wt+1)),L=Li(I,(i-gt)/(wt-1))}}}if(!tt)t.moveTo(h+W,d+V);else if(z>si){var dt=Li(b,z),Dt=Li(S,z),yt=bv(F,Y,W,V,r,dt,g),Mt=bv(O,H,X,Z,r,Dt,g);t.moveTo(h+yt.cx+yt.x0,d+yt.cy+yt.y0),z<k&&dt===Dt?t.arc(h+yt.cx,d+yt.cy,z,kn(yt.y0,yt.x0),kn(Mt.y0,Mt.x0),!g):(dt>0&&t.arc(h+yt.cx,d+yt.cy,dt,kn(yt.y0,yt.x0),kn(yt.y1,yt.x1),!g),t.arc(h,d,r,kn(yt.cy+yt.y1,yt.cx+yt.x1),kn(Mt.cy+Mt.y1,Mt.cx+Mt.x1),!g),Dt>0&&t.arc(h+Mt.cx,d+Mt.cy,Dt,kn(Mt.y1,Mt.x1),kn(Mt.y0,Mt.x0),!g))}else t.moveTo(h+W,d+V),t.arc(h,d,r,s,c,!g);if(!(i>si)||!tt)t.lineTo(h+X,d+Z);else if(L>si){var dt=Li(x,L),Dt=Li(_,L),yt=bv(X,Z,O,H,i,-Dt,g),Mt=bv(W,V,F,Y,i,-dt,g);t.lineTo(h+yt.cx+yt.x0,d+yt.cy+yt.y0),L<I&&dt===Dt?t.arc(h+yt.cx,d+yt.cy,L,kn(yt.y0,yt.x0),kn(Mt.y0,Mt.x0),!g):(Dt>0&&t.arc(h+yt.cx,d+yt.cy,Dt,kn(yt.y0,yt.x0),kn(yt.y1,yt.x1),!g),t.arc(h,d,i,kn(yt.cy+yt.y1,yt.cx+yt.x1),kn(Mt.cy+Mt.y1,Mt.cx+Mt.x1),g),dt>0&&t.arc(h+Mt.cx,d+Mt.cy,dt,kn(Mt.y1,Mt.x1),kn(Mt.y0,Mt.x0),!g))}else t.lineTo(h+X,d+Z),t.arc(h,d,i,c,s,g)}t.closePath()}}}var Q8=(function(){function t(){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 t})(),mi=(function(t){at(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Q8},e.prototype.buildPath=function(n,r){$8(n,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(fe);mi.prototype.type="sector";var K8=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})(),Eg=(function(t){at(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new K8},e.prototype.buildPath=function(n,r){var i=r.cx,a=r.cy,o=Math.PI*2;n.moveTo(i+r.r,a),n.arc(i,a,r.r,0,o,!1),n.moveTo(i+r.r0,a),n.arc(i,a,r.r0,0,o,!0)},e})(fe);Eg.prototype.type="ring";function J8(t,e,n,r){var i=[],a=[],o=[],l=[],s,c,h,d;if(r){h=[1/0,1/0],d=[-1/0,-1/0];for(var g=0,p=t.length;g<p;g++)bu(h,h,t[g]),_u(d,d,t[g]);bu(h,h,r[0]),_u(d,d,r[1])}for(var g=0,p=t.length;g<p;g++){var m=t[g];if(n)s=t[g?g-1:p-1],c=t[(g+1)%p];else if(g===0||g===p-1){i.push(E6(t[g]));continue}else s=t[g-1],c=t[g+1];R6(a,c,s),m0(a,a,e);var x=Tx(m,s),_=Tx(m,c),b=x+_;b!==0&&(x/=b,_/=b),m0(o,a,-x),m0(l,a,_);var S=DM([],m,o),T=DM([],m,l);r&&(_u(S,S,h),bu(S,S,d),_u(T,T,h),bu(T,T,d)),i.push(S),i.push(T)}return n&&i.push(i.shift()),i}function $I(t,e,n){var r=e.smooth,i=e.points;if(i&&i.length>=2){if(r){var a=J8(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var o=i.length,l=0;l<(n?o:o-1);l++){var s=a[l*2],c=a[l*2+1],h=i[(l+1)%o];t.bezierCurveTo(s[0],s[1],c[0],c[1],h[0],h[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var l=1,d=i.length;l<d;l++)t.lineTo(i[l][0],i[l][1])}n&&t.closePath()}}var tj=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})(),Ui=(function(t){at(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new tj},e.prototype.buildPath=function(n,r){$I(n,r,!0)},e})(fe);Ui.prototype.type="polygon";var ej=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})(),Yi=(function(t){at(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ej},e.prototype.buildPath=function(n,r){$I(n,r,!1)},e})(fe);Yi.prototype.type="polyline";var nj={},rj=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})(),Fi=(function(t){at(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new rj},e.prototype.buildPath=function(n,r){var i,a,o,l;if(this.subPixelOptimize){var s=zI(nj,r,this.style);i=s.x1,a=s.y1,o=s.x2,l=s.y2}else i=r.x1,a=r.y1,o=r.x2,l=r.y2;var c=r.percent;c!==0&&(n.moveTo(i,a),c<1&&(o=i*(1-c)+o*c,l=a*(1-c)+l*c),n.lineTo(o,l))},e.prototype.pointAt=function(n){var r=this.shape;return[r.x1*(1-n)+r.x2*n,r.y1*(1-n)+r.y2*n]},e})(fe);Fi.prototype.type="line";var nr=[],ij=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t})();function FA(t,e,n){var r=t.cpx2,i=t.cpy2;return r!=null||i!=null?[(n?jM:Tn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?jM:Tn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?FM:ar)(t.x1,t.cpx1,t.x2,e),(n?FM:ar)(t.y1,t.cpy1,t.y2,e)]}var P_=(function(t){at(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ij},e.prototype.buildPath=function(n,r){var i=r.x1,a=r.y1,o=r.x2,l=r.y2,s=r.cpx1,c=r.cpy1,h=r.cpx2,d=r.cpy2,g=r.percent;g!==0&&(n.moveTo(i,a),h==null||d==null?(g<1&&(Lp(i,s,o,g,nr),s=nr[1],o=nr[2],Lp(a,c,l,g,nr),c=nr[1],l=nr[2]),n.quadraticCurveTo(s,c,o,l)):(g<1&&(kp(i,s,h,o,g,nr),s=nr[1],h=nr[2],o=nr[3],kp(a,c,d,l,g,nr),c=nr[1],d=nr[2],l=nr[3]),n.bezierCurveTo(s,c,h,d,o,l)))},e.prototype.pointAt=function(n){return FA(this.shape,n,!1)},e.prototype.tangentAt=function(n){var r=FA(this.shape,n,!0);return z6(r,r)},e})(fe);P_.prototype.type="bezier-curve";var aj=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),Rg=(function(t){at(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new aj},e.prototype.buildPath=function(n,r){var i=r.cx,a=r.cy,o=Math.max(r.r,0),l=r.startAngle,s=r.endAngle,c=r.clockwise,h=Math.cos(l),d=Math.sin(l);n.moveTo(h*o+i,d*o+a),n.arc(i,a,o,l,s,!c)},e})(fe);Rg.prototype.type="arc";var oj=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="compound",n}return e.prototype._updatePathDirty=function(){for(var n=this.shape.paths,r=this.shapeChanged(),i=0;i<n.length;i++)r=r||n[i].shapeChanged();r&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var n=this.shape.paths||[],r=this.getGlobalScale(),i=0;i<n.length;i++)n[i].path||n[i].createPathProxy(),n[i].path.setScale(r[0],r[1],n[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(n,r){for(var i=r.paths||[],a=0;a<i.length;a++)i[a].buildPath(n,i[a].shape,!0)},e.prototype.afterBrush=function(){for(var n=this.shape.paths||[],r=0;r<n.length;r++)n[r].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),fe.prototype.getBoundingRect.call(this)},e})(fe),QI=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,n){this.colorStops.push({offset:e,color:n})},t})(),Ig=(function(t){at(e,t);function e(n,r,i,a,o,l){var s=t.call(this,o)||this;return s.x=n??0,s.y=r??0,s.x2=i??1,s.y2=a??0,s.type="linear",s.global=l||!1,s}return e})(QI),lj=(function(t){at(e,t);function e(n,r,i,a,o){var l=t.call(this,a)||this;return l.x=n??.5,l.y=r??.5,l.r=i??.5,l.type="radial",l.global=o||!1,l}return e})(QI),r1=Math.min,sj=Math.max,_v=Math.abs,xl=[0,0],bl=[0,0],pn=ZR(),Sv=pn.minTv,wv=pn.maxTv,KI=(function(){function t(e,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new jt;for(var r=0;r<2;r++)this._axes[r]=new jt;e&&this.fromBoundingRect(e,n)}return t.prototype.fromBoundingRect=function(e,n){var r=this._corners,i=this._axes,a=e.x,o=e.y,l=a+e.width,s=o+e.height;if(r[0].set(a,o),r[1].set(l,o),r[2].set(l,s),r[3].set(a,s),n)for(var c=0;c<4;c++)r[c].transform(n);jt.sub(i[0],r[1],r[0]),jt.sub(i[1],r[3],r[0]),i[0].normalize(),i[1].normalize();for(var c=0;c<2;c++)this._origin[c]=i[c].dot(r[0])},t.prototype.intersect=function(e,n,r){var i=!0,a=!n;return n&&jt.set(n,0,0),pn.reset(r,!a),!this._intersectCheckOneSide(this,e,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(i=!1,a)||!a&&!pn.negativeSize&&jt.copy(n,i?pn.useDir?pn.dirMinTv:Sv:wv),i},t.prototype._intersectCheckOneSide=function(e,n,r,i){for(var a=!0,o=0;o<2;o++){var l=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,xl),e._getProjMinMaxOnAxis(o,n._corners,bl),pn.negativeSize||xl[1]<bl[0]||xl[0]>bl[1]){if(a=!1,pn.negativeSize||r)return a;var s=_v(bl[0]-xl[1]),c=_v(xl[0]-bl[1]);r1(s,c)>wv.len()&&(s<c?jt.scale(wv,l,-s*i):jt.scale(wv,l,c*i))}else if(!r){var s=_v(bl[0]-xl[1]),c=_v(xl[0]-bl[1]);(pn.useDir||r1(s,c)<Sv.len())&&((s<c||!pn.bidirectional)&&(jt.scale(Sv,l,s*i),pn.useDir&&pn.calcDirMTV()),(s>=c||!pn.bidirectional)&&(jt.scale(Sv,l,-c*i),pn.useDir&&pn.calcDirMTV()))}}return a},t.prototype._getProjMinMaxOnAxis=function(e,n,r){for(var i=this._axes[e],a=this._origin,o=n[0].dot(i)+a[e],l=o,s=o,c=1;c<n.length;c++){var h=n[c].dot(i)+a[e];l=r1(h,l),s=sj(h,s)}r[0]=l+pn.touchThreshold,r[1]=s-pn.touchThreshold,pn.negativeSize=r[1]<r[0]},t})(),uj=[],cj=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.notClear=!0,n.incremental=!0,n._displayables=[],n._temporaryDisplayables=[],n._cursor=0,n}return e.prototype.traverse=function(n,r){n.call(r,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(n,r){r?this._temporaryDisplayables.push(n):this._displayables.push(n),this.markRedraw()},e.prototype.addDisplayables=function(n,r){r=r||!1;for(var i=0;i<n.length;i++)this.addDisplayable(n[i],r)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(n){for(var r=this._cursor;r<this._displayables.length;r++)n&&n(this._displayables[r]);for(var r=0;r<this._temporaryDisplayables.length;r++)n&&n(this._temporaryDisplayables[r])},e.prototype.update=function(){this.updateTransform();for(var n=this._cursor;n<this._displayables.length;n++){var r=this._displayables[n];r.parent=this,r.update(),r.parent=null}for(var n=0;n<this._temporaryDisplayables.length;n++){var r=this._temporaryDisplayables[n];r.parent=this,r.update(),r.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var n=new Pt(1/0,1/0,-1/0,-1/0),r=0;r<this._displayables.length;r++){var i=this._displayables[r],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(uj)),n.union(a)}this._rect=n}return this._rect},e.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var l=this._displayables[o];if(l.contain(n,r))return!0}return!1},e})(Xu),fj=be();function hj(t,e,n,r,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var l=e&&e.isAnimationEnabled(),s=t==="update";if(l){var c=void 0,h=void 0,d=void 0;r?(c=zt(r.duration,200),h=zt(r.easing,"cubicOut"),d=0):(c=e.getShallow(s?"animationDurationUpdate":"animationDuration"),h=e.getShallow(s?"animationEasingUpdate":"animationEasing"),d=e.getShallow(s?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(c=a.duration),a.easing!=null&&(h=a.easing),a.delay!=null&&(d=a.delay)),It(d)&&(d=d(n,i)),It(c)&&(c=c(n));var g={duration:c||0,delay:d,easing:h};return g}else return null}function V_(t,e,n,r,i,a,o){var l=!1,s;It(i)?(o=a,a=i,i=null):Lt(i)&&(a=i.cb,o=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var c=t==="leave";c||e.stopAnimation("leave");var h=hj(t,r,i,c?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,i):null);if(h&&h.duration>0){var d=h.duration,g=h.delay,p=h.easing,m={duration:d,delay:g||0,easing:p,done:a,force:!!a||!!o,setToFinal:!c,scope:t,during:o};l?e.animateFrom(n,m):e.animateTo(n,m)}else e.stopAnimation(),!l&&e.attr(n),o&&o(1),a&&a()}function He(t,e,n,r,i,a){V_("update",t,e,n,r,i,a)}function Qe(t,e,n,r,i,a){V_("enter",t,e,n,r,i,a)}function Gf(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var n=t.animators[e];if(n.scope==="leave")return!0}return!1}function Hp(t,e,n,r,i,a){Gf(t)||V_("leave",t,e,n,r,i,a)}function GA(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),Hp(t,{style:{opacity:0}},e,n,r)}function ku(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||GA(i,e,n,r)}):GA(t,e,n,r)}function Da(t){fj(t).oldStyle=t.style}var rb={},po=["x","y"],Bu=["width","height"];function dj(t){return fe.extend(t)}var vj=G8;function pj(t,e){return vj(t,e)}function bi(t,e){rb[t]=e}function gj(t){if(rb.hasOwnProperty(t))return rb[t]}function H_(t,e,n,r){var i=F8(t,e);return n&&(r==="center"&&(n=tO(n,i.getBoundingRect())),eO(i,n)),i}function JI(t,e,n){var r=new Jr({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(n==="center"){var a={width:i.width,height:i.height};r.setStyle(tO(e,a))}}});return r}function tO(t,e){var n=e.width/e.height,r=t.height*n,i;r<=t.width?i=t.height:(r=t.width,i=r/n);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var ib=U8;function eO(t,e){if(t.applyTransform){var n=t.getBoundingRect(),r=n.calculateTransform(e);t.applyTransform(r)}}function lh(t,e){return zI(t,t,{lineWidth:e}),t}function mj(t,e){return BI(t,t,e),t}var dp=zl;function Ul(t,e){for(var n=__([]);t&&t!==e;)Nf(n,t.getLocalTransform(),n),t=t.parent;return n}function Do(t,e,n){return e&&!lr(e)&&(e=Ol.getLocalTransform(e)),n&&(e=Uu([],e)),Gn([],t,e)}function Og(t,e,n){var r=e[4]===0||e[5]===0||e[0]===0?1:Bi(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:Bi(2*e[4]/e[2]),a=[t==="left"?-r:t==="right"?r:0,t==="top"?-i:t==="bottom"?i:0];return a=Do(a,e,n),Bi(a[0])>Bi(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function UA(t){return!t.isGroup}function yj(t){return t.shape!=null}function nO(t,e,n){if(!t||!e)return;function r(o){var l={};return o.traverse(function(s){UA(s)&&s.anid&&(l[s.anid]=s)}),l}function i(o){var l={x:o.x,y:o.y,rotation:o.rotation};return yj(o)&&(l.shape=Rt(o.shape)),l}var a=r(t);e.traverse(function(o){if(UA(o)&&o.anid){var l=a[o.anid];if(l){var s=i(o);o.attr(i(l)),He(o,s,n,$t(o).dataIndex)}}})}function rO(t,e){return bt(t,function(n){var r=n[0];r=Sr(r,e.x),r=nh(r,e.x+e.width);var i=n[1];return i=Sr(i,e.y),i=nh(i,e.y+e.height),[r,i]})}function xj(t,e){var n=Sr(t.x,e.x),r=nh(t.x+t.width,e.x+e.width),i=Sr(t.y,e.y),a=nh(t.y+t.height,e.y+e.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function zg(t,e,n){var r=ht({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),qt(i,n),new Jr(r)):H_(t.replace("path://",""),r,n,"center")}function Ef(t,e,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var l=i[a];if(iO(t,e,n,r,l[0],l[1],o[0],o[1]))return!0;o=l}}function iO(t,e,n,r,i,a,o,l){var s=n-t,c=r-e,h=o-i,d=l-a,g=i1(h,d,s,c);if(bj(g))return!1;var p=t-i,m=e-a,x=i1(p,m,s,c)/g;if(x<0||x>1)return!1;var _=i1(p,m,h,d)/g;return!(_<0||_>1)}function i1(t,e,n,r){return t*r-n*e}function bj(t){return t<=1e-6&&t>=-1e-6}function jp(t,e,n,r,i){return e==null||(ve(e)?Ie[0]=Ie[1]=Ie[2]=Ie[3]=e:(Ie[0]=e[0],Ie[1]=e[1],Ie[2]=e[2],Ie[3]=e[3]),r&&(Ie[0]=Sr(0,Ie[0]),Ie[1]=Sr(0,Ie[1]),Ie[2]=Sr(0,Ie[2]),Ie[3]=Sr(0,Ie[3])),n&&(Ie[0]=-Ie[0],Ie[1]=-Ie[1],Ie[2]=-Ie[2],Ie[3]=-Ie[3]),YA(t,Ie,"x","width",3,1,i&&i[0]||0),YA(t,Ie,"y","height",0,2,i&&i[1]||0)),t}var Ie=[0,0,0,0];function YA(t,e,n,r,i,a,o){var l=e[a]+e[i],s=t[r];t[r]+=l,o=Sr(0,nh(o,s)),t[r]<o?(t[r]=o,t[n]+=e[i]>=0?-e[i]:e[a]>=0?s+e[a]:Bi(l)>1e-8?(s-o)*e[i]/l:0):t[n]-=e[i]}function Eh(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=St(e)?{formatter:e}:e,a=n.mainType,o=n.componentIndex,l={componentType:a,name:r,$vars:["name"]};l[a+"Index"]=o;var s=t.formatterParamsExtra;s&&N(Be(s),function(h){fi(l,h)||(l[h]=s[h],l.$vars.push(h))});var c=$t(t.el);c.componentMainType=a,c.componentIndex=o,c.tooltipConfig={name:r,option:qt({content:r,encodeHTMLContent:!0,formatterParams:l},i)}}function ab(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function qu(t,e){if(t)if(pt(t))for(var n=0;n<t.length;n++)ab(t[n],e);else ab(t,e)}function j_(t){return!t||Bi(t[1])<Tv&&Bi(t[2])<Tv||Bi(t[0])<Tv&&Bi(t[3])<Tv}var Tv=1e-5;function sh(t,e){return t?Pt.copy(t,e):e.clone()}function F_(t,e){return e?S_(t||hi(),e):void 0}function uh(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function _j(t){var e=-1/0,n=1/0;ab(t,function(a){r(a),r(a.getTextContent()),r(a.getTextGuideLine())});function r(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var l=0;l<o.length;l++)i(a.states[o[l]]);i(a)}}function i(a){if(a){var o=a.z2;o>e&&(e=o),o<n&&(n=o)}}return n>e&&(n=e=0),{min:n,max:e}}function aO(t,e,n){oO(t,e,n,-1/0)}function oO(t,e,n,r){if(t.ignoreModelZ)return r;var i=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var l=t.childrenRef(),s=0;s<l.length;s++)r=Sr(oO(l[s],e,n,r),r);else t.z=e,t.zlevel=n,r=Sr(t.z2||0,r);if(i&&(i.z=e,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),a){var c=t.textGuideLineConfig;a.z=e,a.zlevel=n,isFinite(r)&&(a.z2=r+(c&&c.showAbove?1:-1))}return r}bi("circle",Lh);bi("ellipse",N_);bi("sector",mi);bi("ring",Eg);bi("polygon",Ui);bi("polyline",Yi);bi("rect",le);bi("line",Fi);bi("bezierCurve",P_);bi("arc",Rg);const G_=Object.freeze(Object.defineProperty({__proto__:null,Arc:Rg,BezierCurve:P_,BoundingRect:Pt,Circle:Lh,CompoundPath:oj,Ellipse:N_,Group:ie,Image:Jr,IncrementalDisplayable:cj,Line:Fi,LinearGradient:Ig,OrientedBoundingRect:KI,Path:fe,Point:jt,Polygon:Ui,Polyline:Yi,RadialGradient:lj,Rect:le,Ring:Eg,Sector:mi,Text:me,WH:Bu,XY:po,applyTransform:Do,calcZ2Range:_j,clipPointsByRect:rO,clipRectByRect:xj,createIcon:zg,ensureCopyRect:sh,ensureCopyTransform:F_,expandOrShrinkRect:jp,extendPath:pj,extendShape:dj,getShapeClass:gj,getTransform:Ul,groupTransition:nO,initProps:Qe,isBoundingRectAxisAligned:j_,isElementRemoved:Gf,lineLineIntersect:iO,linePolygonIntersect:Ef,makeImage:JI,makePath:H_,mergePath:ib,registerShape:bi,removeElement:Hp,removeElementWithFadeOut:ku,resizePath:eO,retrieveZInfo:uh,setTooltipConfig:Eh,subPixelOptimize:dp,subPixelOptimizeLine:lh,subPixelOptimizeRect:mj,transformDirection:Og,traverseElements:qu,traverseUpdateZ:aO,updateProps:He},Symbol.toStringTag,{value:"Module"}));var Bg={};function lO(t,e){for(var n=0;n<Tr.length;n++){var r=Tr[n],i=e[r],a=t.ensureState(r);a.style=a.style||{},a.style.text=i}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function ob(t,e,n){var r=t.labelFetcher,i=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,l;r&&(l=r.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),n!=null?{interpolatedValue:n}:null)),l==null&&(l=It(t.defaultText)?t.defaultText(i,t,n):t.defaultText);for(var s={normal:l},c=0;c<Tr.length;c++){var h=Tr[c],d=e[h];s[h]=zt(r?r.getFormattedLabel(i,h,null,a,d&&d.get("formatter")):null,l)}return s}function yi(t,e,n,r){n=n||Bg;for(var i=t instanceof me,a=!1,o=0;o<ah.length;o++){var l=e[ah[o]];if(l&&l.getShallow("show")){a=!0;break}}var s=i?t:t.getTextContent();if(a){i||(s||(s=new me,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var c=ob(n,e),h=e.normal,d=!!h.getShallow("show"),g=$e(h,r&&r.normal,n,!1,!i);g.text=c.normal,i||t.setTextConfig(WA(h,n,!1));for(var o=0;o<Tr.length;o++){var p=Tr[o],l=e[p];if(l){var m=s.ensureState(p),x=!!zt(l.getShallow("show"),d);if(x!==d&&(m.ignore=!x),m.style=$e(l,r&&r[p],n,!0,!i),m.style.text=c[p],!i){var _=t.ensureState(p);_.textConfig=WA(l,n,!0)}}}s.silent=!!h.getShallow("silent"),s.style.x!=null&&(g.x=s.style.x),s.style.y!=null&&(g.y=s.style.y),s.ignore=!d,s.useStyle(g),s.dirty(),n.enableTextSetter&&(Rh(s).setLabelText=function(b){var S=ob(n,e,b);lO(s,S)})}else s&&(s.ignore=!0);t.dirty()}function Qr(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<Tr.length;r++){var i=Tr[r];n[i]=t.getModel([i,e])}return n}function $e(t,e,n,r,i){var a={};return Sj(a,t,n,r,i),e&&ht(a,e),a}function WA(t,e,n){e=e||{};var r={},i,a=t.getShallow("rotate"),o=zt(t.getShallow("distance"),n?null:5),l=t.getShallow("offset");return i=t.getShallow("position")||(n?null:"inside"),i==="outside"&&(i=e.defaultOutsidePosition||"top"),i!=null&&(r.position=i),l!=null&&(r.offset=l),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),r.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(r.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(r.layoutRect=e.layoutRect),r}function Sj(t,e,n,r,i){n=n||Bg;var a=e.ecModel,o=a&&a.option.textStyle,l=wj(e),s;if(l){s={};var c="richInheritPlainLabel",h=zt(e.get(c),a?a.get(c):void 0);for(var d in l)if(l.hasOwnProperty(d)){var g=e.getModel(["rich",d]);$A(s[d]={},g,o,e,h,n,r,i,!1,!0)}}s&&(t.rich=s);var p=e.get("overflow");p&&(t.overflow=p);var m=e.get("lineOverflow");m&&(t.lineOverflow=m);var x=t,_=e.get("minMargin");if(_!=null)_=ve(_)?_/2:0,x.margin=[_,_,_,_],x.__marginType=Cu.minMargin;else{var b=e.get("textMargin");b!=null&&(x.margin=_g(b),x.__marginType=Cu.textMargin)}$A(t,e,o,null,null,n,r,i,!0,!1)}function wj(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||Bg).rich;if(n){e=e||{};for(var r=Be(n),i=0;i<r.length;i++){var a=r[i];e[a]=1}}t=t.parentModel}return e}var XA=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],qA=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],ZA=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function $A(t,e,n,r,i,a,o,l,s,c){n=!o&&n||Bg;var h=a&&a.inheritColor,d=e.getShallow("color"),g=e.getShallow("textBorderColor"),p=zt(e.getShallow("opacity"),n.opacity);(d==="inherit"||d==="auto")&&(h?d=h:d=null),(g==="inherit"||g==="auto")&&(h?g=h:g=null),l||(d=d||n.color,g=g||n.textBorderColor),d!=null&&(t.fill=d),g!=null&&(t.stroke=g);var m=zt(e.getShallow("textBorderWidth"),n.textBorderWidth);m!=null&&(t.lineWidth=m);var x=zt(e.getShallow("textBorderType"),n.textBorderType);x!=null&&(t.lineDash=x);var _=zt(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);_!=null&&(t.lineDashOffset=_),!o&&p==null&&!c&&(p=a&&a.defaultOpacity),p!=null&&(t.opacity=p),!o&&!l&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var b=0;b<XA.length;b++){var S=XA[b],T=i!==!1&&r?Co(e.getShallow(S),r.getShallow(S),n[S]):zt(e.getShallow(S),n[S]);T!=null&&(t[S]=T)}for(var b=0;b<qA.length;b++){var S=qA[b],T=e.getShallow(S);T!=null&&(t[S]=T)}if(t.verticalAlign==null){var A=e.getShallow("baseline");A!=null&&(t.verticalAlign=A)}if(!s||!a.disableBox){for(var b=0;b<ZA.length;b++){var S=ZA[b],T=e.getShallow(S);T!=null&&(t[S]=T)}var D=e.getShallow("borderType");D!=null&&(t.borderDash=D),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&h&&(t.backgroundColor=h),(t.borderColor==="auto"||t.borderColor==="inherit")&&h&&(t.borderColor=h)}}function sO(t,e){var n=e&&e.getModel("textStyle");return zi([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var Rh=be();function uO(t,e,n,r){if(t){var i=Rh(t);i.prevValue=i.value,i.value=n;var a=e.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=r,i.statesModels=e)}}function Tj(t,e,n,r,i){var a=Rh(t);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,l=zt(a.interpolatedValue,a.prevValue),s=a.value;function c(h){var d=CI(n,a.precision,l,s,h);a.interpolatedValue=h===1?null:d;var g=ob({labelDataIndex:e,labelFetcher:i,defaultText:o?o(d):d+""},a.statesModels,d);lO(t,g)}t.percent=0,(a.prevValue==null?Qe:He)(t,{percent:1},r,e,null,c)}var Cu={minMargin:1,textMargin:2},Cj=["textStyle","color"],a1=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],o1=new me,Mj=(function(){function t(){}return t.prototype.getTextColor=function(e){var n=this.ecModel;return this.getShallow("color")||(!e&&n?n.get(Cj):null)},t.prototype.getFont=function(){return sO({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var n={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},r=0;r<a1.length;r++)n[a1[r]]=this.getShallow(a1[r]);return o1.useStyle(n),o1.update(),o1.getBoundingRect()},t})(),cO=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Aj=zu(cO),Dj=(function(){function t(){}return t.prototype.getLineStyle=function(e){return Aj(this,e)},t})(),fO=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],kj=zu(fO),Lj=(function(){function t(){}return t.prototype.getItemStyle=function(e,n){return kj(this,e,n)},t})(),xe=(function(){function t(e,n,r){this.parentModel=n,this.ecModel=r,this.option=e}return t.prototype.init=function(e,n,r){},t.prototype.mergeOption=function(e,n){Xt(this.option,e,!0)},t.prototype.get=function(e,n){return e==null?this.option:this._doGet(this.parsePath(e),!n&&this.parentModel)},t.prototype.getShallow=function(e,n){var r=this.option,i=r==null?r:r[e];if(i==null&&!n){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},t.prototype.getModel=function(e,n){var r=e!=null,i=r?this.parsePath(e):null,a=r?this._doGet(i):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(a,n,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(Rt(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!Ft.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,n){var r=this.option;if(!e)return r;for(var i=0;i<e.length&&!(e[i]&&(r=r&&typeof r=="object"?r[e[i]]:null,r==null));i++);return r==null&&n&&(r=n._doGet(this.resolveParentPath(e),n.parentModel)),r},t})();k_(xe);MH(xe);Xn(xe,Dj);Xn(xe,Lj);Xn(xe,EH);Xn(xe,Mj);var Ej=Math.round(Math.random()*10);function Ih(t){return[t||"",Ej++].join("_")}function Rj(t){var e={};t.registerSubTypeDefaulter=function(n,r){var i=Ni(n);e[i.main]=r},t.determineSubType=function(n,r){var i=r.type;if(!i){var a=Ni(n).main;t.hasSubTypes(n)&&e[a]&&(i=e[a](r))}return i}}function Ij(t,e){t.topologicalTravel=function(a,o,l,s){if(!a.length)return;var c=n(o),h=c.graph,d=c.noEntryList,g={};for(N(a,function(S){g[S]=!0});d.length;){var p=d.pop(),m=h[p],x=!!g[p];x&&(l.call(s,p,m.originalDeps.slice()),delete g[p]),N(m.successor,x?b:_)}N(g,function(){var S="";throw new Error(S)});function _(S){h[S].entryCount--,h[S].entryCount===0&&d.push(S)}function b(S){g[S]=!0,_(S)}};function n(a){var o={},l=[];return N(a,function(s){var c=r(o,s),h=c.originalDeps=e(s),d=i(h,a);c.entryCount=d.length,c.entryCount===0&&l.push(s),N(d,function(g){Yt(c.predecessor,g)<0&&c.predecessor.push(g);var p=r(o,g);Yt(p.successor,g)<0&&p.successor.push(s)})}),{graph:o,noEntryList:l}}function r(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var l=[];return N(a,function(s){Yt(o,s)>=0&&l.push(s)}),l}}function Zu(t,e){return Xt(Xt({},t,!0),e,!0)}const Oj={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:". "}}}},zj={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 Fp="ZH",U_="EN",Lu=U_,vp={},Y_={},hO=Ft.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Lu).toUpperCase();return t.indexOf(Fp)>-1?Fp:Lu})():Lu;function dO(t,e){t=t.toUpperCase(),Y_[t]=new xe(e),vp[t]=e}function Bj(t){if(St(t)){var e=vp[t.toUpperCase()]||{};return t===Fp||t===U_?Rt(e):Xt(Rt(e),Rt(vp[Lu]),!1)}else return Xt(Rt(t),Rt(vp[Lu]),!1)}function Nj(t){return Y_[t]}function Pj(){return Y_[Lu]}dO(U_,Oj);dO(Fp,zj);var Vj=null;function Gp(){return Vj}var W_=1e3,X_=W_*60,Uf=X_*60,Xr=Uf*24,QA=Xr*365,Hj={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},pp={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},jj="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Cv="{yyyy}-{MM}-{dd}",KA={year:"{yyyy}",month:"{yyyy}-{MM}",day:Cv,hour:Cv+" "+pp.hour,minute:Cv+" "+pp.minute,second:Cv+" "+pp.second,millisecond:jj},Yl=["year","month","day","hour","minute","second","millisecond"],Fj=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Gj(t){return!St(t)&&!It(t)?Uj(t):t}function Uj(t){t=t||{};var e={},n=!0;return N(Yl,function(r){n&&(n=t[r]==null)}),N(Yl,function(r,i){var a=t[r];e[r]={};for(var o=null,l=i;l>=0;l--){var s=Yl[l],c=Lt(a)&&!pt(a)?a[s]:a,h=void 0;pt(c)?(h=c.slice(),o=h[0]||""):St(c)?(o=c,h=[o]):(o==null?o=pp[r]:Hj[s].test(o)||(o=e[s][s][0]+" "+o),h=[o],n&&(h[1]="{primary|"+o+"}")),e[r][s]=h}}),e}function io(t,e){return t+="","0000".substr(0,e-t.length)+t}function Yf(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function Yj(t){return t===Yf(t)}function Wj(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ng(t,e,n,r){var i=Yu(t),a=i[vO(n)](),o=i[q_(n)]()+1,l=Math.floor((o-1)/3)+1,s=i[Z_(n)](),c=i["get"+(n?"UTC":"")+"Day"](),h=i[$_(n)](),d=(h-1)%12+1,g=i[Q_(n)](),p=i[K_(n)](),m=i[J_(n)](),x=h>=12?"pm":"am",_=x.toUpperCase(),b=r instanceof xe?r:Nj(r||hO)||Pj(),S=b.getModel("time"),T=S.get("month"),A=S.get("monthAbbr"),D=S.get("dayOfWeek"),M=S.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,x+"").replace(/{A}/g,_+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,io(a%100+"",2)).replace(/{Q}/g,l+"").replace(/{MMMM}/g,T[o-1]).replace(/{MMM}/g,A[o-1]).replace(/{MM}/g,io(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,io(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,D[c]).replace(/{ee}/g,M[c]).replace(/{e}/g,c+"").replace(/{HH}/g,io(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,io(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,io(g,2)).replace(/{m}/g,g+"").replace(/{ss}/g,io(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,io(m,3)).replace(/{S}/g,m+"")}function Xj(t,e,n,r,i){var a=null;if(St(n))a=n;else if(It(n)){var o={time:t.time,level:t.time.level},l=Gp();l&&l.makeAxisLabelFormatterParamBreak(o,t.break),a=n(t.value,e,o)}else{var s=t.time;if(s){var c=n[s.lowerTimeUnit][s.upperTimeUnit];a=c[Math.min(s.level,c.length-1)]||""}else{var h=Up(t.value,i);a=n[h][h][0]}}return Ng(new Date(t.value),a,i,r)}function Up(t,e){var n=Yu(t),r=n[q_(e)]()+1,i=n[Z_(e)](),a=n[$_(e)](),o=n[Q_(e)](),l=n[K_(e)](),s=n[J_(e)](),c=s===0,h=c&&l===0,d=h&&o===0,g=d&&a===0,p=g&&i===1,m=p&&r===1;return m?"year":p?"month":g?"day":d?"hour":h?"minute":c?"second":"millisecond"}function lb(t,e,n){switch(e){case"year":t[pO(n)](0);case"month":t[gO(n)](1);case"day":t[mO(n)](0);case"hour":t[yO(n)](0);case"minute":t[xO(n)](0);case"second":t[bO(n)](0)}return t}function vO(t){return t?"getUTCFullYear":"getFullYear"}function q_(t){return t?"getUTCMonth":"getMonth"}function Z_(t){return t?"getUTCDate":"getDate"}function $_(t){return t?"getUTCHours":"getHours"}function Q_(t){return t?"getUTCMinutes":"getMinutes"}function K_(t){return t?"getUTCSeconds":"getSeconds"}function J_(t){return t?"getUTCMilliseconds":"getMilliseconds"}function qj(t){return t?"setUTCFullYear":"setFullYear"}function pO(t){return t?"setUTCMonth":"setMonth"}function gO(t){return t?"setUTCDate":"setDate"}function mO(t){return t?"setUTCHours":"setHours"}function yO(t){return t?"setUTCMinutes":"setMinutes"}function xO(t){return t?"setUTCSeconds":"setSeconds"}function bO(t){return t?"setUTCMilliseconds":"setMilliseconds"}function _O(t){if(!tH(t))return St(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function SO(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Oh=_g;function sb(t,e,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(h){return h&&zi(h)?h:"-"}function a(h){return!!(h!=null&&!isNaN(h)&&isFinite(h))}var o=e==="time",l=t instanceof Date;if(o||l){var s=o?Yu(t):t;if(isNaN(+s)){if(l)return"-"}else return Ng(s,r,n)}if(e==="ordinal")return Sx(t)?i(t):ve(t)&&a(t)?t+"":"-";var c=Op(t);return a(c)?_O(c):Sx(t)?i(t):typeof t=="boolean"?t+"":"-"}var JA=["a","b","c","d","e","f","g"],l1=function(t,e){return"{"+t+(e??"")+"}"};function wO(t,e,n){pt(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=JA[a];t=t.replace(l1(o),l1(o,0))}for(var l=0;l<r;l++)for(var s=0;s<i.length;s++){var c=e[l][i[s]];t=t.replace(l1(JA[s],l),n?ir(c):c)}return t}function Zj(t,e){var n=St(t)?{color:t,extraCssText:e}:t||{},r=n.color,i=n.type;e=n.extraCssText;var a=n.renderMode||"html";if(!r)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+ir(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ir(r)+";"+(e||"")+'"></span>';var o=n.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Kl(t,e){return e=e||"transparent",St(t)?t:Lt(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Yp(t,e){if(e==="_blank"||e==="blank"){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var gp={},s1={},zh=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,n){this._nonSeriesBoxMasterList=r(gp),this._normalMasterList=r(s1);function r(i,a){var o=[];return N(i,function(l,s){var c=l.create(e,n);o=o.concat(c||[])}),o}},t.prototype.update=function(e,n){N(this._normalMasterList,function(r){r.update&&r.update(e,n)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,n){if(e==="matrix"||e==="calendar"){gp[e]=n;return}s1[e]=n},t.get=function(e){return s1[e]||gp[e]},t})();function $j(t){return!!gp[t]}var ub={coord:1,coord2:2};function Qj(t){TO.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var TO=Bt();function Kj(t){var e=t.getShallow("coord",!0),n=ub.coord;if(e==null){var r=TO.get(t.type);r&&r.getCoord2&&(n=ub.coord2,e=r.getCoord2(t))}return{coord:e,from:n}}var _a={none:0,dataCoordSys:1,boxCoordSys:2};function Jj(t,e){var n=t.getShallow("coordinateSystem"),r=t.getShallow("coordinateSystemUsage",!0),i=_a.none;if(n){var a=t.mainType==="series";r==null&&(r=a?"data":"box"),r==="data"?(i=_a.dataCoordSys,a||(i=_a.none)):r==="box"&&(i=_a.boxCoordSys,!a&&!$j(n)&&(i=_a.none))}return{coordSysType:n,kind:i}}function tF(t){var e=t.targetModel,n=t.coordSysType,r=t.coordSysProvider,i=t.isDefaultDataCoordSys,a=Jj(e),o=a.kind,l=a.coordSysType;if(i&&o!==_a.dataCoordSys&&(o=_a.dataCoordSys,l=n),o===_a.none||l!==n)return!1;var s=r(n,e);return s?(o===_a.dataCoordSys?e.coordinateSystem=s:e.boxCoordinateSystem=s,!0):!1}var mp=N,eF=["left","right","top","bottom","width","height"],Mv=[["width","left","right"],["height","top","bottom"]];function tS(t,e,n,r,i){var a=0,o=0;r==null&&(r=1/0),i==null&&(i=1/0);var l=0;e.eachChild(function(s,c){var h=s.getBoundingRect(),d=e.childAt(c+1),g=d&&d.getBoundingRect(),p,m;if(t==="horizontal"){var x=h.width+(g?-g.x+h.x:0);p=a+x,p>r||s.newline?(a=0,p=x,o+=l+n,l=h.height):l=Math.max(l,h.height)}else{var _=h.height+(g?-g.y+h.y:0);m=o+_,m>i||s.newline?(a+=l+n,o=0,m=_,l=h.width):l=Math.max(l,h.width)}s.newline||(s.x=a,s.y=o,s.markRedraw(),t==="horizontal"?a=p+n:o=m+n)})}var Wl=tS;Wt(tS,"vertical");Wt(tS,"horizontal");function nF(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function rF(t,e){var n=ti(t,e,{enableLayoutOnlyByCenter:!0}),r=t.getBoxLayoutParams(),i,a;if(n.type===Rf.point)a=n.refPoint,i=On(r,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),l=pt(o)?o:[o,o];i=On(r,n.refContainer),a=n.boxCoordFrom===ub.coord2?n.refPoint:[At(l[0],i.width)+i.x,At(l[1],i.height)+i.y]}return{viewRect:i,center:a}}function iF(t,e){var n=rF(t,e),r=n.viewRect,i=n.center,a=t.get("radius");pt(a)||(a=[0,a]);var o=At(r.width,e.getWidth()),l=At(r.height,e.getHeight()),s=Math.min(o,l),c=At(a[0],s/2),h=At(a[1],s/2);return{cx:i[0],cy:i[1],r0:c,r:h,viewRect:r}}function On(t,e,n){n=Oh(n||0);var r=e.width,i=e.height,a=At(t.left,r),o=At(t.top,i),l=At(t.right,r),s=At(t.bottom,i),c=At(t.width,r),h=At(t.height,i),d=n[2]+n[0],g=n[1]+n[3],p=t.aspect;switch(isNaN(c)&&(c=r-l-g-a),isNaN(h)&&(h=i-s-d-o),p!=null&&(isNaN(c)&&isNaN(h)&&(p>r/i?c=r*.8:h=i*.8),isNaN(c)&&(c=p*h),isNaN(h)&&(h=c/p)),isNaN(a)&&(a=r-l-c-g),isNaN(o)&&(o=i-s-h-d),t.left||t.right){case"center":a=r/2-c/2-n[3];break;case"right":a=r-c-g;break}switch(t.top||t.bottom){case"middle":case"center":o=i/2-h/2-n[0];break;case"bottom":o=i-h-d;break}a=a||0,o=o||0,isNaN(c)&&(c=r-g-a-(l||0)),isNaN(h)&&(h=i-d-o-(s||0));var m=new Pt((e.x||0)+a+n[3],(e.y||0)+o+n[0],c,h);return m.margin=n,m}var Rf={rect:1,point:2};function ti(t,e,n){var r,i,a,o=t.boxCoordinateSystem,l;if(o){var s=Kj(t),c=s.coord,h=s.from;if(o.dataToLayout){a=Rf.rect,l=h;var d=o.dataToLayout(c);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Rf.point,l=h,i=o.dataToPoint(c))}return a==null&&(a=Rf.rect),a===Rf.rect&&(r||(r={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:l}}function eS(t,e,n,r,i,a){a=a||t,a.x=t.x,a.y=t.y;var o;if(o=t.getBoundingRect(),t.needLocalTransform()){var l=t.getLocalTransform();o=o.clone(),o.applyTransform(l)}var s=On(qt({width:o.width,height:o.height},e),n,r),c=s.x-o.x,h=s.y-o.y;return a.x+=c,a.y+=h,a===t&&t.markRedraw(),!0}function ch(t){var e=t.layoutMode||t.constructor.layoutMode;return Lt(e)?e:e?{type:e}:null}function Oo(t,e,n){var r=n&&n.ignoreSize;!pt(r)&&(r=[r,r]);var i=o(Mv[0],0),a=o(Mv[1],1);s(Mv[0],t,i),s(Mv[1],t,a);function o(c,h){var d={},g=0,p={},m=0,x=2;if(mp(c,function(S){p[S]=t[S]}),mp(c,function(S){fi(e,S)&&(d[S]=p[S]=e[S]),l(d,S)&&g++,l(p,S)&&m++}),r[h])return l(e,c[1])?p[c[2]]=null:l(e,c[2])&&(p[c[1]]=null),p;if(m===x||!g)return p;if(g>=x)return d;for(var _=0;_<c.length;_++){var b=c[_];if(!fi(d,b)&&fi(t,b)){d[b]=t[b];break}}return d}function l(c,h){return c[h]!=null&&c[h]!=="auto"}function s(c,h,d){mp(c,function(g){h[g]=d[g]})}}function $u(t){return aF({},t)}function aF(t,e){return e&&t&&mp(eF,function(n){fi(e,n)&&(t[n]=e[n])}),t}var oF=be(),ce=(function(t){at(e,t);function e(n,r,i){var a=t.call(this,n,r,i)||this;return a.uid=Ih("ec_cpt_model"),a}return e.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i)},e.prototype.mergeDefaultAndTheme=function(n,r){var i=ch(this),a=i?$u(n):{},o=r.getTheme();Xt(n,o.get(this.mainType)),Xt(n,this.getDefaultOption()),i&&Oo(n,a,i)},e.prototype.mergeOption=function(n,r){Xt(this.option,n,!0);var i=ch(this);i&&Oo(this.option,n,i)},e.prototype.optionUpdated=function(n,r){},e.prototype.getDefaultOption=function(){var n=this.constructor;if(!wH(n))return n.defaultOption;var r=oF(this);if(!r.defaultOption){for(var i=[],a=n;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var l={},s=i.length-1;s>=0;s--)l=Xt(l,i[s],!0);r.defaultOption=l}return r.defaultOption},e.prototype.getReferringComponents=function(n,r){var i=n+"Index",a=n+"Id";return Wu(this.ecModel,n,{index:this.get(i,!0),id:this.get(a,!0)},r)},e.prototype.getBoxLayoutParams=function(){return nF(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(n){this.option.zlevel=n},e.protoInitialize=(function(){var n=e.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0})(),e})(xe);AI(ce,xe);Cg(ce);Rj(ce);Ij(ce,lF);function lF(t){var e=[];return N(ce.getClassesByMainType(t),function(n){e=e.concat(n.dependencies||n.prototype.dependencies||[])}),e=bt(e,function(n){return Ni(n).main}),t!=="dataset"&&Yt(e,"dataset")<=0&&e.unshift("dataset"),e}var ot={color:{},darkColor:{},size:{}},Ge=ot.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};ht(Ge,{primary:Ge.neutral80,secondary:Ge.neutral70,tertiary:Ge.neutral60,quaternary:Ge.neutral50,disabled:Ge.neutral20,border:Ge.neutral30,borderTint:Ge.neutral20,borderShade:Ge.neutral40,background:Ge.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Ge.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Ge.neutral70,axisLineTint:Ge.neutral40,axisTick:Ge.neutral70,axisTickMinor:Ge.neutral60,axisLabel:Ge.neutral70,axisSplitLine:Ge.neutral15,axisMinorSplitLine:Ge.neutral05});for(var _l in Ge)if(Ge.hasOwnProperty(_l)){var tD=Ge[_l];_l==="theme"?ot.darkColor.theme=Ge.theme.slice():_l==="highlight"?ot.darkColor.highlight="rgba(255,231,130,0.4)":_l.indexOf("accent")===0?ot.darkColor[_l]=Ao(tD,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):ot.darkColor[_l]=Ao(tD,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)})}ot.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var CO="";typeof navigator<"u"&&(CO=navigator.platform||"");var Js="rgba(0, 0, 0, 0.2)",MO=ot.color.theme[0],sF=Ao(MO,null,null,.9);const uF={darkMode:"auto",colorBy:"series",color:ot.color.theme,gradientColor:[sF,MO],aria:{decal:{decals:[{color:Js,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Js,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Js,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Js,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Js,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Js,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:CO.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 AO=Bt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Mr="original",Cn="arrayRows",ei="objectRows",_i="keyedColumns",ko="typedArray",DO="unknown",vi="column",rs="row",Sn={Must:1,Might:2,Not:3},kO=be();function cF(t){kO(t).datasetMap=Bt()}function LO(t,e,n){var r={},i=nS(e);if(!i||!t)return r;var a=[],o=[],l=e.ecModel,s=kO(l).datasetMap,c=i.uid+"_"+n.seriesLayoutBy,h,d;t=t.slice(),N(t,function(x,_){var b=Lt(x)?x:t[_]={name:x};b.type==="ordinal"&&h==null&&(h=_,d=m(b)),r[b.name]=[]});var g=s.get(c)||s.set(c,{categoryWayDim:d,valueWayDim:0});N(t,function(x,_){var b=x.name,S=m(x);if(h==null){var T=g.valueWayDim;p(r[b],T,S),p(o,T,S),g.valueWayDim+=S}else if(h===_)p(r[b],0,S),p(a,0,S);else{var T=g.categoryWayDim;p(r[b],T,S),p(o,T,S),g.categoryWayDim+=S}});function p(x,_,b){for(var S=0;S<b;S++)x.push(_+S)}function m(x){var _=x.dimsDef;return _?_.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function EO(t,e,n){var r={},i=nS(t);if(!i)return r;var a=e.sourceFormat,o=e.dimensionsDefine,l;(a===ei||a===_i)&&N(o,function(h,d){(Lt(h)?h.name:h)==="name"&&(l=d)});var s=(function(){for(var h={},d={},g=[],p=0,m=Math.min(5,n);p<m;p++){var x=IO(e.data,a,e.seriesLayoutBy,o,e.startIndex,p);g.push(x);var _=x===Sn.Not;if(_&&h.v==null&&p!==l&&(h.v=p),(h.n==null||h.n===h.v||!_&&g[h.n]===Sn.Not)&&(h.n=p),b(h)&&g[h.n]!==Sn.Not)return h;_||(x===Sn.Might&&d.v==null&&p!==l&&(d.v=p),(d.n==null||d.n===d.v)&&(d.n=p))}function b(S){return S.v!=null&&S.n!=null}return b(h)?h:b(d)?d:null})();if(s){r.value=[s.v];var c=l??s.n;r.itemName=[c],r.seriesName=[c]}return r}function nS(t){var e=t.get("data",!0);if(!e)return Wu(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},En).models[0]}function fF(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:Wu(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},En).models}function RO(t,e){return IO(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function IO(t,e,n,r,i,a){var o,l=5;if(sr(t))return Sn.Not;var s,c;if(r){var h=r[a];Lt(h)?(s=h.name,c=h.type):St(h)&&(s=h)}if(c!=null)return c==="ordinal"?Sn.Must:Sn.Not;if(e===Cn){var d=t;if(n===rs){for(var g=d[a],p=0;p<(g||[]).length&&p<l;p++)if((o=A(g[i+p]))!=null)return o}else for(var p=0;p<d.length&&p<l;p++){var m=d[i+p];if(m&&(o=A(m[a]))!=null)return o}}else if(e===ei){var x=t;if(!s)return Sn.Not;for(var p=0;p<x.length&&p<l;p++){var _=x[p];if(_&&(o=A(_[s]))!=null)return o}}else if(e===_i){var b=t;if(!s)return Sn.Not;var g=b[s];if(!g||sr(g))return Sn.Not;for(var p=0;p<g.length&&p<l;p++)if((o=A(g[p]))!=null)return o}else if(e===Mr)for(var S=t,p=0;p<S.length&&p<l;p++){var _=S[p],T=Dh(_);if(!pt(T))return Sn.Not;if((o=A(T[a]))!=null)return o}function A(D){var M=St(D);if(D!=null&&Number.isFinite(Number(D))&&D!=="")return M?Sn.Might:Sn.Not;if(M&&D!=="-")return Sn.Must}return Sn.Not}var cb=Bt();function hF(t,e){$r(cb.get(t)==null&&e),cb.set(t,e)}function dF(t,e,n){var r=cb.get(e);if(!r)return n;var i=r(t);return i?n.concat(i):n}var eD=be(),vF=be(),rS=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,n,r){var i=ln(this.get("color",!0)),a=this.get("colorLayer",!0);return OO(this,eD,i,a,e,n,r)},t.prototype.clearColorPalette=function(){mF(this,eD)},t})();function pF(t,e,n,r){var i=ln(t.get(["aria","decal","decals"]));return OO(t,vF,i,null,e,n,r)}function gF(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r].length>e)return t[r];return t[n-1]}function OO(t,e,n,r,i,a,o){a=a||t;var l=e(a),s=l.paletteIdx||0,c=l.paletteNameMap=l.paletteNameMap||{};if(c.hasOwnProperty(i))return c[i];var h=o==null||!r?n:gF(r,o);if(h=h||n,!(!h||!h.length)){var d=h[s];return i&&(c[i]=d),l.paletteIdx=(s+1)%h.length,d}}function mF(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Av,Jc,nD,rD="\0_ec_inner",yF=1,iS=(function(t){at(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(n,r,i,a,o,l){a=a||{},this.option=null,this._theme=new xe(a),this._locale=new xe(o),this._optionManager=l},e.prototype.setOption=function(n,r,i){var a=oD(r);this._optionManager.setOption(n,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(n,r){return this._resetOption(n,oD(r))},e.prototype._resetOption=function(n,r){var i=!1,a=this._optionManager;if(!n||n==="recreate"){var o=a.mountOption(n==="recreate");!this.option||n==="recreate"?nD(this,o):(this.restoreData(),this._mergeOption(o,r)),i=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var l=a.getTimelineOption(this);l&&(i=!0,this._mergeOption(l,r))}if(!n||n==="recreate"||n==="media"){var s=a.getMediaOption(this);s.length&&N(s,function(c){i=!0,this._mergeOption(c,r)},this)}return i},e.prototype.mergeOption=function(n){this._mergeOption(n,null)},e.prototype._mergeOption=function(n,r){var i=this.option,a=this._componentsMap,o=this._componentsCount,l=[],s=Bt(),c=r&&r.replaceMergeMainTypeMap;cF(this),N(n,function(d,g){d!=null&&(ce.hasClass(g)?g&&(l.push(g),s.set(g,!0)):i[g]=i[g]==null?Rt(d):Xt(i[g],d,!0))}),c&&c.each(function(d,g){ce.hasClass(g)&&!s.get(g)&&(l.push(g),s.set(g,!0))}),ce.topologicalTravel(l,ce.getAllClassMainTypes(),h,this);function h(d){var g=dF(this,d,ln(n[d])),p=a.get(d),m=p?c&&c.get(d)?"replaceMerge":"normalMerge":"replaceAll",x=aH(p,g,m);dH(x,d,ce),i[d]=null,a.set(d,null),o.set(d,0);var _=[],b=[],S=0,T;N(x,function(A,D){var M=A.existing,k=A.newOption;if(!k)M&&(M.mergeOption({},this),M.optionUpdated({},!1));else{var I=d==="series",z=ce.getClass(d,A.keyInfo.subType,!I);if(!z)return;if(d==="tooltip"){if(T)return;T=!0}if(M&&M.constructor===z)M.name=A.keyInfo.name,M.mergeOption(k,this),M.optionUpdated(k,!1);else{var L=ht({componentIndex:D},A.keyInfo);M=new z(k,this,this,L),ht(M,L),A.brandNew&&(M.__requireNewView=!0),M.init(k,this,this),M.optionUpdated(null,!0)}}M?(_.push(M.option),b.push(M),S++):(_.push(void 0),b.push(void 0))},this),i[d]=_,a.set(d,b),o.set(d,S),d==="series"&&Av(this)}this._seriesIndices||Av(this)},e.prototype.getOption=function(){var n=Rt(this.option);return N(n,function(r,i){if(ce.hasClass(i)){for(var a=ln(r),o=a.length,l=!1,s=o-1;s>=0;s--)a[s]&&!ih(a[s])?l=!0:(a[s]=null,!l&&o--);a.length=o,n[i]=a}}),delete n[rD],n},e.prototype.setTheme=function(n){this._theme=new xe(n),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(n){this._payload=n},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(n,r){var i=this._componentsMap.get(n);if(i){var a=i[r||0];if(a)return a;if(r==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},e.prototype.queryComponents=function(n){var r=n.mainType;if(!r)return[];var i=n.index,a=n.id,o=n.name,l=this._componentsMap.get(r);if(!l||!l.length)return[];var s;return i!=null?(s=[],N(ln(i),function(c){l[c]&&s.push(l[c])})):a!=null?s=iD("id",a,l):o!=null?s=iD("name",o,l):s=Ze(l,function(c){return!!c}),aD(s,n)},e.prototype.findComponents=function(n){var r=n.query,i=n.mainType,a=l(r),o=a?this.queryComponents(a):Ze(this._componentsMap.get(i),function(c){return!!c});return s(aD(o,n));function l(c){var h=i+"Index",d=i+"Id",g=i+"Name";return c&&(c[h]!=null||c[d]!=null||c[g]!=null)?{mainType:i,index:c[h],id:c[d],name:c[g]}:null}function s(c){return n.filter?Ze(c,n.filter):c}},e.prototype.eachComponent=function(n,r,i){var a=this._componentsMap;if(It(n)){var o=r,l=n;a.each(function(d,g){for(var p=0;d&&p<d.length;p++){var m=d[p];m&&l.call(o,g,m,m.componentIndex)}})}else for(var s=St(n)?a.get(n):Lt(n)?this.findComponents(n):null,c=0;s&&c<s.length;c++){var h=s[c];h&&r.call(i,h,h.componentIndex)}},e.prototype.getSeriesByName=function(n){var r=Un(n,null);return Ze(this._componentsMap.get("series"),function(i){return!!i&&r!=null&&i.name===r})},e.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},e.prototype.getSeriesByType=function(n){return Ze(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},e.prototype.getSeries=function(){return Ze(this._componentsMap.get("series"),function(n){return!!n})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(n,r){Jc(this),N(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];n.call(r,a,i)},this)},e.prototype.eachRawSeries=function(n,r){N(this._componentsMap.get("series"),function(i){i&&n.call(r,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(n,r,i){Jc(this),N(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===n&&r.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(n,r,i){return N(this.getSeriesByType(n),r,i)},e.prototype.isSeriesFiltered=function(n){return Jc(this),this._seriesIndicesMap.get(n.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(n,r){Jc(this);var i=[];N(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];n.call(r,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=Bt(i)},e.prototype.restoreData=function(n){Av(this);var r=this._componentsMap,i=[];r.each(function(a,o){ce.hasClass(o)&&i.push(o)}),ce.topologicalTravel(i,ce.getAllClassMainTypes(),function(a){N(r.get(a),function(o){o&&(a!=="series"||!xF(o,n))&&o.restoreData()})})},e.internalField=(function(){Av=function(n){var r=n._seriesIndices=[];N(n._componentsMap.get("series"),function(i){i&&r.push(i.componentIndex)}),n._seriesIndicesMap=Bt(r)},Jc=function(n){},nD=function(n,r){n.option={},n.option[rD]=yF,n._componentsMap=Bt({series:[]}),n._componentsCount=Bt();var i=r.aria;Lt(i)&&i.enabled==null&&(i.enabled=!0),bF(r,n._theme.option),Xt(r,uF,!1),n._mergeOption(r,null)}})(),e})(xe);function xF(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,i=e.seriesName;return n!=null&&t.componentIndex!==n||r!=null&&t.id!==r||i!=null&&t.name!==i}}function bF(t,e){var n=t.color&&!t.colorLayer;N(e,function(r,i){i==="colorLayer"&&n||i==="color"&&t.color||ce.hasClass(i)||(typeof r=="object"?t[i]=t[i]?Xt(t[i],r,!1):Rt(r):t[i]==null&&(t[i]=r))})}function iD(t,e,n){if(pt(e)){var r=Bt();return N(e,function(a){if(a!=null){var o=Un(a,null);o!=null&&r.set(a,!0)}}),Ze(n,function(a){return a&&r.get(a[t])})}else{var i=Un(e,null);return Ze(n,function(a){return a&&i!=null&&a[t]===i})}}function aD(t,e){return e.hasOwnProperty("subType")?Ze(t,function(n){return n&&n.subType===e.subType}):t}function oD(t){var e=Bt();return t&&N(ln(t.replaceMerge),function(n){e.set(n,!0)}),{replaceMergeMainTypeMap:e}}Xn(iS,rS);var _F=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],zO=(function(){function t(e){N(_F,function(n){this[n]=Tt(e[n],e)},this)}return t})(),SF=/^(min|max)?(.+)$/,wF=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,n,r){e&&(N(ln(e.series),function(o){o&&o.data&&sr(o.data)&&Tp(o.data)}),N(ln(e.dataset),function(o){o&&o.source&&sr(o.source)&&Tp(o.source)})),e=Rt(e);var i=this._optionBackup,a=TF(e,n,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var n=this._optionBackup;return this._timelineOptions=n.timelineOptions,this._mediaList=n.mediaList,this._mediaDefault=n.mediaDefault,this._currentMediaIndices=[],Rt(e?n.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var n,r=this._timelineOptions;if(r.length){var i=e.getComponent("timeline");i&&(n=Rt(r[i.getCurrentIndex()]))}return n},t.prototype.getMediaOption=function(e){var n=this._api.getWidth(),r=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],l=[];if(!i.length&&!a)return l;for(var s=0,c=i.length;s<c;s++)CF(i[s].query,n,r)&&o.push(s);return!o.length&&a&&(o=[-1]),o.length&&!AF(o,this._currentMediaIndices)&&(l=bt(o,function(h){return Rt(h===-1?a.option:i[h].option)})),this._currentMediaIndices=o,l},t})();function TF(t,e,n){var r=[],i,a,o=t.baseOption,l=t.timeline,s=t.options,c=t.media,h=!!t.media,d=!!(s||l||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=l)):((d||h)&&(t.options=t.media=null),a=t),h&&pt(c)&&N(c,function(p){p&&p.option&&(p.query?r.push(p):i||(i=p))}),g(a),N(s,function(p){return g(p)}),N(r,function(p){return g(p.option)});function g(p){N(e,function(m){m(p,n)})}return{baseOption:a,timelineOptions:s||[],mediaDefault:i,mediaList:r}}function CF(t,e,n){var r={width:e,height:n,aspectratio:e/n},i=!0;return N(t,function(a,o){var l=o.match(SF);if(!(!l||!l[1]||!l[2])){var s=l[1],c=l[2].toLowerCase();MF(r[c],a,s)||(i=!1)}}),i}function MF(t,e,n){return n==="min"?t>=e:n==="max"?t<=e:t===e}function AF(t,e){return t.join(",")===e.join(",")}var li=N,fh=Lt,lD=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function u1(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=lD.length;n<r;n++){var i=lD[n],a=e.normal,o=e.emphasis;a&&a[i]&&(t[i]=t[i]||{},t[i].normal?Xt(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(t[i]=t[i]||{},t[i].emphasis?Xt(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function Ln(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,i=t[e].emphasis;r&&(n?(t[e].normal=t[e].emphasis=null,qt(t[e],r)):t[e]=r),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function If(t){Ln(t,"itemStyle"),Ln(t,"lineStyle"),Ln(t,"areaStyle"),Ln(t,"label"),Ln(t,"labelLine"),Ln(t,"upperLabel"),Ln(t,"edgeLabel")}function qe(t,e){var n=fh(t)&&t[e],r=fh(n)&&n.textStyle;if(r)for(var i=0,a=sA.length;i<a;i++){var o=sA[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function Hr(t){t&&(If(t),qe(t,"label"),t.emphasis&&qe(t.emphasis,"label"))}function DF(t){if(fh(t)){u1(t),If(t),qe(t,"label"),qe(t,"upperLabel"),qe(t,"edgeLabel"),t.emphasis&&(qe(t.emphasis,"label"),qe(t.emphasis,"upperLabel"),qe(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(u1(e),Hr(e));var n=t.markLine;n&&(u1(n),Hr(n));var r=t.markArea;r&&Hr(r);var i=t.data;if(t.type==="graph"){i=i||t.nodes;var a=t.links||t.edges;if(a&&!sr(a))for(var o=0;o<a.length;o++)Hr(a[o]);N(t.categories,function(c){If(c)})}if(i&&!sr(i))for(var o=0;o<i.length;o++)Hr(i[o]);if(e=t.markPoint,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)Hr(l[o]);if(n=t.markLine,n&&n.data)for(var s=n.data,o=0;o<s.length;o++)pt(s[o])?(Hr(s[o][0]),Hr(s[o][1])):Hr(s[o]);t.type==="gauge"?(qe(t,"axisLabel"),qe(t,"title"),qe(t,"detail")):t.type==="treemap"?(Ln(t.breadcrumb,"itemStyle"),N(t.levels,function(c){If(c)})):t.type==="tree"&&If(t.leaves)}}function pa(t){return pt(t)?t:t?[t]:[]}function sD(t){return(pt(t)?t[0]:t)||{}}function kF(t,e){li(pa(t.series),function(r){fh(r)&&DF(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),li(n,function(r){li(pa(t[r]),function(i){i&&(qe(i,"axisLabel"),qe(i.axisPointer,"label"))})}),li(pa(t.parallel),function(r){var i=r&&r.parallelAxisDefault;qe(i,"axisLabel"),qe(i&&i.axisPointer,"label")}),li(pa(t.calendar),function(r){Ln(r,"itemStyle"),qe(r,"dayLabel"),qe(r,"monthLabel"),qe(r,"yearLabel")}),li(pa(t.radar),function(r){qe(r,"name"),r.name&&r.axisName==null&&(r.axisName=r.name,delete r.name),r.nameGap!=null&&r.axisNameGap==null&&(r.axisNameGap=r.nameGap,delete r.nameGap)}),li(pa(t.geo),function(r){fh(r)&&(Hr(r),li(pa(r.regions),function(i){Hr(i)}))}),li(pa(t.timeline),function(r){Hr(r),Ln(r,"label"),Ln(r,"itemStyle"),Ln(r,"controlStyle",!0);var i=r.data;pt(i)&&N(i,function(a){Lt(a)&&(Ln(a,"label"),Ln(a,"itemStyle"))})}),li(pa(t.toolbox),function(r){Ln(r,"iconStyle"),li(r.feature,function(i){Ln(i,"iconStyle")})}),qe(sD(t.axisPointer),"label"),qe(sD(t.tooltip).axisPointer,"label")}function LF(t,e){for(var n=e.split(","),r=t,i=0;i<n.length&&(r=r&&r[n[i]],r!=null);i++);return r}function EF(t,e,n,r){for(var i=e.split(","),a=t,o,l=0;l<i.length-1;l++)o=i[l],a[o]==null&&(a[o]={}),a=a[o];a[i[l]]==null&&(a[i[l]]=n)}function uD(t){t&&N(RF,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var RF=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],IF=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],c1=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function tf(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<c1.length;n++){var r=c1[n][1],i=c1[n][0];e[r]!=null&&(e[i]=e[r])}}function cD(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function fD(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function OF(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function BO(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&BO(t[n].children,e)}function NO(t,e){kF(t,e),t.series=ln(t.series),N(t.series,function(n){if(Lt(n)){var r=n.type;if(r==="line")n.clipOverflow!=null&&(n.clip=n.clipOverflow);else if(r==="pie"||r==="gauge"){n.clockWise!=null&&(n.clockwise=n.clockWise),cD(n.label);var i=n.data;if(i&&!sr(i))for(var a=0;a<i.length;a++)cD(i[a]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var o=LF(n,"pointer.color");o!=null&&EF(n,"itemStyle.color",o)}else if(r==="bar"){tf(n),tf(n.backgroundStyle),tf(n.emphasis);var i=n.data;if(i&&!sr(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(tf(i[a]),tf(i[a]&&i[a].emphasis))}else if(r==="sunburst"){var l=n.highlightPolicy;l&&(n.emphasis=n.emphasis||{},n.emphasis.focus||(n.emphasis.focus=l)),fD(n),BO(n.data,fD)}else r==="graph"||r==="sankey"?OF(n):r==="map"&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&qt(n,n.mapLocation));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(n.emphasis.scale=n.hoverAnimation)),uD(n)}}),t.dataRange&&(t.visualMap=t.dataRange),N(IF,function(n){var r=t[n];r&&(pt(r)||(r=[r]),N(r,function(i){uD(i)}))})}function zF(t){var e=Bt();t.eachSeries(function(n){var r=n.get("stack");if(r){var i=e.get(r)||e.set(r,[]),a=n.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:n};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.push(o)}}),e.each(function(n){if(n.length!==0){var r=n[0].seriesModel,i=r.get("stackOrder")||"seriesAsc";i==="seriesDesc"&&n.reverse(),N(n,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?n[o-1].seriesModel:null)}),BF(n)}})}function BF(t){N(t,function(e,n){var r=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,l=e.isStackedByIndex,s=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(c,h,d){var g=o.get(e.stackedDimension,d);if(isNaN(g))return i;var p,m;l?m=o.getRawIndex(d):p=o.get(e.stackedByDimension,d);for(var x=NaN,_=n-1;_>=0;_--){var b=t[_];if(l||(m=b.data.rawIndexOf(b.stackedByDimension,p)),m>=0){var S=b.data.getByRawIndex(b.stackResultDimension,m);if(s==="all"||s==="positive"&&S>0||s==="negative"&&S<0||s==="samesign"&&g>=0&&S>0||s==="samesign"&&g<=0&&S<0){g=QV(g,S),x=S;break}}}return r[0]=g,r[1]=x,r})})}var Pg=(function(){function t(e){this.data=e.data||(e.sourceFormat===_i?{}:[]),this.sourceFormat=e.sourceFormat||DO,this.seriesLayoutBy=e.seriesLayoutBy||vi,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var n=this.dimensionsDefine=e.dimensionsDefine;if(n)for(var r=0;r<n.length;r++){var i=n[r];i.type==null&&RO(this,r)===Sn.Must&&(i.type="ordinal")}}return t})();function aS(t){return t instanceof Pg}function fb(t,e,n){n=n||PO(t);var r=e.seriesLayoutBy,i=PF(t,n,r,e.sourceHeader,e.dimensions),a=new Pg({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Rt(e)});return a}function oS(t){return new Pg({data:t,sourceFormat:sr(t)?ko:Mr})}function NF(t){return new Pg({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Rt(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function PO(t){var e=DO;if(sr(t))e=ko;else if(pt(t)){t.length===0&&(e=Cn);for(var n=0,r=t.length;n<r;n++){var i=t[n];if(i!=null){if(pt(i)||sr(i)){e=Cn;break}else if(Lt(i)){e=ei;break}}}}else if(Lt(t)){for(var a in t)if(fi(t,a)&&lr(t[a])){e=_i;break}}return e}function PF(t,e,n,r,i){var a,o;if(!t)return{dimensionsDefine:hD(i),startIndex:o,dimensionsDetectedCount:a};if(e===Cn){var l=t;r==="auto"||r==null?dD(function(c){c!=null&&c!=="-"&&(St(c)?o==null&&(o=1):o=0)},n,l,10):o=ve(r)?r:r?1:0,!i&&o===1&&(i=[],dD(function(c,h){i[h]=c!=null?c+"":""},n,l,1/0)),a=i?i.length:n===rs?l.length:l[0]?l[0].length:null}else if(e===ei)i||(i=VF(t));else if(e===_i)i||(i=[],N(t,function(c,h){i.push(h)}));else if(e===Mr){var s=Dh(t[0]);a=pt(s)&&s.length||1}return{startIndex:o,dimensionsDefine:hD(i),dimensionsDetectedCount:a}}function VF(t){for(var e=0,n;e<t.length&&!(n=t[e++]););if(n)return Be(n)}function hD(t){if(t){var e=Bt();return bt(t,function(n,r){n=Lt(n)?n:{name:n};var i={name:n.name,displayName:n.displayName,type:n.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function dD(t,e,n,r){if(e===rs)for(var i=0;i<n.length&&i<r;i++)t(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)t(a[i],i)}function VO(t){var e=t.sourceFormat;return e===ei||e===_i}var Sl,wl,Tl,Cl,vD,pD,HO=(function(){function t(e,n){var r=aS(e)?e:oS(e);this._source=r;var i=this._data=r.data,a=r.sourceFormat;r.seriesLayoutBy,a===ko&&(this._offset=0,this._dimSize=n,this._data=i),pD(this,i,r)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,n){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;pD=function(o,l,s){var c=s.sourceFormat,h=s.seriesLayoutBy,d=s.startIndex,g=s.dimensionsDefine,p=vD[lS(c,h)];if(ht(o,p),c===ko)o.getItem=n,o.count=i,o.fillStorage=r;else{var m=jO(c,h);o.getItem=Tt(m,null,l,d,g);var x=FO(c,h);o.count=Tt(x,null,l,d,g)}};var n=function(o,l){o=o-this._offset,l=l||[];for(var s=this._data,c=this._dimSize,h=c*o,d=0;d<c;d++)l[d]=s[h+d];return l},r=function(o,l,s,c){for(var h=this._data,d=this._dimSize,g=0;g<d;g++){for(var p=c[g],m=p[0]==null?1/0:p[0],x=p[1]==null?-1/0:p[1],_=l-o,b=s[g],S=0;S<_;S++){var T=h[S*d+g];b[o+S]=T,T<m&&(m=T),T>x&&(x=T)}p[0]=m,p[1]=x}},i=function(){return this._data?this._data.length/this._dimSize:0};vD=(e={},e[Cn+"_"+vi]={pure:!0,appendData:a},e[Cn+"_"+rs]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[ei]={pure:!0,appendData:a},e[_i]={pure:!0,appendData:function(o){var l=this._data;N(o,function(s,c){for(var h=l[c]||(l[c]=[]),d=0;d<(s||[]).length;d++)h.push(s[d])})}},e[Mr]={appendData:a},e[ko]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var l=0;l<o.length;l++)this._data.push(o[l])}})(),t})(),Dv=function(t){pt(t)||bI("series.data or dataset.source must be an array.")};Sl={},Sl[Cn+"_"+vi]=Dv,Sl[Cn+"_"+rs]=Dv,Sl[ei]=Dv,Sl[_i]=function(t,e){for(var n=0;n<e.length;n++){var r=e[n].name;r==null&&bI("dimension name must not be null/undefined.")}},Sl[Mr]=Dv;var gD=function(t,e,n,r){return t[r]},HF=(wl={},wl[Cn+"_"+vi]=function(t,e,n,r){return t[r+e]},wl[Cn+"_"+rs]=function(t,e,n,r,i){r+=e;for(var a=i||[],o=t,l=0;l<o.length;l++){var s=o[l];a[l]=s?s[r]:null}return a},wl[ei]=gD,wl[_i]=function(t,e,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var l=n[o].name,s=l!=null?t[l]:null;a[o]=s?s[r]:null}return a},wl[Mr]=gD,wl);function jO(t,e){var n=HF[lS(t,e)];return n}var mD=function(t,e,n){return t.length},jF=(Tl={},Tl[Cn+"_"+vi]=function(t,e,n){return Math.max(0,t.length-e)},Tl[Cn+"_"+rs]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},Tl[ei]=mD,Tl[_i]=function(t,e,n){var r=n[0].name,i=r!=null?t[r]:null;return i?i.length:0},Tl[Mr]=mD,Tl);function FO(t,e){var n=jF[lS(t,e)];return n}var f1=function(t,e,n){return t[e]},FF=(Cl={},Cl[Cn]=f1,Cl[ei]=function(t,e,n){return t[n]},Cl[_i]=f1,Cl[Mr]=function(t,e,n){var r=Dh(t);return r instanceof Array?r[e]:r},Cl[ko]=f1,Cl);function GO(t){var e=FF[t];return e}function lS(t,e){return t===Cn?t+"_"+e:t}function Nu(t,e,n){if(t){var r=t.getRawDataItem(e);if(r!=null){var i=t.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=t.getDimensionIndex(n),l=i.getDimensionProperty(o);return GO(a)(r,o,l)}else{var s=r;return a===Mr&&(s=Dh(r)),s}}}}var GF=/\{@(.+?)\}/g,UF=(function(){function t(){}return t.prototype.getDataParams=function(e,n){var r=this.getData(n),i=this.getRawValue(e,n),a=r.getRawIndex(e),o=r.getName(e),l=r.getRawDataItem(e),s=r.getItemVisual(e,"style"),c=s&&s[r.getItemVisual(e,"drawType")||"fill"],h=s&&s.stroke,d=this.mainType,g=d==="series",p=r.userOutput&&r.userOutput.get();return{componentType:d,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:g?this.subType:null,seriesIndex:this.seriesIndex,seriesId:g?this.id:null,seriesName:g?this.name:null,name:o,dataIndex:a,data:l,dataType:n,value:i,color:c,borderColor:h,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,n,r,i,a,o){n=n||"normal";var l=this.getData(r),s=this.getDataParams(e,r);if(o&&(s.value=o.interpolatedValue),i!=null&&pt(s.value)&&(s.value=s.value[i]),!a){var c=l.getItemModel(e);a=c.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(It(a))return s.status=n,s.dimensionIndex=i,a(s);if(St(a)){var h=wO(a,s);return h.replace(GF,function(d,g){var p=g.length,m=g;m.charAt(0)==="["&&m.charAt(p-1)==="]"&&(m=+m.slice(1,p-1));var x=Nu(l,e,m);if(o&&pt(o.interpolatedValue)){var _=l.getDimensionIndex(m);_>=0&&(x=o.interpolatedValue[_])}return x!=null?x+"":""})}},t.prototype.getRawValue=function(e,n){return Nu(this.getData(n),e)},t.prototype.formatTooltip=function(e,n,r){},t})();function yD(t){var e,n;return Lt(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Wf(t){return new YF(t)}var YF=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!r&&(a=this._plan(this.context));var o=h(this._modBy),l=this._modDataCount||0,s=h(e&&e.modBy),c=e&&e.modDataCount||0;(o!==s||l!==c)&&(a="reset");function h(S){return!(S>=1)&&(S=1),S}var d;(this._dirty||a==="reset")&&(this._dirty=!1,d=this._doReset(r)),this._modBy=s,this._modDataCount=c;var g=e&&e.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,m=Math.min(g!=null?this._dueIndex+g:1/0,this._dueEnd);if(!r&&(d||p<m)){var x=this._progress;if(pt(x))for(var _=0;_<x.length;_++)this._doProgress(x[_],p,m,s,c);else this._doProgress(x,p,m,s,c)}this._dueIndex=m;var b=this._settedOutputEnd!=null?this._settedOutputEnd:m;this._outputDueEnd=b}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,n,r,i,a){xD.reset(n,r,i,a),this._callingProgress=e,this._callingProgress({start:n,end:r,count:r-n,next:xD.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var n,r;!e&&this._reset&&(n=this._reset(this.context),n&&n.progress&&(r=n.forceFirstProgress,n=n.progress),pt(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),r},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})(),xD=(function(){var t,e,n,r,i,a={reset:function(s,c,h,d){e=s,t=c,n=h,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?l:o}};return a;function o(){return e<t?e++:null}function l(){var s=e%i*n+Math.ceil(e/i),c=e>=t?null:s<r?s:e;return e++,c}})();function yp(t,e){var n=e&&e.type;return n==="ordinal"?t:(n==="time"&&!ve(t)&&t!=null&&t!=="-"&&(t=+Yu(t)),t==null||t===""?NaN:Number(t))}Bt({number:function(t){return parseFloat(t)},time:function(t){return+Yu(t)},trim:function(t){return St(t)?zi(t):t}});var WF=(function(){function t(e,n){var r=e==="desc";this._resultLT=r?1:-1,n==null&&(n=r?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,n){var r=ve(e)?e:Op(e),i=ve(n)?n:Op(n),a=isNaN(r),o=isNaN(i);if(a&&(r=this._incomparable),o&&(i=this._incomparable),a&&o){var l=St(e),s=St(n);l&&(r=s?e:0),s&&(i=l?n:0)}return r<i?this._resultLT:r>i?-this._resultLT:0},t})(),XF=(function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,n){},t.prototype.retrieveValueFromItem=function(e,n){},t.prototype.convertValue=function(e,n){return yp(e,n)},t})();function qF(t,e){var n=new XF,r=t.data,i=n.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==vi&&jn(o);var l=[],s={},c=t.dimensionsDefine;if(c)N(c,function(x,_){var b=x.name,S={index:_,name:b,displayName:x.displayName};if(l.push(S),b!=null){var T="";fi(s,b)&&jn(T),s[b]=S}});else for(var h=0;h<t.dimensionsDetectedCount;h++)l.push({index:h});var d=jO(i,vi);e.__isBuiltIn&&(n.getRawDataItem=function(x){return d(r,a,l,x)},n.getRawData=Tt(ZF,null,t)),n.cloneRawData=Tt($F,null,t);var g=FO(i,vi);n.count=Tt(g,null,r,a,l);var p=GO(i);n.retrieveValue=function(x,_){var b=d(r,a,l,x);return m(b,_)};var m=n.retrieveValueFromItem=function(x,_){if(x!=null){var b=l[_];if(b)return p(x,_,b.name)}};return n.getDimensionInfo=Tt(QF,null,l,s),n.cloneAllDimensionInfo=Tt(KF,null,l),n}function ZF(t){var e=t.sourceFormat;if(!sS(e)){var n="";jn(n)}return t.data}function $F(t){var e=t.sourceFormat,n=t.data;if(!sS(e)){var r="";jn(r)}if(e===Cn){for(var i=[],a=0,o=n.length;a<o;a++)i.push(n[a].slice());return i}else if(e===ei){for(var i=[],a=0,o=n.length;a<o;a++)i.push(ht({},n[a]));return i}}function QF(t,e,n){if(n!=null){if(ve(n)||!isNaN(n)&&!fi(e,n))return t[n];if(fi(e,n))return e[n]}}function KF(t){return Rt(t)}var UO=Bt();function JF(t){t=Rt(t);var e=t.type,n="";e||jn(n);var r=e.split(":");r.length!==2&&jn(n);var i=!1;r[0]==="echarts"&&(e=r[1],i=!0),t.__isBuiltIn=i,UO.set(e,t)}function tG(t,e,n){var r=ln(t),i=r.length,a="";i||jn(a);for(var o=0,l=i;o<l;o++){var s=r[o];e=eG(s,e),o!==l-1&&(e.length=Math.max(e.length,1))}return e}function eG(t,e,n,r){var i="";e.length||jn(i),Lt(t)||jn(i);var a=t.type,o=UO.get(a);o||jn(i);var l=bt(e,function(c){return qF(c,o)}),s=ln(o.transform({upstream:l[0],upstreamList:l,config:Rt(t.config)}));return bt(s,function(c,h){var d="";Lt(c)||jn(d),c.data||jn(d);var g=PO(c.data);sS(g)||jn(d);var p,m=e[0];if(m&&h===0&&!c.dimensions){var x=m.startIndex;x&&(c.data=m.data.slice(0,x).concat(c.data)),p={seriesLayoutBy:vi,sourceHeader:x,dimensions:m.metaRawOption.dimensions}}else p={seriesLayoutBy:vi,sourceHeader:0,dimensions:c.dimensions};return fb(c.data,p,null)})}function sS(t){return t===Cn||t===ei}var Vg="undefined",nG=typeof Uint32Array===Vg?Array:Uint32Array,rG=typeof Uint16Array===Vg?Array:Uint16Array,YO=typeof Int32Array===Vg?Array:Int32Array,bD=typeof Float64Array===Vg?Array:Float64Array,WO={float:bD,int:YO,ordinal:Array,number:Array,time:bD},h1;function tu(t){return t>65535?nG:rG}function eu(){return[1/0,-1/0]}function iG(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function _D(t,e,n,r,i){var a=WO[n||"float"];if(i){var o=t[e],l=o&&o.length;if(l!==r){for(var s=new a(r),c=0;c<l;c++)s[c]=o[c];t[e]=s}}else t[e]=new a(r)}var hb=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Bt()}return t.prototype.initData=function(e,n,r){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=h1[i.sourceFormat];this._dimValueGetter=r||a,this._rawExtent=[],VO(i),this._dimensions=bt(n,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,n){var r=this._calcDimNameToIdx,i=this._dimensions,a=r.get(e);if(a!=null){if(i[a].type===n)return a}else a=i.length;return i[a]={type:n},r.set(e,a),this._chunks[a]=new WO[n||"float"](this._rawCount),this._rawExtent[a]=eu(),a},t.prototype.collectOrdinalMeta=function(e,n){var r=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,l=r.length;o===0&&(a[e]=eu());for(var s=a[e],c=o;c<l;c++){var h=r[c]=n.parseAndCollect(r[c]);isNaN(h)||(s[0]=Math.min(h,s[0]),s[1]=Math.max(h,s[1]))}i.ordinalMeta=n,i.ordinalOffset=l,i.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var n=this._dimensions[e],r=n.ordinalMeta;return r},t.prototype.getDimensionProperty=function(e){var n=this._dimensions[e];return n&&n.property},t.prototype.appendData=function(e){var n=this._provider,r=this.count();n.appendData(e);var i=n.count();return n.persistent||(i+=r),r<i&&this._initDataFromProvider(r,i,!0),[r,i]},t.prototype.appendValues=function(e,n){for(var r=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,l=this.count(),s=l+Math.max(e.length,n||0),c=0;c<a;c++){var h=i[c];_D(r,c,h.type,s,!0)}for(var d=[],g=l;g<s;g++)for(var p=g-l,m=0;m<a;m++){var h=i[m],x=h1.arrayRows.call(this,e[p]||d,h.property,p,m);r[m][g]=x;var _=o[m];x<_[0]&&(_[0]=x),x>_[1]&&(_[1]=x)}return this._rawCount=this._count=s,{start:l,end:s}},t.prototype._initDataFromProvider=function(e,n,r){for(var i=this._provider,a=this._chunks,o=this._dimensions,l=o.length,s=this._rawExtent,c=bt(o,function(S){return S.property}),h=0;h<l;h++){var d=o[h];s[h]||(s[h]=eu()),_D(a,h,d.type,n,r)}if(i.fillStorage)i.fillStorage(e,n,a,s);else for(var g=[],p=e;p<n;p++){g=i.getItem(p,g);for(var m=0;m<l;m++){var x=a[m],_=this._dimValueGetter(g,c[m],p,m);x[p]=_;var b=s[m];_<b[0]&&(b[0]=_),_>b[1]&&(b[1]=_)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=n,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,n){if(!(n>=0&&n<this._count))return NaN;var r=this._chunks[e];return r?r[this.getRawIndex(n)]:NaN},t.prototype.getValues=function(e,n){var r=[],i=[];if(n==null){n=e,e=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;for(var a=0,o=i.length;a<o;a++)r.push(this.get(i[a],n));return r},t.prototype.getByRawIndex=function(e,n){if(!(n>=0&&n<this._rawCount))return NaN;var r=this._chunks[e];return r?r[n]:NaN},t.prototype.getSum=function(e){var n=this._chunks[e],r=0;if(n)for(var i=0,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(r+=o)}return r},t.prototype.getMedian=function(e){var n=[];this.each([e],function(a){isNaN(a)||n.push(a)});var r=n.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?r[(i-1)/2]:(r[i/2]+r[i/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var n=this._indices,r=n[e];if(r!=null&&r<this._count&&r===e)return e;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(n[o]<e)i=o+1;else if(n[o]>e)a=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,n=this._indices;if(n){var r=n.constructor,i=this._count;if(r===Array){e=new r(i);for(var a=0;a<i;a++)e[a]=n[a]}else e=new r(n.buffer,0,i)}else{var r=tu(this._rawCount);e=new r(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,n){if(!this._count)return this;for(var r=this.clone(),i=r.count(),a=tu(r._rawCount),o=new a(i),l=[],s=e.length,c=0,h=e[0],d=r._chunks,g=0;g<i;g++){var p=void 0,m=r.getRawIndex(g);if(s===0)p=n(g);else if(s===1){var x=d[h][m];p=n(x,g)}else{for(var _=0;_<s;_++)l[_]=d[e[_]][m];l[_]=g,p=n.apply(null,l)}p&&(o[c++]=m)}return c<i&&(r._indices=o),r._count=c,r._extent=[],r._updateGetRawIdx(),r},t.prototype.selectRange=function(e){var n=this.clone(),r=n._count;if(!r)return this;var i=Be(e),a=i.length;if(!a)return this;var o=n.count(),l=tu(n._rawCount),s=new l(o),c=0,h=i[0],d=e[h][0],g=e[h][1],p=n._chunks,m=!1;if(!n._indices){var x=0;if(a===1){for(var _=p[i[0]],b=0;b<r;b++){var S=_[b];(S>=d&&S<=g||isNaN(S))&&(s[c++]=x),x++}m=!0}else if(a===2){for(var _=p[i[0]],T=p[i[1]],A=e[i[1]][0],D=e[i[1]][1],b=0;b<r;b++){var S=_[b],M=T[b];(S>=d&&S<=g||isNaN(S))&&(M>=A&&M<=D||isNaN(M))&&(s[c++]=x),x++}m=!0}}if(!m)if(a===1)for(var b=0;b<o;b++){var k=n.getRawIndex(b),S=p[i[0]][k];(S>=d&&S<=g||isNaN(S))&&(s[c++]=k)}else for(var b=0;b<o;b++){for(var I=!0,k=n.getRawIndex(b),z=0;z<a;z++){var L=i[z],S=p[L][k];(S<e[L][0]||S>e[L][1])&&(I=!1)}I&&(s[c++]=n.getRawIndex(b))}return c<o&&(n._indices=s),n._count=c,n._extent=[],n._updateGetRawIdx(),n},t.prototype.map=function(e,n){var r=this.clone(e);return this._updateDims(r,e,n),r},t.prototype.modify=function(e,n){this._updateDims(this,e,n)},t.prototype._updateDims=function(e,n,r){for(var i=e._chunks,a=[],o=n.length,l=e.count(),s=[],c=e._rawExtent,h=0;h<n.length;h++)c[n[h]]=eu();for(var d=0;d<l;d++){for(var g=e.getRawIndex(d),p=0;p<o;p++)s[p]=i[n[p]][g];s[o]=d;var m=r&&r.apply(null,s);if(m!=null){typeof m!="object"&&(a[0]=m,m=a);for(var h=0;h<m.length;h++){var x=n[h],_=m[h],b=c[x],S=i[x];S&&(S[g]=_),_<b[0]&&(b[0]=_),_>b[1]&&(b[1]=_)}}}},t.prototype.lttbDownSample=function(e,n){var r=this.clone([e],!0),i=r._chunks,a=i[e],o=this.count(),l=0,s=Math.floor(1/n),c=this.getRawIndex(0),h,d,g,p=new(tu(this._rawCount))(Math.min((Math.ceil(o/s)+2)*2,o));p[l++]=c;for(var m=1;m<o-1;m+=s){for(var x=Math.min(m+s,o-1),_=Math.min(m+s*2,o),b=(_+x)/2,S=0,T=x;T<_;T++){var A=this.getRawIndex(T),D=a[A];isNaN(D)||(S+=D)}S/=_-x;var M=m,k=Math.min(m+s,o),I=m-1,z=a[c];h=-1,g=M;for(var L=-1,O=0,T=M;T<k;T++){var A=this.getRawIndex(T),D=a[A];if(isNaN(D)){O++,L<0&&(L=A);continue}d=Math.abs((I-b)*(D-z)-(I-T)*(S-z)),d>h&&(h=d,g=A)}O>0&&O<k-M&&(p[l++]=Math.min(L,g),g=Math.max(L,g)),p[l++]=g,c=g}return p[l++]=this.getRawIndex(o-1),r._count=l,r._indices=p,r.getRawIndex=this._getRawIdx,r},t.prototype.minmaxDownSample=function(e,n){for(var r=this.clone([e],!0),i=r._chunks,a=Math.floor(1/n),o=i[e],l=this.count(),s=new(tu(this._rawCount))(Math.ceil(l/a)*2),c=0,h=0;h<l;h+=a){var d=h,g=o[this.getRawIndex(d)],p=h,m=o[this.getRawIndex(p)],x=a;h+a>l&&(x=l-h);for(var _=0;_<x;_++){var b=this.getRawIndex(h+_),S=o[b];S<g&&(g=S,d=h+_),S>m&&(m=S,p=h+_)}var T=this.getRawIndex(d),A=this.getRawIndex(p);d<p?(s[c++]=T,s[c++]=A):(s[c++]=A,s[c++]=T)}return r._count=c,r._indices=s,r._updateGetRawIdx(),r},t.prototype.downSample=function(e,n,r,i){for(var a=this.clone([e],!0),o=a._chunks,l=[],s=Math.floor(1/n),c=o[e],h=this.count(),d=a._rawExtent[e]=eu(),g=new(tu(this._rawCount))(Math.ceil(h/s)),p=0,m=0;m<h;m+=s){s>h-m&&(s=h-m,l.length=s);for(var x=0;x<s;x++){var _=this.getRawIndex(m+x);l[x]=c[_]}var b=r(l),S=this.getRawIndex(Math.min(m+i(l,b)||0,h-1));c[S]=b,b<d[0]&&(d[0]=b),b>d[1]&&(d[1]=b),g[p++]=S}return a._count=p,a._indices=g,a._updateGetRawIdx(),a},t.prototype.each=function(e,n){if(this._count)for(var r=e.length,i=this._chunks,a=0,o=this.count();a<o;a++){var l=this.getRawIndex(a);switch(r){case 0:n(a);break;case 1:n(i[e[0]][l],a);break;case 2:n(i[e[0]][l],i[e[1]][l],a);break;default:for(var s=0,c=[];s<r;s++)c[s]=i[e[s]][l];c[s]=a,n.apply(null,c)}}},t.prototype.getDataExtent=function(e){var n=this._chunks[e],r=eu();if(!n)return r;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=r;for(var l=o[0],s=o[1],c=0;c<i;c++){var h=this.getRawIndex(c),d=n[h];d<l&&(l=d),d>s&&(s=d)}return o=[l,s],this._extent[e]=o,o},t.prototype.getRawDataItem=function(e){var n=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],i=this._chunks,a=0;a<i.length;a++)r.push(i[a][n]);return r},t.prototype.clone=function(e,n){var r=new t,i=this._chunks,a=e&&Ro(e,function(l,s){return l[s]=!0,l},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?iG(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Rt(this._extent),e._rawExtent=Rt(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,n=void 0;if(e===Array){var r=this._indices.length;n=new e(r);for(var i=0;i<r;i++)n[i]=this._indices[i]}else n=new e(this._indices);return n}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(n,r,i,a){return yp(n[a],this._dimensions[a])}h1={arrayRows:e,objectRows:function(n,r,i,a){return yp(n[r],this._dimensions[a])},keyedColumns:e,original:function(n,r,i,a){var o=n&&(n.value==null?n:n.value);return yp(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(n,r,i,a){return n[a]}}})(),t})(),XO=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,n){this._sourceList=e,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,i,a;if(kv(e)){var o=e,l=void 0,s=void 0,c=void 0;if(r){var h=n[0];h.prepareSource(),c=h.getSource(),l=c.data,s=c.sourceFormat,a=[h._getVersionSign()]}else l=o.get("data",!0),s=sr(l)?ko:Mr,a=[];var d=this._getSourceMetaRawOption()||{},g=c&&c.metaRawOption||{},p=zt(d.seriesLayoutBy,g.seriesLayoutBy)||null,m=zt(d.sourceHeader,g.sourceHeader),x=zt(d.dimensions,g.dimensions),_=p!==g.seriesLayoutBy||!!m!=!!g.sourceHeader||x;i=_?[fb(l,{seriesLayoutBy:p,sourceHeader:m,dimensions:x},s)]:[]}else{var b=e;if(r){var S=this._applyTransform(n);i=S.sourceList,a=S.upstreamSignList}else{var T=b.get("source",!0);i=[fb(T,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},t.prototype._applyTransform=function(e){var n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&wD(a)}var o,l=[],s=[];return N(e,function(c){c.prepareSource();var h=c.getSource(i||0),d="";i!=null&&!h&&wD(d),l.push(h),s.push(c._getVersionSign())}),r?o=tG(r,l,{datasetIndex:n.componentIndex}):i!=null&&(o=[NF(l[0])]),{sourceList:o,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),n=0;n<e.length;n++){var r=e[n];if(r._isDirty()||this._upstreamSignList[n]!==r._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var n=this._sourceList[e];if(!n){var r=this._getUpstreamSourceManagers();return r[0]&&r[0].getSource(e)}return n},t.prototype.getSharedDataStore=function(e){var n=e.makeStoreSchema();return this._innerGetDataStore(n.dimensions,e.source,n.hash)},t.prototype._innerGetDataStore=function(e,n,r){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var l=o[r];if(!l){var s=this._getUpstreamSourceManagers()[0];kv(this._sourceHost)&&s?l=s._innerGetDataStore(e,n,r):(l=new hb,l.initData(new HO(n,e.length),e)),o[r]=l}return l},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(kv(e)){var n=nS(e);return n?[n.getSourceManager()]:[]}else return bt(fF(e),function(r){return r.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,n,r,i;if(kv(e))n=e.get("seriesLayoutBy",!0),r=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;n=a.get("seriesLayoutBy",!0),r=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:n,sourceHeader:r,dimensions:i}},t})();function SD(t){var e=t.option.transform;e&&Tp(t.option.transform)}function kv(t){return t.mainType==="series"}function wD(t){throw new Error(t)}var aG="line-height:1";function qO(t){var e=t.lineHeight;return e==null?aG:"line-height:"+ir(e+"")+"px"}function ZO(t,e){var n=t.color||ot.color.tertiary,r=t.fontSize||12,i=t.fontWeight||"400",a=t.color||ot.color.secondary,o=t.fontSize||14,l=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+ir(r+"")+"px;color:"+ir(n)+";font-weight:"+ir(i+""),valueStyle:"font-size:"+ir(o+"")+"px;color:"+ir(a)+";font-weight:"+ir(l+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:l}}}var oG=[0,10,20,30],lG=["",`
90
+ `,`
91
+
92
+ `,`
93
+
94
+
95
+ `];function Gi(t,e){return e.type=t,e}function db(t){return t.type==="section"}function $O(t){return db(t)?sG:uG}function QO(t){if(db(t)){var e=0,n=t.blocks.length,r=n>1||n>0&&!t.noHeader;return N(t.blocks,function(i){var a=QO(i);a>=e&&(e=a+ +(r&&(!a||db(i)&&!i.noHeader)))}),e}return 0}function sG(t,e,n,r){var i=e.noHeader,a=cG(QO(e)),o=[],l=e.blocks||[];$r(!l||pt(l)),l=l||[];var s=t.orderMode;if(e.sortBlocks&&s){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(fi(c,s)){var h=new WF(c[s],null);l.sort(function(x,_){return h.evaluate(x.sortParam,_.sortParam)})}else s==="seriesDesc"&&l.reverse()}N(l,function(x,_){var b=e.valueFormatter,S=$O(x)(b?ht(ht({},t),{valueFormatter:b}):t,x,_>0?a.html:0,r);S!=null&&o.push(S)});var d=t.renderMode==="richText"?o.join(a.richText):vb(r,o.join(""),i?n:a.html);if(i)return d;var g=sb(e.header,"ordinal",t.useUTC),p=ZO(r,t.renderMode).nameStyle,m=qO(r);return t.renderMode==="richText"?KO(t,g,p)+a.richText+d:vb(r,'<div style="'+p+";"+m+';">'+ir(g)+"</div>"+d,n)}function uG(t,e,n,r){var i=t.renderMode,a=e.noName,o=e.noValue,l=!e.markerType,s=e.name,c=t.useUTC,h=e.valueFormatter||t.valueFormatter||function(A){return A=pt(A)?A:[A],bt(A,function(D,M){return sb(D,pt(p)?p[M]:p,c)})};if(!(a&&o)){var d=l?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||ot.color.secondary,i),g=a?"":sb(s,"ordinal",c),p=e.valueType,m=o?[]:h(e.value,e.dataIndex),x=!l||!a,_=!l&&a,b=ZO(r,i),S=b.nameStyle,T=b.valueStyle;return i==="richText"?(l?"":d)+(a?"":KO(t,g,S))+(o?"":dG(t,m,x,_,T)):vb(r,(l?"":d)+(a?"":fG(g,!l,S))+(o?"":hG(m,x,_,T)),n)}}function TD(t,e,n,r,i,a){if(t){var o=$O(t),l={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(l,t,0,a)}}function cG(t){return{html:oG[t],richText:lG[t]}}function vb(t,e,n){var r='<div style="clear:both"></div>',i="margin: "+n+"px 0 0",a=qO(t);return'<div style="'+i+";"+a+';">'+e+r+"</div>"}function fG(t,e,n){var r=e?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+ir(t)+"</span>"}function hG(t,e,n,r){var i=n?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return t=pt(t)?t:[t],'<span style="'+a+";"+r+'">'+bt(t,function(o){return ir(o)}).join("&nbsp;&nbsp;")+"</span>"}function KO(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function dG(t,e,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(pt(e)?e.join(" "):e,a)}function JO(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return Kl(r)}function tz(t,e){var n=t.get("padding");return n??(e==="richText"?[8,10]:10)}var d1=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=yI()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,n,r){var i=r==="richText"?this._generateStyleName():null,a=Zj({color:n,type:e,renderMode:r,markerId:i});return St(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,n){var r={};pt(n)?N(n,function(a){return ht(r,a)}):ht(r,n);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+e+"}"},t})();function vG(t){var e=t.series,n=t.dataIndex,r=t.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,l=e.getRawValue(n),s=pt(l),c=JO(e,n),h,d,g,p;if(o>1||s&&!o){var m=pG(l,e,n,a,c);h=m.inlineValues,d=m.inlineValueTypes,g=m.blocks,p=m.inlineValues[0]}else if(o){var x=i.getDimensionInfo(a[0]);p=h=Nu(i,n,a[0]),d=x.type}else p=h=s?l[0]:l;var _=A_(e),b=_&&e.name||"",S=i.getName(n),T=r?b:S;return Gi("section",{header:b,noHeader:r||!_,sortParam:p,blocks:[Gi("nameValue",{markerType:"item",markerColor:c,name:T,noName:!zi(T),value:h,valueType:d,dataIndex:n})].concat(g||[])})}function pG(t,e,n,r,i){var a=e.getData(),o=Ro(t,function(d,g,p){var m=a.getDimensionInfo(p);return d=d||m&&m.tooltip!==!1&&m.displayName!=null},!1),l=[],s=[],c=[];r.length?N(r,function(d){h(Nu(a,n,d),d)}):N(t,h);function h(d,g){var p=a.getDimensionInfo(g);!p||p.otherDims.tooltip===!1||(o?c.push(Gi("nameValue",{markerType:"subItem",markerColor:i,name:p.displayName,value:d,valueType:p.type})):(l.push(d),s.push(p.type)))}return{inlineValues:l,inlineValueTypes:s,blocks:c}}var ao=be();function Lv(t,e){return t.getName(e)||t.getId(e)}var gG="__universalTransitionEnabled",Ke=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return e.prototype.init=function(n,r,i){this.seriesIndex=this.componentIndex,this.dataTask=Wf({count:yG,reset:xG}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,i);var a=ao(this).sourceManager=new XO(this);a.prepareSource();var o=this.getInitialData(n,i);MD(o,this),this.dataTask.context.data=o,ao(this).dataBeforeProcessed=o,CD(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(n,r){var i=ch(this),a=i?$u(n):{},o=this.subType;ce.hasClass(o)&&(o+="Series"),Xt(n,r.getTheme().get(this.subType)),Xt(n,this.getDefaultOption()),zp(n,"label",["show"]),this.fillDataTextStyle(n.data),i&&Oo(n,a,i)},e.prototype.mergeOption=function(n,r){n=Xt(this.option,n,!0),this.fillDataTextStyle(n.data);var i=ch(this);i&&Oo(this.option,n,i);var a=ao(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(n,r);MD(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ao(this).dataBeforeProcessed=o,CD(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(n){if(n&&!sr(n))for(var r=["show"],i=0;i<n.length;i++)n[i]&&n[i].label&&zp(n[i],"label",r)},e.prototype.getInitialData=function(n,r){},e.prototype.appendData=function(n){var r=this.getRawData();r.appendData(n.data)},e.prototype.getData=function(n){var r=pb(this);if(r){var i=r.context.data;return n==null||!i.getLinkedData?i:i.getLinkedData(n)}else return ao(this).data},e.prototype.getAllData=function(){var n=this.getData();return n&&n.getLinkedDataAll?n.getLinkedDataAll():[{data:n}]},e.prototype.setData=function(n){var r=pb(this);if(r){var i=r.context;i.outputData=n,r!==this.dataTask&&(i.data=n)}ao(this).data=n},e.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return Bt(n)},e.prototype.getSourceManager=function(){return ao(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return ao(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var n=this.get("colorBy");return n||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var n=this.coordinateSystem;return n&&n.getBaseAxis&&n.getBaseAxis()},e.prototype.indicesOfNearest=function(n,r,i,a){var o=this.getData(),l=this.coordinateSystem,s=l&&l.getAxis(n);if(!l||!s)return[];var c=s.dataToCoord(i);a==null&&(a=1/0);var h=[],d=1/0,g=-1,p=0;return o.each(r,function(m,x){var _=s.dataToCoord(m),b=c-_,S=Math.abs(b);S<=a&&((S<d||S===d&&b>=0&&g<0)&&(d=S,g=b,p=0),b===g&&(h[p++]=x))}),h.length=p,h},e.prototype.formatTooltip=function(n,r,i){return vG({series:this,dataIndex:n,multipleSeries:r})},e.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(Ft.node&&!(n&&n.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(n,r,i){var a=this.ecModel,o=rS.prototype.getColorFromPalette.call(this,n,r,i);return o||(o=a.getColorFromPalette(n,r,i)),o},e.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},e.prototype.unselect=function(n,r){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(r);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var l=0;l<n.length;l++){var s=n[l],c=Lv(o,s);i[c]=!1,this._selectedDataIndicesMap[c]=-1}}},e.prototype.toggleSelect=function(n,r){for(var i=[],a=0;a<n.length;a++)i[0]=n[a],this.isSelected(n[a],r)?this.unselect(i,r):this.select(i,r)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var n=this._selectedDataIndicesMap,r=Be(n),i=[],a=0;a<r.length;a++){var o=n[r[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(n,r){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(r);return(i==="all"||i[Lv(a,n)])&&!a.getItemModel(n).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[gG])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},e.prototype._innerSelect=function(n,r){var i,a,o=this.option,l=o.selectedMode,s=r.length;if(!(!l||!s)){if(l==="series")o.selectedMap="all";else if(l==="multiple"){Lt(o.selectedMap)||(o.selectedMap={});for(var c=o.selectedMap,h=0;h<s;h++){var d=r[h],g=Lv(n,d);c[g]=!0,this._selectedDataIndicesMap[g]=n.getRawIndex(d)}}else if(l==="single"||l===!0){var p=r[s-1],g=Lv(n,p);o.selectedMap=(i={},i[g]=!0,i),this._selectedDataIndicesMap=(a={},a[g]=n.getRawIndex(p),a)}}},e.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var r=[];n.hasItemOption&&n.each(function(i){var a=n.getRawDataItem(i);a&&a.selected&&r.push(i)}),r.length>0&&this._innerSelect(n,r)}},e.registerClass=function(n){return ce.registerClass(n)},e.protoInitialize=(function(){var n=e.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"})(),e})(ce);Xn(Ke,UF);Xn(Ke,rS);AI(Ke,ce);function CD(t){var e=t.name;A_(t)||(t.name=mG(t)||e)}function mG(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return N(n,function(i){var a=e.getDimensionInfo(i);a.displayName&&r.push(a.displayName)}),r.join(" ")}function yG(t){return t.model.getRawData().count()}function xG(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),bG}function bG(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function MD(t,e){N(YR(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,Wt(_G,e))})}function _G(t,e){var n=pb(t);return n&&n.setOutputEnd((e||this).count()),e}function pb(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}var Mn=(function(){function t(){this.group=new ie,this.uid=Ih("viewComponent")}return t.prototype.init=function(e,n){},t.prototype.render=function(e,n,r,i){},t.prototype.dispose=function(e,n){},t.prototype.updateView=function(e,n,r,i){},t.prototype.updateLayout=function(e,n,r,i){},t.prototype.updateVisual=function(e,n,r,i){},t.prototype.toggleBlurSeries=function(e,n,r){},t.prototype.eachRendered=function(e){var n=this.group;n&&n.traverse(e)},t})();k_(Mn);Cg(Mn);function Bh(){var t=be();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!!(r&&r.large),l=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==l)&&"reset"}}var ez=be(),SG=Bh(),Ye=(function(){function t(){this.group=new ie,this.uid=Ih("viewChart"),this.renderTask=Wf({plan:wG,reset:TG}),this.renderTask.context={view:this}}return t.prototype.init=function(e,n){},t.prototype.render=function(e,n,r,i){},t.prototype.highlight=function(e,n,r,i){var a=e.getData(i&&i.dataType);a&&DD(a,i,"emphasis")},t.prototype.downplay=function(e,n,r,i){var a=e.getData(i&&i.dataType);a&&DD(a,i,"normal")},t.prototype.remove=function(e,n){this.group.removeAll()},t.prototype.dispose=function(e,n){},t.prototype.updateView=function(e,n,r,i){this.render(e,n,r,i)},t.prototype.updateLayout=function(e,n,r,i){this.render(e,n,r,i)},t.prototype.updateVisual=function(e,n,r,i){this.render(e,n,r,i)},t.prototype.eachRendered=function(e){qu(this.group,e)},t.markUpdateMethod=function(e,n){ez(e).updateMethod=n},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function AD(t,e,n){t&&oh(t)&&(e==="emphasis"?$l:Ql)(t,n)}function DD(t,e,n){var r=ql(t,e),i=e&&e.highlightKey!=null?O8(e.highlightKey):null;r!=null?N(ln(r),function(a){AD(t.getItemGraphicEl(a),n,i)}):t.eachItemGraphicEl(function(a){AD(a,n,i)})}k_(Ye);Cg(Ye);function wG(t){return SG(t.model)}function TG(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,l=i&&ez(i).updateMethod,s=a?"incrementalPrepareRender":l&&o[l]?l:"render";return s!=="render"&&o[s](e,n,r,i),CG[s]}var CG={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Wp="\0__throttleOriginMethod",kD="\0__throttleRate",LD="\0__throttleType";function uS(t,e,n){var r,i=0,a=0,o=null,l,s,c,h;e=e||0;function d(){a=new Date().getTime(),o=null,t.apply(s,c||[])}var g=function(){for(var p=[],m=0;m<arguments.length;m++)p[m]=arguments[m];r=new Date().getTime(),s=this,c=p;var x=h||e,_=h||n;h=null,l=r-(_?i:a)-x,clearTimeout(o),_?o=setTimeout(d,x):l>=0?d():o=setTimeout(d,-l),i=r};return g.clear=function(){o&&(clearTimeout(o),o=null)},g.debounceNextCall=function(p){h=p},g}function Nh(t,e,n,r){var i=t[e];if(i){var a=i[Wp]||i,o=i[LD],l=i[kD];if(l!==n||o!==r){if(n==null||!r)return t[e]=a;i=t[e]=uS(a,n,r==="debounce"),i[Wp]=a,i[LD]=r,i[kD]=n}return i}}function Xp(t,e){var n=t[e];n&&n[Wp]&&(n.clear&&n.clear(),t[e]=n[Wp])}var ED=be(),RD={itemStyle:zu(fO,!0),lineStyle:zu(cO,!0)},MG={lineStyle:"stroke",itemStyle:"fill"};function nz(t,e){var n=t.visualStyleMapper||RD[e];return n||(console.warn("Unknown style type '"+e+"'."),RD.itemStyle)}function rz(t,e){var n=t.visualDrawType||MG[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var AG={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),a=nz(t,r),o=a(i),l=i.getShallow("decal");l&&(n.setVisual("decal",l),l.dirty=!0);var s=rz(t,r),c=o[s],h=It(c)?c:null,d=o.fill==="auto"||o.stroke==="auto";if(!o[s]||h||d){var g=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=g,n.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||It(o.fill)?g:o.fill,o.stroke=o.stroke==="auto"||It(o.stroke)?g:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&h)return n.setVisual("colorFromPalette",!1),{dataEach:function(p,m){var x=t.getDataParams(m),_=ht({},o);_[s]=h(x),p.setItemVisual(m,"style",_)}}}},ef=new xe,DG={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=nz(t,r),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(o,l){var s=o.getRawDataItem(l);if(s&&s[r]){ef.option=s[r];var c=i(ef),h=o.ensureUniqueItemVisual(l,"style");ht(h,c),ef.option.decal&&(o.setItemVisual(l,"decal",ef.option.decal),ef.option.decal.dirty=!0),a in c&&o.setItemVisual(l,"colorFromPalette",!1)}}:null}}}},kG={performRawSeries:!0,overallReset:function(t){var e=Bt();t.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var i=n.type+"-"+r,a=e.get(i);a||(a={},e.set(i,a)),ED(n).scope=a}}),t.eachSeries(function(n){if(!(n.isColorBySeries()||t.isSeriesFiltered(n))){var r=n.getRawData(),i={},a=n.getData(),o=ED(n).scope,l=n.visualStyleAccessPath||"itemStyle",s=rz(n,l);a.each(function(c){var h=a.getRawIndex(c);i[h]=c}),r.each(function(c){var h=i[c],d=a.getItemVisual(h,"colorFromPalette");if(d){var g=a.ensureUniqueItemVisual(h,"style"),p=r.getName(c)||c+"",m=r.count();g[s]=n.getColorFromPalette(p,o,m)}})}})}},Ev=Math.PI;function LG(t,e){e=e||{},qt(e,{text:"loading",textColor:ot.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:ot.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new ie,r=new le({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i=new me({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new le({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});n.add(a);var o;return e.showSpinner&&(o=new Rg({shape:{startAngle:-Ev/2,endAngle:-Ev/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:Ev*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Ev*3/2}).delay(300).start("circularInOut"),n.add(o)),n.resize=function(){var l=i.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,c=(t.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),h=t.getHeight()/2;e.showSpinner&&o.setShape({cx:c,cy:h}),a.setShape({x:c-s,y:h-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var iz=(function(){function t(e,n,r,i){this._stageTaskMap=Bt(),this.ecInstance=e,this.api=n,r=this._dataProcessorHandlers=r.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=r.concat(i)}return t.prototype.restoreData=function(e,n){e.restoreData(n),this._stageTaskMap.each(function(r){var i=r.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,n){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),i=r.context,a=!n&&r.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>r.blockIndex,o=a?r.step:null,l=i&&i.modDataCount,s=l!=null?Math.ceil(l/o):null;return{step:o,modBy:s,modDataCount:l}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,n){var r=this._pipelineMap.get(e.uid),i=e.getData(),a=i.count(),o=r.progressiveEnabled&&n.incrementalPrepareRender&&a>=r.threshold,l=e.get("large")&&a>=e.get("largeThreshold"),s=e.get("progressiveChunkMode")==="mod"?a:null;e.pipelineContext=r.context={progressiveRender:o,modDataCount:s,large:l}},t.prototype.restorePipelines=function(e){var n=this,r=n._pipelineMap=Bt();e.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;r.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),n._pipe(i,i.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,n=this.api.getModel(),r=this.api;N(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";$r(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,n,r),i.overallReset&&this._createOverallStageTask(i,a,n,r)},this)},t.prototype.prepareView=function(e,n,r,i){var a=e.renderTask,o=a.context;o.model=n,o.ecModel=r,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(n,a)},t.prototype.performDataProcessorTasks=function(e,n){this._performStageTasks(this._dataProcessorHandlers,e,n,{block:!0})},t.prototype.performVisualTasks=function(e,n,r){this._performStageTasks(this._visualHandlers,e,n,r)},t.prototype._performStageTasks=function(e,n,r,i){i=i||{};var a=!1,o=this;N(e,function(s,c){if(!(i.visualType&&i.visualType!==s.visualType)){var h=o._stageTaskMap.get(s.uid),d=h.seriesTaskMap,g=h.overallTask;if(g){var p,m=g.agentStubMap;m.each(function(_){l(i,_)&&(_.dirty(),p=!0)}),p&&g.dirty(),o.updatePayload(g,r);var x=o.getPerformArgs(g,i.block);m.each(function(_){_.perform(x)}),g.perform(x)&&(a=!0)}else d&&d.each(function(_,b){l(i,_)&&_.dirty();var S=o.getPerformArgs(_,i.block);S.skip=!s.performRawSeries&&n.isSeriesFiltered(_.context.model),o.updatePayload(_,r),_.perform(S)&&(a=!0)})}});function l(s,c){return s.setDirty&&(!s.dirtyMap||s.dirtyMap.get(c.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var n;e.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var n=e.tail;do{if(n.__block){e.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},t.prototype.updatePayload=function(e,n){n!=="remain"&&(e.context.payload=n)},t.prototype._createSeriesStageTask=function(e,n,r,i){var a=this,o=n.seriesTaskMap,l=n.seriesTaskMap=Bt(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(h):s?r.eachRawSeriesByType(s,h):c&&c(r,i).each(h);function h(d){var g=d.uid,p=l.set(g,o&&o.get(g)||Wf({plan:zG,reset:BG,count:PG}));p.context={model:d,ecModel:r,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(d,p)}},t.prototype._createOverallStageTask=function(e,n,r,i){var a=this,o=n.overallTask=n.overallTask||Wf({reset:EG});o.context={ecModel:r,api:i,overallReset:e.overallReset,scheduler:a};var l=o.agentStubMap,s=o.agentStubMap=Bt(),c=e.seriesType,h=e.getTargetSeries,d=!0,g=!1,p="";$r(!e.createOnAllSeries,p),c?r.eachRawSeriesByType(c,m):h?h(r,i).each(m):(d=!1,N(r.getSeries(),m));function m(x){var _=x.uid,b=s.set(_,l&&l.get(_)||(g=!0,Wf({reset:RG,onDirty:OG})));b.context={model:x,overallProgress:d},b.agent=o,b.__block=d,a._pipe(x,b)}g&&o.dirty()},t.prototype._pipe=function(e,n){var r=e.uid,i=this._pipelineMap.get(r);!i.head&&(i.head=n),i.tail&&i.tail.pipe(n),i.tail=n,n.__idxInPipeline=i.count++,n.__pipeline=i},t.wrapStageHandler=function(e,n){return It(e)&&(e={overallReset:e,seriesType:VG(e)}),e.uid=Ih("stageHandler"),n&&(e.visualType=n),e},t})();function EG(t){t.overallReset(t.ecModel,t.api,t.payload)}function RG(t){return t.overallProgress&&IG}function IG(){this.agent.dirty(),this.getDownstream().dirty()}function OG(){this.agent&&this.agent.dirty()}function zG(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function BG(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=ln(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?bt(e,function(n,r){return az(r)}):NG}var NG=az(0);function az(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(e,r)}}function PG(t){return t.data.count()}function VG(t){qp=null;try{t(hh,oz)}catch{}return qp}var hh={},oz={},qp;lz(hh,iS);lz(oz,zO);hh.eachSeriesByType=hh.eachRawSeriesByType=function(t){qp=t};hh.eachComponent=function(t){t.mainType==="series"&&t.subType&&(qp=t.subType)};function lz(t,e){for(var n in e.prototype)t[n]=cn}var Ct=ot.darkColor,HG=Ct.background,nf=function(){return{axisLine:{lineStyle:{color:Ct.axisLine}},splitLine:{lineStyle:{color:Ct.axisSplitLine}},splitArea:{areaStyle:{color:[Ct.backgroundTint,Ct.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:Ct.axisMinorSplitLine}},axisLabel:{color:Ct.axisLabel},axisName:{}}},ID={label:{color:Ct.secondary},itemStyle:{borderColor:Ct.borderTint},dividerLineStyle:{color:Ct.border}},sz={darkMode:!0,color:Ct.theme,backgroundColor:HG,axisPointer:{lineStyle:{color:Ct.border},crossStyle:{color:Ct.borderShade},label:{color:Ct.tertiary}},legend:{textStyle:{color:Ct.secondary},pageTextStyle:{color:Ct.tertiary}},textStyle:{color:Ct.secondary},title:{textStyle:{color:Ct.primary},subtextStyle:{color:Ct.quaternary}},toolbox:{iconStyle:{borderColor:Ct.accent50}},tooltip:{backgroundColor:Ct.neutral20,defaultBorderColor:Ct.border,textStyle:{color:Ct.tertiary}},dataZoom:{borderColor:Ct.accent10,textStyle:{color:Ct.tertiary},brushStyle:{color:Ct.backgroundTint},handleStyle:{color:Ct.neutral00,borderColor:Ct.accent20},moveHandleStyle:{color:Ct.accent40},emphasis:{handleStyle:{borderColor:Ct.accent50}},dataBackground:{lineStyle:{color:Ct.accent30},areaStyle:{color:Ct.accent20}},selectedDataBackground:{lineStyle:{color:Ct.accent50},areaStyle:{color:Ct.accent30}}},visualMap:{textStyle:{color:Ct.secondary},handleStyle:{borderColor:Ct.neutral30}},timeline:{lineStyle:{color:Ct.accent10},label:{color:Ct.tertiary},controlStyle:{color:Ct.accent30,borderColor:Ct.accent30}},calendar:{itemStyle:{color:Ct.neutral00,borderColor:Ct.neutral20},dayLabel:{color:Ct.tertiary},monthLabel:{color:Ct.secondary},yearLabel:{color:Ct.secondary}},matrix:{x:ID,y:ID,backgroundColor:{borderColor:Ct.axisLine},body:{itemStyle:{borderColor:Ct.borderTint}}},timeAxis:nf(),logAxis:nf(),valueAxis:nf(),categoryAxis:nf(),line:{symbol:"circle"},graph:{color:Ct.theme},gauge:{title:{color:Ct.secondary},axisLine:{lineStyle:{color:[[1,Ct.neutral05]]}},axisLabel:{color:Ct.axisLabel},detail:{color:Ct.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:Ct.background}},radar:(function(){var t=nf();return t.axisName={color:Ct.axisLabel},t.axisLine.lineStyle.color=Ct.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:Ct.neutral20,textStyle:{color:Ct.secondary}},emphasis:{itemStyle:{color:Ct.neutral30}}}},sunburst:{itemStyle:{borderColor:Ct.background}},map:{itemStyle:{borderColor:Ct.border,areaColor:Ct.neutral10},label:{color:Ct.tertiary},emphasis:{label:{color:Ct.primary},itemStyle:{areaColor:Ct.highlight}},select:{label:{color:Ct.primary},itemStyle:{areaColor:Ct.highlight}}},geo:{itemStyle:{borderColor:Ct.border,areaColor:Ct.neutral10},emphasis:{label:{color:Ct.primary},itemStyle:{areaColor:Ct.highlight}},select:{label:{color:Ct.primary},itemStyle:{color:Ct.highlight}}}};sz.categoryAxis.splitLine.show=!1;var jG=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var n={},r={},i={};if(St(e)){var a=Ni(e);n.mainType=a.main||null,n.subType=a.sub||null}else{var o=["Index","Name","Id"],l={name:1,dataIndex:1,dataType:1};N(e,function(s,c){for(var h=!1,d=0;d<o.length;d++){var g=o[d],p=c.lastIndexOf(g);if(p>0&&p===c.length-g.length){var m=c.slice(0,p);m!=="data"&&(n.mainType=m,n[g.toLowerCase()]=s,h=!0)}}l.hasOwnProperty(c)&&(r[c]=s,h=!0),h||(i[c]=s)})}return{cptQuery:n,dataQuery:r,otherQuery:i}},t.prototype.filter=function(e,n){var r=this.eventInfo;if(!r)return!0;var i=r.targetEl,a=r.packedEvent,o=r.model,l=r.view;if(!o||!l)return!0;var s=n.cptQuery,c=n.dataQuery;return h(s,o,"mainType")&&h(s,o,"subType")&&h(s,o,"index","componentIndex")&&h(s,o,"name")&&h(s,o,"id")&&h(c,a,"name")&&h(c,a,"dataIndex")&&h(c,a,"dataType")&&(!l.filterForExposedEvent||l.filterForExposedEvent(e,n.otherQuery,i,a));function h(d,g,p,m){return d[p]==null||g[m||p]===d[p]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})(),gb=["symbol","symbolSize","symbolRotate","symbolOffset"],OD=gb.concat(["symbolKeepAspect"]),FG={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o<gb.length;o++){var l=gb[o],s=t.get(l);It(s)?(a=!0,i[l]=s):r[l]=s}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(ht({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),e.isSeriesFiltered(t))return;var c=Be(i);function h(d,g){for(var p=t.getRawValue(g),m=t.getDataParams(g),x=0;x<c.length;x++){var _=c[x];d.setItemVisual(g,_,i[_](p,m))}}return{dataEach:a?h:null}}},GG={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var n=t.getData();function r(i,a){for(var o=i.getItemModel(a),l=0;l<OD.length;l++){var s=OD[l],c=o.getShallow(s,!0);c!=null&&i.setItemVisual(a,s,c)}}return{dataEach:n.hasItemOption?r:null}}};function cS(t,e,n){switch(n){case"color":var r=t.getItemVisual(e,"style");return r[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}function uz(t,e){switch(e){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function cz(t,e,n,r){switch(n){case"color":var i=t.ensureUniqueItemVisual(e,"style");i[t.getVisual("drawType")]=r,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,r);break}}function UG(t,e){function n(r,i){var a=[];return r.eachComponent({mainType:"series",subType:t,query:i},function(o){a.push(o.seriesIndex)}),a}N([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(r){e(r[0],function(i,a,o){i=ht({},i),o.dispatchAction(ht(i,{type:r[1],seriesIndex:n(a,i)}))})})}function nu(t,e,n,r,i){var a=t+e;n.isSilent(a)||r.eachComponent({mainType:"series",subType:"pie"},function(o){for(var l=o.seriesIndex,s=o.option.selectedMap,c=i.selected,h=0;h<c.length;h++)if(c[h].seriesIndex===l){var d=o.getData(),g=ql(d,i.fromActionPayload);n.trigger(a,{type:a,seriesId:o.id,name:pt(g)?d.getName(g[0]):d.getName(g),selected:St(s)?s:ht({},s)})}})}function YG(t,e,n){t.on("selectchanged",function(r){var i=n.getModel();r.isFromClick?(nu("map","selectchanged",e,i,r),nu("pie","selectchanged",e,i,r)):r.fromAction==="select"?(nu("map","selected",e,i,r),nu("pie","selected",e,i,r)):r.fromAction==="unselect"&&(nu("map","unselected",e,i,r),nu("pie","unselected",e,i,r))})}function Mu(t,e,n){for(var r;t&&!(e(t)&&(r=t,n));)t=t.__hostTarget||t.parent;return r}var WG=Math.round(Math.random()*9),XG=typeof Object.defineProperty=="function",qG=(function(){function t(){this._id="__ec_inner_"+WG++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,n){var r=this._guard(e);return XG?Object.defineProperty(r,this._id,{value:n,enumerable:!1,configurable:!0}):r[this._id]=n,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t})(),ZG=fe.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,a=e.height/2;t.moveTo(n,r-a),t.lineTo(n+i,r+a),t.lineTo(n-i,r+a),t.closePath()}}),$G=fe.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,a=e.height/2;t.moveTo(n,r-a),t.lineTo(n+i,r),t.lineTo(n,r+a),t.lineTo(n-i,r),t.closePath()}}),QG=fe.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,l=o*o/(a-o),s=r-a+o+l,c=Math.asin(l/o),h=Math.cos(c)*o,d=Math.sin(c),g=Math.cos(c),p=o*.6,m=o*.7;t.moveTo(n-h,s+l),t.arc(n,s,o,Math.PI-c,Math.PI*2+c),t.bezierCurveTo(n+h-d*p,s+l+g*p,n,r-m,n,r),t.bezierCurveTo(n,r-m,n-h+d*p,s+l+g*p,n-h,s+l),t.closePath()}}),KG=fe.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,i=e.x,a=e.y,o=r/3*2;t.moveTo(i,a),t.lineTo(i+o,a+n),t.lineTo(i,a+n/4*3),t.lineTo(i-o,a+n),t.lineTo(i,a),t.closePath()}}),JG={line:Fi,rect:le,roundRect:le,square:le,circle:Lh,diamond:$G,pin:QG,arrow:KG,triangle:ZG},tU={line:function(t,e,n,r,i){i.x1=t,i.y1=e+r/2,i.x2=t+n,i.y2=e+r/2},rect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r},roundRect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(t,e,n,r,i){var a=Math.min(n,r);i.x=t,i.y=e,i.width=a,i.height=a},circle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.r=Math.min(n,r)/2},diamond:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r},pin:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},arrow:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},triangle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r}},Zp={};N(JG,function(t,e){Zp[e]=new t});var eU=fe.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=Ip(t,e,n),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(r.y=n.y+n.height*.4),r},buildPath:function(t,e,n){var r=e.symbolType;if(r!=="none"){var i=Zp[r];i||(r="rect",i=Zp[r]),tU[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n)}}});function nU(t,e){if(this.type!=="image"){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||ot.color.neutral00,n.lineWidth=2):this.shape.symbolType==="line"?n.stroke=t:n.fill=t,this.markRedraw()}}function Yn(t,e,n,r,i,a,o){var l=t.indexOf("empty")===0;l&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var s;return t.indexOf("image://")===0?s=JI(t.slice(8),new Pt(e,n,r,i),o?"center":"cover"):t.indexOf("path://")===0?s=H_(t.slice(7),{},new Pt(e,n,r,i),o?"center":"cover"):s=new eU({shape:{symbolType:t,x:e,y:n,width:r,height:i}}),s.__isEmptyBrush=l,s.setColor=nU,a&&s.setColor(a),s}function fz(t){return pt(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function hz(t,e){if(t!=null)return pt(t)||(t=[t,t]),[At(t[0],e[0])||0,At(zt(t[1],t[0]),e[1])||0]}function Nl(t){return isFinite(t)}function rU(t,e,n){var r=e.x==null?0:e.x,i=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=Nl(r)?r:0,i=Nl(i)?i:1,a=Nl(a)?a:0,o=Nl(o)?o:0;var l=t.createLinearGradient(r,a,i,o);return l}function iU(t,e,n){var r=n.width,i=n.height,a=Math.min(r,i),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*r+n.x,l=l*i+n.y,s=s*a),o=Nl(o)?o:.5,l=Nl(l)?l:.5,s=s>=0&&Nl(s)?s:.5;var c=t.createRadialGradient(o,l,0,o,l,s);return c}function mb(t,e,n){for(var r=e.type==="radial"?iU(t,e,n):rU(t,e,n),i=e.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function aU(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function Rv(t){return parseInt(t,10)}function Iv(t,e,n){var r=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(n[r]!=null&&n[r]!=="auto")return parseFloat(n[r]);var l=document.defaultView.getComputedStyle(t);return(t[i]||Rv(l[r])||Rv(t.style[r]))-(Rv(l[a])||0)-(Rv(l[o])||0)|0}function oU(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:ve(t)?[t]:pt(t)?t:null}function dz(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&oU(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(n=bt(n,function(a){return a/i}),r/=i)}return[n,r]}var lU=new Zl(!0);function $p(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function zD(t){return typeof t=="string"&&t!=="none"}function Qp(t){var e=t.fill;return e!=null&&e!=="none"}function BD(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function ND(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function yb(t,e,n){var r=DI(e.image,e.__image,n);if(Mg(r)){var i=t.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*k6),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function sU(t,e,n,r){var i,a=$p(n),o=Qp(n),l=n.strokePercent,s=l<1,c=!e.path;(!e.silent||s)&&c&&e.createPathProxy();var h=e.path||lU,d=e.__dirty;if(!r){var g=n.fill,p=n.stroke,m=o&&!!g.colorStops,x=a&&!!p.colorStops,_=o&&!!g.image,b=a&&!!p.image,S=void 0,T=void 0,A=void 0,D=void 0,M=void 0;(m||x)&&(M=e.getBoundingRect()),m&&(S=d?mb(t,g,M):e.__canvasFillGradient,e.__canvasFillGradient=S),x&&(T=d?mb(t,p,M):e.__canvasStrokeGradient,e.__canvasStrokeGradient=T),_&&(A=d||!e.__canvasFillPattern?yb(t,g,e):e.__canvasFillPattern,e.__canvasFillPattern=A),b&&(D=d||!e.__canvasStrokePattern?yb(t,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=D),m?t.fillStyle=S:_&&(A?t.fillStyle=A:o=!1),x?t.strokeStyle=T:b&&(D?t.strokeStyle=D:a=!1)}var k=e.getGlobalScale();h.setScale(k[0],k[1],e.segmentIgnoreThreshold);var I,z;t.setLineDash&&n.lineDash&&(i=dz(e),I=i[0],z=i[1]);var L=!0;(c||d&gu)&&(h.setDPR(t.dpr),s?h.setContext(null):(h.setContext(t),L=!1),h.reset(),e.buildPath(h,e.shape,r),h.toStatic(),e.pathUpdated()),L&&h.rebuildPath(t,s?l:1),I&&(t.setLineDash(I),t.lineDashOffset=z),r||(n.strokeFirst?(a&&ND(t,n),o&&BD(t,n)):(o&&BD(t,n),a&&ND(t,n))),I&&t.setLineDash([])}function uU(t,e,n){var r=e.__image=DI(n.image,e.__image,e,e.onload);if(!(!r||!Mg(r))){var i=n.x||0,a=n.y||0,o=e.getWidth(),l=e.getHeight(),s=r.width/r.height;if(o==null&&l!=null?o=l*s:l==null&&o!=null?l=o/s:o==null&&l==null&&(o=r.width,l=r.height),n.sWidth&&n.sHeight){var c=n.sx||0,h=n.sy||0;t.drawImage(r,c,h,n.sWidth,n.sHeight,i,a,o,l)}else if(n.sx&&n.sy){var c=n.sx,h=n.sy,d=o-c,g=l-h;t.drawImage(r,c,h,d,g,i,a,o,l)}else t.drawImage(r,i,a,o,l)}}function cU(t,e,n){var r,i=n.text;if(i!=null&&(i+=""),i){t.font=n.font||Eo,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var a=void 0,o=void 0;t.setLineDash&&n.lineDash&&(r=dz(e),a=r[0],o=r[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),n.strokeFirst?($p(n)&&t.strokeText(i,n.x,n.y),Qp(n)&&t.fillText(i,n.x,n.y)):(Qp(n)&&t.fillText(i,n.x,n.y),$p(n)&&t.strokeText(i,n.x,n.y)),a&&t.setLineDash([])}}var PD=["shadowBlur","shadowOffsetX","shadowOffsetY"],VD=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function vz(t,e,n,r,i){var a=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){or(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Fl.opacity:o}(r||e.blend!==n.blend)&&(a||(or(t,i),a=!0),t.globalCompositeOperation=e.blend||Fl.blend);for(var l=0;l<PD.length;l++){var s=PD[l];(r||e[s]!==n[s])&&(a||(or(t,i),a=!0),t[s]=t.dpr*(e[s]||0))}return(r||e.shadowColor!==n.shadowColor)&&(a||(or(t,i),a=!0),t.shadowColor=e.shadowColor||Fl.shadowColor),a}function HD(t,e,n,r,i){var a=dh(e,i.inHover),o=r?null:n&&dh(n,i.inHover)||{};if(a===o)return!1;var l=vz(t,a,o,r,i);if((r||a.fill!==o.fill)&&(l||(or(t,i),l=!0),zD(a.fill)&&(t.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(l||(or(t,i),l=!0),zD(a.stroke)&&(t.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(l||(or(t,i),l=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var s=a.lineWidth,c=s/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==c&&(l||(or(t,i),l=!0),t.lineWidth=c)}for(var h=0;h<VD.length;h++){var d=VD[h],g=d[0];(r||a[g]!==o[g])&&(l||(or(t,i),l=!0),t[g]=a[g]||d[1])}return l}function fU(t,e,n,r,i){return vz(t,dh(e,i.inHover),n&&dh(n,i.inHover),r,i)}function pz(t,e){var n=e.transform,r=t.dpr||1;n?t.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):t.setTransform(r,0,0,r,0,0)}function hU(t,e,n){for(var r=!1,i=0;i<t.length;i++){var a=t[i];r=r||a.isZeroArea(),pz(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}n.allClipped=r}function dU(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var jD=1,FD=2,GD=3,UD=4;function vU(t){var e=Qp(t),n=$p(t);return!(t.lineDash||!(+e^+n)||e&&typeof t.fill!="string"||n&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function or(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function dh(t,e){return e&&t.__hoverStyle||t.style}function gz(t,e){Pl(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Pl(t,e,n,r){var i=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){e.__dirty&=~_r,e.__isRendered=!1;return}var a=e.__clipPaths,o=n.prevElClipPaths,l=!1,s=!1;if((!o||aU(a,o))&&(o&&o.length&&(or(t,n),t.restore(),s=l=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),a&&a.length&&(or(t,n),t.save(),hU(a,t,n),l=!0),n.prevElClipPaths=a),n.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var c=n.prevEl;c||(s=l=!0);var h=e instanceof fe&&e.autoBatch&&vU(e.style);l||dU(i,c.transform)?(or(t,n),pz(t,e)):h||or(t,n);var d=dh(e,n.inHover);e instanceof fe?(n.lastDrawType!==jD&&(s=!0,n.lastDrawType=jD),HD(t,e,c,s,n),(!h||!n.batchFill&&!n.batchStroke)&&t.beginPath(),sU(t,e,d,h),h&&(n.batchFill=d.fill||"",n.batchStroke=d.stroke||"")):e instanceof Bp?(n.lastDrawType!==GD&&(s=!0,n.lastDrawType=GD),HD(t,e,c,s,n),cU(t,e,d)):e instanceof Jr?(n.lastDrawType!==FD&&(s=!0,n.lastDrawType=FD),fU(t,e,c,s,n),uU(t,e,d)):e.getTemporalDisplayables&&(n.lastDrawType!==UD&&(s=!0,n.lastDrawType=UD),pU(t,e,n)),h&&r&&or(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}function pU(t,e,n){var r=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},o,l;for(o=e.getCursor(),l=r.length;o<l;o++){var s=r[o];s.beforeBrush&&s.beforeBrush(),s.innerBeforeBrush(),Pl(t,s,a,o===l-1),s.innerAfterBrush(),s.afterBrush&&s.afterBrush(),a.prevEl=s}for(var c=0,h=i.length;c<h;c++){var s=i[c];s.beforeBrush&&s.beforeBrush(),s.innerBeforeBrush(),Pl(t,s,a,c===h-1),s.innerAfterBrush(),s.afterBrush&&s.afterBrush(),a.prevEl=s}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var v1=new qG,YD=new Iu(100),WD=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Kp(t,e){if(t==="none")return null;var n=e.getDevicePixelRatio(),r=e.getZr(),i=r.painter.type==="svg";t.dirty&&v1.delete(t);var a=v1.get(t);if(a)return a;var o=qt(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var l={repeat:"repeat"};return s(l),l.rotation=o.rotation,l.scaleX=l.scaleY=i?1:1/n,v1.set(t,l),t.dirty=!1,l;function s(c){for(var h=[n],d=!0,g=0;g<WD.length;++g){var p=o[WD[g]];if(p!=null&&!pt(p)&&!St(p)&&!ve(p)&&typeof p!="boolean"){d=!1;break}h.push(p)}var m;if(d){m=h.join(",")+(i?"-svg":"");var x=YD.get(m);x&&(i?c.svgElement=x:c.image=x)}var _=yz(o.dashArrayX),b=gU(o.dashArrayY),S=mz(o.symbol),T=mU(_),A=xz(b),D=!i&&gi.createCanvas(),M=i&&{tag:"g",attrs:{},key:"dcl",children:[]},k=z(),I;D&&(D.width=k.width*n,D.height=k.height*n,I=D.getContext("2d")),L(),d&&YD.put(m,D||M),c.image=D,c.svgElement=M,c.svgWidth=k.width,c.svgHeight=k.height;function z(){for(var O=1,H=0,F=T.length;H<F;++H)O=oA(O,T[H]);for(var Y=1,H=0,F=S.length;H<F;++H)Y=oA(Y,S[H].length);O*=Y;var W=A*T.length*S.length;return{width:Math.max(1,Math.min(O,o.maxTileWidth)),height:Math.max(1,Math.min(W,o.maxTileHeight))}}function L(){I&&(I.clearRect(0,0,D.width,D.height),o.backgroundColor&&(I.fillStyle=o.backgroundColor,I.fillRect(0,0,D.width,D.height)));for(var O=0,H=0;H<b.length;++H)O+=b[H];if(O<=0)return;for(var F=-A,Y=0,W=0,V=0;F<k.height;){if(Y%2===0){for(var X=W/2%S.length,Z=0,tt=0,j=0;Z<k.width*2;){for(var U=0,H=0;H<_[V].length;++H)U+=_[V][H];if(U<=0)break;if(tt%2===0){var q=(1-o.symbolSize)*.5,P=Z+_[V][tt]*q,J=F+b[Y]*q,st=_[V][tt]*o.symbolSize,mt=b[Y]*o.symbolSize,wt=j/2%S[X].length;gt(P,J,st,mt,S[X][wt])}Z+=_[V][tt],++j,++tt,tt===_[V].length&&(tt=0)}++V,V===_.length&&(V=0)}F+=b[Y],++W,++Y,Y===b.length&&(Y=0)}function gt(dt,Dt,yt,Mt,_e){var Jt=i?1:n,he=Yn(_e,dt*Jt,Dt*Jt,yt*Jt,Mt*Jt,o.color,o.symbolKeepAspect);if(i){var Me=r.painter.renderOneToVNode(he);Me&&M.children.push(Me)}else gz(I,he)}}}}function mz(t){if(!t||t.length===0)return[["rect"]];if(St(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!St(t[n])){e=!1;break}if(e)return mz([t]);for(var r=[],n=0;n<t.length;++n)St(t[n])?r.push([t[n]]):r.push(t[n]);return r}function yz(t){if(!t||t.length===0)return[[0,0]];if(ve(t)){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,r=0;r<t.length;++r)if(!ve(t[r])){n=!1;break}if(n)return yz([t]);for(var i=[],r=0;r<t.length;++r)if(ve(t[r])){var e=Math.ceil(t[r]);i.push([e,e])}else{var e=bt(t[r],function(l){return Math.ceil(l)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function gU(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(ve(t)){var e=Math.ceil(t);return[e,e]}var n=bt(t,function(r){return Math.ceil(r)});return t.length%2?n.concat(n):n}function mU(t){return bt(t,function(e){return xz(e)})}function xz(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?e*2:e}function yU(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(o){var l=r.getItemVisual(o,"decal");if(l){var s=r.ensureUniqueItemVisual(o,"style");s.decal=Kp(l,e)}});var i=r.getVisual("decal");if(i){var a=r.getVisual("style");a.decal=Kp(i,e)}}})}var ci=new Kr,bz={};function xU(t,e){bz[t]=e}function bU(t){return bz[t]}var _U=1,SU=800,wU=900,TU=1e3,CU=2e3,MU=5e3,_z=1e3,AU=1100,fS=2e3,Sz=3e3,DU=4e3,Hg=4500,kU=4600,LU=5e3,EU=6e3,wz=7e3,RU={PROCESSOR:{FILTER:TU,SERIES_FILTER:SU,STATISTIC:MU},VISUAL:{LAYOUT:_z,PROGRESSIVE_LAYOUT:AU,GLOBAL:fS,CHART:Sz,POST_CHART_LAYOUT:kU,COMPONENT:DU,BRUSH:LU,CHART_ITEM:Hg,ARIA:EU,DECAL:wz}},an="__flagInMainProcess",Ov="__mainProcessVersion",vn="__pendingUpdate",p1="__needsUpdateStatus",XD=/^[a-zA-Z0-9_]+$/,g1="__connectUpdateStatus",qD=0,IU=1,OU=2;function Tz(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this.isDisposed()){this.id;return}return Mz(this,t,e)}}function Cz(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Mz(this,t,e)}}function Mz(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),Kr.prototype[e].apply(t,n)}var Az=(function(t){at(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Kr),Dz=Az.prototype;Dz.on=Cz("on");Dz.off=Cz("off");var Ml,m1,zv,ga,Bv,y1,x1,ru,iu,ZD,$D,b1,QD,Nv,KD,kz,Nr,JD,au,Lz=(function(t){at(e,t);function e(n,r,i){var a=t.call(this,new jG)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},a._dom=n;var o="canvas",l="auto",s=!1;a[Ov]=1,i.ssr;var c=a._zr=nA(n,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:zt(i.useDirtyRect,s),useCoarsePointer:zt(i.useCoarsePointer,l),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=uS(Tt(c.flush,c),17),a._updateTheme(r),a._locale=Bj(i.locale||hO),a._coordSysMgr=new zh;var h=a._api=KD(a);function d(g,p){return g.__prio-p.__prio}return op(tg,d),op(_b,d),a._scheduler=new iz(a,h,_b,tg),a._messageCenter=new Az,a._initEvents(),a.resize=Tt(a.resize,a),c.animation.on("frame",a._onframe,a),ZD(c,a),$D(c,a),Tp(a),a}return e.prototype._onframe=function(){if(!this._disposed){JD(this);var n=this._scheduler;if(this[vn]){var r=this[vn].silent;this[an]=!0,au(this);try{Ml(this),ga.update.call(this,null,this[vn].updateParams)}catch(s){throw this[an]=!1,this[vn]=null,s}this._zr.flush(),this[an]=!1,this[vn]=null,ru.call(this,r),iu.call(this,r)}else if(n.unfinished){var i=_U,a=this._model,o=this._api;n.unfinished=!1;do{var l=+new Date;n.performSeriesTasks(a),n.performDataProcessorTasks(a),y1(this,a),n.performVisualTasks(a),Nv(this,this._model,o,"remain",{}),i-=+new Date-l}while(i>0&&n.unfinished);n.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(n,r,i){if(!this[an]){if(this._disposed){this.id;return}var a,o,l;if(Lt(r)&&(i=r.lazyUpdate,a=r.silent,o=r.replaceMerge,l=r.transition,r=r.notMerge),this[an]=!0,au(this),!this._model||r){var s=new wF(this._api),c=this._theme,h=this._model=new iS;h.scheduler=this._scheduler,h.ssr=this._ssr,h.init(null,null,null,c,this._locale,s)}this._model.setOption(n,{replaceMerge:o},Sb);var d={seriesTransition:l,optionChanged:!0};if(i)this[vn]={silent:a,updateParams:d},this[an]=!1,this.getZr().wakeUp();else{try{Ml(this),ga.update.call(this,null,d)}catch(g){throw this[vn]=null,this[an]=!1,g}this._ssr||this._zr.flush(),this[vn]=null,this[an]=!1,ru.call(this,a),iu.call(this,a)}}},e.prototype.setTheme=function(n,r){if(!this[an]){if(this._disposed){this.id;return}var i=this._model;if(i){var a=r&&r.silent,o=null;this[vn]&&(a==null&&(a=this[vn].silent),o=this[vn].updateParams,this[vn]=null),this[an]=!0,au(this);try{this._updateTheme(n),i.setTheme(this._theme),Ml(this),ga.update.call(this,{type:"setTheme"},o)}catch(l){throw this[an]=!1,l}this[an]=!1,ru.call(this,a),iu.call(this,a)}}},e.prototype._updateTheme=function(n){St(n)&&(n=Ez[n]),n&&(n=Rt(n),n&&NO(n,!0),this._theme=n)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ft.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},e.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},e.prototype.getSvgDataURL=function(){var n=this._zr,r=n.storage.getDisplayList();return N(r,function(i){i.stopAnimation(null,!0)}),n.painter.toDataURL()},e.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,i=this._model,a=[],o=this;N(r,function(s){i.eachComponent({mainType:s},function(c){var h=o._componentsMap[c.__viewId];h.group.ignore||(a.push(h),h.group.ignore=!0)})});var l=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return N(a,function(s){s.group.ignore=!1}),l},e.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",i=this.group,a=Math.min,o=Math.max,l=1/0;if(tk[i]){var s=l,c=l,h=-l,d=-l,g=[],p=n&&n.pixelRatio||this.getDevicePixelRatio();N(Xf,function(T,A){if(T.group===i){var D=r?T.getZr().painter.getSvgDom().innerHTML:T.renderToCanvas(Rt(n)),M=T.getDom().getBoundingClientRect();s=a(M.left,s),c=a(M.top,c),h=o(M.right,h),d=o(M.bottom,d),g.push({dom:D,left:M.left,top:M.top})}}),s*=p,c*=p,h*=p,d*=p;var m=h-s,x=d-c,_=gi.createCanvas(),b=nA(_,{renderer:r?"svg":"canvas"});if(b.resize({width:m,height:x}),r){var S="";return N(g,function(T){var A=T.left-s,D=T.top-c;S+='<g transform="translate('+A+","+D+')">'+T.dom+"</g>"}),b.painter.getSvgRoot().innerHTML=S,n.connectedBackgroundColor&&b.painter.setBackgroundColor(n.connectedBackgroundColor),b.refreshImmediately(),b.painter.toDataURL()}else return n.connectedBackgroundColor&&b.add(new le({shape:{x:0,y:0,width:m,height:x},style:{fill:n.connectedBackgroundColor}})),N(g,function(T){var A=new Jr({style:{x:T.left*p-s,y:T.top*p-c,image:T.dom}});b.add(A)}),b.refreshImmediately(),_.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},e.prototype.convertToPixel=function(n,r,i){return Bv(this,"convertToPixel",n,r,i)},e.prototype.convertToLayout=function(n,r,i){return Bv(this,"convertToLayout",n,r,i)},e.prototype.convertFromPixel=function(n,r,i){return Bv(this,"convertFromPixel",n,r,i)},e.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var i=this._model,a,o=jf(i,n);return N(o,function(l,s){s.indexOf("Models")>=0&&N(l,function(c){var h=c.coordinateSystem;if(h&&h.containPoint)a=a||!!h.containPoint(r);else if(s==="seriesModels"){var d=this._chartsMap[c.__viewId];d&&d.containPoint&&(a=a||d.containPoint(r,c))}},this)},this),!!a},e.prototype.getVisual=function(n,r){var i=this._model,a=jf(i,n,{defaultMainType:"series"}),o=a.seriesModel,l=o.getData(),s=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?l.indexOfRawIndex(a.dataIndex):null;return s!=null?cS(l,s,r):uz(l,r)},e.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},e.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},e.prototype._initEvents=function(){var n=this;N(zU,function(i){var a=function(o){var l=n.getModel(),s=o.target,c,h=i==="globalout";if(h?c={}:s&&Mu(s,function(x){var _=$t(x);if(_&&_.dataIndex!=null){var b=_.dataModel||l.getSeriesByIndex(_.seriesIndex);return c=b&&b.getDataParams(_.dataIndex,_.dataType,s)||{},!0}else if(_.eventData)return c=ht({},_.eventData),!0},!0),c){var d=c.componentType,g=c.componentIndex;(d==="markLine"||d==="markPoint"||d==="markArea")&&(d="series",g=c.seriesIndex);var p=d&&g!=null&&l.getComponent(d,g),m=p&&n[p.mainType==="series"?"_chartsMap":"_componentsMap"][p.__viewId];c.event=o,c.type=i,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:c,model:p,view:m},n.trigger(i,c)}};a.zrEventfulCallAtLast=!0,n._zr.on(i,a,n)});var r=this._messageCenter;N(bb,function(i,a){r.on(a,function(o){n.trigger(a,o)})}),YG(r,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 n=this.getDom();n&&TI(this.getDom(),dS,"");var r=this,i=r._api,a=r._model;N(r._componentsViews,function(o){o.dispose(a,i)}),N(r._chartsViews,function(o){o.dispose(a,i)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete Xf[r.id]},e.prototype.resize=function(n){if(!this[an]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var i=r.resetOption("media"),a=n&&n.silent;this[vn]&&(a==null&&(a=this[vn].silent),i=!0,this[vn]=null),this[an]=!0,au(this);try{i&&Ml(this),ga.update.call(this,{type:"resize",animation:ht({duration:0},n&&n.animation)})}catch(o){throw this[an]=!1,o}this[an]=!1,ru.call(this,a),iu.call(this,a)}}},e.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(Lt(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!wb[n]){var i=wb[n](this._api,r),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(n){var r=ht({},n);return r.type=xb[n.type],r},e.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(Lt(r)||(r={silent:!!r}),!!Jp[n.type]&&this._model){if(this[an]){this._pendingActions.push(n);return}var i=r.silent;x1.call(this,n,i);var a=r.flush;a?this._zr.flush():a!==!1&&Ft.browser.weChat&&this._throttledZrFlush(),ru.call(this,i),iu.call(this,i)}},e.prototype.updateLabelLayout=function(){ci.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(n){if(this._disposed){this.id;return}var r=n.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(r);a.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){Ml=function(d){var g=d._scheduler;g.restorePipelines(d._model),g.prepareStageTasks(),m1(d,!0),m1(d,!1),g.plan()},m1=function(d,g){for(var p=d._model,m=d._scheduler,x=g?d._componentsViews:d._chartsViews,_=g?d._componentsMap:d._chartsMap,b=d._zr,S=d._api,T=0;T<x.length;T++)x[T].__alive=!1;g?p.eachComponent(function(M,k){M!=="series"&&A(k)}):p.eachSeries(A);function A(M){var k=M.__requireNewView;M.__requireNewView=!1;var I="_ec_"+M.id+"_"+M.type,z=!k&&_[I];if(!z){var L=Ni(M.type),O=g?Mn.getClass(L.main,L.sub):Ye.getClass(L.sub);z=new O,z.init(p,S),_[I]=z,x.push(z),b.add(z.group)}M.__viewId=z.__id=I,z.__alive=!0,z.__model=M,z.group.__ecComponentInfo={mainType:M.mainType,index:M.componentIndex},!g&&m.prepareView(z,M,p,S)}for(var T=0;T<x.length;){var D=x[T];D.__alive?T++:(!g&&D.renderTask.dispose(),b.remove(D.group),D.dispose(p,S),x.splice(T,1),_[D.__id]===D&&delete _[D.__id],D.__id=D.group.__ecComponentInfo=null)}},zv=function(d,g,p,m,x){var _=d._model;if(_.setUpdatePayload(p),!m){N([].concat(d._componentsViews).concat(d._chartsViews),D);return}var b={};b[m+"Id"]=p[m+"Id"],b[m+"Index"]=p[m+"Index"],b[m+"Name"]=p[m+"Name"];var S={mainType:m,query:b};x&&(S.subType=x);var T=p.excludeSeriesId,A;T!=null&&(A=Bt(),N(ln(T),function(M){var k=Un(M,null);k!=null&&A.set(k,!0)})),_&&_.eachComponent(S,function(M){var k=A&&A.get(M.id)!=null;if(!k)if(BA(p))if(M instanceof Ke)p.type===Gl&&!p.notBlur&&!M.get(["emphasis","disabled"])&&A8(M,p,d._api);else{var I=B_(M.mainType,M.componentIndex,p.name,d._api),z=I.focusSelf,L=I.dispatchers;p.type===Gl&&z&&!p.notBlur&&Jx(M.mainType,M.componentIndex,d._api),L&&N(L,function(O){p.type===Gl?$l(O):Ql(O)})}else eb(p)&&M instanceof Ke&&(L8(M,p,d._api),OA(M),Nr(d))},d),_&&_.eachComponent(S,function(M){var k=A&&A.get(M.id)!=null;k||D(d[m==="series"?"_chartsMap":"_componentsMap"][M.__viewId])},d);function D(M){M&&M.__alive&&M[g]&&M[g](M.__model,_,d._api,p)}},ga={prepareAndUpdate:function(d){Ml(this),ga.update.call(this,d,d&&{optionChanged:d.newOption!=null})},update:function(d,g){var p=this._model,m=this._api,x=this._zr,_=this._coordSysMgr,b=this._scheduler;if(p){p.setUpdatePayload(d),b.restoreData(p,d),b.performSeriesTasks(p),_.create(p,m),b.performDataProcessorTasks(p,d),y1(this,p),_.update(p,m),r(p),b.performVisualTasks(p,d);var S=p.get("backgroundColor")||"transparent";x.setBackgroundColor(S);var T=p.get("darkMode");T!=null&&T!=="auto"&&x.setDarkMode(T),b1(this,p,m,d,g),ci.trigger("afterupdate",p,m)}},updateTransform:function(d){var g=this,p=this._model,m=this._api;if(p){p.setUpdatePayload(d);var x=[];p.eachComponent(function(b,S){if(b!=="series"){var T=g.getViewOfComponentModel(S);if(T&&T.__alive)if(T.updateTransform){var A=T.updateTransform(S,p,m,d);A&&A.update&&x.push(T)}else x.push(T)}});var _=Bt();p.eachSeries(function(b){var S=g._chartsMap[b.__viewId];if(S.updateTransform){var T=S.updateTransform(b,p,m,d);T&&T.update&&_.set(b.uid,1)}else _.set(b.uid,1)}),r(p),this._scheduler.performVisualTasks(p,d,{setDirty:!0,dirtyMap:_}),Nv(this,p,m,d,{},_),ci.trigger("afterupdate",p,m)}},updateView:function(d){var g=this._model;g&&(g.setUpdatePayload(d),Ye.markUpdateMethod(d,"updateView"),r(g),this._scheduler.performVisualTasks(g,d,{setDirty:!0}),b1(this,g,this._api,d,{}),ci.trigger("afterupdate",g,this._api))},updateVisual:function(d){var g=this,p=this._model;p&&(p.setUpdatePayload(d),p.eachSeries(function(m){m.getData().clearAllVisual()}),Ye.markUpdateMethod(d,"updateVisual"),r(p),this._scheduler.performVisualTasks(p,d,{visualType:"visual",setDirty:!0}),p.eachComponent(function(m,x){if(m!=="series"){var _=g.getViewOfComponentModel(x);_&&_.__alive&&_.updateVisual(x,p,g._api,d)}}),p.eachSeries(function(m){var x=g._chartsMap[m.__viewId];x.updateVisual(m,p,g._api,d)}),ci.trigger("afterupdate",p,this._api))},updateLayout:function(d){ga.update.call(this,d)}};function n(d,g,p,m,x){if(d._disposed){d.id;return}for(var _=d._model,b=d._coordSysMgr.getCoordinateSystems(),S,T=jf(_,p),A=0;A<b.length;A++){var D=b[A];if(D[g]&&(S=D[g](_,T,m,x))!=null)return S}}Bv=n,y1=function(d,g){var p=d._chartsMap,m=d._scheduler;g.eachSeries(function(x){m.updateStreamModes(x,p[x.__viewId])})},x1=function(d,g){var p=this,m=this.getModel(),x=d.type,_=d.escapeConnect,b=Jp[x],S=(b.update||"update").split(":"),T=S.pop(),A=S[0]!=null&&Ni(S[0]);this[an]=!0,au(this);var D=[d],M=!1;d.batch&&(M=!0,D=bt(d.batch,function(V){return V=qt(ht({},V),d),V.batch=null,V}));var k=[],I,z=[],L=b.nonRefinedEventType,O=eb(d),H=BA(d);if(H&&YI(this._api),N(D,function(V){var X=b.action(V,m,p._api);if(b.refineEvent?z.push(X):I=X,I=I||ht({},V),I.type=L,k.push(I),H){var Z=D_(d),tt=Z.queryOptionMap,j=Z.mainTypeSpecified,U=j?tt.keys()[0]:"series";zv(p,T,V,U),Nr(p)}else O?(zv(p,T,V,"series"),Nr(p)):A&&zv(p,T,V,A.main,A.sub)}),T!=="none"&&!H&&!O&&!A)try{this[vn]?(Ml(this),ga.update.call(this,d),this[vn]=null):ga[T].call(this,d)}catch(V){throw this[an]=!1,V}if(M?I={type:L,escapeConnect:_,batch:k}:I=k[0],this[an]=!1,!g){var F=void 0;if(b.refineEvent){var Y=b.refineEvent(z,d,m,this._api).eventContent;$r(Lt(Y)),F=qt({type:b.refinedEventType},Y),F.fromAction=d.type,F.fromActionPayload=d,F.escapeConnect=!0}var W=this._messageCenter;W.trigger(I.type,I),F&&W.trigger(F.type,F)}},ru=function(d){for(var g=this._pendingActions;g.length;){var p=g.shift();x1.call(this,p,d)}},iu=function(d){!d&&this.trigger("updated")},ZD=function(d,g){d.on("rendered",function(p){g.trigger("rendered",p),d.animation.isFinished()&&!g[vn]&&!g._scheduler.unfinished&&!g._pendingActions.length&&g.trigger("finished")})},$D=function(d,g){d.on("mouseover",function(p){var m=p.target,x=Mu(m,oh);x&&(D8(x,p,g._api),Nr(g))}).on("mouseout",function(p){var m=p.target,x=Mu(m,oh);x&&(k8(x,p,g._api),Nr(g))}).on("click",function(p){var m=p.target,x=Mu(m,function(S){return $t(S).dataIndex!=null},!0);if(x){var _=x.selected?"unselect":"select",b=$t(x);g._api.dispatchAction({type:_,dataType:b.dataType,dataIndexInside:b.dataIndex,seriesIndex:b.seriesIndex,isFromClick:!0})}})};function r(d){d.clearColorPalette(),d.eachSeries(function(g){g.clearColorPalette()})}function i(d){var g=[],p=[],m=!1;if(d.eachComponent(function(S,T){var A=T.get("zlevel")||0,D=T.get("z")||0,M=T.getZLevelKey();m=m||!!M,(S==="series"?p:g).push({zlevel:A,z:D,idx:T.componentIndex,type:S,key:M})}),m){var x=g.concat(p),_,b;op(x,function(S,T){return S.zlevel===T.zlevel?S.z-T.z:S.zlevel-T.zlevel}),N(x,function(S){var T=d.getComponent(S.type,S.idx),A=S.zlevel,D=S.key;_!=null&&(A=Math.max(_,A)),D?(A===_&&D!==b&&A++,b=D):b&&(A===_&&A++,b=""),_=A,T.setZLevel(A)})}}b1=function(d,g,p,m,x){i(g),QD(d,g,p,m,x),N(d._chartsViews,function(_){_.__alive=!1}),Nv(d,g,p,m,x),N(d._chartsViews,function(_){_.__alive||_.remove(g,p)})},QD=function(d,g,p,m,x,_){N(_||d._componentsViews,function(b){var S=b.__model;c(S,b),b.render(S,g,p,m),s(S,b),h(S,b)})},Nv=function(d,g,p,m,x,_){var b=d._scheduler;x=ht(x||{},{updatedSeries:g.getSeries()}),ci.trigger("series:beforeupdate",g,p,x);var S=!1;g.eachSeries(function(T){var A=d._chartsMap[T.__viewId];A.__alive=!0;var D=A.renderTask;b.updatePayload(D,m),c(T,A),_&&_.get(T.uid)&&D.dirty(),D.perform(b.getPerformArgs(D))&&(S=!0),A.group.silent=!!T.get("silent"),l(T,A),OA(T)}),b.unfinished=S||b.unfinished,ci.trigger("series:layoutlabels",g,p,x),ci.trigger("series:transition",g,p,x),g.eachSeries(function(T){var A=d._chartsMap[T.__viewId];s(T,A),h(T,A)}),o(d,g),ci.trigger("series:afterupdate",g,p,x)},Nr=function(d){d[p1]=!0,d.getZr().wakeUp()},au=function(d){d[Ov]=(d[Ov]+1)%1e3},JD=function(d){d[p1]&&(d.getZr().storage.traverse(function(g){Gf(g)||a(g)}),d[p1]=!1)};function a(d){for(var g=[],p=d.currentStates,m=0;m<p.length;m++){var x=p[m];x==="emphasis"||x==="blur"||x==="select"||g.push(x)}d.selected&&d.states.select&&g.push("select"),d.hoverState===kg&&d.states.emphasis?g.push("emphasis"):d.hoverState===Dg&&d.states.blur&&g.push("blur"),d.useStates(g)}function o(d,g){var p=d._zr,m=p.storage,x=0;m.traverse(function(_){_.isGroup||x++}),x>g.get("hoverLayerThreshold")&&!Ft.node&&!Ft.worker&&g.eachSeries(function(_){if(!_.preventUsingHoverLayer){var b=d._chartsMap[_.__viewId];b.__alive&&b.eachRendered(function(S){S.states.emphasis&&(S.states.emphasis.hoverLayer=!0)})}})}function l(d,g){var p=d.get("blendMode")||null;g.eachRendered(function(m){m.isGroup||(m.style.blend=p)})}function s(d,g){if(!d.preventAutoZ){var p=uh(d);g.eachRendered(function(m){return aO(m,p.z,p.zlevel),!0})}}function c(d,g){g.eachRendered(function(p){if(!Gf(p)){var m=p.getTextContent(),x=p.getTextGuideLine();p.stateTransition&&(p.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),x&&x.stateTransition&&(x.stateTransition=null),p.hasState()?(p.prevStates=p.currentStates,p.clearStates()):p.prevStates&&(p.prevStates=null)}})}function h(d,g){var p=d.getModel("stateAnimation"),m=d.isAnimationEnabled(),x=p.get("duration"),_=x>0?{duration:x,delay:p.get("delay"),easing:p.get("easing")}:null;g.eachRendered(function(b){if(b.states&&b.states.emphasis){if(Gf(b))return;if(b instanceof fe&&z8(b),b.__dirty){var S=b.prevStates;S&&b.useStates(S)}if(m){b.stateTransition=_;var T=b.getTextContent(),A=b.getTextGuideLine();T&&(T.stateTransition=_),A&&(A.stateTransition=_)}b.__dirty&&a(b)}})}KD=function(d){return new((function(g){at(p,g);function p(){return g!==null&&g.apply(this,arguments)||this}return p.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},p.prototype.getComponentByElement=function(m){for(;m;){var x=m.__ecComponentInfo;if(x!=null)return d._model.getComponent(x.mainType,x.index);m=m.parent}},p.prototype.enterEmphasis=function(m,x){$l(m,x),Nr(d)},p.prototype.leaveEmphasis=function(m,x){Ql(m,x),Nr(d)},p.prototype.enterBlur=function(m){M8(m),Nr(d)},p.prototype.leaveBlur=function(m){jI(m),Nr(d)},p.prototype.enterSelect=function(m){FI(m),Nr(d)},p.prototype.leaveSelect=function(m){GI(m),Nr(d)},p.prototype.getModel=function(){return d.getModel()},p.prototype.getViewOfComponentModel=function(m){return d.getViewOfComponentModel(m)},p.prototype.getViewOfSeriesModel=function(m){return d.getViewOfSeriesModel(m)},p.prototype.getMainProcessVersion=function(){return d[Ov]},p})(zO))(d)},kz=function(d){function g(p,m){for(var x=0;x<p.length;x++){var _=p[x];_[g1]=m}}N(xb,function(p,m){d._messageCenter.on(m,function(x){if(tk[d.group]&&d[g1]!==qD){if(x&&x.escapeConnect)return;var _=d.makeActionFromEvent(x),b=[];N(Xf,function(S){S!==d&&S.group===d.group&&b.push(S)}),g(b,qD),N(b,function(S){S[g1]!==IU&&S.dispatchAction(_)}),g(b,OU)}})})}})(),e})(Kr),hS=Lz.prototype;hS.on=Tz("on");hS.off=Tz("off");hS.one=function(t,e,n){var r=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),r.off(t,i)}this.on.call(this,t,i,n)};var zU=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Jp={},xb={},bb={},_b=[],Sb=[],tg=[],Ez={},wb={},Xf={},tk={},BU=+new Date-0,dS="_echarts_instance_";function NU(t,e,n){var r=!(n&&n.ssr);if(r){var i=PU(t);if(i)return i}var a=new Lz(t,e,n);return a.id="ec_"+BU++,Xf[a.id]=a,r&&TI(t,dS,a.id),kz(a),ci.trigger("afterinit",a),a}function PU(t){return Xf[yH(t,dS)]}function vS(t,e){Ez[t]=e}function Rz(t){Yt(Sb,t)<0&&Sb.push(t)}function Iz(t,e){gS(_b,t,e,CU)}function VU(t){pS("afterinit",t)}function HU(t){pS("afterupdate",t)}function pS(t,e){ci.on(t,e)}function Wi(t,e,n){var r,i,a,o,l;It(e)&&(n=e,e=""),Lt(t)?(r=t.type,i=t.event,o=t.update,l=t.publishNonRefinedEvent,n||(n=t.action),a=t.refineEvent):(r=t,i=e);function s(h){return h.toLowerCase()}i=s(i||r);var c=a?s(r):i;Jp[r]||($r(XD.test(r)&&XD.test(i)),a&&$r(i!==r),Jp[r]={actionType:r,refinedEventType:i,nonRefinedEventType:c,update:o,action:n,refineEvent:a},bb[i]=1,a&&l&&(bb[c]=1),xb[c]=r)}function jU(t,e){zh.register(t,e)}function FU(t,e){gS(tg,t,e,_z,"layout")}function is(t,e){gS(tg,t,e,Sz,"visual")}var ek=[];function gS(t,e,n,r,i){if((It(e)||Lt(e))&&(n=e,e=r),!(Yt(ek,n)>=0)){ek.push(n);var a=iz.wrapStageHandler(n,i);a.__prio=e,a.__raw=n,t.push(a)}}function Oz(t,e){wb[t]=e}function GU(t,e,n){var r=bU("registerMap");r&&r(t,e,n)}var UU=JF;is(fS,AG);is(Hg,DG);is(Hg,kG);is(fS,FG);is(Hg,GG);is(wz,yU);Rz(NO);Iz(wU,zF);Oz("default",LG);Wi({type:Gl,event:Gl,update:Gl},cn);Wi({type:hp,event:hp,update:hp},cn);Wi({type:Np,event:O_,update:Np,action:cn,refineEvent:mS,publishNonRefinedEvent:!0});Wi({type:$x,event:O_,update:$x,action:cn,refineEvent:mS,publishNonRefinedEvent:!0});Wi({type:Pp,event:O_,update:Pp,action:cn,refineEvent:mS,publishNonRefinedEvent:!0});function mS(t,e,n,r){return{eventContent:{selected:E8(n),isFromClick:e.isFromClick||!1}}}vS("default",{});vS("dark",sz);function rf(t){return t==null?0:t.length||1}function nk(t){return t}var Ph=(function(){function t(e,n,r,i,a,o){this._old=e,this._new=n,this._oldKeyGetter=r||nk,this._newKeyGetter=i||nk,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,n=this._new,r={},i=new Array(e.length),a=new Array(n.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(n,r,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var l=i[o],s=r[l],c=rf(s);if(c>1){var h=s.shift();s.length===1&&(r[l]=s[0]),this._update&&this._update(h,o)}else c===1?(r[l]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(a,r)},t.prototype._executeMultiple=function(){var e=this._old,n=this._new,r={},i={},a=[],o=[];this._initIndexMap(e,r,a,"_oldKeyGetter"),this._initIndexMap(n,i,o,"_newKeyGetter");for(var l=0;l<a.length;l++){var s=a[l],c=r[s],h=i[s],d=rf(c),g=rf(h);if(d>1&&g===1)this._updateManyToOne&&this._updateManyToOne(h,c),i[s]=null;else if(d===1&&g>1)this._updateOneToMany&&this._updateOneToMany(h,c),i[s]=null;else if(d===1&&g===1)this._update&&this._update(h,c),i[s]=null;else if(d>1&&g>1)this._updateManyToMany&&this._updateManyToMany(h,c),i[s]=null;else if(d>1)for(var p=0;p<d;p++)this._remove&&this._remove(c[p]);else this._remove&&this._remove(c)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(e,n){for(var r=0;r<e.length;r++){var i=e[r],a=n[i],o=rf(a);if(o>1)for(var l=0;l<o;l++)this._add&&this._add(a[l]);else o===1&&this._add&&this._add(a);n[i]=null}},t.prototype._initIndexMap=function(e,n,r,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var l="_ec_"+this[i](e[o],o);if(a||(r[o]=l),!!n){var s=n[l],c=rf(s);c===0?(n[l]=o,a&&r.push(l)):c===1?n[l]=[s,o]:s.push(o)}}},t})(),YU=(function(){function t(e,n){this._encode=e,this._schema=n}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t})();function WU(t,e){var n={},r=n.encode={},i=Bt(),a=[],o=[],l={};N(t.dimensions,function(g){var p=t.getDimensionInfo(g),m=p.coordDim;if(m){var x=p.coordDimIndex;_1(r,m)[x]=g,p.isExtraCoord||(i.set(m,1),XU(p.type)&&(a[0]=g),_1(l,m)[x]=t.getDimensionIndex(p.name)),p.defaultTooltip&&o.push(g)}AO.each(function(_,b){var S=_1(r,b),T=p.otherDims[b];T!=null&&T!==!1&&(S[T]=p.name)})});var s=[],c={};i.each(function(g,p){var m=r[p];c[p]=m[0],s=s.concat(m)}),n.dataDimsOnCoord=s,n.dataDimIndicesOnCoord=bt(s,function(g){return t.getDimensionInfo(g).storeDimIndex}),n.encodeFirstDimNotExtra=c;var h=r.label;h&&h.length&&(a=h.slice());var d=r.tooltip;return d&&d.length?o=d.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new YU(l,e),n}function _1(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Tb(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function XU(t){return!(t==="ordinal"||t==="time")}var xp=(function(){function t(e){this.otherDims={},e!=null&&ht(this,e)}return t})(),qU=be(),ZU={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},zz=(function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=Pz(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return zt(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var n=this.source.dimensionsDefine;if(n)return n[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,n=VO(this.source),r=!Vz(e),i="",a=[],o=0,l=0;o<e;o++){var s=void 0,c=void 0,h=void 0,d=this.dimensions[l];if(d&&d.storeDimIndex===o)s=n?d.name:null,c=d.type,h=d.ordinalMeta,l++;else{var g=this.getSourceDimension(o);g&&(s=n?g.name:null,c=g.type)}a.push({property:s,type:c,ordinalMeta:h}),n&&s!=null&&(!d||!d.isCalculationCoord)&&(i+=r?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=ZU[c]||"f",h&&(i+=h.uid),i+="$"}var p=this.source,m=[p.seriesLayoutBy,p.startIndex,i].join("$$");return{dimensions:a,hash:m}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],n=0,r=0;n<this._fullDimCount;n++){var i=void 0,a=this.dimensions[r];if(a&&a.storeDimIndex===n)a.isCalculationCoord||(i=a.name),r++;else{var o=this.getSourceDimension(n);o&&(i=o.name)}e.push(i)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function Bz(t){return t instanceof zz}function Nz(t){for(var e=Bt(),n=0;n<(t||[]).length;n++){var r=t[n],i=Lt(r)?r.name:r;i!=null&&e.get(i)==null&&e.set(i,n)}return e}function Pz(t){var e=qU(t);return e.dimNameMap||(e.dimNameMap=Nz(t.dimensionsDefine))}function Vz(t){return t>30}var af=Lt,oo=bt,$U=typeof Int32Array>"u"?Array:Int32Array,QU="e\0\0",rk=-1,KU=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],JU=["_approximateExtent"],ik,Pv,of,lf,S1,sf,w1,vh=(function(){function t(e,n){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var r,i=!1;Bz(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,r=e),r=r||["x","y"];for(var a={},o=[],l={},s=!1,c={},h=0;h<r.length;h++){var d=r[h],g=St(d)?new xp({name:d}):d instanceof xp?d:new xp(d),p=g.name;g.type=g.type||"float",g.coordDim||(g.coordDim=p,g.coordDimIndex=0);var m=g.otherDims=g.otherDims||{};o.push(p),a[p]=g,c[p]!=null&&(s=!0),g.createInvertedIndices&&(l[p]=[]);var x=h;ve(g.storeDimIndex)&&(x=g.storeDimIndex),m.itemName===0&&(this._nameDimIdx=x),m.itemId===0&&(this._idDimIdx=x),i&&(g.storeDimIndex=h)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(s),this.hostModel=n,this._invertedIndicesMap=l,this._dimOmitted){var _=this._dimIdxToName=Bt();N(o,function(b){_.set(a[b].storeDimIndex,b)})}}return t.prototype.getDimension=function(e){var n=this._recognizeDimIndex(e);if(n==null)return e;if(n=e,!this._dimOmitted)return this.dimensions[n];var r=this._dimIdxToName.get(n);if(r!=null)return r;var i=this._schema.getSourceDimension(n);if(i)return i.name},t.prototype.getDimensionIndex=function(e){var n=this._recognizeDimIndex(e);if(n!=null)return n;if(e==null)return-1;var r=this._getDimInfo(e);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(ve(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var n=this.getDimensionIndex(e);return n},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var n=this._dimInfos;this._getDimInfo=e?function(r){return n.hasOwnProperty(r)?n[r]:void 0}:function(r){return n[r]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,n){var r=this._dimSummary;if(n==null)return r.encodeFirstDimNotExtra[e];var i=r.encode[e];return i?i[n]:null},t.prototype.mapDimensionsAll=function(e){var n=this._dimSummary,r=n.encode[e];return(r||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,n,r){var i=this,a;if(e instanceof hb&&(a=e),!a){var o=this.dimensions,l=aS(e)||lr(e)?new HO(e,o.length):e;a=new hb;var s=oo(o,function(c){return{type:i._dimInfos[c].type,property:c}});a.initData(l,s,r)}this._store=a,this._nameList=(n||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=WU(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var n=this._store.appendData(e);this._doInit(n[0],n[1])},t.prototype.appendValues=function(e,n){var r=this._store.appendValues(e,n&&n.length),i=r.start,a=r.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),n)for(var l=i;l<a;l++){var s=l-i;this._nameList[l]=n[s],o&&w1(this,l)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,n=this.dimensions,r=0;r<n.length;r++){var i=this._dimInfos[n[r]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==ko&&!e.fillStorage},t.prototype._doInit=function(e,n){if(!(e>=n)){var r=this._store,i=r.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,l=i.getSource().sourceFormat,s=l===Mr;if(s&&!i.pure)for(var c=[],h=e;h<n;h++){var d=i.getItem(h,c);if(!this.hasItemOption&&iH(d)&&(this.hasItemOption=!0),d){var g=d.name;a[h]==null&&g!=null&&(a[h]=Un(g,null));var p=d.id;o[h]==null&&p!=null&&(o[h]=Un(p,null))}}if(this._shouldMakeIdFromName())for(var h=e;h<n;h++)w1(this,h);ik(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.setApproximateExtent=function(e,n){n=this.getDimension(n),this._approximateExtent[n]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,n){af(e)?ht(this._calculationInfo,e):this._calculationInfo[e]=n},t.prototype.getName=function(e){var n=this.getRawIndex(e),r=this._nameList[n];return r==null&&this._nameDimIdx!=null&&(r=of(this,this._nameDimIdx,n)),r==null&&(r=""),r},t.prototype._getCategory=function(e,n){var r=this._store.get(e,n),i=this._store.getOrdinalMeta(e);return i?i.categories[r]:r},t.prototype.getId=function(e){return Pv(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,n){var r=this._store,i=this._dimInfos[e];if(i)return r.get(i.storeDimIndex,n)},t.prototype.getByRawIndex=function(e,n){var r=this._store,i=this._dimInfos[e];if(i)return r.getByRawIndex(i.storeDimIndex,n)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,n){var r=this,i=this._store;return pt(e)?i.getValues(oo(e,function(a){return r._getStoreDimIndex(a)}),n):i.getValues(e)},t.prototype.hasValue=function(e){for(var n=this._dimSummary.dataDimIndicesOnCoord,r=0,i=n.length;r<i;r++)if(isNaN(this._store.get(n[r],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var n=0,r=this._store.count();n<r;n++)if(this.getName(n)===e)return n;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,n){var r=e&&this._invertedIndicesMap[e],i=r&&r[n];return i==null||isNaN(i)?rk:i},t.prototype.each=function(e,n,r){It(e)&&(r=n,n=e,e=[]);var i=r||this,a=oo(lf(e),this._getStoreDimIndex,this);this._store.each(a,i?Tt(n,i):n)},t.prototype.filterSelf=function(e,n,r){It(e)&&(r=n,n=e,e=[]);var i=r||this,a=oo(lf(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?Tt(n,i):n),this},t.prototype.selectRange=function(e){var n=this,r={},i=Be(e);return N(i,function(a){var o=n._getStoreDimIndex(a);r[o]=e[a]}),this._store=this._store.selectRange(r),this},t.prototype.mapArray=function(e,n,r){It(e)&&(r=n,n=e,e=[]),r=r||this;var i=[];return this.each(e,function(){i.push(n&&n.apply(this,arguments))},r),i},t.prototype.map=function(e,n,r,i){var a=r||i||this,o=oo(lf(e),this._getStoreDimIndex,this),l=sf(this);return l._store=this._store.map(o,a?Tt(n,a):n),l},t.prototype.modify=function(e,n,r,i){var a=r||i||this,o=oo(lf(e),this._getStoreDimIndex,this);this._store.modify(o,a?Tt(n,a):n)},t.prototype.downSample=function(e,n,r,i){var a=sf(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),n,r,i),a},t.prototype.minmaxDownSample=function(e,n){var r=sf(this);return r._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),n),r},t.prototype.lttbDownSample=function(e,n){var r=sf(this);return r._store=this._store.lttbDownSample(this._getStoreDimIndex(e),n),r},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var n=this.hostModel,r=this.getRawDataItem(e);return new xe(r,n,n&&n.ecModel)},t.prototype.diff=function(e){var n=this;return new Ph(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(r){return Pv(e,r)},function(r){return Pv(n,r)})},t.prototype.getVisual=function(e){var n=this._visual;return n&&n[e]},t.prototype.setVisual=function(e,n){this._visual=this._visual||{},af(e)?ht(this._visual,e):this._visual[e]=n},t.prototype.getItemVisual=function(e,n){var r=this._itemVisuals[e],i=r&&r[n];return i??this.getVisual(n)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,n){var r=this._itemVisuals,i=r[e];i||(i=r[e]={});var a=i[n];return a==null&&(a=this.getVisual(n),pt(a)?a=a.slice():af(a)&&(a=ht({},a)),i[n]=a),a},t.prototype.setItemVisual=function(e,n,r){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,af(n)?ht(i,n):i[n]=r},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,n){af(e)?ht(this._layout,e):this._layout[e]=n},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,n,r){this._itemLayouts[e]=r?ht(this._itemLayouts[e]||{},n):n},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,n){var r=this.hostModel&&this.hostModel.seriesIndex;Zx(r,this.dataType,e,n),this._graphicEls[e]=n},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,n){N(this._graphicEls,function(r,i){r&&e&&e.call(n,r,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:oo(this.dimensions,this._getDimInfo,this),this.hostModel)),S1(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,n){var r=this[e];It(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=r.apply(this,arguments);return n.apply(this,[i].concat(x_(arguments)))})},t.internalField=(function(){ik=function(e){var n=e._invertedIndicesMap;N(n,function(r,i){var a=e._dimInfos[i],o=a.ordinalMeta,l=e._store;if(o){r=n[i]=new $U(o.categories.length);for(var s=0;s<r.length;s++)r[s]=rk;for(var s=0;s<l.count();s++)r[l.get(a.storeDimIndex,s)]=s}})},of=function(e,n,r){return Un(e._getCategory(n,r),null)},Pv=function(e,n){var r=e._idList[n];return r==null&&e._idDimIdx!=null&&(r=of(e,e._idDimIdx,n)),r==null&&(r=QU+n),r},lf=function(e){return pt(e)||(e=e!=null?[e]:[]),e},sf=function(e){var n=new t(e._schema?e._schema:oo(e.dimensions,e._getDimInfo,e),e.hostModel);return S1(n,e),n},S1=function(e,n){N(KU.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(e[r]=n[r])}),e.__wrappedMethods=n.__wrappedMethods,N(JU,function(r){e[r]=Rt(n[r])}),e._calculationInfo=ht({},n._calculationInfo)},w1=function(e,n){var r=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,l=r[n],s=i[n];if(l==null&&a!=null&&(r[n]=l=of(e,a,n)),s==null&&o!=null&&(i[n]=s=of(e,o,n)),s==null&&l!=null){var c=e._nameRepeatCount,h=c[l]=(c[l]||0)+1;s=l,h>1&&(s+="__ec__"+h),i[n]=s}}})(),t})();function jg(t,e){aS(t)||(t=oS(t)),e=e||{};var n=e.coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],i=Bt(),a=[],o=e9(t,n,r,e.dimensionsCount),l=e.canOmitUnusedDimensions&&Vz(o),s=r===t.dimensionsDefine,c=s?Pz(t):Nz(r),h=e.encodeDefine;!h&&e.encodeDefaulter&&(h=e.encodeDefaulter(t,o));for(var d=Bt(h),g=new YO(o),p=0;p<g.length;p++)g[p]=-1;function m(z){var L=g[z];if(L<0){var O=r[z],H=Lt(O)?O:{name:O},F=new xp,Y=H.name;Y!=null&&c.get(Y)!=null&&(F.name=F.displayName=Y),H.type!=null&&(F.type=H.type),H.displayName!=null&&(F.displayName=H.displayName);var W=a.length;return g[z]=W,F.storeDimIndex=z,a.push(F),F}return a[L]}if(!l)for(var p=0;p<o;p++)m(p);d.each(function(z,L){var O=ln(z).slice();if(O.length===1&&!St(O[0])&&O[0]<0){d.set(L,!1);return}var H=d.set(L,[]);N(O,function(F,Y){var W=St(F)?c.get(F):F;W!=null&&W<o&&(H[Y]=W,_(m(W),L,Y))})});var x=0;N(n,function(z){var L,O,H,F;if(St(z))L=z,F={};else{F=z,L=F.name;var Y=F.ordinalMeta;F.ordinalMeta=null,F=ht({},F),F.ordinalMeta=Y,O=F.dimsDef,H=F.otherDims,F.name=F.coordDim=F.coordDimIndex=F.dimsDef=F.otherDims=null}var W=d.get(L);if(W!==!1){if(W=ln(W),!W.length)for(var V=0;V<(O&&O.length||1);V++){for(;x<o&&m(x).coordDim!=null;)x++;x<o&&W.push(x++)}N(W,function(X,Z){var tt=m(X);if(s&&F.type!=null&&(tt.type=F.type),_(qt(tt,F),L,Z),tt.name==null&&O){var j=O[Z];!Lt(j)&&(j={name:j}),tt.name=tt.displayName=j.name,tt.defaultTooltip=j.defaultTooltip}H&&qt(tt.otherDims,H)})}});function _(z,L,O){AO.get(L)!=null?z.otherDims[L]=O:(z.coordDim=L,z.coordDimIndex=O,i.set(L,!0))}var b=e.generateCoord,S=e.generateCoordCount,T=S!=null;S=b?S||1:0;var A=b||"value";function D(z){z.name==null&&(z.name=z.coordDim)}if(l)N(a,function(z){D(z)}),a.sort(function(z,L){return z.storeDimIndex-L.storeDimIndex});else for(var M=0;M<o;M++){var k=m(M),I=k.coordDim;I==null&&(k.coordDim=n9(A,i,T),k.coordDimIndex=0,(!b||S<=0)&&(k.isExtraCoord=!0),S--),D(k),k.type==null&&(RO(t,M)===Sn.Must||k.isExtraCoord&&(k.otherDims.itemName!=null||k.otherDims.seriesName!=null))&&(k.type="ordinal")}return t9(a),new zz({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:l})}function t9(t){for(var e=Bt(),n=0;n<t.length;n++){var r=t[n],i=r.name,a=e.get(i)||0;a>0&&(r.name=i+(a-1)),a++,e.set(i,a)}}function e9(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return N(e,function(a){var o;Lt(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function n9(t,e,n){if(n||e.hasKey(t)){for(var r=0;e.hasKey(t+r);)r++;t+=r}return e.set(t,!0),t}var r9=(function(){function t(e){this.coordSysDims=[],this.axisMap=Bt(),this.categoryAxisMap=Bt(),this.coordSysName=e}return t})();function i9(t){var e=t.get("coordinateSystem"),n=new r9(e),r=a9[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var a9={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",En).models[0],a=t.getReferringComponents("yAxis",En).models[0];e.coordSysDims=["x","y"],n.set("x",i),n.set("y",a),ou(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),ou(a)&&(r.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",En).models[0];e.coordSysDims=["single"],n.set("single",i),ou(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",En).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",o),ou(a)&&(r.set("radius",a),e.firstCategoryDimIndex=0),ou(o)&&(r.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,a=i.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();N(a.parallelAxisIndex,function(l,s){var c=i.getComponent("parallelAxis",l),h=o[s];n.set(h,c),ou(c)&&(r.set(h,c),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=s))})},matrix:function(t,e,n,r){var i=t.getReferringComponents("matrix",En).models[0];e.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");n.set("x",a),n.set("y",o),r.set("x",a),r.set("y",o)}};function ou(t){return t.get("type")==="category"}function o9(t,e,n){n=n||{};var r=n.byIndex,i=n.stackedCoordDimension,a,o,l;l9(e)?a=e:(o=e.schema,a=o.dimensions,l=e.store);var s=!!(t&&t.get("stack")),c,h,d,g;if(N(a,function(S,T){St(S)&&(a[T]=S={name:S}),s&&!S.isExtraCoord&&(!r&&!c&&S.ordinalMeta&&(c=S),!h&&S.type!=="ordinal"&&S.type!=="time"&&(!i||i===S.coordDim)&&(h=S))}),h&&!r&&!c&&(r=!0),h){d="__\0ecstackresult_"+t.id,g="__\0ecstackedover_"+t.id,c&&(c.createInvertedIndices=!0);var p=h.coordDim,m=h.type,x=0;N(a,function(S){S.coordDim===p&&x++});var _={name:d,coordDim:p,coordDimIndex:x,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},b={name:g,coordDim:g,coordDimIndex:x+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(l&&(_.storeDimIndex=l.ensureCalculationDimension(g,m),b.storeDimIndex=l.ensureCalculationDimension(d,m)),o.appendCalculationDimension(_),o.appendCalculationDimension(b)):(a.push(_),a.push(b))}return{stackedDimension:h&&h.name,stackedByDimension:c&&c.name,isStackedByIndex:r,stackedOverDimension:g,stackResultDimension:d}}function l9(t){return!Bz(t.schema)}function Pu(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function s9(t,e){return Pu(t,e)?t.getCalculationInfo("stackResultDimension"):e}function u9(t,e){var n=t.get("coordinateSystem"),r=zh.get(n),i;return e&&e.coordSysDims&&(i=bt(e.coordSysDims,function(a){var o={name:a},l=e.axisMap.get(a);if(l){var s=l.get("type");o.type=Tb(s)}return o})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function c9(t,e,n){var r,i;return n&&N(t,function(a,o){var l=a.coordDim,s=n.categoryAxisMap.get(l);s&&(r==null&&(r=o),a.ordinalMeta=s.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(t[r].otherDims.itemName=0),r}function Qu(t,e,n){n=n||{};var r=e.getSourceManager(),i,a=!1;t?(a=!0,i=oS(t)):(i=r.getSource(),a=i.sourceFormat===Mr);var o=i9(e),l=u9(e,o),s=n.useEncodeDefaulter,c=It(s)?s:s?Wt(LO,l,e):null,h={coordDimensions:l,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!a},d=jg(i,h),g=c9(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=o9(e,{schema:d,store:p}),x=new vh(d,e);x.setCalculationInfo(m);var _=g!=null&&f9(i)?function(b,S,T,A){return A===g?T:this.defaultDimValueGetter(b,S,T,A)}:null;return x.hasItemOption=!1,x.initData(a?i:p,null,_),x}function f9(t){if(t.sourceFormat===Mr){var e=h9(t.data||[]);return!pt(Dh(e))}}function h9(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}function Cb(t){return t.type==="interval"||t.type==="log"}function d9(t,e,n,r,i){var a={},o=a.interval=mI(e/n);r!=null&&o<r&&(o=a.interval=r),i!=null&&o>i&&(o=a.interval=i);var l=a.intervalPrecision=ph(o),s=a.niceTickExtent=[gn(Math.ceil(t[0]/o)*o,l),gn(Math.floor(t[1]/o)*o,l)];return v9(s,t),a}function T1(t){var e=Math.pow(10,M_(t)),n=t/e;return n?n===2?n=3:n===3?n=5:n*=2:n=1,gn(n*e)}function ph(t){return wa(t)+2}function ak(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function v9(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),ak(t,0,e),ak(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function yS(t,e){return t>=e[0]&&t<=e[1]}var p9=(function(){function t(){this.normalize=ok,this.scale=lk}return t.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=Tt(e.normalize,e),this.scale=Tt(e.scale,e)):(this.normalize=ok,this.scale=lk)},t})();function ok(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function lk(t,e){return t*(e[1]-e[0])+e[0]}function Mb(t,e,n){var r=Math.log(t);return[Math.log(n?e[0]:Math.max(0,e[0]))/r,Math.log(n?e[1]:Math.max(0,e[1]))/r]}var Po=(function(){function t(e){this._calculator=new p9,this._setting=e||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(e){return this._setting[e]},t.prototype._innerUnionExtent=function(e){var n=this._extent;this._innerSetExtent(e[0]<n[0]?e[0]:n[0],e[1]>n[1]?e[1]:n[1])},t.prototype.unionExtentFromData=function(e,n){this._innerUnionExtent(e.getApproximateExtent(n))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,n){this._innerSetExtent(e,n)},t.prototype._innerSetExtent=function(e,n){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(n)||(r[1]=n),this._brkCtx&&this._brkCtx.update(r)},t.prototype.setBreaksFromOption=function(e){},t.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},t.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},t.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();Cg(Po);var g9=0,Ab=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++g9,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&bt(r,m9);return new t({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var n,r=this._needCollect;if(!St(e)&&!r)return e;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=e,this._onCollect&&this._onCollect(e,n),n;var i=this._getOrCreateMap();return n=i.get(e),n==null&&(r?(n=this.categories.length,this.categories[n]=e,i.set(e,n),this._onCollect&&this._onCollect(e,n)):n=NaN),n},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Bt(this.categories))},t})();function m9(t){return Lt(t)&&t.value!=null?t.value:t+""}var Hz=(function(t){at(e,t);function e(n){var r=t.call(this,n)||this;r.type="ordinal";var i=r.getSetting("ordinalMeta");return i||(i=new Ab({})),pt(i)&&(i=new Ab({categories:bt(i,function(a){return Lt(a)?a.value:a})})),r._ordinalMeta=i,r._extent=r.getSetting("extent")||[0,i.categories.length-1],r}return e.prototype.parse=function(n){return n==null?NaN:St(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},e.prototype.contain=function(n){return yS(n,this._extent)&&n>=0&&n<this._ordinalMeta.categories.length},e.prototype.normalize=function(n){return n=this._getTickNumber(n),this._calculator.normalize(n,this._extent)},e.prototype.scale=function(n){return n=Math.round(this._calculator.scale(n,this._extent)),this.getRawOrdinalNumber(n)},e.prototype.getTicks=function(){for(var n=[],r=this._extent,i=r[0];i<=r[1];)n.push({value:i}),i++;return n},e.prototype.getMinorTicks=function(n){},e.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,l=this._ordinalMeta.categories.length,s=Math.min(l,r.length);o<s;++o){var c=r[o];i[o]=c,a[c]=o}for(var h=0;o<l;++o){for(;a[h]!=null;)h++;i.push(h),a[h]=o}},e.prototype._getTickNumber=function(n){var r=this._ticksByOrdinalNumber;return r&&n>=0&&n<r.length?r[n]:n},e.prototype.getRawOrdinalNumber=function(n){var r=this._ordinalNumbersByTick;return r&&n>=0&&n<r.length?r[n]:n},e.prototype.getLabel=function(n){if(!this.isBlank()){var r=this.getRawOrdinalNumber(n.value),i=this._ordinalMeta.categories[r];return i==null?"":i+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.isInExtentRange=function(n){return n=this._getTickNumber(n),this._extent[0]<=n&&this._extent[1]>=n},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e})(Po);Po.registerClass(Hz);var lo=gn,zo=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return e.prototype.parse=function(n){return n==null||n===""?NaN:Number(n)},e.prototype.contain=function(n){return yS(n,this._extent)},e.prototype.normalize=function(n){return this._calculator.normalize(n,this._extent)},e.prototype.scale=function(n){return this._calculator.scale(n,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=ph(n)},e.prototype.getTicks=function(n){n=n||{};var r=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,l=Gp(),s=[];if(!r)return s;n.breakTicks;var c=1e4;i[0]<a[0]&&(n.expandToNicedExtent?s.push({value:lo(a[0]-r,o)}):s.push({value:i[0]}));for(var h=function(m,x){return Math.round((x-m)/r)},d=a[0];d<=a[1];){if(s.push({value:d}),d=lo(d+r,o),this._brkCtx){var g=this._brkCtx.calcNiceTickMultiple(d,h);g>=0&&(d=lo(d+g*r,o))}if(s.length>0&&d===s[s.length-1].value)break;if(s.length>c)return[]}var p=s.length?s[s.length-1].value:a[1];return i[1]>p&&(n.expandToNicedExtent?s.push({value:lo(p+r,o)}):s.push({value:i[1]})),n.breakTicks,s},e.prototype.getMinorTicks=function(n){for(var r=this.getTicks({expandToNicedExtent:!0}),i=[],a=this.getExtent(),o=1;o<r.length;o++){var l=r[o],s=r[o-1];if(!(s.break||l.break)){for(var c=0,h=[],d=l.value-s.value,g=d/n,p=ph(g);c<n-1;){var m=lo(s.value+(c+1)*g,p);m>a[0]&&m<a[1]&&h.push(m),c++}var x=Gp();x&&x.pruneTicksByBreak("auto",h,this._getNonTransBreaks(),function(_){return _},this._interval,a),i.push(h)}}return i},e.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.getLabel=function(n,r){if(n==null)return"";var i=r&&r.precision;i==null?i=wa(n.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=lo(n.value,i,!0);return _O(a)},e.prototype.calcNiceTicks=function(n,r,i){n=n||5;var a=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,a.reverse(),this._innerSetExtent(a[0],a[1]),a=this._extent.slice());var l=d9(a,o,n,r,i);this._intervalPrecision=l.intervalPrecision,this._interval=l.interval,this._niceExtent=l.niceTickExtent}},e.prototype.calcNiceExtent=function(n){var r=this._extent.slice();if(r[0]===r[1])if(r[0]!==0){var i=Math.abs(r[0]);n.fixMax||(r[1]+=i/2),r[0]-=i/2}else r[1]=1;var a=r[1]-r[0];isFinite(a)||(r[0]=0,r[1]=1),this._innerSetExtent(r[0],r[1]),r=this._extent.slice(),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval);var o=this._interval,l=this._intervalPrecision;n.fixMin||(r[0]=lo(Math.floor(r[0]/o)*o,l)),n.fixMax||(r[1]=lo(Math.ceil(r[1]/o)*o,l)),this._innerSetExtent(r[0],r[1])},e.prototype.setNiceExtent=function(n,r){this._niceExtent=[n,r]},e.type="interval",e})(Po);Po.registerClass(zo);var jz=typeof Float32Array<"u",y9=jz?Float32Array:Array;function Pi(t){return pt(t)?jz?new Float32Array(t):t:new y9(t)}var x9="__ec_stack_";function Fz(t){return t.get("stack")||x9+t.seriesIndex}function xS(t){return t.dim+t.index}function Gz(t,e){var n=[];return e.eachSeriesByType(t,function(r){Yz(r)&&n.push(r)}),n}function b9(t){var e={};N(t,function(s){var c=s.coordinateSystem,h=c.getBaseAxis();if(!(h.type!=="time"&&h.type!=="value"))for(var d=s.getData(),g=h.dim+"_"+h.index,p=d.getDimensionIndex(d.mapDimension(h.dim)),m=d.getStore(),x=0,_=m.count();x<_;++x){var b=m.get(p,x);e[g]?e[g].push(b):e[g]=[b]}});var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(i){i.sort(function(s,c){return s-c});for(var a=null,o=1;o<i.length;++o){var l=i[o]-i[o-1];l>0&&(a=a===null?l:Math.min(a,l))}n[r]=a}}return n}function Uz(t){var e=b9(t),n=[];return N(t,function(r){var i=r.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),l;if(a.type==="category")l=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var s=a.dim+"_"+a.index,c=e[s],h=Math.abs(o[1]-o[0]),d=a.scale.getExtent(),g=Math.abs(d[1]-d[0]);l=c?h/g*c:h}else{var p=r.getData();l=Math.abs(o[1]-o[0])/p.count()}var m=At(r.get("barWidth"),l),x=At(r.get("barMaxWidth"),l),_=At(r.get("barMinWidth")||(Wz(r)?.5:1),l),b=r.get("barGap"),S=r.get("barCategoryGap"),T=r.get("defaultBarGap");n.push({bandWidth:l,barWidth:m,barMaxWidth:x,barMinWidth:_,barGap:b,barCategoryGap:S,defaultBarGap:T,axisKey:xS(a),stackId:Fz(r)})}),_9(n)}function _9(t){var e={};N(t,function(r,i){var a=r.axisKey,o=r.bandWidth,l=e[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:r.defaultBarGap||0,stacks:{}},s=l.stacks;e[a]=l;var c=r.stackId;s[c]||l.autoWidthCount++,s[c]=s[c]||{width:0,maxWidth:0};var h=r.barWidth;h&&!s[c].width&&(s[c].width=h,h=Math.min(l.remainedWidth,h),l.remainedWidth-=h);var d=r.barMaxWidth;d&&(s[c].maxWidth=d);var g=r.barMinWidth;g&&(s[c].minWidth=g);var p=r.barGap;p!=null&&(l.gap=p);var m=r.barCategoryGap;m!=null&&(l.categoryGap=m)});var n={};return N(e,function(r,i){n[i]={};var a=r.stacks,o=r.bandWidth,l=r.categoryGap;if(l==null){var s=Be(a).length;l=Math.max(35-s*4,15)+"%"}var c=At(l,o),h=At(r.gap,1),d=r.remainedWidth,g=r.autoWidthCount,p=(d-c)/(g+(g-1)*h);p=Math.max(p,0),N(a,function(b){var S=b.maxWidth,T=b.minWidth;if(b.width){var A=b.width;S&&(A=Math.min(A,S)),T&&(A=Math.max(A,T)),b.width=A,d-=A+h*A,g--}else{var A=p;S&&S<A&&(A=Math.min(S,d)),T&&T>A&&(A=T),A!==p&&(b.width=A,d-=A+h*A,g--)}}),p=(d-c)/(g+(g-1)*h),p=Math.max(p,0);var m=0,x;N(a,function(b,S){b.width||(b.width=p),x=b,m+=b.width*(1+h)}),x&&(m-=x.width*h);var _=-m/2;N(a,function(b,S){n[i][S]=n[i][S]||{bandWidth:o,offset:_,width:b.width},_+=b.width*(1+h)})}),n}function S9(t,e,n){if(t&&e){var r=t[xS(e)];return r}}function w9(t,e){var n=Gz(t,e),r=Uz(n);N(n,function(i){var a=i.getData(),o=i.coordinateSystem,l=o.getBaseAxis(),s=Fz(i),c=r[xS(l)][s],h=c.offset,d=c.width;a.setLayout({bandWidth:c.bandWidth,offset:h,size:d})})}function T9(t){return{seriesType:t,plan:Bh(),reset:function(e){if(Yz(e)){var n=e.getData(),r=e.coordinateSystem,i=r.getBaseAxis(),a=r.getOtherAxis(i),o=n.getDimensionIndex(n.mapDimension(a.dim)),l=n.getDimensionIndex(n.mapDimension(i.dim)),s=e.get("showBackground",!0),c=n.mapDimension(a.dim),h=n.getCalculationInfo("stackResultDimension"),d=Pu(n,c)&&!!n.getCalculationInfo("stackedOnSeries"),g=a.isHorizontal(),p=C9(i,a),m=Wz(e),x=e.get("barMinHeight")||0,_=h&&n.getDimensionIndex(h),b=n.getLayout("size"),S=n.getLayout("offset");return{progress:function(T,A){for(var D=T.count,M=m&&Pi(D*3),k=m&&s&&Pi(D*3),I=m&&Pi(D),z=r.master.getRect(),L=g?z.width:z.height,O,H=A.getStore(),F=0;(O=T.next())!=null;){var Y=H.get(d?_:o,O),W=H.get(l,O),V=p,X=void 0;d&&(X=+Y-H.get(o,O));var Z=void 0,tt=void 0,j=void 0,U=void 0;if(g){var q=r.dataToPoint([Y,W]);if(d){var P=r.dataToPoint([X,W]);V=P[0]}Z=V,tt=q[1]+S,j=q[0]-V,U=b,Math.abs(j)<x&&(j=(j<0?-1:1)*x)}else{var q=r.dataToPoint([W,Y]);if(d){var P=r.dataToPoint([W,X]);V=P[1]}Z=q[0]+S,tt=V,j=b,U=q[1]-V,Math.abs(U)<x&&(U=(U<=0?-1:1)*x)}m?(M[F]=Z,M[F+1]=tt,M[F+2]=g?j:U,k&&(k[F]=g?z.x:Z,k[F+1]=g?tt:z.y,k[F+2]=L),I[O]=O):A.setItemLayout(O,{x:Z,y:tt,width:j,height:U}),F+=3}m&&A.setLayout({largePoints:M,largeDataIndices:I,largeBackgroundPoints:k,valueAxisHorizontal:g})}}}}}}function Yz(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function Wz(t){return t.pipelineContext&&t.pipelineContext.large}function C9(t,e){var n=e.model.get("startValue");return n||(n=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?n>0?n:1:n))}var M9=function(t,e,n,r){for(;n<r;){var i=n+r>>>1;t[i][1]<e?n=i+1:r=i}return n},Xz=(function(t){at(e,t);function e(n){var r=t.call(this,n)||this;return r.type="time",r}return e.prototype.getLabel=function(n){var r=this.getSetting("useUTC");return Ng(n.value,KA[Wj(Yf(this._minLevelUnit))]||KA.second,r,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(n,r,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return Xj(n,r,i,o,a)},e.prototype.getTicks=function(n){var r=this._interval,i=this._extent,a=[];if(!r)return a;var o=this.getSetting("useUTC"),l=Up(i[1],o);a.push({value:i[0],time:{level:0,upperTimeUnit:l,lowerTimeUnit:l}});var s=O9(this._minLevelUnit,this._approxInterval,o,i,this._getExtentSpanWithBreaks(),this._brkCtx);a=a.concat(s);var c=Up(i[1],o);a.push({value:i[1],time:{level:0,upperTimeUnit:c,lowerTimeUnit:c}}),this.getSetting("useUTC");var h=Yl.length-1,d=0;return N(a,function(g){h=Math.min(h,Yt(Yl,g.time.upperTimeUnit)),d=Math.max(d,g.time.level)}),a},e.prototype.calcNiceExtent=function(n){var r=this.getExtent();if(r[0]===r[1]&&(r[0]-=Xr,r[1]+=Xr),r[1]===-1/0&&r[0]===1/0){var i=new Date;r[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),r[0]=r[1]-Xr}this._innerSetExtent(r[0],r[1]),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval)},e.prototype.calcNiceTicks=function(n,r,i){n=n||10;var a=this._getExtentSpanWithBreaks();this._approxInterval=a/n,r!=null&&this._approxInterval<r&&(this._approxInterval=r),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var o=Vv.length,l=Math.min(M9(Vv,this._approxInterval,0,o),o-1);this._interval=Vv[l][1],this._intervalPrecision=ph(this._interval),this._minLevelUnit=Vv[Math.max(l-1,0)][0]},e.prototype.parse=function(n){return ve(n)?n:+Yu(n)},e.prototype.contain=function(n){return yS(n,this._extent)},e.prototype.normalize=function(n){return this._calculator.normalize(n,this._extent)},e.prototype.scale=function(n){return this._calculator.scale(n,this._extent)},e.type="time",e})(zo),Vv=[["second",W_],["minute",X_],["hour",Uf],["quarter-day",Uf*6],["half-day",Uf*12],["day",Xr*1.2],["half-week",Xr*3.5],["week",Xr*7],["month",Xr*31],["quarter",Xr*95],["half-year",QA/2],["year",QA]];function A9(t,e,n,r){return lb(new Date(e),t,r).getTime()===lb(new Date(n),t,r).getTime()}function D9(t,e){return t/=Xr,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function k9(t){var e=30*Xr;return t/=e,t>6?6:t>3?3:t>2?2:1}function L9(t){return t/=Uf,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function sk(t,e){return t/=e?X_:W_,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function E9(t){return mI(t)}function R9(t,e,n){var r=Math.max(0,Yt(Yl,e)-1);return lb(new Date(t),Yl[r],n).getTime()}function I9(t,e){var n=new Date(0);n[t](1);var r=n.getTime();n[t](1+e);var i=n.getTime()-r;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}function O9(t,e,n,r,i,a){var o=1e4,l=Fj,s=0;function c(F,Y,W,V,X,Z,tt){for(var j=I9(X,F),U=Y,q=new Date(U);U<W&&U<=r[1]&&(tt.push({value:U}),!(s++>o));)if(q[X](q[V]()+F),U=q.getTime(),a){var P=a.calcNiceTickMultiple(U,j);P>0&&(q[X](q[V]()+P*F),U=q.getTime())}tt.push({value:U,notAdd:!0})}function h(F,Y,W){var V=[],X=!Y.length;if(!A9(Yf(F),r[0],r[1],n)){X&&(Y=[{value:R9(r[0],F,n)},{value:r[1]}]);for(var Z=0;Z<Y.length-1;Z++){var tt=Y[Z].value,j=Y[Z+1].value;if(tt!==j){var U=void 0,q=void 0,P=void 0,J=!1;switch(F){case"year":U=Math.max(1,Math.round(e/Xr/365)),q=vO(n),P=qj(n);break;case"half-year":case"quarter":case"month":U=k9(e),q=q_(n),P=pO(n);break;case"week":case"half-week":case"day":U=D9(e),q=Z_(n),P=gO(n),J=!0;break;case"half-day":case"quarter-day":case"hour":U=L9(e),q=$_(n),P=mO(n);break;case"minute":U=sk(e,!0),q=Q_(n),P=yO(n);break;case"second":U=sk(e,!1),q=K_(n),P=xO(n);break;case"millisecond":U=E9(e),q=J_(n),P=bO(n);break}j>=r[0]&&tt<=r[1]&&c(U,tt,j,q,P,J,V),F==="year"&&W.length>1&&Z===0&&W.unshift({value:W[0].value-U})}}for(var Z=0;Z<V.length;Z++)W.push(V[Z])}}for(var d=[],g=[],p=0,m=0,x=0;x<l.length;++x){var _=Yf(l[x]);if(Yj(l[x])){h(l[x],d[d.length-1]||[],g);var b=l[x+1]?Yf(l[x+1]):null;if(_!==b){if(g.length){m=p,g.sort(function(F,Y){return F.value-Y.value});for(var S=[],T=0;T<g.length;++T){var A=g[T].value;(T===0||g[T-1].value!==A)&&(S.push(g[T]),A>=r[0]&&A<=r[1]&&p++)}var D=i/e;if(p>D*1.5&&m>D/1.5||(d.push(S),p>D||t===l[x]))break}g=[]}}}for(var M=Ze(bt(d,function(F){return Ze(F,function(Y){return Y.value>=r[0]&&Y.value<=r[1]&&!Y.notAdd})}),function(F){return F.length>0}),k=[],I=M.length-1,x=0;x<M.length;++x)for(var z=M[x],L=0;L<z.length;++L){var O=Up(z[L].value,n);k.push({value:z[L].value,time:{level:I-x,upperTimeUnit:O,lowerTimeUnit:O}})}k.sort(function(F,Y){return F.value-Y.value});for(var H=[],x=0;x<k.length;++x)(x===0||k[x].value!==k[x-1].value)&&H.push(k[x]);return H}Po.registerClass(Xz);var Db=gn,z9=Math.floor,B9=Math.ceil,Hv=Math.pow,jv=Math.log,qz=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new zo,n}return e.prototype.getTicks=function(n){n=n||{};var r=this._extent.slice(),i=this._originalScale.getExtent(),a=t.prototype.getTicks.call(this,n),o=this.base;return this._originalScale._innerGetBreaks(),bt(a,function(l){var s=l.value,c=null,h=Hv(o,s);s===r[0]&&this._fixMin?c=i[0]:s===r[1]&&this._fixMax&&(c=i[1]);var d;return c!=null&&(h=C1(h,c)),{value:h,break:d}},this)},e.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},e.prototype.setExtent=function(n,r){this._originalScale.setExtent(n,r);var i=Mb(this.base,[n,r]);t.prototype.setExtent.call(this,i[0],i[1])},e.prototype.getExtent=function(){var n=this.base,r=t.prototype.getExtent.call(this);r[0]=Hv(n,r[0]),r[1]=Hv(n,r[1]);var i=this._originalScale.getExtent();return this._fixMin&&(r[0]=C1(r[0],i[0])),this._fixMax&&(r[1]=C1(r[1],i[1])),r},e.prototype.unionExtentFromData=function(n,r){this._originalScale.unionExtentFromData(n,r);var i=Mb(this.base,n.getApproximateExtent(r),!0);this._innerUnionExtent(i)},e.prototype.calcNiceTicks=function(n){n=n||10;var r=this._extent.slice(),i=this._getExtentSpanWithBreaks();if(!(!isFinite(i)||i<=0)){var a=JV(i),o=n/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var l=[Db(B9(r[0]/a)*a),Db(z9(r[1]/a)*a)];this._interval=a,this._intervalPrecision=ph(a),this._niceExtent=l}},e.prototype.calcNiceExtent=function(n){t.prototype.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},e.prototype.contain=function(n){return n=jv(n)/jv(this.base),t.prototype.contain.call(this,n)},e.prototype.normalize=function(n){return n=jv(n)/jv(this.base),t.prototype.normalize.call(this,n)},e.prototype.scale=function(n){return n=t.prototype.scale.call(this,n),Hv(this.base,n)},e.prototype.setBreaksFromOption=function(n){},e.type="log",e})(zo);function C1(t,e){return Db(t,wa(e))}Po.registerClass(qz);var N9=(function(){function t(e,n,r){this._prepareParams(e,n,r)}return t.prototype._prepareParams=function(e,n,r){r[1]<r[0]&&(r=[NaN,NaN]),this._dataMin=r[0],this._dataMax=r[1];var i=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&n.getNeedCrossZero&&n.getNeedCrossZero();var a=n.get("min",!0);a==null&&(a=n.get("startValue",!0));var o=this._modelMinRaw=a;It(o)?this._modelMinNum=Fv(e,o({min:r[0],max:r[1]})):o!=="dataMin"&&(this._modelMinNum=Fv(e,o));var l=this._modelMaxRaw=n.get("max",!0);if(It(l)?this._modelMaxNum=Fv(e,l({min:r[0],max:r[1]})):l!=="dataMax"&&(this._modelMaxNum=Fv(e,l)),i)this._axisDataLen=n.getCategories().length;else{var s=n.get("boundaryGap"),c=pt(s)?s:[s||0,s||0];typeof c[0]=="boolean"||typeof c[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[ji(c[0],1),ji(c[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,n=this._dataMin,r=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=e?null:r-n||Math.abs(n),l=this._modelMinRaw==="dataMin"?n:this._modelMinNum,s=this._modelMaxRaw==="dataMax"?r:this._modelMaxNum,c=l!=null,h=s!=null;l==null&&(l=e?i?0:NaN:n-a[0]*o),s==null&&(s=e?i?i-1:NaN:r+a[1]*o),(l==null||!isFinite(l))&&(l=NaN),(s==null||!isFinite(s))&&(s=NaN);var d=To(l)||To(s)||e&&!i;this._needCrossZero&&(l>0&&s>0&&!c&&(l=0),l<0&&s<0&&!h&&(s=0));var g=this._determinedMin,p=this._determinedMax;return g!=null&&(l=g,c=!0),p!=null&&(s=p,h=!0),{min:l,max:s,minFixed:c,maxFixed:h,isBlank:d}},t.prototype.modifyDataMinMax=function(e,n){this[V9[e]]=n},t.prototype.setDeterminedMinMax=function(e,n){var r=P9[e];this[r]=n},t.prototype.freeze=function(){this.frozen=!0},t})(),P9={min:"_determinedMin",max:"_determinedMax"},V9={min:"_dataMin",max:"_dataMax"};function Zz(t,e,n){var r=t.rawExtentInfo;return r||(r=new N9(t,e,n),t.rawExtentInfo=r,r)}function Fv(t,e){return e==null?null:To(e)?NaN:t.parse(e)}function $z(t,e){var n=t.type,r=Zz(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var i=r.min,a=r.max,o=e.ecModel;if(o&&n==="time"){var l=Gz("bar",o),s=!1;if(N(l,function(d){s=s||d.getBaseAxis()===e.axis}),s){var c=Uz(l),h=H9(i,a,e,c);i=h.min,a=h.max}}return{extent:[i,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function H9(t,e,n,r){var i=n.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=S9(r,n.axis);if(o===void 0)return{min:t,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 c=l+s,h=e-t,d=1-(l+s)/a,g=h/d-h;return e+=g*(s/c),t-=g*(l/c),{min:t,max:e}}function uk(t,e){var n=e,r=$z(t,n),i=r.extent,a=n.get("splitNumber");t instanceof qz&&(t.base=n.get("logBase"));var o=t.type,l=n.get("interval"),s=o==="interval"||o==="time";t.setBreaksFromOption(Jz(n)),t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:a,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:s?n.get("minInterval"):null,maxInterval:s?n.get("maxInterval"):null}),l!=null&&t.setInterval&&t.setInterval(l)}function j9(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new Hz({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new Xz({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Po.getClass(e)||zo)}}function F9(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}function Vh(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var n=Gj(e);return function(i,a){return t.scale.getFormattedLabel(i,a,n)}}else{if(St(e))return function(i){var a=t.scale.getLabel(i),o=e.replace("{value}",a??"");return o};if(It(e)){if(t.type==="category")return function(i,a){return e(eg(t,i),i.value-t.scale.getExtent()[0],null)};var r=Gp();return function(i,a){var o=null;return r&&(o=r.makeAxisLabelFormatterParamBreak(o,i.break)),e(eg(t,i),a,o)}}else return function(i){return t.scale.getLabel(i)}}}function eg(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function bS(t){var e=t.get("interval");return e??"auto"}function Qz(t){return t.type==="category"&&bS(t.getLabelModel())===0}function Kz(t,e){var n={};return N(t.mapDimensionsAll(e),function(r){n[s9(t,r)]=!0}),Be(n)}function G9(t,e,n){e&&N(Kz(e,n),function(r){var i=e.getApproximateExtent(r);i[0]<t[0]&&(t[0]=i[0]),i[1]>t[1]&&(t[1]=i[1])})}function Vu(t){return t==="middle"||t==="center"}function gh(t){return t.getShallow("show")}function Jz(t){var e=t.get("breaks",!0);e==null}var t5=(function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t})(),ck=[],U9={registerPreprocessor:Rz,registerProcessor:Iz,registerPostInit:VU,registerPostUpdate:HU,registerUpdateLifecycle:pS,registerAction:Wi,registerCoordinateSystem:jU,registerLayout:FU,registerVisual:is,registerTransform:UU,registerLoading:Oz,registerMap:GU,registerImpl:xU,PRIORITY:RU,ComponentModel:ce,ComponentView:Mn,SeriesModel:Ke,ChartView:Ye,registerComponentModel:function(t){ce.registerClass(t)},registerComponentView:function(t){Mn.registerClass(t)},registerSeriesModel:function(t){Ke.registerClass(t)},registerChartView:function(t){Ye.registerClass(t)},registerCustomSeries:function(t,e){},registerSubTypeDefaulter:function(t,e){ce.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){WV(t,e)}};function Wn(t){if(pt(t)){N(t,function(e){Wn(e)});return}Yt(ck,t)>=0||(ck.push(t),It(t)&&(t={install:t}),t.install(U9))}var Y9=1e-8;function fk(t,e){return Math.abs(t-e)<Y9}function uf(t,e,n){var r=0,i=t[0];if(!i)return!1;for(var a=1;a<t.length;a++){var o=t[a];r+=ba(i[0],i[1],o[0],o[1],e,n),i=o}var l=t[0];return(!fk(i[0],l[0])||!fk(i[1],l[1]))&&(r+=ba(i[0],i[1],l[0],l[1],e,n)),r!==0}var W9=be(),qf=be(),xi={estimate:1,determine:2};function ng(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function e5(t,e){var n=bt(e,function(r){return t.scale.parse(r)});return t.type==="time"&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function X9(t,e){var n=t.getLabelModel().get("customValues");if(n){var r=Vh(t),i=t.scale.getExtent(),a=e5(t,n),o=Ze(a,function(l){return l>=i[0]&&l<=i[1]});return{labels:bt(o,function(l){var s={value:l};return{formattedLabel:r(s),rawLabel:t.scale.getLabel(s),tickValue:l,time:void 0,break:void 0}})}}return t.type==="category"?Z9(t,e):Q9(t)}function q9(t,e,n){var r=t.getTickModel().get("customValues");if(r){var i=t.scale.getExtent(),a=e5(t,r);return{ticks:Ze(a,function(o){return o>=i[0]&&o<=i[1]})}}return t.type==="category"?$9(t,e):{ticks:bt(t.scale.getTicks(n),function(o){return o.value})}}function Z9(t,e){var n=t.getLabelModel(),r=n5(t,n,e);return!n.get("show")||t.scale.isBlank()?{labels:[]}:r}function n5(t,e,n){var r=J9(t),i=bS(e),a=n.kind===xi.estimate;if(!a){var o=i5(r,i);if(o)return o}var l,s;It(i)?l=l5(t,i):(s=i==="auto"?t7(t,n):i,l=o5(t,s));var c={labels:l,labelCategoryInterval:s};return a?n.out.noPxChangeTryDetermine.push(function(){return kb(r,i,c),!0}):kb(r,i,c),c}function $9(t,e){var n=K9(t),r=bS(e),i=i5(n,r);if(i)return i;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),It(r))a=l5(t,r,!0);else if(r==="auto"){var l=n5(t,t.getLabelModel(),ng(xi.determine));o=l.labelCategoryInterval,a=bt(l.labels,function(s){return s.tickValue})}else o=r,a=o5(t,o,!0);return kb(n,r,{ticks:a,tickCategoryInterval:o})}function Q9(t){var e=t.scale.getTicks(),n=Vh(t);return{labels:bt(e,function(r,i){return{formattedLabel:n(r,i),rawLabel:t.scale.getLabel(r),tickValue:r.value,time:r.time,break:r.break}})}}var K9=r5("axisTick"),J9=r5("axisLabel");function r5(t){return function(n){return qf(n)[t]||(qf(n)[t]={list:[]})}}function i5(t,e){for(var n=0;n<t.list.length;n++)if(t.list[n].key===e)return t.list[n].value}function kb(t,e,n){return t.list.push({key:e,value:n}),n}function t7(t,e){if(e.kind===xi.estimate){var n=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return qf(t).autoInterval=n,!0}),n}var r=qf(t).autoInterval;return r??(qf(t).autoInterval=t.calculateCategoryInterval(e))}function e7(t,e){var n=e.kind,r=r7(t),i=Vh(t),a=(r.axisRotate-r.labelRotate)/180*Math.PI,o=t.scale,l=o.getExtent(),s=o.count();if(l[1]-l[0]<1)return 0;var c=1,h=40;s>h&&(c=Math.max(1,Math.floor(s/h)));for(var d=l[0],g=t.dataToCoord(d+1)-t.dataToCoord(d),p=Math.abs(g*Math.cos(a)),m=Math.abs(g*Math.sin(a)),x=0,_=0;d<=l[1];d+=c){var b=0,S=0,T=C_(i({value:d}),r.font,"center","top");b=T.width*1.3,S=T.height*1.3,x=Math.max(x,b,7),_=Math.max(_,S,7)}var A=x/p,D=_/m;isNaN(A)&&(A=1/0),isNaN(D)&&(D=1/0);var M=Math.max(0,Math.floor(Math.min(A,D)));if(n===xi.estimate)return e.out.noPxChangeTryDetermine.push(Tt(n7,null,t,M,s)),M;var k=a5(t,M,s);return k??M}function n7(t,e,n){return a5(t,e,n)==null}function a5(t,e,n){var r=W9(t.model),i=t.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-n)<=1&&a>e&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=e,r.axisExtent0=i[0],r.axisExtent1=i[1]}function r7(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function o5(t,e,n){var r=Vh(t),i=t.scale,a=i.getExtent(),o=t.getLabelModel(),l=[],s=Math.max((e||0)+1,1),c=a[0],h=i.count();c!==0&&s>1&&h/s>2&&(c=Math.round(Math.ceil(c/s)*s));var d=Qz(t),g=o.get("showMinLabel")||d,p=o.get("showMaxLabel")||d;g&&c!==a[0]&&x(a[0]);for(var m=c;m<=a[1];m+=s)x(m);p&&m-s!==a[1]&&x(a[1]);function x(_){var b={value:_};l.push(n?_:{formattedLabel:r(b),rawLabel:i.getLabel(b),tickValue:_,time:void 0,break:void 0})}return l}function l5(t,e,n){var r=t.scale,i=Vh(t),a=[];return N(r.getTicks(),function(o){var l=r.getLabel(o),s=o.value;e(o.value,l)&&a.push(n?s:{formattedLabel:i(o),rawLabel:l,tickValue:s,time:void 0,break:void 0})}),a}var hk=[0,1],s5=(function(){function t(e,n,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=n,this._extent=r||[0,0]}return t.prototype.contain=function(e){var n=this._extent,r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return e>=r&&e<=i},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return pI(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,n){var r=this._extent;r[0]=e,r[1]=n},t.prototype.dataToCoord=function(e,n){var r=this._extent,i=this.scale;return e=i.normalize(i.parse(e)),this.onBand&&i.type==="ordinal"&&(r=r.slice(),dk(r,i.count())),ue(e,hk,r,n)},t.prototype.coordToData=function(e,n){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),dk(r,i.count()));var a=ue(e,r,hk,n);return this.scale.scale(a)},t.prototype.pointToData=function(e,n){},t.prototype.getTicksCoords=function(e){e=e||{};var n=e.tickModel||this.getTickModel(),r=q9(this,n,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),i=r.ticks,a=bt(i,function(l){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(l):l),tickValue:l}},this),o=n.get("alignWithLabel");return i7(this,a,o,e.clamp),a},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),n=e.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),i=bt(r,function(a){return bt(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},t.prototype.getViewLabels=function(e){return e=e||ng(xi.determine),X9(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/r},t.prototype.calculateCategoryInterval=function(e){return e=e||ng(xi.determine),e7(this,e)},t})();function dk(t,e){var n=t[1]-t[0],r=e,i=n/r/2;t[0]+=i,t[1]-=i}function i7(t,e,n,r){var i=e.length;if(!t.onBand||n||!i)return;var a=t.getExtent(),o,l;if(i===1)e[0].coord=a[0],e[0].onBand=!0,o=e[1]={coord:a[1],tickValue:e[0].tickValue,onBand:!0};else{var s=e[i-1].tickValue-e[0].tickValue,c=(e[i-1].coord-e[0].coord)/s;N(e,function(p){p.coord-=c/2,p.onBand=!0});var h=t.scale.getExtent();l=1+h[1]-e[i-1].tickValue,o={coord:e[i-1].coord+c*l,tickValue:h[1]+1,onBand:!0},e.push(o)}var d=a[0]>a[1];g(e[0].coord,a[0])&&(r?e[0].coord=a[0]:e.shift()),r&&g(a[0],e[0].coord)&&e.unshift({coord:a[0],onBand:!0}),g(a[1],o.coord)&&(r?o.coord=a[1]:e.pop()),r&&g(o.coord,a[1])&&e.push({coord:a[1],onBand:!0});function g(p,m){return p=gn(p),m=gn(m),d?p>m:p<m}}function u5(t,e,n,r,i,a,o,l){var s=i-t,c=a-e,h=n-t,d=r-e,g=Math.sqrt(h*h+d*d);h/=g,d/=g;var p=s*h+c*d,m=p/g;m*=g;var x=o[0]=t+m*h,_=o[1]=e+m*d;return Math.sqrt((x-i)*(x-i)+(_-a)*(_-a))}var bo=new jt,Ue=new jt,wn=new jt,_o=new jt,Oi=new jt,rg=[],Hn=new jt;function a7(t,e){if(e<=180&&e>0){e=e/180*Math.PI,bo.fromArray(t[0]),Ue.fromArray(t[1]),wn.fromArray(t[2]),jt.sub(_o,bo,Ue),jt.sub(Oi,wn,Ue);var n=_o.len(),r=Oi.len();if(!(n<.001||r<.001)){_o.scale(1/n),Oi.scale(1/r);var i=_o.dot(Oi),a=Math.cos(e);if(a<i){var o=u5(Ue.x,Ue.y,wn.x,wn.y,bo.x,bo.y,rg);Hn.fromArray(rg),Hn.scaleAndAdd(Oi,o/Math.tan(Math.PI-e));var l=wn.x!==Ue.x?(Hn.x-Ue.x)/(wn.x-Ue.x):(Hn.y-Ue.y)/(wn.y-Ue.y);if(isNaN(l))return;l<0?jt.copy(Hn,Ue):l>1&&jt.copy(Hn,wn),Hn.toArray(t[1])}}}}function o7(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,bo.fromArray(t[0]),Ue.fromArray(t[1]),wn.fromArray(t[2]),jt.sub(_o,Ue,bo),jt.sub(Oi,wn,Ue);var r=_o.len(),i=Oi.len();if(!(r<.001||i<.001)){_o.scale(1/r),Oi.scale(1/i);var a=_o.dot(e),o=Math.cos(n);if(a<o){var l=u5(Ue.x,Ue.y,wn.x,wn.y,bo.x,bo.y,rg);Hn.fromArray(rg);var s=Math.PI/2,c=Math.acos(Oi.dot(e)),h=s+c-n;if(h>=s)jt.copy(Hn,wn);else{Hn.scaleAndAdd(Oi,l/Math.tan(Math.PI/2-h));var d=wn.x!==Ue.x?(Hn.x-Ue.x)/(wn.x-Ue.x):(Hn.y-Ue.y)/(wn.y-Ue.y);if(isNaN(d))return;d<0?jt.copy(Hn,Ue):d>1&&jt.copy(Hn,wn)}Hn.toArray(t[1])}}}}function M1(t,e,n,r){var i=n==="normal",a=i?t:t.ensureState(n);a.ignore=e;var o=r.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var l=r.getModel("lineStyle").getLineStyle();i?t.useStyle(l):a.style=l}function l7(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Cx(r[0],r[1]),a=Cx(r[1],r[2]);if(!i||!a){t.lineTo(r[1][0],r[1][1]),t.lineTo(r[2][0],r[2][1]);return}var o=Math.min(i,a)*n,l=y0([],r[1],r[0],o/i),s=y0([],r[1],r[2],o/a),c=y0([],l,s,.5);t.bezierCurveTo(l[0],l[1],l[0],l[1],c[0],c[1]),t.bezierCurveTo(s[0],s[1],s[0],s[1],r[2][0],r[2][1])}else for(var h=1;h<r.length;h++)t.lineTo(r[h][0],r[h][1])}function c5(t,e,n){var r=t.getTextGuideLine(),i=t.getTextContent();if(!i){r&&t.removeTextGuideLine();return}for(var a=e.normal,o=a.get("show"),l=i.ignore,s=0;s<ah.length;s++){var c=ah[s],h=e[c],d=c==="normal";if(h){var g=h.get("show"),p=d?l:zt(i.states[c]&&i.states[c].ignore,l);if(p||!zt(g,o)){var m=d?r:r&&r.states[c];m&&(m.ignore=!0),r&&M1(r,!0,c,h);continue}r||(r=new Yi,t.setTextGuideLine(r),!d&&(l||!o)&&M1(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),M1(r,!1,c,h)}}if(r){qt(r.style,n),r.style.fill=null;var x=a.get("showAbove"),_=t.textGuideLineConfig=t.textGuideLineConfig||{};_.showAbove=x||!1,r.buildPath=l7}}function f5(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<Tr.length;r++){var i=Tr[r];n[i]=t.getModel([i,e])}return n}var vk=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],s7=1,ig=2,h5=s7|ig;function ag(t,e,n){n=n||h5,e?t.dirty|=n:t.dirty&=~n}function d5(t,e){return e=e||h5,t.dirty==null||!!(t.dirty&e)}function Bo(t){if(t)return d5(t)&&v5(t,t.label,t),t}function v5(t,e,n){var r=e.getComputedTransform();t.transform=F_(t.transform,r);var i=t.localRect=sh(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,l=n&&n.marginForce,s=n&&n.minMarginForce,c=n&&n.marginDefault,h=a.__marginType;h==null&&c&&(o=c,h=Cu.textMargin);for(var d=0;d<4;d++)A1[d]=h===Cu.minMargin&&s&&s[d]!=null?s[d]:l&&l[d]!=null?l[d]:o?o[d]:0;h===Cu.textMargin&&jp(i,A1,!1,!1);var g=t.rect=sh(t.rect,i);return r&&g.applyTransform(r),h===Cu.minMargin&&jp(g,A1,!1,!1),t.axisAligned=j_(r),(t.label=t.label||{}).ignore=e.ignore,ag(t,!1),ag(t,!0,ig),t}var A1=[0,0,0,0];function u7(t,e,n){return t.transform=F_(t.transform,n),t.localRect=sh(t.localRect,e),t.rect=sh(t.rect,e),n&&t.rect.applyTransform(n),t.axisAligned=j_(n),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function c7(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var n=t.transform;n&&(n[4]+=e.x,n[5]+=e.y);var r=t.rect;r&&(r.x+=e.x,r.y+=e.y);var i=t.obb;i&&i.fromBoundingRect(t.localRect,n)}}function pk(t,e){for(var n=0;n<vk.length;n++){var r=vk[n];t[r]==null&&(t[r]=e[r])}return Bo(t)}function gk(t){var e=t.obb;return(!e||d5(t,ig))&&(t.obb=e=e||new KI,e.fromBoundingRect(t.localRect,t.transform),ag(t,!1,ig)),e}function f7(t,e,n,r,i){var a=t.length,o=po[e],l=Bu[e];if(a<2)return!1;t.sort(function(k,I){return k.rect[o]-I.rect[o]});for(var s=0,c,h=!1,d=0;d<a;d++){var g=t[d],p=g.rect;c=p[o]-s,c<0&&(p[o]-=c,g.label[o]-=c,h=!0),s=p[o]+p[l]}var m=t[0],x=t[a-1],_,b;S(),_<0&&D(-_,.8),b<0&&D(b,.8),S(),T(_,b,1),T(b,_,-1),S(),_<0&&M(-_),b<0&&M(b);function S(){_=m.rect[o]-n,b=r-x.rect[o]-x.rect[l]}function T(k,I,z){if(k<0){var L=Math.min(I,-k);if(L>0){A(L*z,0,a);var O=L+k;O<0&&D(-O*z,1)}else D(-k*z,1)}}function A(k,I,z){k!==0&&(h=!0);for(var L=I;L<z;L++){var O=t[L],H=O.rect;H[o]+=k,O.label[o]+=k}}function D(k,I){for(var z=[],L=0,O=1;O<a;O++){var H=t[O-1].rect,F=Math.max(t[O].rect[o]-H[o]-H[l],0);z.push(F),L+=F}if(L){var Y=Math.min(Math.abs(k)/L,I);if(k>0)for(var O=0;O<a-1;O++){var W=z[O]*Y;A(W,0,O+1)}else for(var O=a-1;O>0;O--){var W=z[O-1]*Y;A(-W,O,a)}}}function M(k){var I=k<0?-1:1;k=Math.abs(k);for(var z=Math.ceil(k/(a-1)),L=0;L<a-1;L++)if(I>0?A(z,0,L+1):A(-z,a-L-1,a),k-=z,k<=0)return}return h}function h7(t){var e=[];t.sort(function(c,h){return(h.suggestIgnore?1:0)-(c.suggestIgnore?1:0)||h.priority-c.priority});function n(c){if(!c.ignore){var h=c.ensureState("emphasis");h.ignore==null&&(h.ignore=!1)}c.ignore=!0}for(var r=0;r<t.length;r++){var i=Bo(t[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,l=!1,s=0;s<e.length;s++)if(_S(i,e[s],null,{touchThreshold:.05})){l=!0;break}l?(n(a),o&&n(o)):e.push(i)}}}function _S(t,e,n,r){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,n,r)?!1:t.axisAligned&&e.axisAligned?!0:gk(t).intersect(gk(e),n,r)}var d7=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.getInitialData=function(n){return Qu(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(n){var r=new ie,i=Yn("line",0,n.itemHeight/2,n.itemWidth,0,n.lineStyle.stroke,!1);r.add(i),i.setStyle(n.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),l=a==="none"?"circle":a,s=n.itemHeight*.8,c=Yn(l,(n.itemWidth-s)/2,(n.itemHeight-s)/2,s,s,n.itemStyle.fill);r.add(c),c.setStyle(n.itemStyle);var h=n.iconRotate==="inherit"?o:n.iconRotate||0;return c.rotation=h*Math.PI/180,c.setOrigin([n.itemWidth/2,n.itemHeight/2]),l.indexOf("empty")>-1&&(c.style.stroke=c.style.fill,c.style.fill=ot.color.neutral00,c.style.lineWidth=2),r},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:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e})(Ke);function SS(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var i=Nu(t,e,n[0]);return i!=null?i+"":null}else if(r){for(var a=[],o=0;o<n.length;o++)a.push(Nu(t,e,n[o]));return a.join(" ")}}function p5(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!pt(e))return e+"";for(var r=[],i=0;i<n.length;i++){var a=t.getDimensionIndex(n[i]);a>=0&&r.push(e[a])}return r.join(" ")}var wS=(function(t){at(e,t);function e(n,r,i,a){var o=t.call(this)||this;return o.updateData(n,r,i,a),o}return e.prototype._createSymbol=function(n,r,i,a,o,l){this.removeAll();var s=Yn(n,-1,-1,2,2,null,l);s.attr({z2:zt(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=v7,this._symbolType=n,this.add(s)},e.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){$l(this.childAt(0))},e.prototype.downplay=function(){Ql(this.childAt(0))},e.prototype.setZ=function(n,r){var i=this.childAt(0);i.zlevel=n,i.z=r},e.prototype.setDraggable=function(n,r){var i=this.childAt(0);i.draggable=n,i.cursor=!r&&n?"move":i.cursor},e.prototype.updateData=function(n,r,i,a){this.silent=!1;var o=n.getItemVisual(r,"symbol")||"circle",l=n.hostModel,s=e.getSymbolSize(n,r),c=e.getSymbolZ2(n,r),h=o!==this._symbolType,d=a&&a.disableAnimation;if(h){var g=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,n,r,s,c,g)}else{var p=this.childAt(0);p.silent=!1;var m={scaleX:s[0]/2,scaleY:s[1]/2};d?p.attr(m):He(p,m,l,r),Da(p)}if(this._updateCommon(n,r,s,i,a),h){var p=this.childAt(0);if(!d){var m={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,Qe(p,m,l,r)}}d&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(n,r,i,a,o){var l=this.childAt(0),s=n.hostModel,c,h,d,g,p,m,x,_,b;if(a&&(c=a.emphasisItemStyle,h=a.blurItemStyle,d=a.selectItemStyle,g=a.focus,p=a.blurScope,x=a.labelStatesModels,_=a.hoverScale,b=a.cursorStyle,m=a.emphasisDisabled),!a||n.hasItemOption){var S=a&&a.itemModel?a.itemModel:n.getItemModel(r),T=S.getModel("emphasis");c=T.getModel("itemStyle").getItemStyle(),d=S.getModel(["select","itemStyle"]).getItemStyle(),h=S.getModel(["blur","itemStyle"]).getItemStyle(),g=T.get("focus"),p=T.get("blurScope"),m=T.get("disabled"),x=Qr(S),_=T.getShallow("scale"),b=S.getShallow("cursor")}var A=n.getItemVisual(r,"symbolRotate");l.attr("rotation",(A||0)*Math.PI/180||0);var D=hz(n.getItemVisual(r,"symbolOffset"),i);D&&(l.x=D[0],l.y=D[1]),b&&l.attr("cursor",b);var M=n.getItemVisual(r,"style"),k=M.fill;if(l instanceof Jr){var I=l.style;l.useStyle(ht({image:I.image,x:I.x,y:I.y,width:I.width,height:I.height},M))}else l.__isEmptyBrush?l.useStyle(ht({},M)):l.useStyle(M),l.style.decal=null,l.setColor(k,o&&o.symbolInnerColor),l.style.strokeNoScale=!0;var z=n.getItemVisual(r,"liftZ"),L=this._z2;z!=null?L==null&&(this._z2=l.z2,l.z2+=z):L!=null&&(l.z2=L,this._z2=null);var O=o&&o.useNameLabel;yi(l,x,{labelFetcher:s,labelDataIndex:r,defaultText:H,inheritColor:k,defaultOpacity:M.opacity});function H(W){return O?n.getName(W):SS(n,W)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var F=l.ensureState("emphasis");F.style=c,l.ensureState("select").style=d,l.ensureState("blur").style=h;var Y=_==null||_===!0?Math.max(1.1,3/this._sizeY):isFinite(_)&&_>0?+_:1;F.scaleX=this._sizeX*Y,F.scaleY=this._sizeY*Y,this.setSymbolScale(1),In(this,g,p,m)},e.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},e.prototype.fadeOut=function(n,r,i){var a=this.childAt(0),o=$t(this).dataIndex,l=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var s=a.getTextContent();s&&Hp(s,{style:{opacity:0}},r,{dataIndex:o,removeOpt:l,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Hp(a,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:n,removeOpt:l})},e.getSymbolSize=function(n,r){return fz(n.getItemVisual(r,"symbolSize"))},e.getSymbolZ2=function(n,r){return n.getItemVisual(r,"z2")},e})(ie);function v7(t,e){this.parent.drift(t,e)}function D1(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&t.getItemVisual(n,"symbol")!=="none"}function mk(t){return t!=null&&!Lt(t)&&(t={isIgnore:t}),t||{}}function yk(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Qr(e),cursorStyle:e.get("cursor")}}var g5=(function(){function t(e){this.group=new ie,this._SymbolCtor=e||wS}return t.prototype.updateData=function(e,n){this._progressiveEls=null,n=mk(n);var r=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,l=n.disableAnimation,s=yk(e),c={disableAnimation:l},h=n.getSymbolPoint||function(d){return e.getItemLayout(d)};a||r.removeAll(),e.diff(a).add(function(d){var g=h(d);if(D1(e,g,d,n)){var p=new o(e,d,s,c);p.setPosition(g),e.setItemGraphicEl(d,p),r.add(p)}}).update(function(d,g){var p=a.getItemGraphicEl(g),m=h(d);if(!D1(e,m,d,n)){r.remove(p);return}var x=e.getItemVisual(d,"symbol")||"circle",_=p&&p.getSymbolType&&p.getSymbolType();if(!p||_&&_!==x)r.remove(p),p=new o(e,d,s,c),p.setPosition(m);else{p.updateData(e,d,s,c);var b={x:m[0],y:m[1]};l?p.attr(b):He(p,b,i)}r.add(p),e.setItemGraphicEl(d,p)}).remove(function(d){var g=a.getItemGraphicEl(d);g&&g.fadeOut(function(){r.remove(g)},i)}).execute(),this._getSymbolPoint=h,this._data=e},t.prototype.updateLayout=function(){var e=this,n=this._data;n&&n.eachItemGraphicEl(function(r,i){var a=e._getSymbolPoint(i);r.setPosition(a),r.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=yk(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,n,r){this._progressiveEls=[],r=mk(r);function i(s){s.isGroup||(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var o=n.getItemLayout(a);if(D1(n,o,a,r)){var l=new this._SymbolCtor(n,a,this._seriesScope);l.traverse(i),l.setPosition(o),this.group.add(l),n.setItemGraphicEl(a,l),this._progressiveEls.push(l)}}},t.prototype.eachRendered=function(e){qu(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var n=this.group,r=this._data;r&&e?r.eachItemGraphicEl(function(i){i.fadeOut(function(){n.remove(i)},r.hostModel)}):n.removeAll()},t})();function m5(t,e,n){var r=t.getBaseAxis(),i=t.getOtherAxis(r),a=p7(i,n),o=r.dim,l=i.dim,s=e.mapDimension(l),c=e.mapDimension(o),h=l==="x"||l==="radius"?1:0,d=bt(t.dimensions,function(m){return e.mapDimension(m)}),g=!1,p=e.getCalculationInfo("stackResultDimension");return Pu(e,d[0])&&(g=!0,d[0]=p),Pu(e,d[1])&&(g=!0,d[1]=p),{dataDimsForPoint:d,valueStart:a,valueAxisDim:l,baseAxisDim:o,stacked:!!g,valueDim:s,baseDim:c,baseDataOffset:h,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function p7(t,e){var n=0,r=t.scale.getExtent();return e==="start"?n=r[0]:e==="end"?n=r[1]:ve(e)&&!isNaN(e)?n=e:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function y5(t,e,n,r){var i=NaN;t.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=n.get(t.baseDim,r),o[1-a]=i,e.dataToPoint(o)}function g7(t,e){var n=[];return e.diff(t).add(function(r){n.push({cmd:"+",idx:r})}).update(function(r,i){n.push({cmd:"=",idx:i,idx1:r})}).remove(function(r){n.push({cmd:"-",idx:r})}).execute(),n}function m7(t,e,n,r,i,a,o,l){for(var s=g7(t,e),c=[],h=[],d=[],g=[],p=[],m=[],x=[],_=m5(i,e,o),b=t.getLayout("points")||[],S=e.getLayout("points")||[],T=0;T<s.length;T++){var A=s[T],D=!0,M=void 0,k=void 0;switch(A.cmd){case"=":M=A.idx*2,k=A.idx1*2;var I=b[M],z=b[M+1],L=S[k],O=S[k+1];(isNaN(I)||isNaN(z))&&(I=L,z=O),c.push(I,z),h.push(L,O),d.push(n[M],n[M+1]),g.push(r[k],r[k+1]),x.push(e.getRawIndex(A.idx1));break;case"+":var H=A.idx,F=_.dataDimsForPoint,Y=i.dataToPoint([e.get(F[0],H),e.get(F[1],H)]);k=H*2,c.push(Y[0],Y[1]),h.push(S[k],S[k+1]);var W=y5(_,i,e,H);d.push(W[0],W[1]),g.push(r[k],r[k+1]),x.push(e.getRawIndex(H));break;case"-":D=!1}D&&(p.push(A),m.push(m.length))}m.sort(function(st,mt){return x[st]-x[mt]});for(var V=c.length,X=Pi(V),Z=Pi(V),tt=Pi(V),j=Pi(V),U=[],T=0;T<m.length;T++){var q=m[T],P=T*2,J=q*2;X[P]=c[J],X[P+1]=c[J+1],Z[P]=h[J],Z[P+1]=h[J+1],tt[P]=d[J],tt[P+1]=d[J+1],j[P]=g[J],j[P+1]=g[J+1],U[T]=p[q]}return{current:X,next:Z,stackedOnCurrent:tt,stackedOnNext:j,status:U}}var so=Math.min,uo=Math.max;function Xl(t,e){return isNaN(t)||isNaN(e)}function Lb(t,e,n,r,i,a,o,l,s){for(var c,h,d,g,p,m,x=n,_=0;_<r;_++){var b=e[x*2],S=e[x*2+1];if(x>=i||x<0)break;if(Xl(b,S)){if(s){x+=a;continue}break}if(x===n)t[a>0?"moveTo":"lineTo"](b,S),d=b,g=S;else{var T=b-c,A=S-h;if(T*T+A*A<.5){x+=a;continue}if(o>0){for(var D=x+a,M=e[D*2],k=e[D*2+1];M===b&&k===S&&_<r;)_++,D+=a,x+=a,M=e[D*2],k=e[D*2+1],b=e[x*2],S=e[x*2+1],T=b-c,A=S-h;var I=_+1;if(s)for(;Xl(M,k)&&I<r;)I++,D+=a,M=e[D*2],k=e[D*2+1];var z=.5,L=0,O=0,H=void 0,F=void 0;if(I>=r||Xl(M,k))p=b,m=S;else{L=M-c,O=k-h;var Y=b-c,W=M-b,V=S-h,X=k-S,Z=void 0,tt=void 0;if(l==="x"){Z=Math.abs(Y),tt=Math.abs(W);var j=L>0?1:-1;p=b-j*Z*o,m=S,H=b+j*tt*o,F=S}else if(l==="y"){Z=Math.abs(V),tt=Math.abs(X);var U=O>0?1:-1;p=b,m=S-U*Z*o,H=b,F=S+U*tt*o}else Z=Math.sqrt(Y*Y+V*V),tt=Math.sqrt(W*W+X*X),z=tt/(tt+Z),p=b-L*o*(1-z),m=S-O*o*(1-z),H=b+L*o*z,F=S+O*o*z,H=so(H,uo(M,b)),F=so(F,uo(k,S)),H=uo(H,so(M,b)),F=uo(F,so(k,S)),L=H-b,O=F-S,p=b-L*Z/tt,m=S-O*Z/tt,p=so(p,uo(c,b)),m=so(m,uo(h,S)),p=uo(p,so(c,b)),m=uo(m,so(h,S)),L=b-p,O=S-m,H=b+L*tt/Z,F=S+O*tt/Z}t.bezierCurveTo(d,g,p,m,b,S),d=H,g=F}else t.lineTo(b,S)}c=b,h=S,x+=a}return _}var x5=(function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t})(),y7=(function(t){at(e,t);function e(n){var r=t.call(this,n)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:ot.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new x5},e.prototype.buildPath=function(n,r){var i=r.points,a=0,o=i.length/2;if(r.connectNulls){for(;o>0&&Xl(i[o*2-2],i[o*2-1]);o--);for(;a<o&&Xl(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=Lb(n,i,a,o,o,1,r.smooth,r.smoothMonotone,r.connectNulls)+1},e.prototype.getPointOn=function(n,r){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=Zl.CMD,l,s,c=r==="x",h=[],d=0;d<a.length;){var g=a[d++],p=void 0,m=void 0,x=void 0,_=void 0,b=void 0,S=void 0,T=void 0;switch(g){case o.M:l=a[d++],s=a[d++];break;case o.L:if(p=a[d++],m=a[d++],T=c?(n-l)/(p-l):(n-s)/(m-s),T<=1&&T>=0){var A=c?(m-s)*T+s:(p-l)*T+l;return c?[n,A]:[A,n]}l=p,s=m;break;case o.C:p=a[d++],m=a[d++],x=a[d++],_=a[d++],b=a[d++],S=a[d++];var D=c?Dp(l,p,x,b,n,h):Dp(s,m,_,S,n,h);if(D>0)for(var M=0;M<D;M++){var k=h[M];if(k<=1&&k>=0){var A=c?Tn(s,m,_,S,k):Tn(l,p,x,b,k);return c?[n,A]:[A,n]}}l=b,s=S;break}}},e})(fe),x7=(function(t){at(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(x5),b7=(function(t){at(e,t);function e(n){var r=t.call(this,n)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new x7},e.prototype.buildPath=function(n,r){var i=r.points,a=r.stackedOnPoints,o=0,l=i.length/2,s=r.smoothMonotone;if(r.connectNulls){for(;l>0&&Xl(i[l*2-2],i[l*2-1]);l--);for(;o<l&&Xl(i[o*2],i[o*2+1]);o++);}for(;o<l;){var c=Lb(n,i,o,l,l,1,r.smooth,s,r.connectNulls);Lb(n,a,o+c-1,c,l,-1,r.stackedOnSmooth,s,r.connectNulls),o+=c+1,n.closePath()}},e})(fe);function b5(t,e,n,r,i){var a=t.getArea(),o=a.x,l=a.y,s=a.width,c=a.height,h=n.get(["lineStyle","width"])||0;o-=h/2,l-=h/2,s+=h,c+=h,s=Math.ceil(s),o!==Math.floor(o)&&(o=Math.floor(o),s++);var d=new le({shape:{x:o,y:l,width:s,height:c}});if(e){var g=t.getBaseAxis(),p=g.isHorizontal(),m=g.inverse;p?(m&&(d.shape.x+=s),d.shape.width=0):(m||(d.shape.y+=c),d.shape.height=0);var x=It(i)?function(_){i(_,d)}:null;Qe(d,{shape:{width:s,height:c,x:o,y:l}},n,null,r,x)}return d}function _5(t,e,n){var r=t.getArea(),i=gn(r.r0,1),a=gn(r.r,1),o=new mi({shape:{cx:gn(t.cx,1),cy:gn(t.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(e){var l=t.getBaseAxis().dim==="angle";l?o.shape.endAngle=r.startAngle:o.shape.r=i,Qe(o,{shape:{endAngle:r.endAngle,r:a}},n)}return o}function S5(t,e,n,r,i){if(t){if(t.type==="polar")return _5(t,e,n);if(t.type==="cartesian2d")return b5(t,e,n,r,i)}else return null;return null}function mh(t,e){return t.type===e}function xk(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function bk(t){for(var e=1/0,n=1/0,r=-1/0,i=-1/0,a=0;a<t.length;){var o=t[a++],l=t[a++];isNaN(o)||(e=Math.min(o,e),r=Math.max(o,r)),isNaN(l)||(n=Math.min(l,n),i=Math.max(l,i))}return[[e,n],[r,i]]}function _k(t,e){var n=bk(t),r=n[0],i=n[1],a=bk(e),o=a[0],l=a[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(r[1]-o[1]),Math.abs(i[0]-l[0]),Math.abs(i[1]-l[1]))}function Sk(t){return ve(t)?t:t?.5:0}function _7(t,e,n){if(!n.valueDim)return[];for(var r=e.count(),i=Pi(r*2),a=0;a<r;a++){var o=y5(n,t,e,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function co(t,e,n,r,i){var a=n.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,l=[],s=0,c=[],h=[],d=[],g=[];if(i){for(s=0;s<t.length;s+=2){var p=e||t;!isNaN(p[s])&&!isNaN(p[s+1])&&g.push(t[s],t[s+1])}t=g}for(s=0;s<t.length-2;s+=2)switch(d[0]=t[s+2],d[1]=t[s+3],h[0]=t[s],h[1]=t[s+1],l.push(h[0],h[1]),r){case"end":c[o]=d[o],c[1-o]=h[1-o],l.push(c[0],c[1]);break;case"middle":var m=(h[o]+d[o])/2,x=[];c[o]=x[o]=m,c[1-o]=h[1-o],x[1-o]=d[1-o],l.push(c[0],c[1]),l.push(x[0],x[1]);break;default:c[o]=h[o],c[1-o]=d[1-o],l.push(c[0],c[1])}return l.push(t[s++],t[s++]),l}function S7(t,e){var n=[],r=t.length,i,a;function o(h,d,g){var p=h.coord,m=(g-p)/(d.coord-p),x=xV(m,[h.color,d.color]);return{coord:g,color:x}}for(var l=0;l<r;l++){var s=t[l],c=s.coord;if(c<0)i=s;else if(c>e){a?n.push(o(a,s,e)):i&&n.push(o(i,s,0),o(i,s,e));break}else i&&(n.push(o(i,s,0)),i=null),n.push(s),a=s}return n}function w7(t,e,n){var r=t.getVisual("visualMeta");if(!(!r||!r.length||!t.count())&&e.type==="cartesian2d"){for(var i,a,o=r.length-1;o>=0;o--){var l=t.getDimensionInfo(r[o].dimension);if(i=l&&l.coordDim,i==="x"||i==="y"){a=r[o];break}}if(a){var s=e.getAxis(i),c=bt(a.stops,function(T){return{coord:s.toGlobalCoord(s.dataToCoord(T.value)),color:T.color}}),h=c.length,d=a.outerColors.slice();h&&c[0].coord>c[h-1].coord&&(c.reverse(),d.reverse());var g=S7(c,i==="x"?n.getWidth():n.getHeight()),p=g.length;if(!p&&h)return c[0].coord<0?d[1]?d[1]:c[h-1].color:d[0]?d[0]:c[0].color;var m=10,x=g[0].coord-m,_=g[p-1].coord+m,b=_-x;if(b<.001)return"transparent";N(g,function(T){T.offset=(T.coord-x)/b}),g.push({offset:p?g[p-1].offset:.5,color:d[1]||"transparent"}),g.unshift({offset:p?g[0].offset:.5,color:d[0]||"transparent"});var S=new Ig(0,0,0,0,g,!0);return S[i]=x,S[i+"2"]=_,S}}}function T7(t,e,n){var r=t.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var a=n.getAxesByScale("ordinal")[0];if(a&&!(i&&C7(a,e))){var o=e.mapDimension(a.dim),l={};return N(a.getViewLabels(),function(s){var c=a.scale.getRawOrdinalNumber(s.tickValue);l[c]=1}),function(s){return!l.hasOwnProperty(e.get(o,s))}}}}function C7(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(wS.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>r)return!1;return!0}function M7(t,e){return isNaN(t)||isNaN(e)}function A7(t){for(var e=t.length/2;e>0&&M7(t[e*2-2],t[e*2-1]);e--);return e-1}function wk(t,e){return[t[e*2],t[e*2+1]]}function D7(t,e,n){for(var r=t.length/2,i=n==="x"?0:1,a,o,l=0,s=-1,c=0;c<r;c++)if(o=t[c*2+i],!(isNaN(o)||isNaN(t[c*2+1-i]))){if(c===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){s=c;break}l=c,a=o}return{range:[l,s],t:(e-a)/(o-a)}}function w5(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Tr.length;e++)if(t.get([Tr[e],"endLabel","show"]))return!0;return!1}function k1(t,e,n,r){if(mh(e,"cartesian2d")){var i=r.getModel("endLabel"),a=i.get("valueAnimation"),o=r.getData(),l={lastFrameIndex:0},s=w5(r)?function(p,m){t._endLabelOnDuring(p,m,o,l,a,i,e)}:null,c=e.getBaseAxis().isHorizontal(),h=b5(e,n,r,function(){var p=t._endLabel;p&&n&&l.originalX!=null&&p.attr({x:l.originalX,y:l.originalY})},s);if(!r.get("clip",!0)){var d=h.shape,g=Math.max(d.width,d.height);c?(d.y-=g,d.height+=g*2):(d.x-=g,d.width+=g*2)}return s&&s(1,h),h}else return _5(e,n,r)}function k7(t,e){var n=e.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,a=r?i?"right":"left":"center",o=r?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||o}}}var L7=(function(t){at(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var n=new ie,r=new g5;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=n,this._changePolyState=Tt(this._changePolyState,this)},e.prototype.render=function(n,r,i){var a=n.coordinateSystem,o=this.group,l=n.getData(),s=n.getModel("lineStyle"),c=n.getModel("areaStyle"),h=l.getLayout("points")||[],d=a.type==="polar",g=this._coordSys,p=this._symbolDraw,m=this._polyline,x=this._polygon,_=this._lineGroup,b=!r.ssr&&n.get("animation"),S=!c.isEmpty(),T=c.get("origin"),A=m5(a,l,T),D=S&&_7(a,l,A),M=n.get("showSymbol"),k=n.get("connectNulls"),I=M&&!d&&T7(n,l,a),z=this._data;z&&z.eachItemGraphicEl(function(st,mt){st.__temp&&(o.remove(st),z.setItemGraphicEl(mt,null))}),M||p.remove(),o.add(_);var L=d?!1:n.get("step"),O;a&&a.getArea&&n.get("clip",!0)&&(O=a.getArea(),O.width!=null?(O.x-=.1,O.y-=.1,O.width+=.2,O.height+=.2):O.r0&&(O.r0-=.5,O.r+=.5)),this._clipShapeForSymbol=O;var H=w7(l,a,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(m&&g.type===a.type&&L===this._step))M&&p.updateData(l,{isIgnore:I,clipShape:O,disableAnimation:!0,getSymbolPoint:function(st){return[h[st*2],h[st*2+1]]}}),b&&this._initSymbolLabelAnimation(l,a,O),L&&(D&&(D=co(D,h,a,L,k)),h=co(h,null,a,L,k)),m=this._newPolyline(h),S?x=this._newPolygon(h,D):x&&(_.remove(x),x=this._polygon=null),d||this._initOrUpdateEndLabel(n,a,Kl(H)),_.setClipPath(k1(this,a,!0,n));else{S&&!x?x=this._newPolygon(h,D):x&&!S&&(_.remove(x),x=this._polygon=null),d||this._initOrUpdateEndLabel(n,a,Kl(H));var F=_.getClipPath();if(F){var Y=k1(this,a,!1,n);Qe(F,{shape:Y.shape},n)}else _.setClipPath(k1(this,a,!0,n));M&&p.updateData(l,{isIgnore:I,clipShape:O,disableAnimation:!0,getSymbolPoint:function(st){return[h[st*2],h[st*2+1]]}}),(!xk(this._stackedOnPoints,D)||!xk(this._points,h))&&(b?this._doUpdateAnimation(l,D,a,i,L,T,k):(L&&(D&&(D=co(D,h,a,L,k)),h=co(h,null,a,L,k)),m.setShape({points:h}),x&&x.setShape({points:h,stackedOnPoints:D})))}var W=n.getModel("emphasis"),V=W.get("focus"),X=W.get("blurScope"),Z=W.get("disabled");if(m.useStyle(qt(s.getLineStyle(),{fill:"none",stroke:H,lineJoin:"bevel"})),Cr(m,n,"lineStyle"),m.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var tt=m.getState("emphasis").style;tt.lineWidth=+m.style.lineWidth+1}$t(m).seriesIndex=n.seriesIndex,In(m,V,X,Z);var j=Sk(n.get("smooth")),U=n.get("smoothMonotone");if(m.setShape({smooth:j,smoothMonotone:U,connectNulls:k}),x){var q=l.getCalculationInfo("stackedOnSeries"),P=0;x.useStyle(qt(c.getAreaStyle(),{fill:H,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),q&&(P=Sk(q.get("smooth"))),x.setShape({smooth:j,stackedOnSmooth:P,smoothMonotone:U,connectNulls:k}),Cr(x,n,"areaStyle"),$t(x).seriesIndex=n.seriesIndex,In(x,V,X,Z)}var J=this._changePolyState;l.eachItemGraphicEl(function(st){st&&(st.onHoverStateChange=J)}),this._polyline.onHoverStateChange=J,this._data=l,this._coordSys=a,this._stackedOnPoints=D,this._points=h,this._step=L,this._valueOrigin=T,n.get("triggerLineEvent")&&(this.packEventData(n,m),x&&this.packEventData(n,x))},e.prototype.packEventData=function(n,r){$t(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},e.prototype.highlight=function(n,r,i,a){var o=n.getData(),l=ql(o,a);if(this._changePolyState("emphasis"),!(l instanceof Array)&&l!=null&&l>=0){var s=o.getLayout("points"),c=o.getItemGraphicEl(l);if(!c){var h=s[l*2],d=s[l*2+1];if(isNaN(h)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(h,d))return;var g=n.get("zlevel")||0,p=n.get("z")||0;c=new wS(o,l),c.x=h,c.y=d,c.setZ(g,p);var m=c.getSymbolPath().getTextContent();m&&(m.zlevel=g,m.z=p,m.z2=this._polyline.z2+1),c.__temp=!0,o.setItemGraphicEl(l,c),c.stopSymbolAnimation(!0),this.group.add(c)}c.highlight()}else Ye.prototype.highlight.call(this,n,r,i,a)},e.prototype.downplay=function(n,r,i,a){var o=n.getData(),l=ql(o,a);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 Ye.prototype.downplay.call(this,n,r,i,a)},e.prototype._changePolyState=function(n){var r=this._polygon;EA(this._polyline,n),r&&EA(r,n)},e.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new y7({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(n,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new b7({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(n,r,i){var a,o,l=r.getBaseAxis(),s=l.inverse;r.type==="cartesian2d"?(a=l.isHorizontal(),o=!1):r.type==="polar"&&(a=l.dim==="angle",o=!0);var c=n.hostModel,h=c.get("animationDuration");It(h)&&(h=h(null));var d=c.get("animationDelay")||0,g=It(d)?d(null):d;n.eachItemGraphicEl(function(p,m){var x=p;if(x){var _=[p.x,p.y],b=void 0,S=void 0,T=void 0;if(i)if(o){var A=i,D=r.pointToCoord(_);a?(b=A.startAngle,S=A.endAngle,T=-D[1]/180*Math.PI):(b=A.r0,S=A.r,T=D[0])}else{var M=i;a?(b=M.x,S=M.x+M.width,T=p.x):(b=M.y+M.height,S=M.y,T=p.y)}var k=S===b?0:(T-b)/(S-b);s&&(k=1-k);var I=It(d)?d(m):h*k+g,z=x.getSymbolPath(),L=z.getTextContent();x.attr({scaleX:0,scaleY:0}),x.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:I}),L&&L.animateFrom({style:{opacity:0}},{duration:300,delay:I}),z.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(n,r,i){var a=n.getModel("endLabel");if(w5(n)){var o=n.getData(),l=this._polyline,s=o.getLayout("points");if(!s){l.removeTextContent(),this._endLabel=null;return}var c=this._endLabel;c||(c=this._endLabel=new me({z2:200}),c.ignoreClip=!0,l.setTextContent(this._endLabel),l.disableLabelAnimation=!0);var h=A7(s);h>=0&&(yi(l,Qr(n,"endLabel"),{inheritColor:i,labelFetcher:n,labelDataIndex:h,defaultText:function(d,g,p){return p!=null?p5(o,p):SS(o,d)},enableTextSetter:!0},k7(a,r)),l.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(n,r,i,a,o,l,s){var c=this._endLabel,h=this._polyline;if(c){n<1&&a.originalX==null&&(a.originalX=c.x,a.originalY=c.y);var d=i.getLayout("points"),g=i.hostModel,p=g.get("connectNulls"),m=l.get("precision"),x=l.get("distance")||0,_=s.getBaseAxis(),b=_.isHorizontal(),S=_.inverse,T=r.shape,A=S?b?T.x:T.y+T.height:b?T.x+T.width:T.y,D=(b?x:0)*(S?-1:1),M=(b?0:-x)*(S?-1:1),k=b?"x":"y",I=D7(d,A,k),z=I.range,L=z[1]-z[0],O=void 0;if(L>=1){if(L>1&&!p){var H=wk(d,z[0]);c.attr({x:H[0]+D,y:H[1]+M}),o&&(O=g.getRawValue(z[0]))}else{var H=h.getPointOn(A,k);H&&c.attr({x:H[0]+D,y:H[1]+M});var F=g.getRawValue(z[0]),Y=g.getRawValue(z[1]);o&&(O=CI(i,m,F,Y,I.t))}a.lastFrameIndex=z[0]}else{var W=n===1||a.lastFrameIndex>0?z[0]:0,H=wk(d,W);o&&(O=g.getRawValue(W)),c.attr({x:H[0]+D,y:H[1]+M})}if(o){var V=Rh(c);typeof V.setLabelText=="function"&&V.setLabelText(O)}}},e.prototype._doUpdateAnimation=function(n,r,i,a,o,l,s){var c=this._polyline,h=this._polygon,d=n.hostModel,g=m7(this._data,n,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),p=g.current,m=g.stackedOnCurrent,x=g.next,_=g.stackedOnNext;if(o&&(m=co(g.stackedOnCurrent,g.current,i,o,s),p=co(g.current,null,i,o,s),_=co(g.stackedOnNext,g.next,i,o,s),x=co(g.next,null,i,o,s)),_k(p,x)>3e3||h&&_k(m,_)>3e3){c.stopAnimation(),c.setShape({points:x}),h&&(h.stopAnimation(),h.setShape({points:x,stackedOnPoints:_}));return}c.shape.__points=g.current,c.shape.points=p;var b={shape:{points:x}};g.current!==p&&(b.shape.__points=g.next),c.stopAnimation(),He(c,b,d),h&&(h.setShape({points:p,stackedOnPoints:m}),h.stopAnimation(),He(h,{shape:{stackedOnPoints:_}},d),c.shape.points!==h.shape.points&&(h.shape.points=c.shape.points));for(var S=[],T=g.status,A=0;A<T.length;A++){var D=T[A].cmd;if(D==="="){var M=n.getItemGraphicEl(T[A].idx1);M&&S.push({el:M,ptIdx:A})}}c.animators&&c.animators.length&&c.animators[0].during(function(){h&&h.dirtyShape();for(var k=c.shape.__points,I=0;I<S.length;I++){var z=S[I].el,L=S[I].ptIdx*2;z.x=k[L],z.y=k[L+1],z.markRedraw()}})},e.prototype.remove=function(n){var r=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(r.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(Ye);function TS(t,e){return{seriesType:t,plan:Bh(),reset:function(n){var r=n.getData(),i=n.coordinateSystem,a=n.pipelineContext,o=e||a.large;if(i){var l=bt(i.dimensions,function(p){return r.mapDimension(p)}).slice(0,2),s=l.length,c=r.getCalculationInfo("stackResultDimension");Pu(r,l[0])&&(l[0]=c),Pu(r,l[1])&&(l[1]=c);var h=r.getStore(),d=r.getDimensionIndex(l[0]),g=r.getDimensionIndex(l[1]);return s&&{progress:function(p,m){for(var x=p.end-p.start,_=o&&Pi(x*s),b=[],S=[],T=p.start,A=0;T<p.end;T++){var D=void 0;if(s===1){var M=h.get(d,T);D=i.dataToPoint(M,null,S)}else b[0]=h.get(d,T),b[1]=h.get(g,T),D=i.dataToPoint(b,null,S);o?(_[A++]=D[0],_[A++]=D[1]):m.setItemLayout(T,D.slice())}o&&m.setLayout("points",_)}}}}}}var E7={average:function(t){for(var e=0,n=0,r=0;r<t.length;r++)isNaN(t[r])||(e+=t[r],n++);return n===0?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},R7=function(t){return Math.round(t.length/2)};function T5(t){return{seriesType:t,reset:function(e,n,r){var i=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,l=i.count();if(l>10&&o.type==="cartesian2d"&&a){var s=o.getBaseAxis(),c=o.getOtherAxis(s),h=s.getExtent(),d=r.getDevicePixelRatio(),g=Math.abs(h[1]-h[0])*(d||1),p=Math.round(l/g);if(isFinite(p)&&p>1){a==="lttb"?e.setData(i.lttbDownSample(i.mapDimension(c.dim),1/p)):a==="minmax"&&e.setData(i.minmaxDownSample(i.mapDimension(c.dim),1/p));var m=void 0;St(a)?m=E7[a]:It(a)&&(m=a),m&&e.setData(i.downSample(i.mapDimension(c.dim),1/p,m,R7))}}}}}function I7(t){t.registerChartView(L7),t.registerSeriesModel(d7),t.registerLayout(TS("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var n=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,T5("line"))}var Eb=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(n,r){return Qu(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(n,r,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(n),l=a.dataToPoint(o);if(i)N(a.getAxes(),function(g,p){if(g.type==="category"&&r!=null){var m=g.getTicksCoords(),x=g.getTickModel().get("alignWithLabel"),_=o[p],b=r[p]==="x1"||r[p]==="y1";if(b&&!x&&(_+=1),m.length<2)return;if(m.length===2){l[p]=g.toGlobalCoord(g.getExtent()[b?1:0]);return}for(var S=void 0,T=void 0,A=1,D=0;D<m.length;D++){var M=m[D].coord,k=D===m.length-1?m[D-1].tickValue+A:m[D].tickValue;if(k===_){T=M;break}else if(k<_)S=M;else if(S!=null&&k>_){T=(M+S)/2;break}D===1&&(A=k-m[0].tickValue)}T==null&&(S?S&&(T=m[m.length-1].coord):T=m[0].coord),l[p]=g.toGlobalCoord(T)}});else{var s=this.getData(),c=s.getLayout("offset"),h=s.getLayout("size"),d=a.getBaseAxis().isHorizontal()?0:1;l[d]+=c+h/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",defaultBarGap:"10%"},e})(Ke);Ke.registerClass(Eb);var O7=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(){return Qu(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 n=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>n&&(n=r),n},e.prototype.brushSelector=function(n,r,i){return i.rect(r.getItemLayout(n))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Zu(Eb.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:ot.color.primary,borderWidth:2}},realtimeSort:!1}),e})(Eb),z7=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),og=(function(t){at(e,t);function e(n){var r=t.call(this,n)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new z7},e.prototype.buildPath=function(n,r){var i=r.cx,a=r.cy,o=Math.max(r.r0||0,0),l=Math.max(r.r,0),s=(l-o)*.5,c=o+s,h=r.startAngle,d=r.endAngle,g=r.clockwise,p=Math.PI*2,m=g?d-h<p:h-d<p;m||(h=d-(g?p:-p));var x=Math.cos(h),_=Math.sin(h),b=Math.cos(d),S=Math.sin(d);m?(n.moveTo(x*o+i,_*o+a),n.arc(x*c+i,_*c+a,s,-Math.PI+h,h,!g)):n.moveTo(x*l+i,_*l+a),n.arc(i,a,l,h,d,!g),n.arc(b*c+i,S*c+a,s,d-Math.PI*2,d-Math.PI,!g),o!==0&&n.arc(i,a,o,d,h,g)},e})(fe);function B7(t,e){e=e||{};var n=e.isRoundCap;return function(r,i,a){var o=i.position;if(!o||o instanceof Array)return Ip(r,i,a);var l=t(o),s=i.distance!=null?i.distance:5,c=this.shape,h=c.cx,d=c.cy,g=c.r,p=c.r0,m=(g+p)/2,x=c.startAngle,_=c.endAngle,b=(x+_)/2,S=n?Math.abs(g-p)/2:0,T=Math.cos,A=Math.sin,D=h+g*T(x),M=d+g*A(x),k="left",I="top";switch(l){case"startArc":D=h+(p-s)*T(b),M=d+(p-s)*A(b),k="center",I="top";break;case"insideStartArc":D=h+(p+s)*T(b),M=d+(p+s)*A(b),k="center",I="bottom";break;case"startAngle":D=h+m*T(x)+Gv(x,s+S,!1),M=d+m*A(x)+Uv(x,s+S,!1),k="right",I="middle";break;case"insideStartAngle":D=h+m*T(x)+Gv(x,-s+S,!1),M=d+m*A(x)+Uv(x,-s+S,!1),k="left",I="middle";break;case"middle":D=h+m*T(b),M=d+m*A(b),k="center",I="middle";break;case"endArc":D=h+(g+s)*T(b),M=d+(g+s)*A(b),k="center",I="bottom";break;case"insideEndArc":D=h+(g-s)*T(b),M=d+(g-s)*A(b),k="center",I="top";break;case"endAngle":D=h+m*T(_)+Gv(_,s+S,!0),M=d+m*A(_)+Uv(_,s+S,!0),k="left",I="middle";break;case"insideEndAngle":D=h+m*T(_)+Gv(_,-s+S,!0),M=d+m*A(_)+Uv(_,-s+S,!0),k="right",I="middle";break;default:return Ip(r,i,a)}return r=r||{},r.x=D,r.y=M,r.align=k,r.verticalAlign=I,r}}function N7(t,e,n,r){if(ve(r)){t.setTextConfig({rotation:r});return}else if(pt(e)){t.setTextConfig({rotation:0});return}var i=t.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,l=(a+o)/2,s,c=n(e);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":s=l;break;case"startAngle":case"insideStartAngle":s=a;break;case"endAngle":case"insideEndAngle":s=o;break;default:t.setTextConfig({rotation:0});return}var h=Math.PI*1.5-s;c==="middle"&&h>Math.PI/2&&h<Math.PI*1.5&&(h-=Math.PI),t.setTextConfig({rotation:h})}function Gv(t,e,n){return e*Math.sin(t)*(n?-1:1)}function Uv(t,e,n){return e*Math.cos(t)*(n?1:-1)}function Vl(t,e,n){var r=t.get("borderRadius");if(r==null)return n?{cornerRadius:0}:null;pt(r)||(r=[r,r,r,r]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:bt(r,function(a){return ji(a,i)})}}var L1=Math.max,E1=Math.min;function P7(t,e){var n=t.getArea&&t.getArea();if(mh(t,"cartesian2d")){var r=t.getBaseAxis();if(r.type!=="category"||!r.onBand){var i=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=i*2):(n.y-=i,n.height+=i*2)}}return n}var V7=(function(t){at(e,t);function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return e.prototype.render=function(n,r,i,a){this._model=n,this._removeOnRenderedListener(i),this._updateDrawMode(n);var o=n.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(n,r,i):this._renderNormal(n,r,i,a))},e.prototype.incrementalPrepareRender=function(n){this._clear(),this._updateDrawMode(n),this._updateLargeClip(n)},e.prototype.incrementalRender=function(n,r){this._progressiveEls=[],this._incrementalRenderLarge(n,r)},e.prototype.eachRendered=function(n){qu(this._progressiveEls||this.group,n)},e.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(n,r,i,a){var o=this.group,l=n.getData(),s=this._data,c=n.coordinateSystem,h=c.getBaseAxis(),d;c.type==="cartesian2d"?d=h.isHorizontal():c.type==="polar"&&(d=h.dim==="angle");var g=n.isAnimationEnabled()?n:null,p=H7(n,c);p&&this._enableRealtimeSort(p,l,i);var m=n.get("clip",!0)||p,x=P7(c,l);o.removeClipPath();var _=n.get("roundCap",!0),b=n.get("showBackground",!0),S=n.getModel("backgroundStyle"),T=S.get("borderRadius")||0,A=[],D=this._backgroundEls,M=a&&a.isInitSort,k=a&&a.type==="changeAxisOrder";function I(O){var H=Yv[c.type](l,O);if(!H)return null;var F=X7(c,d,H);return F.useStyle(S.getItemStyle()),c.type==="cartesian2d"?F.setShape("r",T):F.setShape("cornerRadius",T),A[O]=F,F}l.diff(s).add(function(O){var H=l.getItemModel(O),F=Yv[c.type](l,O,H);if(F&&(b&&I(O),!(!l.hasValue(O)||!Dk[c.type](F)))){var Y=!1;m&&(Y=Tk[c.type](x,F));var W=Ck[c.type](n,l,O,F,d,g,h.model,!1,_);p&&(W.forceLabelAnimation=!0),kk(W,l,O,H,F,n,d,c.type==="polar"),M?W.attr({shape:F}):p?Mk(p,g,W,F,O,d,!1,!1):Qe(W,{shape:F},n,O),l.setItemGraphicEl(O,W),o.add(W),W.ignore=Y}}).update(function(O,H){var F=l.getItemModel(O),Y=Yv[c.type](l,O,F);if(Y){if(b){var W=void 0;D.length===0?W=I(H):(W=D[H],W.useStyle(S.getItemStyle()),c.type==="cartesian2d"?W.setShape("r",T):W.setShape("cornerRadius",T),A[O]=W);var V=Yv[c.type](l,O),X=M5(d,V,c);He(W,{shape:X},g,O)}var Z=s.getItemGraphicEl(H);if(!l.hasValue(O)||!Dk[c.type](Y)){o.remove(Z);return}var tt=!1;m&&(tt=Tk[c.type](x,Y),tt&&o.remove(Z));var j=Z&&(Z.type==="sector"&&_||Z.type==="sausage"&&!_);if(j&&(Z&&ku(Z,n,H),Z=null),Z?Da(Z):Z=Ck[c.type](n,l,O,Y,d,g,h.model,!0,_),p&&(Z.forceLabelAnimation=!0),k){var U=Z.getTextContent();if(U){var q=Rh(U);q.prevValue!=null&&(q.prevValue=q.value)}}else kk(Z,l,O,F,Y,n,d,c.type==="polar");M?Z.attr({shape:Y}):p?Mk(p,g,Z,Y,O,d,!0,k):He(Z,{shape:Y},n,O,null),l.setItemGraphicEl(O,Z),Z.ignore=tt,o.add(Z)}}).remove(function(O){var H=s.getItemGraphicEl(O);H&&ku(H,n,O)}).execute();var z=this._backgroundGroup||(this._backgroundGroup=new ie);z.removeAll();for(var L=0;L<A.length;++L)z.add(A[L]);o.add(z),this._backgroundEls=A,this._data=l},e.prototype._renderLarge=function(n,r,i){this._clear(),Ek(n,this.group),this._updateLargeClip(n)},e.prototype._incrementalRenderLarge=function(n,r){this._removeBackground(),Ek(r,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(n){var r=n.get("clip",!0)&&S5(n.coordinateSystem,!1,n),i=this.group;r?i.setClipPath(r):i.removeClipPath()},e.prototype._enableRealtimeSort=function(n,r,i){var a=this;if(r.count()){var o=n.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(r,n,i),this._isFirstFrame=!1;else{var l=function(s){var c=r.getItemGraphicEl(s),h=c&&c.shape;return h&&Math.abs(o.isHorizontal()?h.height:h.width)||0};this._onRendered=function(){a._updateSortWithinSameData(r,l,o,i)},i.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(n,r,i){var a=[];return n.each(n.mapDimension(r.dim),function(o,l){var s=i(l);s=s??NaN,a.push({dataIndex:l,mappedValue:s,ordinalNumber:o})}),a.sort(function(o,l){return l.mappedValue-o.mappedValue}),{ordinalNumbers:bt(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(n,r,i){for(var a=i.scale,o=n.mapDimension(i.dim),l=Number.MAX_VALUE,s=0,c=a.getOrdinalMeta().categories.length;s<c;++s){var h=n.rawIndexOf(o,a.getRawOrdinalNumber(s)),d=h<0?Number.MIN_VALUE:r(n.indexOfRawIndex(h));if(d>l)return!0;l=d}return!1},e.prototype._isOrderDifferentInView=function(n,r){for(var i=r.scale,a=i.getExtent(),o=Math.max(0,a[0]),l=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=l;++o)if(n.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(n,r,i,a){if(this._isOrderChangedWithinSameData(n,r,i)){var o=this._dataSort(n,i,r);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(n,r,i){var a=r.baseAxis,o=this._dataSort(n,a,function(l){return n.get(n.mapDimension(r.otherAxis.dim),l)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(n,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(n,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(n){var r=this.group,i=this._data;n&&n.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){ku(a,n,$t(a).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e})(Ye),Tk={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,a=t.y+t.height,o=L1(e.x,t.x),l=E1(e.x+e.width,i),s=L1(e.y,t.y),c=E1(e.y+e.height,a),h=l<o,d=c<s;return e.x=h&&o>i?l:o,e.y=d&&s>a?c:s,e.width=h?0:l-o,e.height=d?0:c-s,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),h||d},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}var i=E1(e.r,t.r),a=L1(e.r0,t.r0);e.r=i,e.r0=a;var o=i-a<0;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}return o}},Ck={cartesian2d:function(t,e,n,r,i,a,o,l,s){var c=new le({shape:ht({},r),z2:1});if(c.__dataIndex=n,c.name="item",a){var h=c.shape,d=i?"height":"width";h[d]=0}return c},polar:function(t,e,n,r,i,a,o,l,s){var c=!i&&s?og:mi,h=new c({shape:r,z2:1});h.name="item";var d=C5(i);if(h.calculateTextPosition=B7(d,{isRoundCap:c===og}),a){var g=h.shape,p=i?"r":"endAngle",m={};g[p]=i?r.r0:r.startAngle,m[p]=r[p],(l?He:Qe)(h,{shape:m},a)}return h}};function H7(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();if(n&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function Mk(t,e,n,r,i,a,o,l){var s,c;a?(c={x:r.x,width:r.width},s={y:r.y,height:r.height}):(c={y:r.y,height:r.height},s={x:r.x,width:r.width}),l||(o?He:Qe)(n,{shape:s},e,i,null);var h=e?t.baseAxis.model:null;(o?He:Qe)(n,{shape:c},h,i)}function Ak(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var j7=["x","y","width","height"],F7=["cx","cy","r","startAngle","endAngle"],Dk={cartesian2d:function(t){return!Ak(t,j7)},polar:function(t){return!Ak(t,F7)}},Yv={cartesian2d:function(t,e,n){var r=t.getItemLayout(e);if(!r)return null;var i=n?U7(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function G7(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function C5(t){return(function(e){var n=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+n;default:return r}}})(t)}function kk(t,e,n,r,i,a,o,l){var s=e.getItemVisual(n,"style");if(l){if(!a.get("roundCap")){var h=t.shape,d=Vl(r.getModel("itemStyle"),h,!0);ht(h,d),t.setShape(h)}}else{var c=r.get(["itemStyle","borderRadius"])||0;t.setShape("r",c)}t.useStyle(s);var g=r.getShallow("cursor");g&&t.attr("cursor",g);var p=l?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",m=Qr(r);yi(t,m,{labelFetcher:a,labelDataIndex:n,defaultText:SS(a.getData(),n),inheritColor:s.fill,defaultOpacity:s.opacity,defaultOutsidePosition:p});var x=t.getTextContent();if(l&&x){var _=r.get(["label","position"]);t.textConfig.inside=_==="middle"?!0:null,N7(t,_==="outside"?p:_,C5(o),r.get(["label","rotate"]))}uO(x,m,a.getRawValue(n),function(S){return p5(e,S)});var b=r.getModel(["emphasis"]);In(t,b.get("focus"),b.get("blurScope"),b.get("disabled")),Cr(t,r),G7(i)&&(t.style.fill="none",t.style.stroke="none",N(t.states,function(S){S.style&&(S.style.fill=S.style.stroke="none")}))}function U7(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var r=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,a)}var Y7=(function(){function t(){}return t})(),Lk=(function(t){at(e,t);function e(n){var r=t.call(this,n)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new Y7},e.prototype.buildPath=function(n,r){for(var i=r.points,a=this.baseDimIdx,o=1-this.baseDimIdx,l=[],s=[],c=this.barWidth,h=0;h<i.length;h+=3)s[a]=c,s[o]=i[h+2],l[a]=i[h+a],l[o]=i[h+o],n.rect(l[0],l[1],s[0],s[1])},e})(fe);function Ek(t,e,n,r){var i=t.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),l=i.getLayout("size"),s=t.getModel("backgroundStyle"),c=i.getLayout("largeBackgroundPoints");if(c){var h=new Lk({shape:{points:c},incremental:!!r,silent:!0,z2:0});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=l,h.useStyle(s.getItemStyle()),e.add(h),n&&n.push(h)}var d=new Lk({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=l,e.add(d),d.useStyle(i.getVisual("style")),d.style.stroke=null,$t(d).seriesIndex=t.seriesIndex,t.get("silent")||(d.on("mousedown",Rk),d.on("mousemove",Rk)),n&&n.push(d)}var Rk=uS(function(t){var e=this,n=W7(e,t.offsetX,t.offsetY);$t(e).dataIndex=n>=0?n:null},30,!1);function W7(t,e,n){for(var r=t.baseDimIdx,i=1-r,a=t.shape.points,o=t.largeDataIndices,l=[],s=[],c=t.barWidth,h=0,d=a.length/3;h<d;h++){var g=h*3;if(s[r]=c,s[i]=a[g+2],l[r]=a[g+r],l[i]=a[g+i],s[i]<0&&(l[i]+=s[i],s[i]=-s[i]),e>=l[0]&&e<=l[0]+s[0]&&n>=l[1]&&n<=l[1]+s[1])return o[h]}return-1}function M5(t,e,n){if(mh(n,"cartesian2d")){var r=e,i=n.getArea();return{x:t?r.x:i.x,y:t?i.y:r.y,width:t?r.width:i.width,height:t?i.height:r.height}}else{var i=n.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:a.r0,r:t?i.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:Math.PI*2}}}function X7(t,e,n){var r=t.type==="polar"?mi:le;return new r({shape:M5(e,n,t),silent:!0,z2:0})}function q7(t){t.registerChartView(V7),t.registerSeriesModel(O7),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Wt(w9,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,T9("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,T5("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,n){var r=e.componentType||"series";n.eachComponent({mainType:r,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}var Ik=Math.PI*2,Wv=Math.PI/180;function Z7(t,e,n){e.eachSeriesByType(t,function(r){var i=r.getData(),a=i.mapDimension("value"),o=iF(r,n),l=o.cx,s=o.cy,c=o.r,h=o.r0,d=o.viewRect,g=-r.get("startAngle")*Wv,p=r.get("endAngle"),m=r.get("padAngle")*Wv;p=p==="auto"?g-Ik:-p*Wv;var x=r.get("minAngle")*Wv,_=x+m,b=0;i.each(a,function(X){!isNaN(X)&&b++});var S=i.getSum(a),T=Math.PI/(S||b)*2,A=r.get("clockwise"),D=r.get("roseType"),M=r.get("stillShowZeroSum"),k=i.getDataExtent(a);k[0]=0;var I=A?1:-1,z=[g,p],L=I*m/2;E_(z,!A),g=z[0],p=z[1];var O=A5(r);O.startAngle=g,O.endAngle=p,O.clockwise=A,O.cx=l,O.cy=s,O.r=c,O.r0=h;var H=Math.abs(p-g),F=H,Y=0,W=g;if(i.setLayout({viewRect:d,r:c}),i.each(a,function(X,Z){var tt;if(isNaN(X)){i.setItemLayout(Z,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:A,cx:l,cy:s,r0:h,r:D?NaN:c});return}D!=="area"?tt=S===0&&M?T:X*T:tt=H/b,tt<_?(tt=_,F-=_):Y+=X;var j=W+I*tt,U=0,q=0;m>tt?(U=W+I*tt/2,q=U):(U=W+L,q=j-L),i.setItemLayout(Z,{angle:tt,startAngle:U,endAngle:q,clockwise:A,cx:l,cy:s,r0:h,r:D?ue(X,k,[h,c]):c}),W=j}),F<Ik&&b)if(F<=.001){var V=H/b;i.each(a,function(X,Z){if(!isNaN(X)){var tt=i.getItemLayout(Z);tt.angle=V;var j=0,U=0;V<m?(j=g+I*(Z+1/2)*V,U=j):(j=g+I*Z*V+L,U=g+I*(Z+1)*V-L),tt.startAngle=j,tt.endAngle=U}})}else T=F/Y,W=g,i.each(a,function(X,Z){if(!isNaN(X)){var tt=i.getItemLayout(Z),j=tt.angle===_?_:X*T,U=0,q=0;j<m?(U=W+I*j/2,q=U):(U=W+L,q=W+I*j-L),tt.startAngle=U,tt.endAngle=q,W+=I*j}})})}var A5=be();function Fg(t){return{seriesType:t,reset:function(e,n){var r=n.findComponents({mainType:"legend"});if(!(!r||!r.length)){var i=e.getData();i.filterSelf(function(a){for(var o=i.getName(a),l=0;l<r.length;l++)if(!r[l].isSelected(o))return!1;return!0})}}}}var $7=Math.PI/180;function Ok(t,e,n,r,i,a,o,l,s,c){if(t.length<2)return;function h(x){for(var _=x.rB,b=_*_,S=0;S<x.list.length;S++){var T=x.list[S],A=Math.abs(T.label.y-n),D=r+T.len,M=D*D,k=Math.sqrt(Math.abs((1-A*A/b)*M)),I=e+(k+T.len2)*i,z=I-T.label.x,L=T.targetTextWidth-z*i;D5(T,L,!0),T.label.x=I}}function d(x){for(var _={list:[],maxY:0},b={list:[],maxY:0},S=0;S<x.length;S++)if(x[S].labelAlignTo==="none"){var T=x[S],A=T.label.y>n?b:_,D=Math.abs(T.label.y-n);if(D>=A.maxY){var M=T.label.x-e-T.len2*i,k=r+T.len,I=Math.abs(M)<k?Math.sqrt(D*D/(1-M*M/k/k)):k;A.rB=I,A.maxY=D}A.list.push(T)}h(_),h(b)}for(var g=t.length,p=0;p<g;p++)if(t[p].position==="outer"&&t[p].labelAlignTo==="labelLine"){var m=t[p].label.x-c;t[p].linePoints[1][0]+=m,t[p].label.x=c}f7(t,1,s,s+o)&&d(t)}function Q7(t,e,n,r,i,a,o,l){for(var s=[],c=[],h=Number.MAX_VALUE,d=-Number.MAX_VALUE,g=0;g<t.length;g++){var p=t[g].label;R1(t[g])||(p.x<e?(h=Math.min(h,p.x),s.push(t[g])):(d=Math.max(d,p.x),c.push(t[g])))}for(var g=0;g<t.length;g++){var m=t[g];if(!R1(m)&&m.linePoints){if(m.labelStyleWidth!=null)continue;var p=m.label,x=m.linePoints,_=void 0;m.labelAlignTo==="edge"?p.x<e?_=x[2][0]-m.labelDistance-o-m.edgeDistance:_=o+i-m.edgeDistance-x[2][0]-m.labelDistance:m.labelAlignTo==="labelLine"?p.x<e?_=h-o-m.bleedMargin:_=o+i-d-m.bleedMargin:p.x<e?_=p.x-o-m.bleedMargin:_=o+i-p.x-m.bleedMargin,m.targetTextWidth=_,D5(m,_,!1)}}Ok(c,e,n,r,1,i,a,o,l,d),Ok(s,e,n,r,-1,i,a,o,l,h);for(var g=0;g<t.length;g++){var m=t[g];if(!R1(m)&&m.linePoints){var p=m.label,x=m.linePoints,b=m.labelAlignTo==="edge",S=p.style.padding,T=S?S[1]+S[3]:0,A=p.style.backgroundColor?0:T,D=m.rect.width+A,M=x[1][0]-x[2][0];b?p.x<e?x[2][0]=o+m.edgeDistance+D+m.labelDistance:x[2][0]=o+i-m.edgeDistance-D-m.labelDistance:(p.x<e?x[2][0]=p.x+m.labelDistance:x[2][0]=p.x-m.labelDistance,x[1][0]=x[2][0]+M),x[1][1]=x[2][1]=p.y}}}function D5(t,e,n){if(t.labelStyleWidth==null){var r=t.label,i=r.style,a=t.rect,o=i.backgroundColor,l=i.padding,s=l?l[1]+l[3]:0,c=i.overflow,h=a.width+(o?0:s);if(e<h||n){if(c&&c.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-s);var d=r.getBoundingRect();r.setStyle("width",Math.ceil(d.width)),r.setStyle("backgroundColor",o)}else{var g=e-s,p=e<h?g:n?g>t.unconstrainedWidth?null:g:null;r.setStyle("width",p)}k5(a,r)}}}function k5(t,e){zk.rect=t,v5(zk,e,K7)}var K7={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},zk={};function R1(t){return t.position==="center"}function J7(t){var e=t.getData(),n=[],r,i,a=!1,o=(t.get("minShowLabelAngle")||0)*$7,l=e.getLayout("viewRect"),s=e.getLayout("r"),c=l.width,h=l.x,d=l.y,g=l.height;function p(M){M.ignore=!0}function m(M){if(!M.ignore)return!0;for(var k in M.states)if(M.states[k].ignore===!1)return!0;return!1}e.each(function(M){var k=e.getItemGraphicEl(M),I=k.shape,z=k.getTextContent(),L=k.getTextGuideLine(),O=e.getItemModel(M),H=O.getModel("label"),F=H.get("position")||O.get(["emphasis","label","position"]),Y=H.get("distanceToLabelLine"),W=H.get("alignTo"),V=At(H.get("edgeDistance"),c),X=H.get("bleedMargin");X==null&&(X=Math.min(c,g)>200?10:2);var Z=O.getModel("labelLine"),tt=Z.get("length");tt=At(tt,c);var j=Z.get("length2");if(j=At(j,c),Math.abs(I.endAngle-I.startAngle)<o){N(z.states,p),z.ignore=!0,L&&(N(L.states,p),L.ignore=!0);return}if(m(z)){var U=(I.startAngle+I.endAngle)/2,q=Math.cos(U),P=Math.sin(U),J,st,mt,wt;r=I.cx,i=I.cy;var gt=F==="inside"||F==="inner";if(F==="center")J=I.cx,st=I.cy,wt="center";else{var dt=(gt?(I.r+I.r0)/2*q:I.r*q)+r,Dt=(gt?(I.r+I.r0)/2*P:I.r*P)+i;if(J=dt+q*3,st=Dt+P*3,!gt){var yt=dt+q*(tt+s-I.r),Mt=Dt+P*(tt+s-I.r),_e=yt+(q<0?-1:1)*j,Jt=Mt;W==="edge"?J=q<0?h+V:h+c-V:J=_e+(q<0?-Y:Y),st=Jt,mt=[[dt,Dt],[yt,Mt],[_e,Jt]]}wt=gt?"center":W==="edge"?q>0?"right":"left":q>0?"left":"right"}var he=Math.PI,Me=0,Je=H.get("rotate");if(ve(Je))Me=Je*(he/180);else if(F==="center")Me=0;else if(Je==="radial"||Je===!0){var cr=q<0?-U+he:-U;Me=cr}else if(Je==="tangential"&&F!=="outside"&&F!=="outer"){var An=Math.atan2(q,P);An<0&&(An=he*2+An);var ni=P>0;ni&&(An=he+An),Me=An-he}if(a=!!Me,z.x=J,z.y=st,z.rotation=Me,z.setStyle({verticalAlign:"middle"}),gt){z.setStyle({align:wt});var Ho=z.states.select;Ho&&(Ho.x+=z.x,Ho.y+=z.y)}else{var qi=new Pt(0,0,0,0);k5(qi,z),n.push({label:z,labelLine:L,position:F,len:tt,len2:j,minTurnAngle:Z.get("minTurnAngle"),maxSurfaceAngle:Z.get("maxSurfaceAngle"),surfaceNormal:new jt(q,P),linePoints:mt,textAlign:wt,labelDistance:Y,labelAlignTo:W,edgeDistance:V,bleedMargin:X,rect:qi,unconstrainedWidth:qi.width,labelStyleWidth:z.style.width})}k.setTextConfig({inside:gt})}}),!a&&t.get("avoidLabelOverlap")&&Q7(n,r,i,s,c,g,h,d);for(var x=0;x<n.length;x++){var _=n[x],b=_.label,S=_.labelLine,T=isNaN(b.x)||isNaN(b.y);if(b){b.setStyle({align:_.textAlign}),T&&(N(b.states,p),b.ignore=!0);var A=b.states.select;A&&(A.x+=b.x,A.y+=b.y)}if(S){var D=_.linePoints;T||!D?(N(S.states,p),S.ignore=!0):(a7(D,_.minTurnAngle),o7(D,_.surfaceNormal,_.maxSurfaceAngle),S.setShape({points:D}),b.__hostTarget.textGuideLineConfig={anchor:new jt(D[0][0],D[0][1])})}}}var tY=(function(t){at(e,t);function e(n,r,i){var a=t.call(this)||this;a.z2=2;var o=new me;return a.setTextContent(o),a.updateData(n,r,i,!0),a}return e.prototype.updateData=function(n,r,i,a){var o=this,l=n.hostModel,s=n.getItemModel(r),c=s.getModel("emphasis"),h=n.getItemLayout(r),d=ht(Vl(s.getModel("itemStyle"),h,!0),h);if(isNaN(d.startAngle)){o.setShape(d);return}if(a){o.setShape(d);var g=l.getShallow("animationType");l.ecModel.ssr?(Qe(o,{scaleX:0,scaleY:0},l,{dataIndex:r,isFrom:!0}),o.originX=d.cx,o.originY=d.cy):g==="scale"?(o.shape.r=h.r0,Qe(o,{shape:{r:h.r}},l,r)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Qe(o,{shape:{startAngle:h.startAngle,endAngle:h.endAngle}},l,r)):(o.shape.endAngle=h.startAngle,He(o,{shape:{endAngle:h.endAngle}},l,r))}else Da(o),He(o,{shape:d},l,r);o.useStyle(n.getItemVisual(r,"style")),Cr(o,s);var p=(h.startAngle+h.endAngle)/2,m=l.get("selectedOffset"),x=Math.cos(p)*m,_=Math.sin(p)*m,b=s.getShallow("cursor");b&&o.attr("cursor",b),this._updateLabel(l,n,r),o.ensureState("emphasis").shape=ht({r:h.r+(c.get("scale")&&c.get("scaleSize")||0)},Vl(c.getModel("itemStyle"),h)),ht(o.ensureState("select"),{x,y:_,shape:Vl(s.getModel(["select","itemStyle"]),h)}),ht(o.ensureState("blur"),{shape:Vl(s.getModel(["blur","itemStyle"]),h)});var S=o.getTextGuideLine(),T=o.getTextContent();S&&ht(S.ensureState("select"),{x,y:_}),ht(T.ensureState("select"),{x,y:_}),In(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype._updateLabel=function(n,r,i){var a=this,o=r.getItemModel(i),l=o.getModel("labelLine"),s=r.getItemVisual(i,"style"),c=s&&s.fill,h=s&&s.opacity;yi(a,Qr(o),{labelFetcher:r.hostModel,labelDataIndex:i,inheritColor:c,defaultOpacity:h,defaultText:n.getFormattedLabel(i,"normal")||r.getName(i)});var d=a.getTextContent();a.setTextConfig({position:null,rotation:null}),d.attr({z2:10});var g=o.get(["label","position"]);if(g!=="outside"&&g!=="outer")a.removeTextGuideLine();else{var p=this.getTextGuideLine();p||(p=new Yi,this.setTextGuideLine(p)),c5(this,f5(o),{stroke:c,opacity:Co(l.get(["lineStyle","opacity"]),h,1)})}},e})(mi),eY=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ignoreLabelLineUpdate=!0,n}return e.prototype.render=function(n,r,i,a){var o=n.getData(),l=this._data,s=this.group,c;if(!l&&o.count()>0){for(var h=o.getItemLayout(0),d=1;isNaN(h&&h.startAngle)&&d<o.count();++d)h=o.getItemLayout(d);h&&(c=h.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),o.count()===0&&n.get("showEmptyCircle")){var g=A5(n),p=new mi({shape:Rt(g)});p.useStyle(n.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=p,s.add(p)}o.diff(l).add(function(m){var x=new tY(o,m,c);o.setItemGraphicEl(m,x),s.add(x)}).update(function(m,x){var _=l.getItemGraphicEl(x);_.updateData(o,m,c),_.off("click"),s.add(_),o.setItemGraphicEl(m,_)}).remove(function(m){var x=l.getItemGraphicEl(m);ku(x,n,m)}).execute(),J7(n),n.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(n,r){var i=r.getData(),a=i.getItemLayout(0);if(a){var o=n[0]-a.cx,l=n[1]-a.cy,s=Math.sqrt(o*o+l*l);return s<=a.r&&s>=a.r0}},e.type="pie",e})(Ye);function Hh(t,e,n){e=pt(e)&&{coordDimensions:e}||ht({encodeDefine:t.getEncode()},e);var r=t.getSource(),i=jg(r,e).dimensions,a=new vh(i,t);return a.initData(r,n),a}var CS=(function(){function t(e,n){this._getDataWithEncodedVisual=e,this._getRawData=n}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var n=this._getRawData();return n.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var n=this._getDataWithEncodedVisual();return n.indexOfName(e)},t.prototype.getItemVisual=function(e,n){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,n)},t})(),nY=be(),L5=(function(t){at(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new CS(Tt(this.getData,this),Tt(this.getRawData,this)),this._defaultLabelLine(n)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Hh(this,{coordDimensions:["value"],encodeDefaulter:Wt(EO,this)})},e.prototype.getDataParams=function(n){var r=this.getData(),i=nY(r),a=i.seats;if(!a){var o=[];r.each(r.mapDimension("value"),function(s){o.push(s)}),a=i.seats=$V(o,r.hostModel.get("percentPrecision"))}var l=t.prototype.getDataParams.call(this,n);return l.percent=a[n]||0,l.$vars.push("percent"),l},e.prototype._defaultLabelLine=function(n){zp(n,"labelLine",["show"]);var r=n.labelLine,i=n.emphasis.labelLine;r.show=r.show&&n.label.show,i.show=i.show&&n.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",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%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,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})(Ke);Qj({fullType:L5.type,getCoord2:function(t){return t.getShallow("center")}});function rY(t){return{seriesType:t,reset:function(e,n){var r=e.getData();r.filterSelf(function(i){var a=r.mapDimension("value"),o=r.get(a,i);return!(ve(o)&&!isNaN(o)&&o<0)})}}}function iY(t){t.registerChartView(eY),t.registerSeriesModel(L5),UG("pie",t.registerAction),t.registerLayout(Wt(Z7,"pie")),t.registerProcessor(Fg("pie")),t.registerProcessor(rY("pie"))}var aY=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.getInitialData=function(n,r){return Qu(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(n,r,i){return i.point(r.getItemLayout(n))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],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:ot.color.primary}},universalTransition:{divideShape:"clone"}},e})(Ke),E5=4,oY=(function(){function t(){}return t})(),lY=(function(t){at(e,t);function e(n){var r=t.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new oY},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(n,r){var i=r.points,a=r.size,o=this.symbolProxy,l=o.shape,s=n.getContext?n.getContext():n,c=s&&a[0]<E5,h=this.softClipShape,d;if(c){this._ctx=s;return}for(this._ctx=null,d=this._off;d<i.length;){var g=i[d++],p=i[d++];isNaN(g)||isNaN(p)||h&&!h.contain(g,p)||(l.x=g-a[0]/2,l.y=p-a[1]/2,l.width=a[0],l.height=a[1],o.buildPath(n,l,!0))}this.incremental&&(this._off=d,this.notClear=!0)},e.prototype.afterBrush=function(){var n=this.shape,r=n.points,i=n.size,a=this._ctx,o=this.softClipShape,l;if(a){for(l=this._off;l<r.length;){var s=r[l++],c=r[l++];isNaN(s)||isNaN(c)||o&&!o.contain(s,c)||a.fillRect(s-i[0]/2,c-i[1]/2,i[0],i[1])}this.incremental&&(this._off=l,this.notClear=!0)}},e.prototype.findDataIndex=function(n,r){for(var i=this.shape,a=i.points,o=i.size,l=Math.max(o[0],4),s=Math.max(o[1],4),c=a.length/2-1;c>=0;c--){var h=c*2,d=a[h]-l/2,g=a[h+1]-s/2;if(n>=d&&r>=g&&n<=d+l&&r<=g+s)return c}return-1},e.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),a=this.getBoundingRect();if(n=i[0],r=i[1],a.contain(n,r)){var o=this.hoverDataIdx=this.findDataIndex(n,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,i=r.points,a=r.size,o=a[0],l=a[1],s=1/0,c=1/0,h=-1/0,d=-1/0,g=0;g<i.length;){var p=i[g++],m=i[g++];s=Math.min(p,s),h=Math.max(p,h),c=Math.min(m,c),d=Math.max(m,d)}n=this._rect=new Pt(s-o/2,c-l/2,h-s+o,d-c+l)}return n},e})(fe),sY=(function(){function t(){this.group=new ie}return t.prototype.updateData=function(e,n){this._clear();var r=this._create();r.setShape({points:e.getLayout("points")}),this._setCommon(r,e,n)},t.prototype.updateLayout=function(e){var n=e.getLayout("points");this.group.eachChild(function(r){if(r.startIndex!=null){var i=(r.endIndex-r.startIndex)*2,a=r.startIndex*4*2;n=new Float32Array(n.buffer,a,i)}r.setShape("points",n),r.reset()})},t.prototype.incrementalPrepareUpdate=function(e){this._clear()},t.prototype.incrementalUpdate=function(e,n,r){var i=this._newAdded[0],a=n.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var l=o.length,s=new Float32Array(l+a.length);s.set(o),s.set(a,l),i.endIndex=e.end,i.setShape({points:s})}else{this._newAdded=[];var c=this._create();c.startIndex=e.start,c.endIndex=e.end,c.incremental=!0,c.setShape({points:a}),this._setCommon(c,n,r)}},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new lY({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},t.prototype._setCommon=function(e,n,r){var i=n.hostModel;r=r||{};var a=n.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=r.clipShape||null,e.symbolProxy=Yn(n.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<E5;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var l=n.getVisual("style"),s=l&&l.fill;s&&e.setColor(s);var c=$t(e);c.seriesIndex=i.seriesIndex,e.on("mousemove",function(h){c.dataIndex=null;var d=e.hoverDataIdx;d>=0&&(c.dataIndex=d+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t})(),uY=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var a=n.getData(),o=this._updateSymbolDraw(a,n);o.updateData(a,{clipShape:this._getClipShape(n)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(n,r,i){var a=n.getData(),o=this._updateSymbolDraw(a,n);o.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(n,r,i){this._symbolDraw.incrementalUpdate(n,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=n.end===r.getData().count()},e.prototype.updateTransform=function(n,r,i){var a=n.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=TS("").reset(n,r,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},e.prototype.eachRendered=function(n){this._symbolDraw&&this._symbolDraw.eachRendered(n)},e.prototype._getClipShape=function(n){if(n.get("clip",!0)){var r=n.coordinateSystem;return r&&r.getArea&&r.getArea(.1)}},e.prototype._updateSymbolDraw=function(n,r){var i=this._symbolDraw,a=r.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new sY:new g5,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(Ye),R5={left:0,right:0,top:0,bottom:0},lg=["25%","25%"],cY=(function(t){at(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(n,r){var i=$u(n.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&n.outerBounds&&Oo(n.outerBounds,i)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&n.outerBounds&&Oo(this.option.outerBounds,n.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:R5,outerBoundsContain:"all",outerBoundsClampWidth:lg[0],outerBoundsClampHeight:lg[1],backgroundColor:ot.color.transparent,borderWidth:1,borderColor:ot.color.neutral30},e})(ce),Rb=(function(t){at(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",En).models[0]},e.type="cartesian2dAxis",e})(ce);Xn(Rb,t5);var I5={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:ot.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:ot.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:ot.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[ot.color.backgroundTint,ot.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:ot.color.neutral00,borderColor:ot.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},fY=Xt({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},I5),MS=Xt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:ot.color.axisMinorSplitLine,width:1}}},I5),hY=Xt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},MS),dY=qt({logBase:10},MS);const O5={category:fY,value:MS,time:hY,log:dY};var vY={value:1,category:1,time:1,log:1},pY=null;function gY(){return pY}function Bk(t,e,n,r){N(vY,function(i,a){var o=Xt(Xt({},O5[a],!0),r,!0),l=(function(s){at(c,s);function c(){var h=s!==null&&s.apply(this,arguments)||this;return h.type=e+"Axis."+a,h}return c.prototype.mergeDefaultAndTheme=function(h,d){var g=ch(this),p=g?$u(h):{},m=d.getTheme();Xt(h,m.get(a+"Axis")),Xt(h,this.getDefaultOption()),h.type=Nk(h),g&&Oo(h,p,g)},c.prototype.optionUpdated=function(){var h=this.option;h.type==="category"&&(this.__ordinalMeta=Ab.createByAxisModel(this))},c.prototype.getCategories=function(h){var d=this.option;if(d.type==="category")return h?d.data:this.__ordinalMeta.categories},c.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},c.prototype.updateAxisBreaks=function(h){return{breaks:[]}},c.type=e+"Axis."+a,c.defaultOption=o,c})(n);t.registerComponentModel(l)}),t.registerSubTypeDefaulter(e+"Axis",Nk)}function Nk(t){return t.type||(t.data?"category":"value")}var mY=(function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return bt(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Ze(this.getAxes(),function(n){return n.scale.type===e})},t.prototype.addAxis=function(e){var n=e.dim;this._axes[n]=e,this._dimList.push(n)},t})(),Ib=["x","y"];function Pk(t){return(t.type==="interval"||t.type==="time")&&!t.hasBreaks()}var yY=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=Ib,n}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!Pk(n)||!Pk(r))){var i=n.getExtent(),a=r.getExtent(),o=this.dataToPoint([i[0],a[0]]),l=this.dataToPoint([i[1],a[1]]),s=i[1]-i[0],c=a[1]-a[0];if(!(!s||!c)){var h=(l[0]-o[0])/s,d=(l[1]-o[1])/c,g=o[0]-i[0]*h,p=o[1]-a[0]*d,m=this._transform=[h,0,0,d,g,p];this._invTransform=Uu([],m)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(n){var r=this.getAxis("x"),i=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&i.contain(i.toLocalCoord(n[1]))},e.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},e.prototype.containZone=function(n,r){var i=this.dataToPoint(n),a=this.dataToPoint(r),o=this.getArea(),l=new Pt(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(l)},e.prototype.dataToPoint=function(n,r,i){i=i||[];var a=n[0],o=n[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Gn(i,n,this._transform);var l=this.getAxis("x"),s=this.getAxis("y");return i[0]=l.toGlobalCoord(l.dataToCoord(a,r)),i[1]=s.toGlobalCoord(s.dataToCoord(o,r)),i},e.prototype.clampData=function(n,r){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),l=a.getExtent(),s=i.parse(n[0]),c=a.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(l[0],l[1]),c),Math.max(l[0],l[1])),r},e.prototype.pointToData=function(n,r,i){if(i=i||[],this._invTransform)return Gn(i,n,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(n[0]),r),i[1]=o.coordToData(o.toLocalCoord(n[1]),r),i},e.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},e.prototype.getArea=function(n){n=n||0;var r=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(r[0],r[1])-n,o=Math.min(i[0],i[1])-n,l=Math.max(r[0],r[1])-a+n,s=Math.max(i[0],i[1])-o+n;return new Pt(a,o,l,s)},e})(mY),xY=(function(t){at(e,t);function e(n,r,i,a,o){var l=t.call(this,n,r,i)||this;return l.index=0,l.type=a||"value",l.position=o||"bottom",l}return e.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},e.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},e})(s5),bY="expandAxisBreak",So=Math.PI,_Y=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],SY=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],yh=be(),z5=be(),B5=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var n=e.axis.dim,r=e.componentIndex,i=this.recordMap,a=i[n]||(i[n]=[]);return a[r]||(a[r]={ready:{}})},t})();function wY(t,e,n,r){var i=n.axis,a=e.ensureRecord(n),o=[],l,s=AS(t.axisName)&&Vu(t.nameLocation);N(r,function(m){var x=Bo(m);if(!(!x||x.label.ignore)){o.push(x);var _=a.transGroup;s&&(_.transform?Uu(cf,_.transform):__(cf),x.transform&&Nf(cf,cf,x.transform),Pt.copy(Xv,x.localRect),Xv.applyTransform(cf),l?l.union(Xv):Pt.copy(l=new Pt(0,0,0,0),Xv))}});var c=Math.abs(a.dirVec.x)>.1?"x":"y",h=a.transGroup[c];if(o.sort(function(m,x){return Math.abs(m.label[c]-h)-Math.abs(x.label[c]-h)}),s&&l){var d=i.getExtent(),g=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-g;l.union(new Pt(g,0,p,1))}a.stOccupiedRect=l,a.labelInfoList=o}var cf=hi(),Xv=new Pt(0,0,0,0),N5=function(t,e,n,r,i,a){if(Vu(t.nameLocation)){var o=a.stOccupiedRect;o&&P5(u7({},o,a.transGroup.transform),r,i)}else V5(a.labelInfoList,a.dirVec,r,i)};function P5(t,e,n){var r=new jt;_S(t,e,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&c7(e,r)}function V5(t,e,n,r){for(var i=jt.dot(r,e)>=0,a=0,o=t.length;a<o;a++){var l=t[i?a:o-1-a];l.label.ignore||P5(l,n,r)}}var Ma=(function(){function t(e,n,r,i){this.group=new ie,this._axisModel=e,this._api=n,this._local={},this._shared=i||new B5(N5),this._resetCfgDetermined(r)}return t.prototype.updateCfg=function(e){var n=this._cfg.raw;n.position=e.position,n.labelOffset=e.labelOffset,this._resetCfgDetermined(n)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var n=this._axisModel,r=n.getDefaultOption?n.getDefaultOption():{},i=zt(e.axisName,n.get("name")),a=n.get("nameMoveOverlap");(a==null||a==="auto")&&(a=zt(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:zt(e.nameDirection,1),tickDirection:zt(e.tickDirection,1),labelDirection:zt(e.labelDirection,1),labelOffset:zt(e.labelOffset,0),silent:zt(e.silent,!0),axisName:i,nameLocation:Co(n.get("nameLocation"),r.nameLocation,"end"),shouldNameMoveOverlap:AS(i)&&a,optionHideOverlap:n.get(["axisLabel","hideOverlap"]),showMinorTicks:n.get(["minorTick","show"])};this._cfg=o;var l=new ie({x:o.position[0],y:o.position[1],rotation:o.rotation});l.updateTransform(),this._transformGroup=l;var s=this._shared.ensureRecord(n);s.transGroup=this._transformGroup,s.dirVec=new jt(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,n){var r=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),N(TY,function(i){e[i]&&CY[i](r._cfg,r._local,r._shared,r._axisModel,r.group,r._transformGroup,r._api,n||{})}),this},t.innerTextLayout=function(e,n,r){var i=gI(n-e),a,o;return rh(i)?(o=r>0?"top":"bottom",a="center"):rh(i-So)?(o=r>0?"bottom":"top",a="center"):(o="middle",i>0&&i<So?a=r>0?"right":"left":a=r>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var n={componentType:e.mainType,componentIndex:e.componentIndex};return n[e.mainType+"Index"]=e.componentIndex,n},t.isLabelSilent=function(e){var n=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||n&&n.show)},t})(),TY=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],CY={axisLine:function(t,e,n,r,i,a,o){var l=r.get(["axisLine","show"]);if(l==="auto"&&(l=!0,t.raw.axisLineAutoShow!=null&&(l=!!t.raw.axisLineAutoShow)),!!l){var s=r.axis.getExtent(),c=a.transform,h=[s[0],0],d=[s[1],0],g=h[0]>d[0];c&&(Gn(h,h,c),Gn(d,d,c));var p=ht({lineCap:"round"},r.getModel(["axisLine","lineStyle"]).getLineStyle()),m={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get(["axisLine","breakLine"])&&r.axis.scale.hasBreaks())gY().buildAxisBreakLine(r,i,a,m);else{var x=new Fi(ht({shape:{x1:h[0],y1:h[1],x2:d[0],y2:d[1]}},m));lh(x.shape,x.style.lineWidth),x.anid="line",i.add(x)}var _=r.get(["axisLine","symbol"]);if(_!=null){var b=r.get(["axisLine","symbolSize"]);St(_)&&(_=[_,_]),(St(b)||ve(b))&&(b=[b,b]);var S=hz(r.get(["axisLine","symbolOffset"])||0,b),T=b[0],A=b[1];N([{rotate:t.rotation+Math.PI/2,offset:S[0],r:0},{rotate:t.rotation-Math.PI/2,offset:S[1],r:Math.sqrt((h[0]-d[0])*(h[0]-d[0])+(h[1]-d[1])*(h[1]-d[1]))}],function(D,M){if(_[M]!=="none"&&_[M]!=null){var k=Yn(_[M],-T/2,-A/2,T,A,p.stroke,!0),I=D.r+D.offset,z=g?d:h;k.attr({rotation:D.rotate,x:z[0]+I*Math.cos(t.rotation),y:z[1]-I*Math.sin(t.rotation),silent:!0,z2:11}),i.add(k)}})}}},axisTickLabelEstimate:function(t,e,n,r,i,a,o,l){var s=Hk(e,i,l);s&&Vk(t,e,n,r,i,a,o,xi.estimate)},axisTickLabelDetermine:function(t,e,n,r,i,a,o,l){var s=Hk(e,i,l);s&&Vk(t,e,n,r,i,a,o,xi.determine);var c=kY(t,i,a,r);DY(t,e.labelLayoutList,c),LY(t,i,a,r,t.tickDirection)},axisName:function(t,e,n,r,i,a,o,l){var s=n.ensureRecord(r);e.nameEl&&(i.remove(e.nameEl),e.nameEl=s.nameLayout=s.nameLocation=null);var c=t.axisName;if(AS(c)){var h=t.nameLocation,d=t.nameDirection,g=r.getModel("nameTextStyle"),p=r.get("nameGap")||0,m=r.axis.getExtent(),x=r.axis.inverse?-1:1,_=new jt(0,0),b=new jt(0,0);h==="start"?(_.x=m[0]-x*p,b.x=-x):h==="end"?(_.x=m[1]+x*p,b.x=x):(_.x=(m[0]+m[1])/2,_.y=t.labelOffset+d*p,b.y=d);var S=hi();b.transform(w_(S,S,t.rotation));var T=r.get("nameRotate");T!=null&&(T=T*So/180);var A,D;Vu(h)?A=Ma.innerTextLayout(t.rotation,T??t.rotation,d):(A=MY(t.rotation,h,T||0,m),D=t.raw.axisNameAvailableWidth,D!=null&&(D=Math.abs(D/Math.sin(A.rotation)),!isFinite(D)&&(D=null)));var M=g.getFont(),k=r.get("nameTruncate",!0)||{},I=k.ellipsis,z=Io(t.raw.nameTruncateMaxWidth,k.maxWidth,D),L=l.nameMarginLevel||0,O=new me({x:_.x,y:_.y,rotation:A.rotation,silent:Ma.isLabelSilent(r),style:$e(g,{text:c,font:M,overflow:"truncate",width:z,ellipsis:I,fill:g.getTextColor()||r.get(["axisLine","lineStyle","color"]),align:g.get("align")||A.textAlign,verticalAlign:g.get("verticalAlign")||A.textVerticalAlign}),z2:1});if(Eh({el:O,componentModel:r,itemName:c}),O.__fullText=c,O.anid="name",r.get("triggerEvent")){var H=Ma.makeAxisEventDataBase(r);H.targetType="axisName",H.name=c,$t(O).eventData=H}a.add(O),O.updateTransform(),e.nameEl=O;var F=s.nameLayout=Bo({label:O,priority:O.z2,defaultAttr:{ignore:O.ignore},marginDefault:Vu(h)?_Y[L]:SY[L]});if(s.nameLocation=h,i.add(O),O.decomposeTransform(),t.shouldNameMoveOverlap&&F){var Y=n.ensureRecord(r);n.resolveAxisNameOverlap(t,n,r,F,b,Y)}}}};function Vk(t,e,n,r,i,a,o,l){j5(e)||EY(t,e,i,l,r,o);var s=e.labelLayoutList;RY(t,r,s,a),t.rotation;var c=t.optionHideOverlap;AY(r,s,c),c&&h7(Ze(s,function(h){return h&&!h.label.ignore})),wY(t,n,r,s)}function MY(t,e,n,r){var i=gI(n-t),a,o,l=r[0]>r[1],s=e==="start"&&!l||e!=="start"&&l;return rh(i-So/2)?(o=s?"bottom":"top",a="center"):rh(i-So*1.5)?(o=s?"top":"bottom",a="center"):(o="middle",i<So*1.5&&i>So/2?a=s?"left":"right":a=s?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function AY(t,e,n){if(Qz(t.axis))return;function r(l,s,c){var h=Bo(e[s]),d=Bo(e[c]);if(!(!h||!d)){if(l===!1||h.suggestIgnore){Of(h.label);return}if(d.suggestIgnore){Of(d.label);return}var g=.1;if(!n){var p=[0,0,0,0];h=pk({marginForce:p},h),d=pk({marginForce:p},d)}_S(h,d,null,{touchThreshold:g})&&Of(l?d.label:h.label)}}var i=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]),o=e.length;r(i,0,1),r(a,o-1,o-2)}function DY(t,e,n){t.showMinorTicks||N(e,function(r){if(r&&r.label.ignore)for(var i=0;i<n.length;i++){var a=n[i],o=z5(a),l=yh(r.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===l.tickValue){Of(a);return}}})}function Of(t){t&&(t.ignore=!0)}function H5(t,e,n,r,i){for(var a=[],o=[],l=[],s=0;s<t.length;s++){var c=t[s].coord;o[0]=c,o[1]=0,l[0]=c,l[1]=n,e&&(Gn(o,o,e),Gn(l,l,e));var h=new Fi({shape:{x1:o[0],y1:o[1],x2:l[0],y2:l[1]},style:r,z2:2,autoBatch:!0,silent:!0});lh(h.shape,h.style.lineWidth),h.anid=i+"_"+t[s].tickValue,a.push(h);var d=z5(h);d.onBand=!!t[s].onBand,d.tickValue=t[s].tickValue}return a}function kY(t,e,n,r){var i=r.axis,a=r.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var l=a.getModel("lineStyle"),s=t.tickDirection*a.get("length"),c=i.getTicksCoords(),h=H5(c,n.transform,s,qt(l.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),d=0;d<h.length;d++)e.add(h[d]);return h}function LY(t,e,n,r,i){var a=r.axis,o=r.getModel("minorTick");if(!(!t.showMinorTicks||a.scale.isBlank())){var l=a.getMinorTicksCoords();if(l.length)for(var s=o.getModel("lineStyle"),c=i*o.get("length"),h=qt(s.getLineStyle(),qt(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),d=0;d<l.length;d++)for(var g=H5(l[d],n.transform,c,h,"minorticks_"+d),p=0;p<g.length;p++)e.add(g[p])}}function Hk(t,e,n){if(j5(t)){var r=t.axisLabelsCreationContext,i=r.out.noPxChangeTryDetermine;if(n.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(e.remove(t.labelGroup),Ob(t,null,null,null))}return!0}function EY(t,e,n,r,i,a){var o=i.axis,l=Io(t.raw.axisLabelShow,i.get(["axisLabel","show"])),s=new ie;n.add(s);var c=ng(r);if(!l||o.scale.isBlank()){Ob(e,[],s,c);return}var h=i.getModel("axisLabel"),d=o.getViewLabels(c),g=(Io(t.raw.labelRotate,h.get("rotate"))||0)*So/180,p=Ma.innerTextLayout(t.rotation,g,t.labelDirection),m=i.getCategories&&i.getCategories(!0),x=[],_=i.get("triggerEvent"),b=1/0,S=-1/0;N(d,function(A,D){var M,k=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(A.tickValue):A.tickValue,I=A.formattedLabel,z=A.rawLabel,L=h;if(m&&m[k]){var O=m[k];Lt(O)&&O.textStyle&&(L=new xe(O.textStyle,h,i.ecModel))}var H=L.getTextColor()||i.get(["axisLine","lineStyle","color"]),F=L.getShallow("align",!0)||p.textAlign,Y=zt(L.getShallow("alignMinLabel",!0),F),W=zt(L.getShallow("alignMaxLabel",!0),F),V=L.getShallow("verticalAlign",!0)||L.getShallow("baseline",!0)||p.textVerticalAlign,X=zt(L.getShallow("verticalAlignMinLabel",!0),V),Z=zt(L.getShallow("verticalAlignMaxLabel",!0),V),tt=10+(((M=A.time)===null||M===void 0?void 0:M.level)||0);b=Math.min(b,tt),S=Math.max(S,tt);var j=new me({x:0,y:0,rotation:0,silent:Ma.isLabelSilent(i),z2:tt,style:$e(L,{text:I,align:D===0?Y:D===d.length-1?W:F,verticalAlign:D===0?X:D===d.length-1?Z:V,fill:It(H)?H(o.type==="category"?z:o.type==="value"?k+"":k,D):H})});j.anid="label_"+k;var U=yh(j);if(U.break=A.break,U.tickValue=k,U.layoutRotation=p.rotation,Eh({el:j,componentModel:i,itemName:I,formatterParamsExtra:{isTruncated:function(){return j.isTruncated},value:z,tickIndex:D}}),_){var q=Ma.makeAxisEventDataBase(i);q.targetType="axisLabel",q.value=z,q.tickIndex=D,A.break&&(q.break={start:A.break.parsedBreak.vmin,end:A.break.parsedBreak.vmax}),o.type==="category"&&(q.dataIndex=k),$t(j).eventData=q,A.break&&OY(i,a,j,A.break)}x.push(j),s.add(j)});var T=bt(x,function(A){return{label:A,priority:yh(A).break?A.z2+(S-b+1):A.z2,defaultAttr:{ignore:A.ignore}}});Ob(e,T,s,c)}function j5(t){return!!t.labelLayoutList}function Ob(t,e,n,r){t.labelLayoutList=e,t.labelGroup=n,t.axisLabelsCreationContext=r}function RY(t,e,n,r){var i=e.get(["axisLabel","margin"]);N(n,function(a,o){var l=Bo(a);if(l){var s=l.label,c=yh(s);l.suggestIgnore=s.ignore,s.ignore=!1,Gx(ma,IY),ma.x=e.axis.dataToCoord(c.tickValue),ma.y=t.labelOffset+t.labelDirection*i,ma.rotation=c.layoutRotation,r.add(ma),ma.updateTransform(),r.remove(ma),ma.decomposeTransform(),Gx(s,ma),s.markRedraw(),ag(l,!0),Bo(l)}})}var ma=new le,IY=new le;function AS(t){return!!t}function OY(t,e,n,r){n.on("click",function(i){var a={type:bY,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}function sg(t,e,n){n=n||{};var r=e.axis,i={},a=r.getAxesOnZeroOf()[0],o=r.position,l=a?"onZero":o,s=r.dim,c=[t.x,t.x+t.width,t.y,t.y+t.height],h={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,g=s==="x"?[c[2]-d,c[3]+d]:[c[0]-d,c[1]+d];if(a){var p=a.toGlobalCoord(a.dataToCoord(0));g[h.onZero]=Math.max(Math.min(p,g[1]),g[0])}i.position=[s==="y"?g[h[l]]:c[0],s==="x"?g[h[l]]:c[3]],i.rotation=Math.PI/2*(s==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=m[o],i.labelOffset=a?g[h[o]]-g[h.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Io(n.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var x=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-x:x,i.z2=1,i}function zY(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function jk(t){var e={xAxisModel:null,yAxisModel:null};return N(e,function(n,r){var i=r.replace(/Model$/,""),a=t.getReferringComponents(i,En).models[0];e[r]=a}),e}function BY(t,e,n,r,i,a){for(var o=sg(t,n),l=!1,s=!1,c=0;c<e.length;c++)Cb(e[c].getOtherAxis(n.axis).scale)&&(l=s=!0,n.axis.type==="category"&&n.axis.onBand&&(s=!1));return o.axisLineAutoShow=l,o.axisTickAutoShow=s,o.defaultNameMoveOverlap=a,new Ma(n,r,o,i)}function NY(t,e,n){var r=sg(e,n);t.updateCfg(r)}function F5(t,e,n){var r=zo.prototype,i=r.getTicks.call(n),a=r.getTicks.call(n,{expandToNicedExtent:!0}),o=i.length-1,l=r.getInterval.call(n),s=$z(t,e),c=s.extent,h=s.fixMin,d=s.fixMax;t.type==="log"&&(c=Mb(t.base,c,!0)),t.setBreaksFromOption(Jz(e)),t.setExtent(c[0],c[1]),t.calcNiceExtent({splitNumber:o,fixMin:h,fixMax:d});var g=r.getExtent.call(t);h&&(c[0]=g[0]),d&&(c[1]=g[1]);var p=r.getInterval.call(t),m=c[0],x=c[1];if(h&&d)p=(x-m)/o;else if(h)for(x=c[0]+p*o;x<c[1]&&isFinite(x)&&isFinite(c[1]);)p=T1(p),x=c[0]+p*o;else if(d)for(m=c[1]-p*o;m>c[0]&&isFinite(m)&&isFinite(c[0]);)p=T1(p),m=c[1]-p*o;else{var _=t.getTicks().length-1;_>o&&(p=T1(p));var b=p*o;x=Math.ceil(c[1]/p)*p,m=gn(x-b),m<0&&c[0]>=0?(m=0,x=gn(b)):x>0&&c[1]<=0&&(x=0,m=-gn(b))}var S=(i[0].value-a[0].value)/l,T=(i[o].value-a[o].value)/l;r.setExtent.call(t,m+p*S,x+p*T),r.setInterval.call(t,p),(S||T)&&r.setNiceExtent.call(t,m+p,x-p)}var Fk=[[3,1],[0,2]],PY=(function(){function t(e,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Ib,this._initCartesian(e,n,r),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,n){var r=this._axesMap;this._updateScale(e,this.model);function i(o){var l,s=Be(o),c=s.length;if(c){for(var h=[],d=c-1;d>=0;d--){var g=+s[d],p=o[g],m=p.model,x=p.scale;Cb(x)&&m.get("alignTicks")&&m.get("interval")==null?h.push(p):(uk(x,m),Cb(x)&&(l=p))}h.length&&(l||(l=h.pop(),uk(l.scale,l.model)),N(h,function(_){F5(_.scale,_.model,l.scale)}))}}i(r.x),i(r.y);var a={};N(r.x,function(o){Gk(r,"y",o,a)}),N(r.y,function(o){Gk(r,"x",o,a)}),this.resize(this.model,n)},t.prototype.resize=function(e,n,r){var i=ti(e,n),a=this._rect=On(e.getBoxLayoutParams(),i.refContainer),o=this._axesMap,l=this._coordsList,s=e.get("containLabel");if(G5(o,a),!r){var c=HY(a,l,o,s,n),h=void 0;if(s)h=Wk(a.clone(),"axisLabel",null,a,o,c,i);else{var d=jY(e,a,i),g=d.outerBoundsRect,p=d.parsedOuterBoundsContain,m=d.outerBoundsClamp;g&&(h=Wk(g,p,m,a,o,c,i))}U5(a,o,xi.determine,null,h,i)}N(this._coordsList,function(x){x.calcAffineTransform()})},t.prototype.getAxis=function(e,n){var r=this._axesMap[e];if(r!=null)return r[n||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,n){if(e!=null&&n!=null){var r="x"+e+"y"+n;return this._coordsMap[r]}Lt(e)&&(n=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===e||a[i].getAxis("y").index===n)return a[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,n,r){var i=this._findConvertTarget(n);return i.cartesian?i.cartesian.dataToPoint(r):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(r)):null},t.prototype.convertFromPixel=function(e,n,r){var i=this._findConvertTarget(n);return i.cartesian?i.cartesian.pointToData(r):i.axis?i.axis.coordToData(i.axis.toLocalCoord(r)):null},t.prototype._findConvertTarget=function(e){var n=e.seriesModel,r=e.xAxisModel||n&&n.getReferringComponents("xAxis",En).models[0],i=e.yAxisModel||n&&n.getReferringComponents("yAxis",En).models[0],a=e.gridModel,o=this._coordsList,l,s;if(n)l=n.coordinateSystem,Yt(o,l)<0&&(l=null);else if(r&&i)l=this.getCartesian(r.componentIndex,i.componentIndex);else if(r)s=this.getAxis("x",r.componentIndex);else if(i)s=this.getAxis("y",i.componentIndex);else if(a){var c=a.coordinateSystem;c===this&&(l=this._coordsList[0])}return{cartesian:l,axis:s}},t.prototype.containPoint=function(e){var n=this._coordsList[0];if(n)return n.containPoint(e)},t.prototype._initCartesian=function(e,n,r){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},l={x:{},y:{}},s={x:0,y:0};if(n.eachComponent("xAxis",c("x"),this),n.eachComponent("yAxis",c("y"),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}this._axesMap=l,N(l.x,function(h,d){N(l.y,function(g,p){var m="x"+d+"y"+p,x=new yY(m);x.master=i,x.model=e,i._coordsMap[m]=x,i._coordsList.push(x),x.addAxis(h),x.addAxis(g)})});function c(h){return function(d,g){if(I1(d,e)){var p=d.get("position");h==="x"?p!=="top"&&p!=="bottom"&&(p=o.bottom?"top":"bottom"):p!=="left"&&p!=="right"&&(p=o.left?"right":"left"),o[p]=!0;var m=new xY(h,j9(d),[0,0],d.get("type"),p),x=m.type==="category";m.onBand=x&&d.get("boundaryGap"),m.inverse=d.get("inverse"),d.axis=m,m.model=d,m.grid=a,m.index=g,a._axesList.push(m),l[h][g]=m,s[h]++}}}},t.prototype._updateScale=function(e,n){N(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),e.eachSeries(function(i){if(zY(i)){var a=jk(i),o=a.xAxisModel,l=a.yAxisModel;if(!I1(o,n)||!I1(l,n))return;var s=this.getCartesian(o.componentIndex,l.componentIndex),c=i.getData(),h=s.getAxis("x"),d=s.getAxis("y");r(c,h),r(c,d)}},this);function r(i,a){N(Kz(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},t.prototype.getTooltipAxes=function(e){var n=[],r=[];return N(this.getCartesians(),function(i){var a=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(a);Yt(n,a)<0&&n.push(a),Yt(r,o)<0&&r.push(o)}),{baseAxes:n,otherAxes:r}},t.create=function(e,n){var r=[];return e.eachComponent("grid",function(i,a){var o=new t(i,e,n);o.name="grid_"+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o)}),e.eachSeries(function(i){tF({targetModel:i,coordSysType:"cartesian2d",coordSysProvider:a});function a(){var o=jk(i),l=o.xAxisModel,s=o.yAxisModel,c=l.getCoordSysModel(),h=c.coordinateSystem;return h.getCartesian(l.componentIndex,s.componentIndex)}}),r},t.dimensions=Ib,t})();function I1(t,e){return t.getCoordSysModel()===e}function Gk(t,e,n,r){n.getAxesOnZeroOf=function(){return a?[a]:[]};var i=t[e],a,o=n.model,l=o.get(["axisLine","onZero"]),s=o.get(["axisLine","onZeroAxisIndex"]);if(!l)return;if(s!=null)Uk(i[s])&&(a=i[s]);else for(var c in i)if(i.hasOwnProperty(c)&&Uk(i[c])&&!r[h(i[c])]){a=i[c];break}a&&(r[h(a)]=!0);function h(d){return d.dim+"_"+d.index}}function Uk(t){return t&&t.type!=="category"&&t.type!=="time"&&F9(t)}function VY(t,e){var n=t.getExtent(),r=n[0]+n[1];t.toGlobalCoord=t.dim==="x"?function(i){return i+e}:function(i){return r-i+e},t.toLocalCoord=t.dim==="x"?function(i){return i-e}:function(i){return r-i+e}}function G5(t,e){N(t.x,function(n){return Yk(n,e.x,e.width)}),N(t.y,function(n){return Yk(n,e.y,e.height)})}function Yk(t,e,n){var r=[0,n],i=t.inverse?1:0;t.setExtent(r[i],r[1-i]),VY(t,e)}function Wk(t,e,n,r,i,a,o){U5(r,i,xi.estimate,e,!1,o);var l=[0,0,0,0];c(0),c(1),h(r,0,NaN),h(r,1,NaN);var s=FR(l,function(g){return g>0})==null;return jp(r,l,!0,!0,n),G5(i,r),s;function c(g){N(i[po[g]],function(p){if(gh(p.model)){var m=a.ensureRecord(p.model),x=m.labelInfoList;if(x)for(var _=0;_<x.length;_++){var b=x[_],S=p.scale.normalize(yh(b.label).tickValue);S=g===1?1-S:S,h(b.rect,g,S),h(b.rect,1-g,NaN)}var T=m.nameLayout;if(T){var S=Vu(m.nameLocation)?.5:NaN;h(T.rect,g,S),h(T.rect,1-g,NaN)}}})}function h(g,p,m){var x=t[po[p]]-g[po[p]],_=g[Bu[p]]+g[po[p]]-(t[Bu[p]]+t[po[p]]);x=d(x,1-m),_=d(_,m);var b=Fk[p][0],S=Fk[p][1];l[b]=Sr(l[b],x),l[S]=Sr(l[S],_)}function d(g,p){return g>0&&!To(p)&&p>1e-4&&(g/=p),g}}function HY(t,e,n,r,i){var a=new B5(FY);return N(n,function(o){return N(o,function(l){if(gh(l.model)){var s=!r;l.axisBuilder=BY(t,e,l.model,i,a,s)}})}),a}function U5(t,e,n,r,i,a){var o=n===xi.determine;N(e,function(c){return N(c,function(h){gh(h.model)&&(NY(h.axisBuilder,t,h.model),h.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var l={x:0,y:0};s(0),s(1);function s(c){l[po[1-c]]=t[Bu[c]]<=a.refContainer[Bu[c]]*.5?0:1-c===1?2:1}N(e,function(c,h){return N(c,function(d){gh(d.model)&&((r==="all"||o)&&d.axisBuilder.build({axisName:!0},{nameMarginLevel:l[h]}),o&&d.axisBuilder.build({axisLine:!0}))})})}function jY(t,e,n){var r,i=t.get("outerBoundsMode",!0);i==="same"?r=e.clone():(i==null||i==="auto")&&(r=On(t.get("outerBounds",!0)||R5,n.refContainer));var a=t.get("outerBoundsContain",!0),o;a==null||a==="auto"||Yt(["all","axisLabel"],a)<0?o="all":o=a;var l=[Ux(zt(t.get("outerBoundsClampWidth",!0),lg[0]),e.width),Ux(zt(t.get("outerBoundsClampHeight",!0),lg[1]),e.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:l}}var FY=function(t,e,n,r,i,a){var o=n.axis.dim==="x"?"y":"x";N5(t,e,n,r,i,a),Vu(t.nameLocation)||N(e.recordMap[o],function(l){l&&l.labelInfoList&&l.dirVec&&V5(l.labelInfoList,l.dirVec,r,i)})};function GY(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return UY(n,t,e),n.seriesInvolved&&WY(n,t),n}function UY(t,e,n){var r=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];N(n.getCoordinateSystems(),function(l){if(!l.axisPointerEnabled)return;var s=xh(l.model),c=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=l;var h=l.model,d=h.getModel("tooltip",r);if(N(l.getAxes(),Wt(x,!1,null)),l.getTooltipAxes&&r&&d.get("show")){var g=d.get("trigger")==="axis",p=d.get(["axisPointer","type"])==="cross",m=l.getTooltipAxes(d.get(["axisPointer","axis"]));(g||p)&&N(m.baseAxes,Wt(x,p?"cross":!0,g)),p&&N(m.otherAxes,Wt(x,"cross",!1))}function x(_,b,S){var T=S.model.getModel("axisPointer",i),A=T.get("show");if(!(!A||A==="auto"&&!_&&!zb(T))){b==null&&(b=T.get("triggerTooltip")),T=_?YY(S,d,i,e,_,b):T;var D=T.get("snap"),M=T.get("triggerEmphasis"),k=xh(S.model),I=b||D||S.type==="category",z=t.axesInfo[k]={key:k,axis:S,coordSys:l,axisPointerModel:T,triggerTooltip:b,triggerEmphasis:M,involveSeries:I,snap:D,useHandle:zb(T),seriesModels:[],linkGroup:null};c[k]=z,t.seriesInvolved=t.seriesInvolved||I;var L=XY(a,S);if(L!=null){var O=o[L]||(o[L]={axesInfo:{}});O.axesInfo[k]=z,O.mapper=a[L].mapper,z.linkGroup=O}}}})}function YY(t,e,n,r,i,a){var o=e.getModel("axisPointer"),l=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],s={};N(l,function(g){s[g]=Rt(o.get(g))}),s.snap=t.type!=="category"&&!!a,o.get("type")==="cross"&&(s.type="line");var c=s.label||(s.label={});if(c.show==null&&(c.show=!1),i==="cross"){var h=o.get(["label","show"]);if(c.show=h??!0,!a){var d=s.lineStyle=o.get("crossStyle");d&&qt(c,d.textStyle)}}return t.model.getModel("axisPointer",new xe(s,n,r))}function WY(t,e){e.eachSeries(function(n){var r=n.coordinateSystem,i=n.get(["tooltip","trigger"],!0),a=n.get(["tooltip","show"],!0);!r||!r.model||i==="none"||i===!1||i==="item"||a===!1||n.get(["axisPointer","show"],!0)===!1||N(t.coordSysAxesInfo[xh(r.model)],function(o){var l=o.axis;r.getAxis(l.dim)===l&&(o.seriesModels.push(n),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=n.getData().count())})})}function XY(t,e){for(var n=e.model,r=e.dim,i=0;i<t.length;i++){var a=t[i]||{};if(O1(a[r+"AxisId"],n.id)||O1(a[r+"AxisIndex"],n.componentIndex)||O1(a[r+"AxisName"],n.name))return i}}function O1(t,e){return t==="all"||pt(t)&&Yt(t,e)>=0||t===e}function qY(t){var e=DS(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,a=n.get("status"),o=n.get("value");o!=null&&(o=r.parse(o));var l=zb(n);a==null&&(i.status=l?"show":"hide");var s=r.getExtent().slice();s[0]>s[1]&&s.reverse(),(o==null||o>s[1])&&(o=s[1]),o<s[0]&&(o=s[0]),i.value=o,l&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function DS(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[xh(t)]}function ZY(t){var e=DS(t);return e&&e.axisPointerModel}function zb(t){return!!t.get(["handle","show"])}function xh(t){return t.type+"||"+t.id}var Xk={},Y5=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i,a){this.axisPointerClass&&qY(n),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(n,i,!0)},e.prototype.updateAxisPointer=function(n,r,i,a){this._doUpdateAxisPointerClass(n,i,!1)},e.prototype.remove=function(n,r){var i=this._axisPointer;i&&i.remove(r)},e.prototype.dispose=function(n,r){this._disposeAxisPointer(r),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(n,r,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=ZY(n);o?(this._axisPointer||(this._axisPointer=new a)).render(n,o,r,i):this._disposeAxisPointer(r)}},e.prototype._disposeAxisPointer=function(n){this._axisPointer&&this._axisPointer.dispose(n),this._axisPointer=null},e.registerAxisPointerClass=function(n,r){Xk[n]=r},e.getAxisPointerClass=function(n){return n&&Xk[n]},e.type="axis",e})(Mn),Bb=be();function $Y(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel("splitArea"),o=a.getModel("areaStyle"),l=o.get("color"),s=r.coordinateSystem.getRect(),c=i.getTicksCoords({tickModel:a,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(c.length){var h=l.length,d=Bb(t).splitAreaColors,g=Bt(),p=0;if(d)for(var m=0;m<c.length;m++){var x=d.get(c[m].tickValue);if(x!=null){p=(x+(h-1)*m)%h;break}}var _=i.toGlobalCoord(c[0].coord),b=o.getAreaStyle();l=pt(l)?l:[l];for(var m=1;m<c.length;m++){var S=i.toGlobalCoord(c[m].coord),T=void 0,A=void 0,D=void 0,M=void 0;i.isHorizontal()?(T=_,A=s.y,D=S-T,M=s.height,_=T+D):(T=s.x,A=_,D=s.width,M=S-A,_=A+M);var k=c[m-1].tickValue;k!=null&&g.set(k,p),e.add(new le({anid:k!=null?"area_"+k:null,shape:{x:T,y:A,width:D,height:M},style:qt({fill:l[p]},b),autoBatch:!0,silent:!0})),p=(p+1)%h}Bb(t).splitAreaColors=g}}}function QY(t){Bb(t).splitAreaColors=null}var KY=["splitArea","splitLine","minorSplitLine","breakArea"],W5=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return e.prototype.render=function(n,r,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ie,this.group.add(this._axisGroup),!!gh(n)){this._axisGroup.add(n.axis.axisBuilder.group),N(KY,function(s){n.get([s,"show"])&&JY[s](this,this._axisGroup,n,n.getCoordSysModel(),i)},this);var l=a&&a.type==="changeAxisOrder"&&a.isInitSort;l||nO(o,this._axisGroup,n),t.prototype.render.call(this,n,r,i,a)}},e.prototype.remove=function(){QY(this)},e.type="cartesianAxis",e})(Y5),JY={splitLine:function(t,e,n,r,i){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel("splitLine"),l=o.getModel("lineStyle"),s=l.get("color"),c=o.get("showMinLine")!==!1,h=o.get("showMaxLine")!==!1;s=pt(s)?s:[s];for(var d=r.coordinateSystem.getRect(),g=a.isHorizontal(),p=0,m=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),x=[],_=[],b=l.getLineStyle(),S=0;S<m.length;S++){var T=a.toGlobalCoord(m[S].coord);if(!(S===0&&!c||S===m.length-1&&!h)){var A=m[S].tickValue;g?(x[0]=T,x[1]=d.y,_[0]=T,_[1]=d.y+d.height):(x[0]=d.x,x[1]=T,_[0]=d.x+d.width,_[1]=T);var D=p++%s.length,M=new Fi({anid:A!=null?"line_"+A:null,autoBatch:!0,shape:{x1:x[0],y1:x[1],x2:_[0],y2:_[1]},style:qt({stroke:s[D]},b),silent:!0});lh(M.shape,b.lineWidth),e.add(M)}}}},minorSplitLine:function(t,e,n,r,i){var a=n.axis,o=n.getModel("minorSplitLine"),l=o.getModel("lineStyle"),s=r.coordinateSystem.getRect(),c=a.isHorizontal(),h=a.getMinorTicksCoords();if(h.length)for(var d=[],g=[],p=l.getLineStyle(),m=0;m<h.length;m++)for(var x=0;x<h[m].length;x++){var _=a.toGlobalCoord(h[m][x].coord);c?(d[0]=_,d[1]=s.y,g[0]=_,g[1]=s.y+s.height):(d[0]=s.x,d[1]=_,g[0]=s.x+s.width,g[1]=_);var b=new Fi({anid:"minor_line_"+h[m][x].tickValue,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:g[0],y2:g[1]},style:p,silent:!0});lh(b.shape,p.lineWidth),e.add(b)}},splitArea:function(t,e,n,r,i){$Y(t,e,n,r)},breakArea:function(t,e,n,r,i){n.axis.scale}},X5=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="xAxis",e})(W5),tW=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=X5.type,n}return e.type="yAxis",e})(W5),eW=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="grid",n}return e.prototype.render=function(n,r){this.group.removeAll(),n.get("show")&&this.group.add(new le({shape:n.coordinateSystem.getRect(),style:qt({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(Mn),qk={offset:0};function q5(t){t.registerComponentView(eW),t.registerComponentModel(cY),t.registerCoordinateSystem("cartesian2d",PY),Bk(t,"x",Rb,qk),Bk(t,"y",Rb,qk),t.registerComponentView(X5),t.registerComponentView(tW),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function nW(t){Wn(q5),t.registerSeriesModel(aY),t.registerChartView(uY),t.registerLayout(TS("scatter"))}function rW(t){t.eachSeriesByType("radar",function(e){var n=e.getData(),r=[],i=e.coordinateSystem;if(i){var a=i.getIndicatorAxes();N(a,function(o,l){n.each(n.mapDimension(a[l].dim),function(s,c){r[c]=r[c]||[];var h=i.dataToPoint(s,l);r[c][l]=Zk(h)?h:$k(i)})}),n.each(function(o){var l=FR(r[o],function(s){return Zk(s)})||$k(i);r[o].push(l.slice()),n.setItemLayout(o,r[o])})}})}function Zk(t){return!isNaN(t[0])&&!isNaN(t[1])}function $k(t){return[t.cx,t.cy]}function iW(t){var e=t.polar;if(e){pt(e)||(e=[e]);var n=[];N(e,function(r,i){r.indicator?(r.type&&!r.shape&&(r.shape=r.type),t.radar=t.radar||[],pt(t.radar)||(t.radar=[t.radar]),t.radar.push(r)):n.push(r)}),t.polar=n}N(t.series,function(r){r&&r.type==="radar"&&r.polarIndex&&(r.radarIndex=r.polarIndex)})}var aW=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var a=n.coordinateSystem,o=this.group,l=n.getData(),s=this._data;function c(g,p){var m=g.getItemVisual(p,"symbol")||"circle";if(m!=="none"){var x=fz(g.getItemVisual(p,"symbolSize")),_=Yn(m,-1,-1,2,2),b=g.getItemVisual(p,"symbolRotate")||0;return _.attr({style:{strokeNoScale:!0},z2:100,scaleX:x[0]/2,scaleY:x[1]/2,rotation:b*Math.PI/180||0}),_}}function h(g,p,m,x,_,b){m.removeAll();for(var S=0;S<p.length-1;S++){var T=c(x,_);T&&(T.__dimIdx=S,g[S]?(T.setPosition(g[S]),G_[b?"initProps":"updateProps"](T,{x:p[S][0],y:p[S][1]},n,_)):T.setPosition(p[S]),m.add(T))}}function d(g){return bt(g,function(p){return[a.cx,a.cy]})}l.diff(s).add(function(g){var p=l.getItemLayout(g);if(p){var m=new Ui,x=new Yi,_={shape:{points:p}};m.shape.points=d(p),x.shape.points=d(p),Qe(m,_,n,g),Qe(x,_,n,g);var b=new ie,S=new ie;b.add(x),b.add(m),b.add(S),h(x.shape.points,p,S,l,g,!0),l.setItemGraphicEl(g,b)}}).update(function(g,p){var m=s.getItemGraphicEl(p),x=m.childAt(0),_=m.childAt(1),b=m.childAt(2),S={shape:{points:l.getItemLayout(g)}};S.shape.points&&(h(x.shape.points,S.shape.points,b,l,g,!1),Da(_),Da(x),He(x,S,n),He(_,S,n),l.setItemGraphicEl(g,m))}).remove(function(g){o.remove(s.getItemGraphicEl(g))}).execute(),l.eachItemGraphicEl(function(g,p){var m=l.getItemModel(p),x=g.childAt(0),_=g.childAt(1),b=g.childAt(2),S=l.getItemVisual(p,"style"),T=S.fill;o.add(g),x.useStyle(qt(m.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:T})),Cr(x,m,"lineStyle"),Cr(_,m,"areaStyle");var A=m.getModel("areaStyle"),D=A.isEmpty()&&A.parentModel.isEmpty();_.ignore=D,N(["emphasis","select","blur"],function(k){var I=m.getModel([k,"areaStyle"]),z=I.isEmpty()&&I.parentModel.isEmpty();_.ensureState(k).ignore=z&&D;var L=m.getModel([k,"lineStyle"]).getLineStyle();x.ensureState(k).style=L;var O=I.getAreaStyle();_.ensureState(k).style=O;var H=m.getModel([k,"itemStyle"]).getItemStyle();b.eachChild(function(F){F.ensureState(k).style=Rt(H)})}),_.useStyle(qt(m.getModel("areaStyle").getAreaStyle(),{fill:T,opacity:.7,decal:S.decal}));var M=m.getModel("emphasis");b.eachChild(function(k){if(k instanceof Jr){var I=k.style;k.useStyle(ht({image:I.image,x:I.x,y:I.y,width:I.width,height:I.height},S))}else k.useStyle(S),k.setColor(T),k.style.strokeNoScale=!0;var z=l.getStore().get(l.getDimensionIndex(k.__dimIdx),p);(z==null||isNaN(z))&&(z=""),yi(k,Qr(m),{labelFetcher:l.hostModel,labelDataIndex:p,labelDimIndex:k.__dimIdx,defaultText:z,inheritColor:T,defaultOpacity:S.opacity})}),In(g,M.get("focus"),M.get("blurScope"),M.get("disabled"))}),this._data=l},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e})(Ye),oW=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new CS(Tt(this.getData,this),Tt(this.getRawData,this))},e.prototype.getInitialData=function(n,r){return Hh(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(n,r,i){var a=this.getData(),o=this.coordinateSystem,l=o.getIndicatorAxes(),s=this.getData().getName(n),c=s===""?this.name:s,h=JO(this,n);return Gi("section",{header:c,sortBlocks:!0,blocks:bt(l,function(d){var g=a.get(a.mapDimension(d.dim),n);return Gi("nameValue",{markerType:"subItem",markerColor:h,name:d.name,value:g,sortParam:g})})})},e.prototype.getTooltipPosition=function(n){if(n!=null){for(var r=this.getData(),i=this.coordinateSystem,a=r.getValues(bt(i.dimensions,function(c){return r.mapDimension(c)}),n),o=0,l=a.length;o<l;o++)if(!isNaN(a[o])){var s=i.getIndicatorAxes();return i.coordToPoint(s[o].dataToCoord(a[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})(Ke),ff=O5.value;function qv(t,e){return qt({show:e},t)}var lW=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.optionUpdated=function(){var n=this.get("boundaryGap"),r=this.get("splitNumber"),i=this.get("scale"),a=this.get("axisLine"),o=this.get("axisTick"),l=this.get("axisLabel"),s=this.get("axisName"),c=this.get(["axisName","show"]),h=this.get(["axisName","formatter"]),d=this.get("axisNameGap"),g=this.get("triggerEvent"),p=bt(this.get("indicator")||[],function(m){m.max!=null&&m.max>0&&!m.min?m.min=0:m.min!=null&&m.min<0&&!m.max&&(m.max=0);var x=s;m.color!=null&&(x=qt({color:m.color},s));var _=Xt(Rt(m),{boundaryGap:n,splitNumber:r,scale:i,axisLine:a,axisTick:o,axisLabel:l,name:m.text,showName:c,nameLocation:"end",nameGap:d,nameTextStyle:x,triggerEvent:g},!1);if(St(h)){var b=_.name;_.name=h.replace("{value}",b??"")}else It(h)&&(_.name=h(_.name,_));var S=new xe(_,null,this.ecModel);return Xn(S,t5.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:"50%",startAngle:90,axisName:{show:!0,color:ot.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Xt({lineStyle:{color:ot.color.neutral20}},ff.axisLine),axisLabel:qv(ff.axisLabel,!1),axisTick:qv(ff.axisTick,!1),splitLine:qv(ff.splitLine,!0),splitArea:qv(ff.splitArea,!0),indicator:[]},e})(ce),sW=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var a=this.group;a.removeAll(),this._buildAxes(n,i),this._buildSplitLineAndArea(n)},e.prototype._buildAxes=function(n,r){var i=n.coordinateSystem,a=i.getIndicatorAxes(),o=bt(a,function(l){var s=l.model.get("showName")?l.name:"",c=new Ma(l.model,r,{axisName:s,position:[i.cx,i.cy],rotation:l.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return c});N(o,function(l){l.build(),this.group.add(l.group)},this)},e.prototype._buildSplitLineAndArea=function(n){var r=n.coordinateSystem,i=r.getIndicatorAxes();if(!i.length)return;var a=n.get("shape"),o=n.getModel("splitLine"),l=n.getModel("splitArea"),s=o.getModel("lineStyle"),c=l.getModel("areaStyle"),h=o.get("show"),d=l.get("show"),g=s.get("color"),p=c.get("color"),m=pt(g)?g:[g],x=pt(p)?p:[p],_=[],b=[];function S(W,V,X){var Z=X%V.length;return W[Z]=W[Z]||[],Z}if(a==="circle")for(var T=i[0].getTicksCoords(),A=r.cx,D=r.cy,M=0;M<T.length;M++){if(h){var k=S(_,m,M);_[k].push(new Lh({shape:{cx:A,cy:D,r:T[M].coord}}))}if(d&&M<T.length-1){var k=S(b,x,M);b[k].push(new Eg({shape:{cx:A,cy:D,r0:T[M].coord,r:T[M+1].coord}}))}}else for(var I,z=bt(i,function(W,V){var X=W.getTicksCoords();return I=I==null?X.length-1:Math.min(X.length-1,I),bt(X,function(Z){return r.coordToPoint(Z.coord,V)})}),L=[],M=0;M<=I;M++){for(var O=[],H=0;H<i.length;H++)O.push(z[H][M]);if(O[0]&&O.push(O[0].slice()),h){var k=S(_,m,M);_[k].push(new Yi({shape:{points:O}}))}if(d&&L){var k=S(b,x,M-1);b[k].push(new Ui({shape:{points:O.concat(L)}}))}L=O.slice().reverse()}var F=s.getLineStyle(),Y=c.getAreaStyle();N(b,function(W,V){this.group.add(ib(W,{style:qt({stroke:"none",fill:x[V%x.length]},Y),silent:!0}))},this),N(_,function(W,V){this.group.add(ib(W,{style:qt({fill:"none",stroke:m[V%m.length]},F),silent:!0}))},this)},e.type="radar",e})(Mn),uW=(function(t){at(e,t);function e(n,r,i){var a=t.call(this,n,r,i)||this;return a.type="value",a.angle=0,a.name="",a}return e})(s5),cW=(function(){function t(e,n,r){this.dimensions=[],this._model=e,this._indicatorAxes=bt(e.getIndicatorModels(),function(i,a){var o="indicator_"+a,l=new uW(o,new zo);return l.name=i.get("name"),l.model=i,i.axis=l,this.dimensions.push(o),l},this),this.resize(e,r)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(e,n){var r=this._indicatorAxes[n];return this.coordToPoint(r.dataToCoord(e),n)},t.prototype.coordToPoint=function(e,n){var r=this._indicatorAxes[n],i=r.angle,a=this.cx+e*Math.cos(i),o=this.cy-e*Math.sin(i);return[a,o]},t.prototype.pointToData=function(e){var n=e[0]-this.cx,r=e[1]-this.cy,i=Math.sqrt(n*n+r*r);n/=i,r/=i;for(var a=Math.atan2(-r,n),o=1/0,l,s=-1,c=0;c<this._indicatorAxes.length;c++){var h=this._indicatorAxes[c],d=Math.abs(a-h.angle);d<o&&(l=h,s=c,o=d)}return[s,+(l&&l.coordToData(i))]},t.prototype.resize=function(e,n){var r=ti(e,n).refContainer,i=e.get("center"),a=Math.min(r.width,r.height)/2;this.cx=At(i[0],r.width)+r.x,this.cy=At(i[1],r.height)+r.y,this.startAngle=e.get("startAngle")*Math.PI/180;var o=e.get("radius");(St(o)||ve(o))&&(o=[0,o]),this.r0=At(o[0],a),this.r=At(o[1],a),N(this._indicatorAxes,function(l,s){l.setExtent(this.r0,this.r);var c=this.startAngle+s*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},t.prototype.update=function(e,n){var r=this._indicatorAxes,i=this._model;N(r,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"))!==i)){var c=l.getData();N(r,function(h){h.scale.unionExtentFromData(c,c.mapDimension(h.dim))})}},this);var a=i.get("splitNumber"),o=new zo;o.setExtent(0,a),o.setInterval(1),N(r,function(l,s){F5(l.scale,l.model,o)})},t.prototype.convertToPixel=function(e,n,r){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(e,n,r){return console.warn("Not implemented."),null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.create=function(e,n){var r=[];return e.eachComponent("radar",function(i){var a=new t(i,e,n);r.push(a),i.coordinateSystem=a}),e.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=r[i.get("radarIndex")||0])}),r},t.dimensions=[],t})();function fW(t){t.registerCoordinateSystem("radar",cW),t.registerComponentModel(lW),t.registerComponentView(sW),t.registerVisual({seriesType:"radar",reset:function(e){var n=e.getData();n.each(function(r){n.setItemVisual(r,"legendIcon","roundRect")}),n.setVisual("legendIcon","roundRect")}})}function hW(t){Wn(fW),t.registerChartView(aW),t.registerSeriesModel(oW),t.registerLayout(rW),t.registerProcessor(Fg("radar")),t.registerPreprocessor(iW)}var kS=be();function dW(t,e,n){kS(t)[e]=n}function vW(t,e,n){var r=kS(t),i=r[e];i===n&&(r[e]=null)}function Qk(t,e){return!!kS(t)[e]}Wi({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},cn);var pW={axisPointer:1,tooltip:1,brush:1};function Z5(t,e,n){var r=e.getComponentByElement(t.topTarget);if(!r||r===n||pW.hasOwnProperty(r.mainType))return!1;var i=r.coordinateSystem;if(!i||i.model===n)return!1;var a=uh(r),o=uh(n);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}var LS=(function(t){at(e,t);function e(n){var r=t.call(this)||this;r._zr=n;var i=Tt(r._mousedownHandler,r),a=Tt(r._mousemoveHandler,r),o=Tt(r._mouseupHandler,r),l=Tt(r._mousewheelHandler,r),s=Tt(r._pinchHandler,r);return r.enable=function(c,h){var d=h.zInfo,g=uh(d.component),p=g.z,m=g.zlevel,x={component:d.component,z:p,zlevel:m,z2:zt(d.z2,-1/0)},_=ht({},h.triggerInfo);this._opt=qt(ht({},h),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:x,triggerInfo:_}),c==null&&(c=!0),(!this._enabled||this._controlType!==c)&&(this._enabled=!0,this.disable(),(c===!0||c==="move"||c==="pan")&&(df(n,"mousedown",i,x),df(n,"mousemove",a,x),df(n,"mouseup",o,x)),(c===!0||c==="scale"||c==="zoom")&&(df(n,"mousewheel",l,x),df(n,"pinch",s,x)))},r.disable=function(){this._enabled=!1,vf(n,"mousedown",i),vf(n,"mousemove",a),vf(n,"mouseup",o),vf(n,"mousewheel",l),vf(n,"pinch",s)},r}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(n,r,i){var a=this._opt,o=a.zInfoParsed;if(Z5(n,a.api,o.component))return!1;var l=a.triggerInfo,s=l.roamTrigger,c=!1;return s==="global"&&(c=!0),c||(c=l.isInSelf(n,r,i)),c&&l.isInClip&&!l.isInClip(n,r,i)&&(c=!1),c},e.prototype._decideCursorStyle=function(n,r,i,a){var o=n.target;if(!o&&this._checkPointer(n,r,i))return"grab";if(a)return o&&o.cursor||"default"},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(n){if(!(EM(n)||hf(n))){for(var r=n.target;r;){if(r.draggable)return;r=r.__hostTarget||r.parent}var i=n.offsetX,a=n.offsetY;this._checkPointer(n,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},e.prototype._mousemoveHandler=function(n){var r=this._zr;if(!(n.gestureEvent==="pinch"||Qk(r,"globalPan")||hf(n))){var i=n.offsetX,a=n.offsetY;if(!this._dragging||!bp("moveOnMouseMove",n,this._opt)){var o=this._decideCursorStyle(n,i,a,!1);o&&r.setCursorStyle(o);return}r.setCursorStyle("grabbing");var l=this._x,s=this._y,c=i-l,h=a-s;this._x=i,this._y=a,this._opt.preventDefaultMouseMove&&Aa(n.event),n.__ecRoamConsumed=!0,Kk(this,"pan","moveOnMouseMove",n,{dx:c,dy:h,oldX:l,oldY:s,newX:i,newY:a,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(n){if(!hf(n)){var r=this._zr;if(!EM(n)){this._dragging=!1;var i=this._decideCursorStyle(n,n.offsetX,n.offsetY,!0);i&&r.setCursorStyle(i)}}},e.prototype._mousewheelHandler=function(n){if(!hf(n)){var r=bp("zoomOnMouseWheel",n,this._opt),i=bp("moveOnMouseWheel",n,this._opt),a=n.wheelDelta,o=Math.abs(a),l=n.offsetX,s=n.offsetY;if(!(a===0||!r&&!i)){if(r){var c=o>3?1.4:o>1?1.2:1.1,h=a>0?c:1/c;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",n,{scale:h,originX:l,originY:s,isAvailableBehavior:null})}if(i){var d=Math.abs(a),g=(a>0?1:-1)*(d>3?.4:d>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:g,originX:l,originY:s,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(n){if(!(Qk(this._zr,"globalPan")||hf(n))){var r=n.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,n,{scale:r,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(n,r,i,a,o){n._checkPointer(a,o.originX,o.originY)&&(Aa(a.event),a.__ecRoamConsumed=!0,Kk(n,r,i,a,o))},e})(Kr);function hf(t){return t.__ecRoamConsumed}var gW=be();function Gg(t){var e=gW(t);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function df(t,e,n,r){for(var i=Gg(t),a=i.roam,o=a[e]=a[e]||[],l=0;l<o.length;l++){var s=o[l].zInfoParsed;if((s.zlevel-r.zlevel||s.z-r.z||s.z2-r.z2)<=0)break}o.splice(l,0,{listener:n,zInfoParsed:r}),mW(t,e)}function vf(t,e,n){for(var r=Gg(t),i=r.roam[e]||[],a=0;a<i.length;a++)if(i[a].listener===n){i.splice(a,1),i.length||yW(t,e);return}}function mW(t,e){var n=Gg(t);n.uniform[e]||t.on(e,n.uniform[e]=function(r){var i=n.roam[e];if(i)for(var a=0;a<i.length;a++)i[a].listener(r)})}function yW(t,e){var n=Gg(t),r=n.uniform;r[e]&&(t.off(e,r[e]),r[e]=null)}function Kk(t,e,n,r,i){i.isAvailableBehavior=Tt(bp,null,n,r),t.trigger(e,i)}function bp(t,e,n){var r=n[t];return!t||r&&(!St(r)||e.event[r+"Key"])}function xW(t,e,n){var r=t.target;r.x+=e,r.y+=n,r.dirty()}function bW(t,e,n,r){var i=t.target,a=t.zoomLimit,o=t.zoom=t.zoom||1;o*=e,o=ES(o,a);var l=o/t.zoom;t.zoom=o,$5(i,n,r,l),i.dirty()}function _W(t,e,n,r,i,a){var o=new Pt(0,0,0,0);r.enable(t.get("roam"),{api:e,zInfo:{component:t},triggerInfo:{roamTrigger:t.get("roamTrigger"),isInSelf:function(c,h,d){return o.copy(n.getBoundingRect()),o.applyTransform(n.getComputedTransform()),o.contain(h,d)},isInClip:function(c,h,d){return!0}}}),i.zoomLimit=t.get("scaleLimit");var l=t.coordinateSystem;i.zoom=l?l.getZoom():1;var s=t.subType+"Roam";r.off("pan").off("zoom").on("pan",function(c){xW(i,c.dx,c.dy),e.dispatchAction({seriesId:t.id,type:s,dx:c.dx,dy:c.dy})}).on("zoom",function(c){bW(i,c.scale,c.originX,c.originY),e.dispatchAction({seriesId:t.id,type:s,zoom:c.scale,originX:c.originX,originY:c.originY}),e.updateLabelLayout()})}function Jk(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function SW(t,e,n){var r=t.getZoom(),i=t.getCenter(),a=e.zoom,o=t.projectedToPoint?t.projectedToPoint(i):t.dataToPoint(i);return e.dx!=null&&e.dy!=null&&(o[0]-=e.dx,o[1]-=e.dy,t.setCenter(Jk(t,o))),a!=null&&(a=ES(r*a,n)/r,$5(t,e.originX,e.originY,a),t.updateTransform(),t.setCenter(Jk(t,o)),t.setZoom(a*r)),{center:t.getCenter(),zoom:t.getZoom()}}function $5(t,e,n,r){t.x-=(e-t.x)*(r-1),t.y-=(n-t.y)*(r-1),t.scaleX*=r,t.scaleY*=r}function ES(t,e){if(e){var n=e.min||0,r=e.max||1/0;t=Math.max(Math.min(r,t),n)}return t}var tL=Gn,wW=(function(t){at(e,t);function e(n,r){var i=t.call(this)||this;return i.type="view",i.dimensions=["x","y"],i._roamTransformable=new Ol,i._rawTransformable=new Ol,i.name=n,i._opt=r,i}return e.prototype.setBoundingRect=function(n,r,i,a){return this._rect=new Pt(n,r,i,a),this._updateCenterAndZoom(),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(n,r,i,a){this._transformTo(n,r,i,a),this._viewRect=new Pt(n,r,i,a)},e.prototype._transformTo=function(n,r,i,a){var o=this.getBoundingRect(),l=this._rawTransformable;l.transform=o.calculateTransform(new Pt(n,r,i,a));var s=l.parent;l.parent=null,l.decomposeTransform(),l.parent=s,this._updateTransform()},e.prototype.setCenter=function(n){var r=this._opt;r&&r.api&&r.ecModel&&r.ecModel.getShallow("legacyViewCoordSysCenterBase")&&n&&(n=[At(n[0],r.api.getWidth()),At(n[1],r.api.getWidth())]),this._centerOption=Rt(n),this._updateCenterAndZoom()},e.prototype.setZoom=function(n){this._zoom=ES(n||1,this.zoomLimit),this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var n=this.getBoundingRect(),r=n.x+n.width/2,i=n.y+n.height/2;return[r,i]},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 n=this._centerOption,r=this._rect;n&&r&&(this._center=[At(n[0],r.width,r.x),At(n[1],r.height,r.y)]);var i=this._rawTransformable.getLocalTransform(),a=this._roamTransformable,o=this.getDefaultCenter(),l=this.getCenter(),s=this.getZoom();l=Gn([],l,i),o=Gn([],o,i),a.originX=l[0],a.originY=l[1],a.x=o[0]-l[0],a.y=o[1]-l[1],a.scaleX=a.scaleY=s,this._updateTransform()},e.prototype._updateTransform=function(){var n=this._roamTransformable,r=this._rawTransformable;r.parent=n,n.updateTransform(),r.updateTransform(),S_(this.transform||(this.transform=[]),r.transform||hi()),this._rawTransform=r.getLocalTransform(),this.invTransform=this.invTransform||[],Uu(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var n=this._rawTransformable,r=this._roamTransformable,i=new Ol;return i.transform=r.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var n=this.getBoundingRect().clone();return n.applyTransform(this.transform),n},e.prototype.dataToPoint=function(n,r,i){var a=r?this._rawTransform:this.transform;return i=i||[],a?tL(i,n,a):L6(i,n)},e.prototype.pointToData=function(n,r,i){i=i||[];var a=this.invTransform;return a?tL(i,n,a):(i[0]=n[0],i[1]=n[1],i)},e.prototype.convertToPixel=function(n,r,i){var a=eL(r);return a===this?a.dataToPoint(i):null},e.prototype.convertFromPixel=function(n,r,i){var a=eL(r);return a===this?a.pointToData(i):null},e.prototype.containPoint=function(n){return this.getViewRectAfterRoam().contain(n[0],n[1])},e.dimensions=["x","y"],e})(Ol);function eL(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var Zr=be();function Q5(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,K5(e,n,t),N(n,function(r){N(e.TRANSFERABLE_METHODS,function(i){r.wrapMethod(i,Wt(TW,t))})}),e.wrapMethod("cloneShallow",Wt(MW,t)),N(e.CHANGABLE_METHODS,function(r){e.wrapMethod(r,Wt(CW,t))}),$r(n[e.dataType]===e)}function TW(t,e){if(kW(this)){var n=ht({},Zr(this).datas);n[this.dataType]=e,K5(e,n,t)}else RS(e,this.dataType,Zr(this).mainData,t);return e}function CW(t,e){return t.struct&&t.struct.update(),e}function MW(t,e){return N(Zr(e).datas,function(n,r){n!==e&&RS(n.cloneShallow(),r,e,t)}),e}function AW(t){var e=Zr(this).mainData;return t==null||e==null?e:Zr(e).datas[t]}function DW(){var t=Zr(this).mainData;return t==null?[{data:t}]:bt(Be(Zr(t).datas),function(e){return{type:e,data:Zr(t).datas[e]}})}function kW(t){return Zr(t).mainData===t}function K5(t,e,n){Zr(t).datas={},N(e,function(r,i){RS(r,i,t,n)})}function RS(t,e,n,r){Zr(n).datas[e]=t,Zr(t).mainData=n,t.dataType=e,r.struct&&(t[r.structAttr]=r.struct,r.struct[r.datasAttr[e]]=t),t.getLinkedData=AW,t.getLinkedDataAll=DW}var LW=(function(){function t(e,n){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=n}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(e,n,r){It(e)&&(r=n,n=e,e=null),e=e||{},St(e)&&(e={order:e});var i=e.order||"preorder",a=this[e.attr||"children"],o;i==="preorder"&&(o=n.call(r,this));for(var l=0;!o&&l<a.length;l++)a[l].eachNode(e,n,r);i==="postorder"&&n.call(r,this)},t.prototype.updateDepthAndHeight=function(e){var n=0;this.depth=e;for(var r=0;r<this.children.length;r++){var i=this.children[r];i.updateDepthAndHeight(e+1),i.height>n&&(n=i.height)}this.height=n+1},t.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var n=0,r=this.children,i=r.length;n<i;n++){var a=r[n].getNodeById(e);if(a)return a}},t.prototype.contains=function(e){if(e===this)return!0;for(var n=0,r=this.children,i=r.length;n<i;n++){var a=r[n].contains(e);if(a)return a}},t.prototype.getAncestors=function(e){for(var n=[],r=e?this:this.parentNode;r;)n.push(r),r=r.parentNode;return n.reverse(),n},t.prototype.getAncestorsIndices=function(){for(var e=[],n=this;n;)e.push(n.dataIndex),n=n.parentNode;return e.reverse(),e},t.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(n){e.push(n.dataIndex)}),e},t.prototype.getValue=function(e){var n=this.hostTree.data;return n.getStore().get(n.getDimensionIndex(e||"value"),this.dataIndex)},t.prototype.setLayout=function(e,n){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,n)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var n=this.hostTree,r=n.data.getItemModel(this.dataIndex);return r.getModel(e)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(e,n){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,n)},t.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,n=0;n<e.length;++n)if(e[n]===this)return n;return-1}return-1},t.prototype.isAncestorOf=function(e){for(var n=e.parentNode;n;){if(n===this)return!0;n=n.parentNode}return!1},t.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},t})(),J5=(function(){function t(e){this.type="tree",this._nodes=[],this.hostModel=e}return t.prototype.eachNode=function(e,n,r){this.root.eachNode(e,n,r)},t.prototype.getNodeByDataIndex=function(e){var n=this.data.getRawIndex(e);return this._nodes[n]},t.prototype.getNodeById=function(e){return this.root.getNodeById(e)},t.prototype.update=function(){for(var e=this.data,n=this._nodes,r=0,i=n.length;r<i;r++)n[r].dataIndex=-1;for(var r=0,i=e.count();r<i;r++)n[e.getRawIndex(r)].dataIndex=r},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,r){var i=new t(n),a=[],o=1;l(e);function l(h,d){var g=h.value;o=Math.max(o,pt(g)?g.length:1),a.push(h);var p=new LW(Un(h.name,""),i);d?EW(p,d):i.root=p,i._nodes.push(p);var m=h.children;if(m)for(var x=0;x<m.length;x++)l(m[x],p)}i.root.updateDepthAndHeight(0);var s=jg(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,c=new vh(s,n);return c.initData(a),r&&r(c),Q5({mainData:c,struct:i,structAttr:"tree"}),i.update(),i},t})();function EW(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}function bh(t,e,n){if(t&&Yt(e,t.type)>=0){var r=n.getData().tree.root,i=t.targetNode;if(St(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var a=t.targetNodeId;if(a!=null&&(i=r.getNodeById(a)))return{node:i}}}function tB(t){for(var e=[];t;)t=t.parentNode,t&&e.push(t);return e.reverse()}function IS(t,e){var n=tB(t);return Yt(n,e)>=0}function OS(t,e){for(var n=[];t;){var r=t.dataIndex;n.push({name:t.name,dataIndex:r,value:e.getRawValue(r)}),t=t.parentNode}return n.reverse(),n}var nL=["treemapZoomToNode","treemapRender","treemapMove"];function RW(t){for(var e=0;e<nL.length;e++)t.registerAction({type:nL[e],update:"updateView"},cn);t.registerAction({type:"treemapRootToNode",update:"updateView"},function(n,r){r.eachComponent({mainType:"series",subType:"treemap",query:n},i);function i(a,o){var l=["treemapZoomToNode","treemapRootToNode"],s=bh(n,l,a);if(s){var c=a.getViewRoot();c&&(n.direction=IS(c,s.node)?"rollUp":"drillDown"),a.resetViewRoot(s.node)}}})}function eB(t){var e=t.getData(),n=e.tree,r={};n.eachNode(function(i){for(var a=i;a&&a.depth>1;)a=a.parentNode;var o=pF(t.ecModel,a.name||a.dataIndex+"",r);i.setVisual("decal",o)})}var IW=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return e.prototype.getInitialData=function(n,r){var i={name:n.name,children:n.data};nB(i);var a=n.levels||[],o=this.designatedVisualItemStyle={},l=new xe({itemStyle:o},this,r);a=n.levels=OW(a,r);var s=bt(a||[],function(d){return new xe(d,l,r)},this),c=J5.createTree(i,this,h);function h(d){d.wrapMethod("getItemModel",function(g,p){var m=c.getNodeByDataIndex(p),x=m?s[m.depth]:null;return g.parentModel=x||l,g})}return c.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(n,r,i){var a=this.getData(),o=this.getRawValue(n),l=a.getName(n);return Gi("nameValue",{name:l,value:o})},e.prototype.getDataParams=function(n){var r=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=OS(i,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(n){this.layoutInfo=this.layoutInfo||{},ht(this.layoutInfo,n)},e.prototype.mapIdToIndex=function(n){var r=this._idIndexMap;r||(r=this._idIndexMap=Bt(),this._idIndexMapCount=0);var i=r.get(n);return i==null&&r.set(n,i=this._idIndexMapCount++),i},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){eB(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,coordinateSystemUsage:"box",left:ot.size.l,top:ot.size.xxxl,right:ot.size.l,bottom:ot.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:ot.size.m,emptyItemWidth:25,itemStyle:{color:ot.color.backgroundShade,textStyle:{color:ot.color.secondary}},emphasis:{itemStyle:{color:ot.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:ot.color.neutral00,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:ot.color.neutral00,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})(Ke);function nB(t){var e=0;N(t.children,function(r){nB(r);var i=r.value;pt(i)&&(i=i[0]),e+=i});var n=t.value;pt(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=e),n<0&&(n=0),pt(t.value)?t.value[0]=n:t.value=n}function OW(t,e){var n=ln(e.get("color")),r=ln(e.get(["aria","decal","decals"]));if(n){t=t||[];var i,a;N(t,function(l){var s=new xe(l),c=s.get("color"),h=s.get("decal");(s.get(["itemStyle","color"])||c&&c!=="none")&&(i=!0),(s.get(["itemStyle","decal"])||h&&h!=="none")&&(a=!0)});var o=t[0]||(t[0]={});return i||(o.color=n.slice()),!a&&r&&(o.decal=r.slice()),t}}var zW=8,rL=8,z1=5,BW=(function(){function t(e){this.group=new ie,e.add(this.group)}return t.prototype.render=function(e,n,r,i){var a=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!r)){var l=a.getModel("itemStyle"),s=a.getModel("emphasis"),c=l.getModel("textStyle"),h=s.getModel(["itemStyle","textStyle"]),d=ti(e,n).refContainer,g={left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},p={emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]},m=On(g,d);this._prepare(r,p,c),this._renderContent(e,p,m,l,s,c,h,i),eS(o,g,d)}},t.prototype._prepare=function(e,n,r){for(var i=e;i;i=i.parentNode){var a=Un(i.getModel().get("name"),""),o=r.getTextRect(a),l=Math.max(o.width+zW*2,n.emptyItemWidth);n.totalWidth+=l+rL,n.renderList.push({node:i,text:a,width:l})}},t.prototype._renderContent=function(e,n,r,i,a,o,l,s){for(var c=0,h=n.emptyItemWidth,d=e.get(["breadcrumb","height"]),g=n.totalWidth,p=n.renderList,m=a.getModel("itemStyle").getItemStyle(),x=p.length-1;x>=0;x--){var _=p[x],b=_.node,S=_.width,T=_.text;g>r.width&&(g-=S-h,S=h,T=null);var A=new Ui({shape:{points:NW(c,0,S,d,x===p.length-1,x===0)},style:qt(i.getItemStyle(),{lineJoin:"bevel"}),textContent:new me({style:$e(o,{text:T})}),textConfig:{position:"inside"},z2:kh*1e4,onclick:Wt(s,b)});A.disableLabelAnimation=!0,A.getTextContent().ensureState("emphasis").style=$e(l,{text:T}),A.ensureState("emphasis").style=m,In(A,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(A),PW(A,e,b),c+=S+rL}},t.prototype.remove=function(){this.group.removeAll()},t})();function NW(t,e,n,r,i,a){var o=[[i?t:t-z1,e],[t+n,e],[t+n,e+r],[i?t:t-z1,e+r]];return!a&&o.splice(2,0,[t+n+z1,e+r/2]),!i&&o.push([t,e+r/2]),o}function PW(t,e,n){$t(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&OS(n,e)}}var VW=(function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(e,n,r,i,a){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:n,duration:r,delay:i,easing:a}),!0)},t.prototype.finished=function(e){return this._finishedCallback=e,this},t.prototype.start=function(){for(var e=this,n=this._storage.length,r=function(){n--,n<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,a=this._storage.length;i<a;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:r,aborted:r})}return this},t})();function HW(){return new VW}var Nb=ie,iL=le,aL=3,oL="label",lL="upperLabel",jW=kh*10,FW=kh*2,GW=kh*3,kl=zu([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),sL=function(t){var e=kl(t);return e.stroke=e.fill=e.lineWidth=null,e},ug=be(),UW=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage=pf(),n}return e.prototype.render=function(n,r,i,a){var o=r.findComponents({mainType:"series",subType:"treemap",query:a});if(!(Yt(o,n)<0)){this.seriesModel=n,this.api=i,this.ecModel=r;var l=["treemapZoomToNode","treemapRootToNode"],s=bh(a,l,n),c=a&&a.type,h=n.layoutInfo,d=!this._oldTree,g=this._storage,p=c==="treemapRootToNode"&&s&&g?{rootNodeGroup:g.nodeGroup[s.node.getRawIndex()],direction:a.direction}:null,m=this._giveContainerGroup(h),x=n.get("animation"),_=this._doRender(m,n,p);x&&!d&&(!c||c==="treemapZoomToNode"||c==="treemapRootToNode")?this._doAnimation(m,_,n,p):_.renderFinally(),this._resetController(i),this._renderBreadcrumb(n,i,s)}},e.prototype._giveContainerGroup=function(n){var r=this._containerGroup;return r||(r=this._containerGroup=new Nb,this._initEvents(r),this.group.add(r)),r.x=n.x,r.y=n.y,r},e.prototype._doRender=function(n,r,i){var a=r.getData().tree,o=this._oldTree,l=pf(),s=pf(),c=this._storage,h=[];function d(S,T,A,D){return YW(r,s,c,i,l,h,S,T,A,D)}x(a.root?[a.root]:[],o&&o.root?[o.root]:[],n,a===o||!o,0);var g=_(c);if(this._oldTree=a,this._storage=s,this._controllerHost){var p=this.seriesModel.layoutInfo,m=a.root.getLayout();m.width===p.width&&m.height===p.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:l,willDeleteEls:g,renderFinally:b};function x(S,T,A,D,M){D?(T=S,N(S,function(z,L){!z.isRemoved()&&I(L,L)})):new Ph(T,S,k,k).add(I).update(I).remove(Wt(I,null)).execute();function k(z){return z.getId()}function I(z,L){var O=z!=null?S[z]:null,H=L!=null?T[L]:null,F=d(O,H,A,M);F&&x(O&&O.viewChildren||[],H&&H.viewChildren||[],F,D,M+1)}}function _(S){var T=pf();return S&&N(S,function(A,D){var M=T[D];N(A,function(k){k&&(M.push(k),ug(k).willDelete=!0)})}),T}function b(){N(g,function(S){N(S,function(T){T.parent&&T.parent.remove(T)})}),N(h,function(S){S.invisible=!0,S.dirty()})}},e.prototype._doAnimation=function(n,r,i,a){var o=i.get("animationDurationUpdate"),l=i.get("animationEasing"),s=(It(o)?0:o)||0,c=(It(l)?null:l)||"cubicOut",h=HW();N(r.willDeleteEls,function(d,g){N(d,function(p,m){if(!p.invisible){var x=p.parent,_,b=ug(x);if(a&&a.direction==="drillDown")_=x===a.rootNodeGroup?{shape:{x:0,y:0,width:b.nodeWidth,height:b.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var S=0,T=0;b.willDelete||(S=b.nodeWidth/2,T=b.nodeHeight/2),_=g==="nodeGroup"?{x:S,y:T,style:{opacity:0}}:{shape:{x:S,y:T,width:0,height:0},style:{opacity:0}}}_&&h.add(p,_,s,0,c)}})}),N(this._storage,function(d,g){N(d,function(p,m){var x=r.lastsForAnimation[g][m],_={};x&&(p instanceof ie?x.oldX!=null&&(_.x=p.x,_.y=p.y,p.x=x.oldX,p.y=x.oldY):(x.oldShape&&(_.shape=ht({},p.shape),p.setShape(x.oldShape)),x.fadein?(p.setStyle("opacity",0),_.style={opacity:1}):p.style.opacity!==1&&(_.style={opacity:1})),h.add(p,_,s,0,c))})},this),this._state="animating",h.finished(Tt(function(){this._state="ready",r.renderFinally()},this)).start()},e.prototype._resetController=function(n){var r=this,i=this._controller,a=this._controllerHost;a||(this._controllerHost={target:this.group},a=this._controllerHost);var o=this.seriesModel;i||(i=this._controller=new LS(n.getZr()),i.on("pan",Tt(this._onPan,this)),i.on("zoom",Tt(this._onZoom,this))),i.enable(o.get("roam"),{api:n,zInfo:{component:o},triggerInfo:{roamTrigger:o.get("roamTrigger"),isInSelf:function(l,s,c){var h=r._containerGroup;return h?h.getBoundingRect().contain(s-h.x,c-h.y):!1}}}),a.zoomLimit=o.get("scaleLimit"),a.zoom=o.get("zoom")},e.prototype._clearController=function(){var n=this._controller;this._controllerHost=null,n&&(n.dispose(),n=null)},e.prototype._onPan=function(n){if(this._state!=="animating"&&(Math.abs(n.dx)>aL||Math.abs(n.dy)>aL)){var r=this.seriesModel.getData().tree.root;if(!r)return;var i=r.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+n.dx,y:i.y+n.dy,width:i.width,height:i.height}})}},e.prototype._onZoom=function(n){var r=n.originX,i=n.originY,a=n.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 Pt(l.x,l.y,l.width,l.height),c=null,h=this._controllerHost;c=h.zoomLimit;var d=h.zoom=h.zoom||1;if(d*=a,c){var g=c.min||0,p=c.max||1/0;d=Math.max(Math.min(p,d),g)}var m=d/h.zoom;h.zoom=d;var x=this.seriesModel.layoutInfo;r-=x.x,i-=x.y;var _=hi();Jf(_,_,[-r,-i]),qR(_,_,[m,m]),Jf(_,_,[r,i]),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(n){var r=this;n.on("click",function(i){if(r._state==="ready"){var a=r.seriesModel.get("nodeClick",!0);if(a){var o=r.findTarget(i.offsetX,i.offsetY);if(o){var l=o.node;if(l.getLayout().isLeafRoot)r._rootToNode(o);else if(a==="zoomToNode")r._zoomToNode(o);else if(a==="link"){var s=l.hostTree.data.getItemModel(l.dataIndex),c=s.get("link",!0),h=s.get("target",!0)||"blank";c&&Yp(c,h)}}}}},this)},e.prototype._renderBreadcrumb=function(n,r,i){var a=this;i||(i=n.get("leafDepth",!0)!=null?{node:n.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),i||(i={node:n.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new BW(this.group))).render(n,r,i.node,function(o){a._state!=="animating"&&(IS(n.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=pf(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(n){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},e.prototype._rootToNode=function(n){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},e.prototype.findTarget=function(n,r){var i,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var l=this._storage.background[o.getRawIndex()];if(l){var s=l.transformCoordToLocal(n,r),c=l.shape;if(c.x<=s[0]&&s[0]<=c.x+c.width&&c.y<=s[1]&&s[1]<=c.y+c.height)i={node:o,offsetX:s[0],offsetY:s[1]};else return!1}},this),i},e.type="treemap",e})(Ye);function pf(){return{nodeGroup:[],background:[],content:[]}}function YW(t,e,n,r,i,a,o,l,s,c){if(!o)return;var h=o.getLayout(),d=t.getData(),g=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!h||!h.isInView)return;var p=h.width,m=h.height,x=h.borderWidth,_=h.invisible,b=o.getRawIndex(),S=l&&l.getRawIndex(),T=o.viewChildren,A=h.upperHeight,D=T&&T.length,M=g.getModel("itemStyle"),k=g.getModel(["emphasis","itemStyle"]),I=g.getModel(["blur","itemStyle"]),z=g.getModel(["select","itemStyle"]),L=M.get("borderRadius")||0,O=st("nodeGroup",Nb);if(!O)return;if(s.add(O),O.x=h.x||0,O.y=h.y||0,O.markRedraw(),ug(O).nodeWidth=p,ug(O).nodeHeight=m,h.isAboveViewRoot)return O;var H=st("background",iL,c,FW);H&&j(O,H,D&&h.upperLabelHeight);var F=g.getModel("emphasis"),Y=F.get("focus"),W=F.get("blurScope"),V=F.get("disabled"),X=Y==="ancestor"?o.getAncestorsIndices():Y==="descendant"?o.getDescendantIndices():Y;if(D)oh(O)&&Bl(O,!1),H&&(Bl(H,!V),d.setItemGraphicEl(o.dataIndex,H),tb(H,X,W));else{var Z=st("content",iL,c,GW);Z&&U(O,Z),H.disableMorphing=!0,H&&oh(H)&&Bl(H,!1),Bl(O,!V),d.setItemGraphicEl(o.dataIndex,O);var tt=g.getShallow("cursor");tt&&Z.attr("cursor",tt),tb(O,X,W)}return O;function j(gt,dt,Dt){var yt=$t(dt);if(yt.dataIndex=o.dataIndex,yt.seriesIndex=t.seriesIndex,dt.setShape({x:0,y:0,width:p,height:m,r:L}),_)q(dt);else{dt.invisible=!1;var Mt=o.getVisual("style"),_e=Mt.stroke,Jt=sL(M);Jt.fill=_e;var he=kl(k);he.fill=k.get("borderColor");var Me=kl(I);Me.fill=I.get("borderColor");var Je=kl(z);if(Je.fill=z.get("borderColor"),Dt){var cr=p-2*x;P(dt,_e,Mt.opacity,{x,y:0,width:cr,height:A})}else dt.removeTextContent();dt.setStyle(Jt),dt.ensureState("emphasis").style=he,dt.ensureState("blur").style=Me,dt.ensureState("select").style=Je,Qx(dt)}gt.add(dt)}function U(gt,dt){var Dt=$t(dt);Dt.dataIndex=o.dataIndex,Dt.seriesIndex=t.seriesIndex;var yt=Math.max(p-2*x,0),Mt=Math.max(m-2*x,0);if(dt.culling=!0,dt.setShape({x,y:x,width:yt,height:Mt,r:L}),_)q(dt);else{dt.invisible=!1;var _e=o.getVisual("style"),Jt=_e.fill,he=sL(M);he.fill=Jt,he.decal=_e.decal;var Me=kl(k),Je=kl(I),cr=kl(z);P(dt,Jt,_e.opacity,null),dt.setStyle(he),dt.ensureState("emphasis").style=Me,dt.ensureState("blur").style=Je,dt.ensureState("select").style=cr,Qx(dt)}gt.add(dt)}function q(gt){!gt.invisible&&a.push(gt)}function P(gt,dt,Dt,yt){var Mt=g.getModel(yt?lL:oL),_e=Un(g.get("name"),null),Jt=Mt.getShallow("show");yi(gt,Qr(g,yt?lL:oL),{defaultText:Jt?_e:null,inheritColor:dt,defaultOpacity:Dt,labelFetcher:t,labelDataIndex:o.dataIndex});var he=gt.getTextContent();if(he){var Me=he.style,Je=_g(Me.padding||0);yt&&(gt.setTextConfig({layoutRect:yt}),he.disableLabelLayout=!0),he.beforeUpdate=function(){var An=Math.max((yt?yt.width:gt.shape.width)-Je[1]-Je[3],0),ni=Math.max((yt?yt.height:gt.shape.height)-Je[0]-Je[2],0);(Me.width!==An||Me.height!==ni)&&he.setStyle({width:An,height:ni})},Me.truncateMinChar=2,Me.lineOverflow="truncate",J(Me,yt,h);var cr=he.getState("emphasis");J(cr?cr.style:null,yt,h)}}function J(gt,dt,Dt){var yt=gt?gt.text:null;if(!dt&&Dt.isLeafRoot&&yt!=null){var Mt=t.get("drillDownIcon",!0);gt.text=Mt?Mt+" "+yt:yt}}function st(gt,dt,Dt,yt){var Mt=S!=null&&n[gt][S],_e=i[gt];return Mt?(n[gt][S]=null,mt(_e,Mt)):_||(Mt=new dt,Mt instanceof Xu&&(Mt.z2=WW(Dt,yt)),wt(_e,Mt)),e[gt][b]=Mt}function mt(gt,dt){var Dt=gt[b]={};dt instanceof Nb?(Dt.oldX=dt.x,Dt.oldY=dt.y):Dt.oldShape=ht({},dt.shape)}function wt(gt,dt){var Dt=gt[b]={},yt=o.parentNode,Mt=dt instanceof ie;if(yt&&(!r||r.direction==="drillDown")){var _e=0,Jt=0,he=i.background[yt.getRawIndex()];!r&&he&&he.oldShape&&(_e=he.oldShape.width,Jt=he.oldShape.height),Mt?(Dt.oldX=0,Dt.oldY=Jt):Dt.oldShape={x:_e,y:Jt,width:0,height:0}}Dt.fadein=!Mt}}function WW(t,e){return t*jW+e}var _h=N,XW=Lt,cg=-1,fn=(function(){function t(e){var n=e.mappingMethod,r=e.type,i=this.option=Rt(e);this.type=r,this.mappingMethod=n,this._normalizeData=$W[n];var a=t.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],n==="piecewise"?(B1(i),qW(i)):n==="category"?i.categories?ZW(i):B1(i,!0):($r(n!=="linear"||i.dataExtent),B1(i))}return t.prototype.mapValueToVisual=function(e){var n=this._normalizeData(e);return this._normalizedToVisual(n,e)},t.prototype.getNormalizer=function(){return Tt(this._normalizeData,this)},t.listVisualTypes=function(){return Be(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(e,n,r){Lt(e)?N(e,n,r):n.call(r,e)},t.mapVisual=function(e,n,r){var i,a=pt(e)?[]:Lt(e)?{}:(i=!0,null);return t.eachVisual(e,function(o,l){var s=n.call(r,o,l);i?a=s:a[l]=s}),a},t.retrieveVisuals=function(e){var n={},r;return e&&_h(t.visualHandlers,function(i,a){e.hasOwnProperty(a)&&(n[a]=e[a],r=!0)}),r?n:null},t.prepareVisualTypes=function(e){if(pt(e))e=e.slice();else if(XW(e)){var n=[];_h(e,function(r,i){n.push(i)}),e=n}else return[];return e.sort(function(r,i){return i==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},t.dependsOn=function(e,n){return n==="color"?!!(e&&e.indexOf(n)===0):e===n},t.findPieceIndex=function(e,n,r){for(var i,a=1/0,o=0,l=n.length;o<l;o++){var s=n[o].value;if(s!=null){if(s===e||St(s)&&s===e+"")return o;r&&g(s,o)}}for(var o=0,l=n.length;o<l;o++){var c=n[o],h=c.interval,d=c.close;if(h){if(h[0]===-1/0){if($v(d[1],e,h[1]))return o}else if(h[1]===1/0){if($v(d[0],h[0],e))return o}else if($v(d[0],h[0],e)&&$v(d[1],e,h[1]))return o;r&&g(h[0],o),r&&g(h[1],o)}}if(r)return e===1/0?n.length-1:e===-1/0?0:i;function g(p,m){var x=Math.abs(p-e);x<a&&(a=x,i=m)}},t.visualHandlers={color:{applyVisual:gf("color"),getColorMapper:function(){var e=this.option;return Tt(e.mappingMethod==="category"?function(n,r){return!r&&(n=this._normalizeData(n)),zf.call(this,n)}:function(n,r,i){var a=!!i;return!r&&(n=this._normalizeData(n)),i=D0(n,e.parsedVisual,i),a?i:Ca(i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Ca(D0(e,this.option.parsedVisual),"rgba")},category:zf,piecewise:function(e,n){var r=Vb.call(this,n);return r==null&&(r=Ca(D0(e,this.option.parsedVisual),"rgba")),r},fixed:Ll}},colorHue:Zv(function(e,n){return Ao(e,n)}),colorSaturation:Zv(function(e,n){return Ao(e,null,n)}),colorLightness:Zv(function(e,n){return Ao(e,null,null,n)}),colorAlpha:Zv(function(e,n){return lI(e,n)}),decal:{applyVisual:gf("decal"),_normalizedToVisual:{linear:null,category:zf,piecewise:null,fixed:null}},opacity:{applyVisual:gf("opacity"),_normalizedToVisual:Pb([0,1])},liftZ:{applyVisual:gf("liftZ"),_normalizedToVisual:{linear:Ll,category:Ll,piecewise:Ll,fixed:Ll}},symbol:{applyVisual:function(e,n,r){var i=this.mapValueToVisual(e);r("symbol",i)},_normalizedToVisual:{linear:uL,category:zf,piecewise:function(e,n){var r=Vb.call(this,n);return r==null&&(r=uL.call(this,e)),r},fixed:Ll}},symbolSize:{applyVisual:gf("symbolSize"),_normalizedToVisual:Pb([0,1])}},t})();function qW(t){var e=t.pieceList;t.hasSpecialVisual=!1,N(e,function(n,r){n.originIndex=r,n.visual!=null&&(t.hasSpecialVisual=!0)})}function ZW(t){var e=t.categories,n=t.categoryMap={},r=t.visual;if(_h(e,function(o,l){n[o]=l}),!pt(r)){var i=[];Lt(r)?_h(r,function(o,l){var s=n[l];i[s??cg]=o}):i[cg]=r,r=rB(t,i)}for(var a=e.length-1;a>=0;a--)r[a]==null&&(delete n[e[a]],e.pop())}function B1(t,e){var n=t.visual,r=[];Lt(n)?_h(n,function(a){r.push(a)}):n!=null&&r.push(n);var i={color:1,symbol:1};!e&&r.length===1&&!i.hasOwnProperty(t.type)&&(r[1]=r[0]),rB(t,r)}function Zv(t){return{applyVisual:function(e,n,r){var i=this.mapValueToVisual(e);r("color",t(n("color"),i))},_normalizedToVisual:Pb([0,1])}}function uL(t){var e=this.option.visual;return e[Math.round(ue(t,[0,1],[0,e.length-1],!0))]||{}}function gf(t){return function(e,n,r){r(t,this.mapValueToVisual(e))}}function zf(t){var e=this.option.visual;return e[this.option.loop&&t!==cg?t%e.length:t]}function Ll(){return this.option.visual[0]}function Pb(t){return{linear:function(e){return ue(e,t,this.option.visual,!0)},category:zf,piecewise:function(e,n){var r=Vb.call(this,n);return r==null&&(r=ue(e,t,this.option.visual,!0)),r},fixed:Ll}}function Vb(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var r=fn.findPieceIndex(t,n),i=n[r];if(i&&i.visual)return i.visual[this.type]}}function rB(t,e){return t.visual=e,t.type==="color"&&(t.parsedVisual=bt(e,function(n){var r=qr(n);return r||[0,0,0,1]})),e}var $W={linear:function(t){return ue(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=fn.findPieceIndex(t,e,!0);if(n!=null)return ue(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return e??cg},fixed:cn};function $v(t,e,n){return t?e<=n:e<n}var QW="itemStyle",iB=be();const KW={seriesType:"treemap",reset:function(t){var e=t.getData().tree,n=e.root;n.isRemoved()||aB(n,{},t.getViewRoot().getAncestors(),t)}};function aB(t,e,n,r){var i=t.getModel(),a=t.getLayout(),o=t.hostTree.data;if(!(!a||a.invisible||!a.isInView)){var l=i.getModel(QW),s=JW(l,e,r),c=o.ensureUniqueItemVisual(t.dataIndex,"style"),h=l.get("borderColor"),d=l.get("borderColorSaturation"),g;d!=null&&(g=cL(s),h=tX(d,g)),c.stroke=h;var p=t.viewChildren;if(!p||!p.length)g=cL(s),c.fill=g;else{var m=eX(t,i,a,l,s,p);N(p,function(x,_){if(x.depth>=n.length||x===n[x.depth]){var b=nX(i,s,x,_,m,r);aB(x,b,n,r)}})}}}function JW(t,e,n){var r=ht({},e),i=n.designatedVisualItemStyle;return N(["color","colorAlpha","colorSaturation"],function(a){i[a]=e[a];var o=t.get(a);i[a]=null,o!=null&&(r[a]=o)}),r}function cL(t){var e=N1(t,"color");if(e){var n=N1(t,"colorAlpha"),r=N1(t,"colorSaturation");return r&&(e=Ao(e,null,null,r)),n&&(e=lI(e,n)),e}}function tX(t,e){return e!=null?Ao(e,null,null,t):null}function N1(t,e){var n=t[e];if(n!=null&&n!=="none")return n}function eX(t,e,n,r,i,a){if(!(!a||!a.length)){var o=P1(e,"color")||i.color!=null&&i.color!=="none"&&(P1(e,"colorAlpha")||P1(e,"colorSaturation"));if(o){var l=e.get("visualMin"),s=e.get("visualMax"),c=n.dataExtent.slice();l!=null&&l<c[0]&&(c[0]=l),s!=null&&s>c[1]&&(c[1]=s);var h=e.get("colorMappingBy"),d={type:o.name,dataExtent:c,visual:o.range};d.type==="color"&&(h==="index"||h==="id")?(d.mappingMethod="category",d.loop=!0):d.mappingMethod="linear";var g=new fn(d);return iB(g).drColorMappingBy=h,g}}}function P1(t,e){var n=t.get(e);return pt(n)&&n.length?{name:e,range:n}:null}function nX(t,e,n,r,i,a){var o=ht({},e);if(i){var l=i.type,s=l==="color"&&iB(i).drColorMappingBy,c=s==="index"?r:s==="id"?a.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));o[l]=i.mapValueToVisual(c)}return o}var Sh=Math.max,fg=Math.min,fL=Io,zS=N,oB=["itemStyle","borderWidth"],rX=["itemStyle","gapWidth"],iX=["upperLabel","show"],aX=["upperLabel","height"];const oX={seriesType:"treemap",reset:function(t,e,n,r){var i=t.option,a=ti(t,n).refContainer,o=On(t.getBoxLayoutParams(),a),l=i.size||[],s=At(fL(o.width,l[0]),a.width),c=At(fL(o.height,l[1]),a.height),h=r&&r.type,d=["treemapZoomToNode","treemapRootToNode"],g=bh(r,d,t),p=h==="treemapRender"||h==="treemapMove"?r.rootRect:null,m=t.getViewRoot(),x=tB(m);if(h!=="treemapMove"){var _=h==="treemapZoomToNode"?hX(t,g,m,s,c):p?[p.width,p.height]:[s,c],b=i.sort;b&&b!=="asc"&&b!=="desc"&&(b="desc");var S={squareRatio:i.squareRatio,sort:b,leafDepth:i.leafDepth};m.hostTree.clearLayouts();var T={x:0,y:0,width:_[0],height:_[1],area:_[0]*_[1]};m.setLayout(T),lB(m,S,!1,0),T=m.getLayout(),zS(x,function(D,M){var k=(x[M+1]||m).getValue();D.setLayout(ht({dataExtent:[k,k],borderWidth:0,upperHeight:0},T))})}var A=t.getData().tree.root;A.setLayout(dX(o,p,g),!0),t.setLayoutInfo(o),sB(A,new Pt(-o.x,-o.y,n.getWidth(),n.getHeight()),x,m,0)}};function lB(t,e,n,r){var i,a;if(!t.isRemoved()){var o=t.getLayout();i=o.width,a=o.height;var l=t.getModel(),s=l.get(oB),c=l.get(rX)/2,h=uB(l),d=Math.max(s,h),g=s-c,p=d-c;t.setLayout({borderWidth:s,upperHeight:d,upperLabelHeight:h},!0),i=Sh(i-2*g,0),a=Sh(a-g-p,0);var m=i*a,x=lX(t,l,m,e,n,r);if(x.length){var _={x:g,y:p,width:i,height:a},b=fg(i,a),S=1/0,T=[];T.area=0;for(var A=0,D=x.length;A<D;){var M=x[A];T.push(M),T.area+=M.getLayout().area;var k=fX(T,b,e.squareRatio);k<=S?(A++,S=k):(T.area-=T.pop().getLayout().area,hL(T,b,_,c,!1),b=fg(_.width,_.height),T.length=T.area=0,S=1/0)}if(T.length&&hL(T,b,_,c,!0),!n){var I=l.get("childrenVisibleMin");I!=null&&m<I&&(n=!0)}for(var A=0,D=x.length;A<D;A++)lB(x[A],e,n,r+1)}}}function lX(t,e,n,r,i,a){var o=t.children||[],l=r.sort;l!=="asc"&&l!=="desc"&&(l=null);var s=r.leafDepth!=null&&r.leafDepth<=a;if(i&&!s)return t.viewChildren=[];o=Ze(o,function(p){return!p.isRemoved()}),uX(o,l);var c=cX(e,o,l);if(c.sum===0)return t.viewChildren=[];if(c.sum=sX(e,n,c.sum,l,o),c.sum===0)return t.viewChildren=[];for(var h=0,d=o.length;h<d;h++){var g=o[h].getValue()/c.sum*n;o[h].setLayout({area:g})}return s&&(o.length&&t.setLayout({isLeafRoot:!0},!0),o.length=0),t.viewChildren=o,t.setLayout({dataExtent:c.dataExtent},!0),o}function sX(t,e,n,r,i){if(!r)return n;for(var a=t.get("visibleMin"),o=i.length,l=o,s=o-1;s>=0;s--){var c=i[r==="asc"?o-s-1:s].getValue();c/n*e<a&&(l=s,n-=c)}return r==="asc"?i.splice(0,o-l):i.splice(l,o-l),n}function uX(t,e){return e&&t.sort(function(n,r){var i=e==="asc"?n.getValue()-r.getValue():r.getValue()-n.getValue();return i===0?e==="asc"?n.dataIndex-r.dataIndex:r.dataIndex-n.dataIndex:i}),t}function cX(t,e,n){for(var r=0,i=0,a=e.length;i<a;i++)r+=e[i].getValue();var o=t.get("visualDimension"),l;return!e||!e.length?l=[NaN,NaN]:o==="value"&&n?(l=[e[e.length-1].getValue(),e[0].getValue()],n==="asc"&&l.reverse()):(l=[1/0,-1/0],zS(e,function(s){var c=s.getValue(o);c<l[0]&&(l[0]=c),c>l[1]&&(l[1]=c)})),{sum:r,dataExtent:l}}function fX(t,e,n){for(var r=0,i=1/0,a=0,o=void 0,l=t.length;a<l;a++)o=t[a].getLayout().area,o&&(o<i&&(i=o),o>r&&(r=o));var s=t.area*t.area,c=e*e*n;return s?Sh(c*r/s,s/(c*i)):1/0}function hL(t,e,n,r,i){var a=e===n.width?0:1,o=1-a,l=["x","y"],s=["width","height"],c=n[l[a]],h=e?t.area/e:0;(i||h>n[s[o]])&&(h=n[s[o]]);for(var d=0,g=t.length;d<g;d++){var p=t[d],m={},x=h?p.getLayout().area/h:0,_=m[s[o]]=Sh(h-2*r,0),b=n[l[a]]+n[s[a]]-c,S=d===g-1||b<x?b:x,T=m[s[a]]=Sh(S-2*r,0);m[l[o]]=n[l[o]]+fg(r,_/2),m[l[a]]=c+fg(r,T/2),c+=S,p.setLayout(m,!0)}n[l[o]]+=h,n[s[o]]-=h}function hX(t,e,n,r,i){var a=(e||{}).node,o=[r,i];if(!a||a===n)return o;for(var l,s=r*i,c=s*t.option.zoomToNodeRatio;l=a.parentNode;){for(var h=0,d=l.children,g=0,p=d.length;g<p;g++)h+=d[g].getValue();var m=a.getValue();if(m===0)return o;c*=h/m;var x=l.getModel(),_=x.get(oB),b=Math.max(_,uB(x));c+=4*_*_+(3*_+b)*Math.pow(c,.5),c>iA&&(c=iA),a=l}c<s&&(c=s);var S=Math.pow(c/s,.5);return[r*S,i*S]}function dX(t,e,n){if(e)return{x:e.x,y:e.y};var r={x:0,y:0};if(!n)return r;var i=n.node,a=i.getLayout();if(!a)return r;for(var o=[a.width/2,a.height/2],l=i;l;){var s=l.getLayout();o[0]+=s.x,o[1]+=s.y,l=l.parentNode}return{x:t.width/2-o[0],y:t.height/2-o[1]}}function sB(t,e,n,r,i){var a=t.getLayout(),o=n[i],l=o&&o===t;if(!(o&&!l||i===n.length&&t!==r)){t.setLayout({isInView:!0,invisible:!l&&!e.intersect(a),isAboveViewRoot:l},!0);var s=new Pt(e.x-a.x,e.y-a.y,e.width,e.height);zS(t.viewChildren||[],function(c){sB(c,s,n,r,i+1)})}}function uB(t){return t.get(iX)?t.get(aX):0}function vX(t){t.registerSeriesModel(IW),t.registerChartView(UW),t.registerVisual(KW),t.registerLayout(oX),RW(t)}function lu(t){return"_EC_"+t}var pX=(function(){function t(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(e,n){e=e==null?""+n:""+e;var r=this._nodesMap;if(!r[lu(e)]){var i=new El(e,n);return i.hostGraph=this,this.nodes.push(i),r[lu(e)]=i,i}},t.prototype.getNodeByIndex=function(e){var n=this.data.getRawIndex(e);return this.nodes[n]},t.prototype.getNodeById=function(e){return this._nodesMap[lu(e)]},t.prototype.addEdge=function(e,n,r){var i=this._nodesMap,a=this._edgesMap;if(ve(e)&&(e=this.nodes[e]),ve(n)&&(n=this.nodes[n]),e instanceof El||(e=i[lu(e)]),n instanceof El||(n=i[lu(n)]),!(!e||!n)){var o=e.id+"-"+n.id,l=new cB(e,n,r);return l.hostGraph=this,this._directed&&(e.outEdges.push(l),n.inEdges.push(l)),e.edges.push(l),e!==n&&n.edges.push(l),this.edges.push(l),a[o]=l,l}},t.prototype.getEdgeByIndex=function(e){var n=this.edgeData.getRawIndex(e);return this.edges[n]},t.prototype.getEdge=function(e,n){e instanceof El&&(e=e.id),n instanceof El&&(n=n.id);var r=this._edgesMap;return this._directed?r[e+"-"+n]:r[e+"-"+n]||r[n+"-"+e]},t.prototype.eachNode=function(e,n){for(var r=this.nodes,i=r.length,a=0;a<i;a++)r[a].dataIndex>=0&&e.call(n,r[a],a)},t.prototype.eachEdge=function(e,n){for(var r=this.edges,i=r.length,a=0;a<i;a++)r[a].dataIndex>=0&&r[a].node1.dataIndex>=0&&r[a].node2.dataIndex>=0&&e.call(n,r[a],a)},t.prototype.breadthFirstTraverse=function(e,n,r,i){if(n instanceof El||(n=this._nodesMap[lu(n)]),!!n){for(var a=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(i,n,null))for(var l=[n];l.length;)for(var s=l.shift(),c=s[a],o=0;o<c.length;o++){var h=c[o],d=h.node1===s?h.node2:h.node1;if(!d.__visited){if(e.call(i,d,s))return;l.push(d),d.__visited=!0}}}},t.prototype.update=function(){for(var e=this.data,n=this.edgeData,r=this.nodes,i=this.edges,a=0,o=r.length;a<o;a++)r[a].dataIndex=-1;for(var a=0,o=e.count();a<o;a++)r[e.getRawIndex(a)].dataIndex=a;n.filterSelf(function(l){var s=i[n.getRawIndex(l)];return s.node1.dataIndex>=0&&s.node2.dataIndex>=0});for(var a=0,o=i.length;a<o;a++)i[a].dataIndex=-1;for(var a=0,o=n.count();a<o;a++)i[n.getRawIndex(a)].dataIndex=a},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)e.addNode(n[i].id,n[i].dataIndex);for(var i=0;i<r.length;i++){var a=r[i];e.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return e},t})(),El=(function(){function t(e,n){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=n??-1}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var n=this.hostGraph,r=n.data.getItemModel(this.dataIndex);return r.getModel(e)}},t.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},n=0;n<this.edges.length;n++){var r=this.edges[n];r.dataIndex<0||(e.edge.push(r.dataIndex),e.node.push(r.node1.dataIndex,r.node2.dataIndex))}return e},t.prototype.getTrajectoryDataIndices=function(){for(var e=Bt(),n=Bt(),r=0,i=this.edges.length;r<i;r++){var a=this.edges[r];if(!(a.dataIndex<0)){e.set(a.dataIndex,!0);for(var o=[a.node1],l=[a.node2],s=0;s<o.length;){var c=o[s];s++,n.set(c.dataIndex,!0);for(var h=c.inEdges,d=0,g=h.length,p=void 0,m=void 0;d<g;d++)p=h[d],m=p.dataIndex,m>=0&&!e.hasKey(m)&&(e.set(m,!0),o.push(p.node1))}for(s=0;s<l.length;){var x=l[s];s++,n.set(x.dataIndex,!0);for(var _=x.outEdges,d=0,b=_.length,S=void 0,T=void 0;d<b;d++)S=_[d],T=S.dataIndex,T>=0&&!e.hasKey(T)&&(e.set(T,!0),l.push(S.node2))}}}return{edge:e.keys(),node:n.keys()}},t})(),cB=(function(){function t(e,n,r){this.dataIndex=-1,this.node1=e,this.node2=n,this.dataIndex=r??-1}return t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var n=this.hostGraph,r=n.edgeData.getItemModel(this.dataIndex);return r.getModel(e)}},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t.prototype.getTrajectoryDataIndices=function(){var e=Bt(),n=Bt();e.set(this.dataIndex,!0);for(var r=[this.node1],i=[this.node2],a=0;a<r.length;){var o=r[a];a++,n.set(o.dataIndex,!0);for(var l=o.inEdges,s=0,c=l.length,h=void 0,d=void 0;s<c;s++)h=o.inEdges[s],d=h.dataIndex,d>=0&&!e.hasKey(d)&&(e.set(d,!0),r.push(h.node1))}for(a=0;a<i.length;){var g=i[a];a++,n.set(g.dataIndex,!0);for(var p=g.outEdges,s=0,c=p.length,m=void 0,x=void 0;s<c;s++)m=g.outEdges[s],x=m.dataIndex,x>=0&&!e.hasKey(x)&&(e.set(x,!0),i.push(m.node2))}return{edge:e.keys(),node:n.keys()}},t})();function fB(t,e){return{getValue:function(n){var r=this[t][e];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}Xn(El,fB("hostGraph","data"));Xn(cB,fB("hostGraph","edgeData"));function gX(t,e,n,r,i){for(var a=new pX(r),o=0;o<t.length;o++)a.addNode(Io(t[o].id,t[o].name,o),o);for(var l=[],s=[],c=0,o=0;o<e.length;o++){var h=e[o],d=h.source,g=h.target;a.addEdge(d,g,c)&&(s.push(h),l.push(Io(Un(h.id,null),d+" > "+g)),c++)}var p=n.get("coordinateSystem"),m;if(p==="cartesian2d"||p==="polar"||p==="matrix")m=Qu(t,n);else{var x=zh.get(p),_=x?x.dimensions||[]:[];Yt(_,"value")<0&&_.concat(["value"]);var b=jg(t,{coordDimensions:_,encodeDefine:n.getEncode()}).dimensions;m=new vh(b,n),m.initData(t)}var S=new vh(["value"],n);return S.initData(s,l),i&&i(m,S),Q5({mainData:m,struct:a,structAttr:"graph",datas:{node:m,edge:S},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var mX=(function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t})(),yX=(function(t){at(e,t);function e(n){var r=t.call(this,n)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new mX},e.prototype.buildPath=function(n,r){var i=Math.cos,a=Math.sin,o=r.r,l=r.width,s=r.angle,c=r.x-i(s)*l*(l>=o/3?1:2),h=r.y-a(s)*l*(l>=o/3?1:2);s=r.angle-Math.PI/2,n.moveTo(c,h),n.lineTo(r.x+i(s)*l,r.y+a(s)*l),n.lineTo(r.x+i(r.angle)*o,r.y+a(r.angle)*o),n.lineTo(r.x-i(s)*l,r.y-a(s)*l),n.lineTo(c,h)},e})(fe);function xX(t,e){var n=t.get("center"),r=e.getWidth(),i=e.getHeight(),a=Math.min(r,i),o=At(n[0],e.getWidth()),l=At(n[1],e.getHeight()),s=At(t.get("radius"),a/2);return{cx:o,cy:l,r:s}}function Qv(t,e){var n=t==null?"":t+"";return e&&(St(e)?n=e.replace("{value}",n):It(e)&&(n=e(t))),n}var bX=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){this.group.removeAll();var a=n.get(["axisLine","lineStyle","color"]),o=xX(n,i);this._renderMain(n,r,i,a,o),this._data=n.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(n,r,i,a,o){var l=this.group,s=n.get("clockwise"),c=-n.get("startAngle")/180*Math.PI,h=-n.get("endAngle")/180*Math.PI,d=n.getModel("axisLine"),g=d.get("roundCap"),p=g?og:mi,m=d.get("show"),x=d.getModel("lineStyle"),_=x.get("width"),b=[c,h];E_(b,!s),c=b[0],h=b[1];for(var S=h-c,T=c,A=[],D=0;m&&D<a.length;D++){var M=Math.min(Math.max(a[D][0],0),1);h=c+S*M;var k=new p({shape:{startAngle:T,endAngle:h,cx:o.cx,cy:o.cy,clockwise:s,r0:o.r-_,r:o.r},silent:!0});k.setStyle({fill:a[D][1]}),k.setStyle(x.getLineStyle(["color","width"])),A.push(k),T=h}A.reverse(),N(A,function(z){return l.add(z)});var I=function(z){if(z<=0)return a[0][1];var L;for(L=0;L<a.length;L++)if(a[L][0]>=z&&(L===0?0:a[L-1][0])<z)return a[L][1];return a[L-1][1]};this._renderTicks(n,r,i,I,o,c,h,s,_),this._renderTitleAndDetail(n,r,i,I,o),this._renderAnchor(n,o),this._renderPointer(n,r,i,I,o,c,h,s,_)},e.prototype._renderTicks=function(n,r,i,a,o,l,s,c,h){for(var d=this.group,g=o.cx,p=o.cy,m=o.r,x=+n.get("min"),_=+n.get("max"),b=n.getModel("splitLine"),S=n.getModel("axisTick"),T=n.getModel("axisLabel"),A=n.get("splitNumber"),D=S.get("splitNumber"),M=At(b.get("length"),m),k=At(S.get("length"),m),I=l,z=(s-l)/A,L=z/D,O=b.getModel("lineStyle").getLineStyle(),H=S.getModel("lineStyle").getLineStyle(),F=b.get("distance"),Y,W,V=0;V<=A;V++){if(Y=Math.cos(I),W=Math.sin(I),b.get("show")){var X=F?F+h:h,Z=new Fi({shape:{x1:Y*(m-X)+g,y1:W*(m-X)+p,x2:Y*(m-M-X)+g,y2:W*(m-M-X)+p},style:O,silent:!0});O.stroke==="auto"&&Z.setStyle({stroke:a(V/A)}),d.add(Z)}if(T.get("show")){var X=T.get("distance")+F,tt=Qv(gn(V/A*(_-x)+x),T.get("formatter")),j=a(V/A),U=Y*(m-M-X)+g,q=W*(m-M-X)+p,P=T.get("rotate"),J=0;P==="radial"?(J=-I+2*Math.PI,J>Math.PI/2&&(J+=Math.PI)):P==="tangential"?J=-I-Math.PI/2:ve(P)&&(J=P*Math.PI/180),J===0?d.add(new me({style:$e(T,{text:tt,x:U,y:q,verticalAlign:W<-.8?"top":W>.8?"bottom":"middle",align:Y<-.4?"left":Y>.4?"right":"center"},{inheritColor:j}),silent:!0})):d.add(new me({style:$e(T,{text:tt,x:U,y:q,verticalAlign:"middle",align:"center"},{inheritColor:j}),silent:!0,originX:U,originY:q,rotation:J}))}if(S.get("show")&&V!==A){var X=S.get("distance");X=X?X+h:h;for(var st=0;st<=D;st++){Y=Math.cos(I),W=Math.sin(I);var mt=new Fi({shape:{x1:Y*(m-X)+g,y1:W*(m-X)+p,x2:Y*(m-k-X)+g,y2:W*(m-k-X)+p},silent:!0,style:H});H.stroke==="auto"&&mt.setStyle({stroke:a((V+st/D)/A)}),d.add(mt),I+=L}I-=L}else I+=z}},e.prototype._renderPointer=function(n,r,i,a,o,l,s,c,h){var d=this.group,g=this._data,p=this._progressEls,m=[],x=n.get(["pointer","show"]),_=n.getModel("progress"),b=_.get("show"),S=n.getData(),T=S.mapDimension("value"),A=+n.get("min"),D=+n.get("max"),M=[A,D],k=[l,s];function I(L,O){var H=S.getItemModel(L),F=H.getModel("pointer"),Y=At(F.get("width"),o.r),W=At(F.get("length"),o.r),V=n.get(["pointer","icon"]),X=F.get("offsetCenter"),Z=At(X[0],o.r),tt=At(X[1],o.r),j=F.get("keepAspect"),U;return V?U=Yn(V,Z-Y/2,tt-W,Y,W,null,j):U=new yX({shape:{angle:-Math.PI/2,width:Y,r:W,x:Z,y:tt}}),U.rotation=-(O+Math.PI/2),U.x=o.cx,U.y=o.cy,U}function z(L,O){var H=_.get("roundCap"),F=H?og:mi,Y=_.get("overlap"),W=Y?_.get("width"):h/S.count(),V=Y?o.r-W:o.r-(L+1)*W,X=Y?o.r:o.r-L*W,Z=new F({shape:{startAngle:l,endAngle:O,cx:o.cx,cy:o.cy,clockwise:c,r0:V,r:X}});return Y&&(Z.z2=ue(S.get(T,L),[A,D],[100,0],!0)),Z}(b||x)&&(S.diff(g).add(function(L){var O=S.get(T,L);if(x){var H=I(L,l);Qe(H,{rotation:-((isNaN(+O)?k[0]:ue(O,M,k,!0))+Math.PI/2)},n),d.add(H),S.setItemGraphicEl(L,H)}if(b){var F=z(L,l),Y=_.get("clip");Qe(F,{shape:{endAngle:ue(O,M,k,Y)}},n),d.add(F),Zx(n.seriesIndex,S.dataType,L,F),m[L]=F}}).update(function(L,O){var H=S.get(T,L);if(x){var F=g.getItemGraphicEl(O),Y=F?F.rotation:l,W=I(L,Y);W.rotation=Y,He(W,{rotation:-((isNaN(+H)?k[0]:ue(H,M,k,!0))+Math.PI/2)},n),d.add(W),S.setItemGraphicEl(L,W)}if(b){var V=p[O],X=V?V.shape.endAngle:l,Z=z(L,X),tt=_.get("clip");He(Z,{shape:{endAngle:ue(H,M,k,tt)}},n),d.add(Z),Zx(n.seriesIndex,S.dataType,L,Z),m[L]=Z}}).execute(),S.each(function(L){var O=S.getItemModel(L),H=O.getModel("emphasis"),F=H.get("focus"),Y=H.get("blurScope"),W=H.get("disabled");if(x){var V=S.getItemGraphicEl(L),X=S.getItemVisual(L,"style"),Z=X.fill;if(V instanceof Jr){var tt=V.style;V.useStyle(ht({image:tt.image,x:tt.x,y:tt.y,width:tt.width,height:tt.height},X))}else V.useStyle(X),V.type!=="pointer"&&V.setColor(Z);V.setStyle(O.getModel(["pointer","itemStyle"]).getItemStyle()),V.style.fill==="auto"&&V.setStyle("fill",a(ue(S.get(T,L),M,[0,1],!0))),V.z2EmphasisLift=0,Cr(V,O),In(V,F,Y,W)}if(b){var j=m[L];j.useStyle(S.getItemVisual(L,"style")),j.setStyle(O.getModel(["progress","itemStyle"]).getItemStyle()),j.z2EmphasisLift=0,Cr(j,O),In(j,F,Y,W)}}),this._progressEls=m)},e.prototype._renderAnchor=function(n,r){var i=n.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),l=i.get("icon"),s=i.get("offsetCenter"),c=i.get("keepAspect"),h=Yn(l,r.cx-o/2+At(s[0],r.r),r.cy-o/2+At(s[1],r.r),o,o,null,c);h.z2=i.get("showAbove")?1:0,h.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(h)}},e.prototype._renderTitleAndDetail=function(n,r,i,a,o){var l=this,s=n.getData(),c=s.mapDimension("value"),h=+n.get("min"),d=+n.get("max"),g=new ie,p=[],m=[],x=n.isAnimationEnabled(),_=n.get(["pointer","showAbove"]);s.diff(this._data).add(function(b){p[b]=new me({silent:!0}),m[b]=new me({silent:!0})}).update(function(b,S){p[b]=l._titleEls[S],m[b]=l._detailEls[S]}).execute(),s.each(function(b){var S=s.getItemModel(b),T=s.get(c,b),A=new ie,D=a(ue(T,[h,d],[0,1],!0)),M=S.getModel("title");if(M.get("show")){var k=M.get("offsetCenter"),I=o.cx+At(k[0],o.r),z=o.cy+At(k[1],o.r),L=p[b];L.attr({z2:_?0:2,style:$e(M,{x:I,y:z,text:s.getName(b),align:"center",verticalAlign:"middle"},{inheritColor:D})}),A.add(L)}var O=S.getModel("detail");if(O.get("show")){var H=O.get("offsetCenter"),F=o.cx+At(H[0],o.r),Y=o.cy+At(H[1],o.r),W=At(O.get("width"),o.r),V=At(O.get("height"),o.r),X=n.get(["progress","show"])?s.getItemVisual(b,"style").fill:D,L=m[b],Z=O.get("formatter");L.attr({z2:_?0:2,style:$e(O,{x:F,y:Y,text:Qv(T,Z),width:isNaN(W)?null:W,height:isNaN(V)?null:V,align:"center",verticalAlign:"middle"},{inheritColor:X})}),uO(L,{normal:O},T,function(j){return Qv(j,Z)}),x&&Tj(L,b,s,n,{getFormattedLabel:function(j,U,q,P,J,st){return Qv(st?st.interpolatedValue:T,Z)}}),A.add(L)}g.add(A)}),this.group.add(g),this._titleEls=p,this._detailEls=m},e.type="gauge",e})(Ye),_X=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return e.prototype.getInitialData=function(n,r){return Hh(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,ot.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:ot.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:ot.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:ot.color.axisLabel,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:ot.color.neutral00,borderWidth:0,borderColor:ot.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:ot.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:ot.color.transparent,borderWidth:0,borderColor:ot.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:ot.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e})(Ke);function SX(t){t.registerChartView(bX),t.registerSeriesModel(_X)}var wX=["itemStyle","opacity"],TX=(function(t){at(e,t);function e(n,r){var i=t.call(this)||this,a=i,o=new Yi,l=new me;return a.setTextContent(l),i.setTextGuideLine(o),i.updateData(n,r,!0),i}return e.prototype.updateData=function(n,r,i){var a=this,o=n.hostModel,l=n.getItemModel(r),s=n.getItemLayout(r),c=l.getModel("emphasis"),h=l.get(wX);h=h??1,i||Da(a),a.useStyle(n.getItemVisual(r,"style")),a.style.lineJoin="round",i?(a.setShape({points:s.points}),a.style.opacity=0,Qe(a,{style:{opacity:h}},o,r)):He(a,{style:{opacity:h},shape:{points:s.points}},o,r),Cr(a,l),this._updateLabel(n,r),In(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype._updateLabel=function(n,r){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),l=n.hostModel,s=n.getItemModel(r),c=n.getItemLayout(r),h=c.label,d=n.getItemVisual(r,"style"),g=d.fill;yi(o,Qr(s),{labelFetcher:n.hostModel,labelDataIndex:r,defaultOpacity:d.opacity,defaultText:n.getName(r)},{normal:{align:h.textAlign,verticalAlign:h.verticalAlign}});var p=s.getModel("label"),m=p.get("color"),x=m==="inherit"?g:null;i.setTextConfig({local:!0,inside:!!h.inside,insideStroke:x,outsideFill:x});var _=h.linePoints;a.setShape({points:_}),i.textGuideLineConfig={anchor:_?new jt(_[0][0],_[0][1]):null},He(o,{style:{x:h.x,y:h.y}},l,r),o.attr({rotation:h.rotation,originX:h.x,originY:h.y,z2:10}),c5(i,f5(s),{stroke:g})},e})(Ui),CX=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return e.prototype.render=function(n,r,i){var a=n.getData(),o=this._data,l=this.group;a.diff(o).add(function(s){var c=new TX(a,s);a.setItemGraphicEl(s,c),l.add(c)}).update(function(s,c){var h=o.getItemGraphicEl(c);h.updateData(a,s),l.add(h),a.setItemGraphicEl(s,h)}).remove(function(s){var c=o.getItemGraphicEl(s);ku(c,n,s)}).execute(),this._data=a},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e})(Ye),MX=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new CS(Tt(this.getData,this),Tt(this.getRawData,this)),this._defaultLabelLine(n)},e.prototype.getInitialData=function(n,r){return Hh(this,{coordDimensions:["value"],encodeDefaulter:Wt(EO,this)})},e.prototype._defaultLabelLine=function(n){zp(n,"labelLine",["show"]);var r=n.labelLine,i=n.emphasis.labelLine;r.show=r.show&&n.label.show,i.show=i.show&&n.emphasis.label.show},e.prototype.getDataParams=function(n){var r=this.getData(),i=t.prototype.getDataParams.call(this,n),a=r.mapDimension("value"),o=r.getSum(a);return i.percent=o?+(r.get(a,n)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,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:ot.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:ot.color.primary}}},e})(Ke);function AX(t,e){for(var n=t.mapDimension("value"),r=t.mapArray(n,function(s){return s}),i=[],a=e==="ascending",o=0,l=t.count();o<l;o++)i[o]=o;return It(e)?i.sort(e):e!=="none"&&i.sort(function(s,c){return a?r[s]-r[c]:r[c]-r[s]}),i}function DX(t){var e=t.hostModel,n=e.get("orient");t.each(function(r){var i=t.getItemModel(r),a=i.getModel("label"),o=a.get("position"),l=i.getModel("labelLine"),s=t.getItemLayout(r),c=s.points,h=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",d,g,p,m;if(h)o==="insideLeft"?(g=(c[0][0]+c[3][0])/2+5,p=(c[0][1]+c[3][1])/2,d="left"):o==="insideRight"?(g=(c[1][0]+c[2][0])/2-5,p=(c[1][1]+c[2][1])/2,d="right"):(g=(c[0][0]+c[1][0]+c[2][0]+c[3][0])/4,p=(c[0][1]+c[1][1]+c[2][1]+c[3][1])/4,d="center"),m=[[g,p],[g,p]];else{var x=void 0,_=void 0,b=void 0,S=void 0,T=l.get("length");o==="left"?(x=(c[3][0]+c[0][0])/2,_=(c[3][1]+c[0][1])/2,b=x-T,g=b-5,d="right"):o==="right"?(x=(c[1][0]+c[2][0])/2,_=(c[1][1]+c[2][1])/2,b=x+T,g=b+5,d="left"):o==="top"?(x=(c[3][0]+c[0][0])/2,_=(c[3][1]+c[0][1])/2,S=_-T,p=S-5,d="center"):o==="bottom"?(x=(c[1][0]+c[2][0])/2,_=(c[1][1]+c[2][1])/2,S=_+T,p=S+5,d="center"):o==="rightTop"?(x=n==="horizontal"?c[3][0]:c[1][0],_=n==="horizontal"?c[3][1]:c[1][1],n==="horizontal"?(S=_-T,p=S-5,d="center"):(b=x+T,g=b+5,d="top")):o==="rightBottom"?(x=c[2][0],_=c[2][1],n==="horizontal"?(S=_+T,p=S+5,d="center"):(b=x+T,g=b+5,d="bottom")):o==="leftTop"?(x=c[0][0],_=n==="horizontal"?c[0][1]:c[1][1],n==="horizontal"?(S=_-T,p=S-5,d="center"):(b=x-T,g=b-5,d="right")):o==="leftBottom"?(x=n==="horizontal"?c[1][0]:c[3][0],_=n==="horizontal"?c[1][1]:c[2][1],n==="horizontal"?(S=_+T,p=S+5,d="center"):(b=x-T,g=b-5,d="right")):(x=(c[1][0]+c[2][0])/2,_=(c[1][1]+c[2][1])/2,n==="horizontal"?(S=_+T,p=S+5,d="center"):(b=x+T,g=b+5,d="left")),n==="horizontal"?(b=x,g=b):(S=_,p=S),m=[[x,_],[b,S]]}s.label={linePoints:m,x:g,y:p,verticalAlign:"middle",textAlign:d,inside:h}})}function kX(t,e){t.eachSeriesByType("funnel",function(n){var r=n.getData(),i=r.mapDimension("value"),a=n.get("sort"),o=ti(n,e),l=On(n.getBoxLayoutParams(),o.refContainer),s=n.get("orient"),c=l.width,h=l.height,d=AX(r,a),g=l.x,p=l.y,m=s==="horizontal"?[At(n.get("minSize"),h),At(n.get("maxSize"),h)]:[At(n.get("minSize"),c),At(n.get("maxSize"),c)],x=r.getDataExtent(i),_=n.get("min"),b=n.get("max");_==null&&(_=Math.min(x[0],0)),b==null&&(b=x[1]);var S=n.get("funnelAlign"),T=n.get("gap"),A=s==="horizontal"?c:h,D=(A-T*(r.count()-1))/r.count(),M=function(W,V){if(s==="horizontal"){var X=r.get(i,W)||0,Z=ue(X,[_,b],m,!0),tt=void 0;switch(S){case"top":tt=p;break;case"center":tt=p+(h-Z)/2;break;case"bottom":tt=p+(h-Z);break}return[[V,tt],[V,tt+Z]]}var j=r.get(i,W)||0,U=ue(j,[_,b],m,!0),q;switch(S){case"left":q=g;break;case"center":q=g+(c-U)/2;break;case"right":q=g+c-U;break}return[[q,V],[q+U,V]]};a==="ascending"&&(D=-D,T=-T,s==="horizontal"?g+=c:p+=h,d=d.reverse());for(var k=0;k<d.length;k++){var I=d[k],z=d[k+1],L=r.getItemModel(I);if(s==="horizontal"){var O=L.get(["itemStyle","width"]);O==null?O=D:(O=At(O,c),a==="ascending"&&(O=-O));var H=M(I,g),F=M(z,g+O);g+=O+T,r.setItemLayout(I,{points:H.concat(F.slice().reverse())})}else{var Y=L.get(["itemStyle","height"]);Y==null?Y=D:(Y=At(Y,h),a==="ascending"&&(Y=-Y));var H=M(I,p),F=M(z,p+Y);p+=Y+T,r.setItemLayout(I,{points:H.concat(F.slice().reverse())})}}DX(r)})}function LX(t){t.registerChartView(CX),t.registerSeriesModel(MX),t.registerLayout(kX),t.registerProcessor(Fg("funnel"))}function Jl(t,e,n,r,i,a){t=t||0;var o=n[1]-n[0];if(i!=null&&(i=su(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r==="all"){var l=Math.abs(e[1]-e[0]);l=su(l,[0,o]),i=a=su(l,[i,a]),r=0}e[0]=su(e[0],n),e[1]=su(e[1],n);var s=V1(e,r);e[r]+=t;var c=i||0,h=n.slice();s.sign<0?h[0]+=c:h[1]-=c,e[r]=su(e[r],h);var d;return d=V1(e,r),i!=null&&(d.sign!==s.sign||d.span<i)&&(e[1-r]=e[r]+s.sign*i),d=V1(e,r),a!=null&&d.span>a&&(e[1-r]=e[r]+d.sign*a),e}function V1(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function su(t,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,t))}var ts=!0,wh=Math.min,Hu=Math.max,EX=Math.pow,RX=1e4,IX=6,OX=6,dL="globalPan",zX={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},BX={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},vL={brushStyle:{lineWidth:2,stroke:ot.color.backgroundTint,fill:ot.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},NX=0,hB=(function(t){at(e,t);function e(n){var r=t.call(this)||this;return r._track=[],r._covers=[],r._handlers={},r._zr=n,r.group=new ie,r._uid="brushController_"+NX++,N(UX,function(i,a){this._handlers[a]=Tt(i,this)},r),r}return e.prototype.enableBrush=function(n){return this._brushType&&this._doDisableBrush(),n.brushType&&this._doEnableBrush(n),this},e.prototype._doEnableBrush=function(n){var r=this._zr;this._enableGlobalPan||dW(r,dL,this._uid),N(this._handlers,function(i,a){r.on(a,i)}),this._brushType=n.brushType,this._brushOption=Xt(Rt(vL),n,!0)},e.prototype._doDisableBrush=function(){var n=this._zr;vW(n,dL,this._uid),N(this._handlers,function(r,i){n.off(i,r)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(n){if(n&&n.length){var r=this._panels={};N(n,function(i){r[i.panelId]=Rt(i)})}else this._panels=null;return this},e.prototype.mount=function(n){n=n||{},this._enableGlobalPan=n.enableGlobalPan;var r=this.group;return this._zr.add(r),r.attr({x:n.x||0,y:n.y||0,rotation:n.rotation||0,scaleX:n.scaleX||1,scaleY:n.scaleY||1}),this._transform=r.getLocalTransform(),this},e.prototype.updateCovers=function(n){n=bt(n,function(g){return Xt(Rt(vL),g,!0)});var r="\0-brush-index-",i=this._covers,a=this._covers=[],o=this,l=this._creatingCover;return new Ph(i,n,c,s).add(h).update(h).remove(d).execute(),this;function s(g,p){return(g.id!=null?g.id:r+p)+"-"+g.brushType}function c(g,p){return s(g.__brushOption,p)}function h(g,p){var m=n[g];if(p!=null&&i[p]===l)a[g]=i[p];else{var x=a[g]=p!=null?(i[p].__brushOption=m,i[p]):vB(o,dB(o,m));BS(o,x)}}function d(g){i[g]!==l&&o.group.remove(i[g])}},e.prototype.unmount=function(){return this.enableBrush(!1),Hb(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e})(Kr);function dB(t,e){var n=Ug[e.brushType].createCover(t,e);return n.__brushOption=e,gB(n,e),t.group.add(n),n}function vB(t,e){var n=NS(e);return n.endCreating&&(n.endCreating(t,e),gB(e,e.__brushOption)),e}function pB(t,e){var n=e.__brushOption;NS(e).updateCoverShape(t,e,n.range,n)}function gB(t,e){var n=e.z;n==null&&(n=RX),t.traverse(function(r){r.z=n,r.z2=n})}function BS(t,e){NS(e).updateCommon(t,e),pB(t,e)}function NS(t){return Ug[t.__brushOption.brushType]}function PS(t,e,n){var r=t._panels;if(!r)return ts;var i,a=t._transform;return N(r,function(o){o.isTargetByCursor(e,n,a)&&(i=o)}),i}function mB(t,e){var n=t._panels;if(!n)return ts;var r=e.__brushOption.panelId;return r!=null?n[r]:ts}function Hb(t){var e=t._covers,n=e.length;return N(e,function(r){t.group.remove(r)},t),e.length=0,!!n}function es(t,e){var n=bt(t._covers,function(r){var i=r.__brushOption,a=Rt(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function PX(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],r=e[0],i=n[0]-r[0],a=n[1]-r[1],o=EX(i*i+a*a,.5);return o>IX}function yB(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function xB(t,e,n,r){var i=new ie;return i.add(new le({name:"main",style:VS(n),silent:!0,draggable:!0,cursor:"move",drift:Wt(pL,t,e,i,["n","s","w","e"]),ondragend:Wt(es,e,{isEnd:!0})})),N(r,function(a){i.add(new le({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Wt(pL,t,e,i,a),ondragend:Wt(es,e,{isEnd:!0})}))}),i}function bB(t,e,n,r){var i=r.brushStyle.lineWidth||0,a=Hu(i,OX),o=n[0][0],l=n[1][0],s=o-i/2,c=l-i/2,h=n[0][1],d=n[1][1],g=h-a+i/2,p=d-a+i/2,m=h-o,x=d-l,_=m+i,b=x+i;ya(t,e,"main",o,l,m,x),r.transformable&&(ya(t,e,"w",s,c,a,b),ya(t,e,"e",g,c,a,b),ya(t,e,"n",s,c,_,a),ya(t,e,"s",s,p,_,a),ya(t,e,"nw",s,c,a,a),ya(t,e,"ne",g,c,a,a),ya(t,e,"sw",s,p,a,a),ya(t,e,"se",g,p,a,a))}function jb(t,e){var n=e.__brushOption,r=n.transformable,i=e.childAt(0);i.useStyle(VS(n)),i.attr({silent:!r,cursor:r?"move":"default"}),N([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=e.childOfName(a.join("")),l=a.length===1?Fb(t,a[0]):HX(t,a);o&&o.attr({silent:!r,invisible:!r,cursor:r?BX[l]+"-resize":null})})}function ya(t,e,n,r,i,a,o){var l=e.childOfName(n);l&&l.setShape(FX(HS(t,e,[[r,i],[r+a,i+o]])))}function VS(t){return qt({strokeNoScale:!0},t.brushStyle)}function _B(t,e,n,r){var i=[wh(t,n),wh(e,r)],a=[Hu(t,n),Hu(e,r)];return[[i[0],a[0]],[i[1],a[1]]]}function VX(t){return Ul(t.group)}function Fb(t,e){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=Og(n[e],VX(t));return r[i]}function HX(t,e){var n=[Fb(t,e[0]),Fb(t,e[1])];return(n[0]==="e"||n[0]==="w")&&n.reverse(),n.join("")}function pL(t,e,n,r,i,a){var o=n.__brushOption,l=t.toRectRange(o.range),s=SB(e,i,a);N(r,function(c){var h=zX[c];l[h[0]][h[1]]+=s[h[0]]}),o.range=t.fromRectRange(_B(l[0][0],l[1][0],l[0][1],l[1][1])),BS(e,n),es(e,{isEnd:!1})}function jX(t,e,n,r){var i=e.__brushOption.range,a=SB(t,n,r);N(i,function(o){o[0]+=a[0],o[1]+=a[1]}),BS(t,e),es(t,{isEnd:!1})}function SB(t,e,n){var r=t.group,i=r.transformCoordToLocal(e,n),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function HS(t,e,n){var r=mB(t,e);return r&&r!==ts?r.clipPath(n,t._transform):Rt(n)}function FX(t){var e=wh(t[0][0],t[1][0]),n=wh(t[0][1],t[1][1]),r=Hu(t[0][0],t[1][0]),i=Hu(t[0][1],t[1][1]);return{x:e,y:n,width:r-e,height:i-n}}function GX(t,e,n){if(!(!t._brushType||YX(t,e.offsetX,e.offsetY))){var r=t._zr,i=t._covers,a=PS(t,e,n);if(!t._dragging)for(var o=0;o<i.length;o++){var l=i[o].__brushOption;if(a&&(a===ts||l.panelId===a.panelId)&&Ug[l.brushType].contain(i[o],n[0],n[1]))return}a&&r.setCursorStyle("crosshair")}}function Gb(t){var e=t.event;e.preventDefault&&e.preventDefault()}function Ub(t,e,n){return t.childOfName("main").contain(e,n)}function wB(t,e,n,r){var i=t._creatingCover,a=t._creatingPanel,o=t._brushOption,l;if(t._track.push(n.slice()),PX(t)||i){if(a&&!i){o.brushMode==="single"&&Hb(t);var s=Rt(o);s.brushType=gL(s.brushType,a),s.panelId=a===ts?null:a.panelId,i=t._creatingCover=dB(t,s),t._covers.push(i)}if(i){var c=Ug[gL(t._brushType,a)],h=i.__brushOption;h.range=c.getCreatingRange(HS(t,i,t._track)),r&&(vB(t,i),c.updateCommon(t,i)),pB(t,i),l={isEnd:r}}}else r&&o.brushMode==="single"&&o.removeOnClick&&PS(t,e,n)&&Hb(t)&&(l={isEnd:r,removeOnClick:!0});return l}function gL(t,e){return t==="auto"?e.defaultBrushType:t}var UX={mousedown:function(t){if(this._dragging)mL(this,t);else if(!t.target||!t.target.draggable){Gb(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var n=this._creatingPanel=PS(this,t,e);n&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,r=this.group.transformCoordToLocal(e,n);if(GX(this,t,r),this._dragging){Gb(t);var i=wB(this,t,r,!1);i&&es(this,i)}},mouseup:function(t){mL(this,t)}};function mL(t,e){if(t._dragging){Gb(e);var n=e.offsetX,r=e.offsetY,i=t.group.transformCoordToLocal(n,r),a=wB(t,e,i,!0);t._dragging=!1,t._track=[],t._creatingCover=null,a&&es(t,a)}}function YX(t,e,n){var r=t._zr;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}var Ug={lineX:yL(0),lineY:yL(1),rect:{createCover:function(t,e){function n(r){return r}return xB({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=yB(t);return _B(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,r){bB(t,e,n,r)},updateCommon:jb,contain:Ub},polygon:{createCover:function(t,e){var n=new ie;return n.add(new Yi({name:"main",style:VS(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Ui({name:"main",draggable:!0,drift:Wt(jX,t,e),ondragend:Wt(es,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,r){e.childAt(0).setShape({points:HS(t,e,n)})},updateCommon:jb,contain:Ub}};function yL(t){return{createCover:function(e,n){return xB({toRectRange:function(r){var i=[r,[0,100]];return t&&i.reverse(),i},fromRectRange:function(r){return r[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=yB(e),r=wh(n[0][t],n[1][t]),i=Hu(n[0][t],n[1][t]);return[r,i]},updateCoverShape:function(e,n,r,i){var a,o=mB(e,n);if(o!==ts&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(t);else{var l=e._zr;a=[0,[l.getWidth(),l.getHeight()][1-t]]}var s=[r,a];t&&s.reverse(),bB(e,n,s,i)},updateCommon:jb,contain:Ub}}function WX(t){return t=jS(t),function(e){return rO(e,t)}}function XX(t,e){return t=jS(t),function(n){var r=e??n,i=r?t.width:t.height,a=r?t.x:t.y;return[a,a+(i||0)]}}function qX(t,e,n){var r=jS(t);return function(i,a){return r.contain(a[0],a[1])&&!Z5(i,e,n)}}function jS(t){return Pt.create(t)}var ZX=(function(){function t(){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 t})(),$X=(function(t){at(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new ZX},e.prototype.buildPath=function(n,r){var i=r.extent;n.moveTo(r.x1,r.y1),n.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(n.lineTo(r.x2+i,r.y2),n.bezierCurveTo(r.cpx2+i,r.cpy2,r.cpx1+i,r.cpy1,r.x1+i,r.y1)):(n.lineTo(r.x2,r.y2+i),n.bezierCurveTo(r.cpx2,r.cpy2+i,r.cpx1,r.cpy1+i,r.x1,r.y1+i)),n.closePath()},e.prototype.highlight=function(){$l(this)},e.prototype.downplay=function(){Ql(this)},e})(fe),QX=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new ie,n._focusAdjacencyDisabled=!1,n}return e.prototype.init=function(n,r){this._controller=new LS(r.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(n,r,i){var a=this,o=n.getGraph(),l=this._mainGroup,s=n.layoutInfo,c=s.width,h=s.height,d=n.getData(),g=n.getData("edge"),p=n.get("orient");this._model=n,l.removeAll(),l.x=s.x,l.y=s.y,this._updateViewCoordSys(n,i),_W(n,i,l,this._controller,this._controllerHost),o.eachEdge(function(m){var x=new $X,_=$t(x);_.dataIndex=m.dataIndex,_.seriesIndex=n.seriesIndex,_.dataType="edge";var b=m.getModel(),S=b.getModel("lineStyle"),T=S.get("curveness"),A=m.node1.getLayout(),D=m.node1.getModel(),M=D.get("localX"),k=D.get("localY"),I=m.node2.getLayout(),z=m.node2.getModel(),L=z.get("localX"),O=z.get("localY"),H=m.getLayout(),F,Y,W,V,X,Z,tt,j;x.shape.extent=Math.max(1,H.dy),x.shape.orient=p,p==="vertical"?(F=(M!=null?M*c:A.x)+H.sy,Y=(k!=null?k*h:A.y)+A.dy,W=(L!=null?L*c:I.x)+H.ty,V=O!=null?O*h:I.y,X=F,Z=Y*(1-T)+V*T,tt=W,j=Y*T+V*(1-T)):(F=(M!=null?M*c:A.x)+A.dx,Y=(k!=null?k*h:A.y)+H.sy,W=L!=null?L*c:I.x,V=(O!=null?O*h:I.y)+H.ty,X=F*(1-T)+W*T,Z=Y,tt=F*T+W*(1-T),j=V),x.setShape({x1:F,y1:Y,x2:W,y2:V,cpx1:X,cpy1:Z,cpx2:tt,cpy2:j}),x.useStyle(S.getItemStyle()),xL(x.style,p,m);var U=""+b.get("value"),q=Qr(b,"edgeLabel");yi(x,q,{labelFetcher:{getFormattedLabel:function(st,mt,wt,gt,dt,Dt){return n.getFormattedLabel(st,mt,"edge",gt,Co(dt,q.normal&&q.normal.get("formatter"),U),Dt)}},labelDataIndex:m.dataIndex,defaultText:U}),x.setTextConfig({position:"inside"});var P=b.getModel("emphasis");Cr(x,b,"lineStyle",function(st){var mt=st.getItemStyle();return xL(mt,p,m),mt}),l.add(x),g.setItemGraphicEl(m.dataIndex,x);var J=P.get("focus");In(x,J==="adjacency"?m.getAdjacentDataIndices():J==="trajectory"?m.getTrajectoryDataIndices():J,P.get("blurScope"),P.get("disabled"))}),o.eachNode(function(m){var x=m.getLayout(),_=m.getModel(),b=_.get("localX"),S=_.get("localY"),T=_.getModel("emphasis"),A=_.get(["itemStyle","borderRadius"])||0,D=new le({shape:{x:b!=null?b*c:x.x,y:S!=null?S*h:x.y,width:x.dx,height:x.dy,r:A},style:_.getModel("itemStyle").getItemStyle(),z2:10});yi(D,Qr(_),{labelFetcher:{getFormattedLabel:function(k,I){return n.getFormattedLabel(k,I,"node")}},labelDataIndex:m.dataIndex,defaultText:m.id}),D.disableLabelAnimation=!0,D.setStyle("fill",m.getVisual("color")),D.setStyle("decal",m.getVisual("style").decal),Cr(D,_),l.add(D),d.setItemGraphicEl(m.dataIndex,D),$t(D).dataType="node";var M=T.get("focus");In(D,M==="adjacency"?m.getAdjacentDataIndices():M==="trajectory"?m.getTrajectoryDataIndices():M,T.get("blurScope"),T.get("disabled"))}),d.eachItemGraphicEl(function(m,x){var _=d.getItemModel(x);_.get("draggable")&&(m.drift=function(b,S){a._focusAdjacencyDisabled=!0,this.shape.x+=b,this.shape.y+=S,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:n.id,dataIndex:d.getRawIndex(x),localX:this.shape.x/c,localY:this.shape.y/h})},m.ondragend=function(){a._focusAdjacencyDisabled=!1},m.draggable=!0,m.cursor="move")}),!this._data&&n.isAnimationEnabled()&&l.setClipPath(KX(l.getBoundingRect(),n,function(){l.removeClipPath()})),this._data=n.getData()},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._updateViewCoordSys=function(n,r){var i=n.layoutInfo,a=i.width,o=i.height,l=n.coordinateSystem=new wW(null,{api:r,ecModel:n.ecModel});l.zoomLimit=n.get("scaleLimit"),l.setBoundingRect(0,0,a,o),l.setCenter(n.get("center")),l.setZoom(n.get("zoom")),this._controllerHost.target.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY})},e.type="sankey",e})(Ye);function xL(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),i=n.node2.getVisual("color");St(r)&&St(i)&&(t.fill=new Ig(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:i,offset:1}]))}}function KX(t,e,n){var r=new le({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Qe(r,{shape:{width:t.width+20}},e,n),r}var JX=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(n,r){var i=n.edges||n.links||[],a=n.data||n.nodes||[],o=n.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 xe(o[s],this,r));var c=gX(a,i,this,!0,h);return c.data;function h(d,g){d.wrapMethod("getItemModel",function(p,m){var x=p.parentModel,_=x.getData().getItemLayout(m);if(_){var b=_.depth,S=x.levelModels[b];S&&(p.parentModel=S)}return p}),g.wrapMethod("getItemModel",function(p,m){var x=p.parentModel,_=x.getGraph().getEdgeByIndex(m),b=_.node1.getLayout();if(b){var S=b.depth,T=x.levelModels[S];T&&(p.parentModel=T)}return p})}},e.prototype.setNodePosition=function(n,r){var i=this.option.data||this.option.nodes,a=i[n];a.localX=r[0],a.localY=r[1]},e.prototype.setCenter=function(n){this.option.center=n},e.prototype.setZoom=function(n){this.option.zoom=n},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(n,r,i){function a(p){return isNaN(p)||p==null}if(i==="edge"){var o=this.getDataParams(n,i),l=o.data,s=o.value,c=l.source+" -- "+l.target;return Gi("nameValue",{name:c,value:s,noValue:a(s)})}else{var h=this.getGraph().getNodeByIndex(n),d=h.getLayout().value,g=this.getDataParams(n,i).data.name;return Gi("nameValue",{name:g!=null?g+"":null,value:d,noValue:a(d)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(n,r){var i=t.prototype.getDataParams.call(this,n,r);if(i.value==null&&r==="node"){var a=this.getGraph().getNodeByIndex(n),o=a.getLayout().value;i.value=o}return i},e.type="series.sankey",e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:ot.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:ot.color.primary}},animationEasing:"linear",animationDuration:1e3},e})(Ke);function tq(t,e){t.eachSeriesByType("sankey",function(n){var r=n.get("nodeWidth"),i=n.get("nodeGap"),a=ti(n,e).refContainer,o=On(n.getBoxLayoutParams(),a);n.layoutInfo=o;var l=o.width,s=o.height,c=n.getGraph(),h=c.nodes,d=c.edges;nq(h);var g=Ze(h,function(_){return _.getLayout().value===0}),p=g.length!==0?0:n.get("layoutIterations"),m=n.get("orient"),x=n.get("nodeAlign");eq(h,d,r,i,l,s,p,m,x)})}function eq(t,e,n,r,i,a,o,l,s){rq(t,e,n,i,a,l,s),lq(t,e,a,i,r,o,l),gq(t,l)}function nq(t){N(t,function(e){var n=Lo(e.outEdges,hg),r=Lo(e.inEdges,hg),i=e.getValue()||0,a=Math.max(n,r,i);e.setLayout({value:a},!0)})}function rq(t,e,n,r,i,a,o){for(var l=[],s=[],c=[],h=[],d=0,g=0;g<e.length;g++)l[g]=1;for(var g=0;g<t.length;g++)s[g]=t[g].inEdges.length,s[g]===0&&c.push(t[g]);for(var p=-1;c.length;){for(var m=0;m<c.length;m++){var x=c[m],_=x.hostGraph.data.getRawDataItem(x.dataIndex),b=_.depth!=null&&_.depth>=0;b&&_.depth>p&&(p=_.depth),x.setLayout({depth:b?_.depth:d},!0),a==="vertical"?x.setLayout({dy:n},!0):x.setLayout({dx:n},!0);for(var S=0;S<x.outEdges.length;S++){var T=x.outEdges[S],A=e.indexOf(T);l[A]=0;var D=T.node2,M=t.indexOf(D);--s[M]===0&&h.indexOf(D)<0&&h.push(D)}}++d,c=h,h=[]}for(var g=0;g<l.length;g++)if(l[g]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var k=p>d-1?p:d-1;o&&o!=="left"&&iq(t,o,a,k);var I=a==="vertical"?(i-n)/k:(r-n)/k;oq(t,I,a)}function TB(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return e.depth!=null&&e.depth>=0}function iq(t,e,n,r){if(e==="right"){for(var i=[],a=t,o=0;a.length;){for(var l=0;l<a.length;l++){var s=a[l];s.setLayout({skNodeHeight:o},!0);for(var c=0;c<s.inEdges.length;c++){var h=s.inEdges[c];i.indexOf(h.node1)<0&&i.push(h.node1)}}a=i,i=[],++o}N(t,function(d){TB(d)||d.setLayout({depth:Math.max(0,r-d.getLayout().skNodeHeight)},!0)})}else e==="justify"&&aq(t,r)}function aq(t,e){N(t,function(n){!TB(n)&&!n.outEdges.length&&n.setLayout({depth:e},!0)})}function oq(t,e,n){N(t,function(r){var i=r.getLayout().depth*e;n==="vertical"?r.setLayout({y:i},!0):r.setLayout({x:i},!0)})}function lq(t,e,n,r,i,a,o){var l=sq(t,o);uq(l,e,n,r,i,o),H1(l,i,n,r,o);for(var s=1;a>0;a--)s*=.99,cq(l,s,o),H1(l,i,n,r,o),pq(l,s,o),H1(l,i,n,r,o)}function sq(t,e){var n=[],r=e==="vertical"?"y":"x",i=bH(t,function(a){return a.getLayout()[r]});return i.keys.sort(function(a,o){return a-o}),N(i.keys,function(a){n.push(i.buckets.get(a))}),n}function uq(t,e,n,r,i,a){var o=1/0;N(t,function(l){var s=l.length,c=0;N(l,function(d){c+=d.getLayout().value});var h=a==="vertical"?(r-(s-1)*i)/c:(n-(s-1)*i)/c;h<o&&(o=h)}),N(t,function(l){N(l,function(s,c){var h=s.getLayout().value*o;a==="vertical"?(s.setLayout({x:c},!0),s.setLayout({dx:h},!0)):(s.setLayout({y:c},!0),s.setLayout({dy:h},!0))})}),N(e,function(l){var s=+l.getValue()*o;l.setLayout({dy:s},!0)})}function H1(t,e,n,r,i){var a=i==="vertical"?"x":"y";N(t,function(o){o.sort(function(x,_){return x.getLayout()[a]-_.getLayout()[a]});for(var l,s,c,h=0,d=o.length,g=i==="vertical"?"dx":"dy",p=0;p<d;p++)s=o[p],c=h-s.getLayout()[a],c>0&&(l=s.getLayout()[a]+c,i==="vertical"?s.setLayout({x:l},!0):s.setLayout({y:l},!0)),h=s.getLayout()[a]+s.getLayout()[g]+e;var m=i==="vertical"?r:n;if(c=h-e-m,c>0){l=s.getLayout()[a]-c,i==="vertical"?s.setLayout({x:l},!0):s.setLayout({y:l},!0),h=l;for(var p=d-2;p>=0;--p)s=o[p],c=s.getLayout()[a]+s.getLayout()[g]+e-h,c>0&&(l=s.getLayout()[a]-c,i==="vertical"?s.setLayout({x:l},!0):s.setLayout({y:l},!0)),h=s.getLayout()[a]}})}function cq(t,e,n){N(t.slice().reverse(),function(r){N(r,function(i){if(i.outEdges.length){var a=Lo(i.outEdges,fq,n)/Lo(i.outEdges,hg);if(isNaN(a)){var o=i.outEdges.length;a=o?Lo(i.outEdges,hq,n)/o:0}if(n==="vertical"){var l=i.getLayout().x+(a-No(i,n))*e;i.setLayout({x:l},!0)}else{var s=i.getLayout().y+(a-No(i,n))*e;i.setLayout({y:s},!0)}}})})}function fq(t,e){return No(t.node2,e)*t.getValue()}function hq(t,e){return No(t.node2,e)}function dq(t,e){return No(t.node1,e)*t.getValue()}function vq(t,e){return No(t.node1,e)}function No(t,e){return e==="vertical"?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function hg(t){return t.getValue()}function Lo(t,e,n){for(var r=0,i=t.length,a=-1;++a<i;){var o=+e(t[a],n);isNaN(o)||(r+=o)}return r}function pq(t,e,n){N(t,function(r){N(r,function(i){if(i.inEdges.length){var a=Lo(i.inEdges,dq,n)/Lo(i.inEdges,hg);if(isNaN(a)){var o=i.inEdges.length;a=o?Lo(i.inEdges,vq,n)/o:0}if(n==="vertical"){var l=i.getLayout().x+(a-No(i,n))*e;i.setLayout({x:l},!0)}else{var s=i.getLayout().y+(a-No(i,n))*e;i.setLayout({y:s},!0)}}})})}function gq(t,e){var n=e==="vertical"?"x":"y";N(t,function(r){r.outEdges.sort(function(i,a){return i.node2.getLayout()[n]-a.node2.getLayout()[n]}),r.inEdges.sort(function(i,a){return i.node1.getLayout()[n]-a.node1.getLayout()[n]})}),N(t,function(r){var i=0,a=0;N(r.outEdges,function(o){o.setLayout({sy:i},!0),i+=o.getLayout().dy}),N(r.inEdges,function(o){o.setLayout({ty:a},!0),a+=o.getLayout().dy})})}function mq(t){t.eachSeriesByType("sankey",function(e){var n=e.getGraph(),r=n.nodes,i=n.edges;if(r.length){var a=1/0,o=-1/0;N(r,function(l){var s=l.getLayout().value;s<a&&(a=s),s>o&&(o=s)}),N(r,function(l){var s=new fn({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:e.get("color")}),c=s.mapValueToVisual(l.getLayout().value),h=l.getModel().get(["itemStyle","color"]);h!=null?(l.setVisual("color",h),l.setVisual("style",{fill:h})):(l.setVisual("color",c),l.setVisual("style",{fill:c}))})}i.length&&N(i,function(l){var s=l.getModel().get("lineStyle");l.setVisual("style",s)})})}function yq(t){t.registerChartView(QX),t.registerSeriesModel(JX),t.registerLayout(tq),t.registerVisual(mq),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,n){n.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),t.registerAction({type:"sankeyRoam",event:"sankeyRoam",update:"none"},function(e,n,r){n.eachComponent({mainType:"series",subType:"sankey",query:e},function(i){var a=i.coordinateSystem,o=SW(a,e,i.get("scaleLimit"));i.setCenter(o.center),i.setZoom(o.zoom)})})}var CB=(function(){function t(){}return t.prototype._hasEncodeRule=function(e){var n=this.getEncode();return n&&n.get(e)!=null},t.prototype.getInitialData=function(e,n){var r,i=n.getComponent("xAxis",this.get("xAxisIndex")),a=n.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),l=a.get("type"),s;o==="category"?(e.layout="horizontal",r=i.getOrdinalMeta(),s=!this._hasEncodeRule("x")):l==="category"?(e.layout="vertical",r=a.getOrdinalMeta(),s=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var c=["x","y"],h=e.layout==="horizontal"?0:1,d=this._baseAxisDim=c[h],g=c[1-h],p=[i,a],m=p[h].get("type"),x=p[1-h].get("type"),_=e.data;if(_&&s){var b=[];N(_,function(A,D){var M;pt(A)?(M=A.slice(),A.unshift(D)):pt(A.value)?(M=ht({},A),M.value=M.value.slice(),A.value.unshift(D)):M=A,b.push(M)}),e.data=b}var S=this.defaultValueDimensions,T=[{name:d,type:Tb(m),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:g,type:Tb(x),dimsDef:S.slice()}];return Hh(this,{coordDimensions:T,dimensionsCount:S.length+1,encodeDefaulter:Wt(LO,T,this)})},t.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},t})(),MB=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:ot.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:ot.color.shadow}},animationDuration:800},e})(Ke);Xn(MB,CB,!0);var xq=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var a=n.getData(),o=this.group,l=this._data;this._data||o.removeAll();var s=n.get("layout")==="horizontal"?1:0;a.diff(l).add(function(c){if(a.hasValue(c)){var h=a.getItemLayout(c),d=bL(h,a,c,s,!0);a.setItemGraphicEl(c,d),o.add(d)}}).update(function(c,h){var d=l.getItemGraphicEl(h);if(!a.hasValue(c)){o.remove(d);return}var g=a.getItemLayout(c);d?(Da(d),AB(g,d,a,c)):d=bL(g,a,c,s),o.add(d),a.setItemGraphicEl(c,d)}).remove(function(c){var h=l.getItemGraphicEl(c);h&&o.remove(h)}).execute(),this._data=a},e.prototype.remove=function(n){var r=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(a){a&&r.remove(a)})},e.type="boxplot",e})(Ye),bq=(function(){function t(){}return t})(),_q=(function(t){at(e,t);function e(n){var r=t.call(this,n)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new bq},e.prototype.buildPath=function(n,r){var i=r.points,a=0;for(n.moveTo(i[a][0],i[a][1]),a++;a<4;a++)n.lineTo(i[a][0],i[a][1]);for(n.closePath();a<i.length;a++)n.moveTo(i[a][0],i[a][1]),a++,n.lineTo(i[a][0],i[a][1])},e})(fe);function bL(t,e,n,r,i){var a=t.ends,o=new _q({shape:{points:i?Sq(a,r,t):a}});return AB(t,o,e,n,i),o}function AB(t,e,n,r,i){var a=n.hostModel,o=G_[i?"initProps":"updateProps"];o(e,{shape:{points:t.ends}},a,r),e.useStyle(n.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.z2=100;var l=n.getItemModel(r),s=l.getModel("emphasis");Cr(e,l),In(e,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function Sq(t,e,n){return bt(t,function(r){return r=r.slice(),r[e]=n.initBaseline,r})}var Zf=N;function wq(t){var e=Tq(t);Zf(e,function(n){var r=n.seriesModels;r.length&&(Cq(n),Zf(r,function(i,a){Mq(i,n.boxOffsetList[a],n.boxWidthList[a])}))})}function Tq(t){var e=[],n=[];return t.eachSeriesByType("boxplot",function(r){var i=r.getBaseAxis(),a=Yt(n,i);a<0&&(a=n.length,n[a]=i,e[a]={axis:i,seriesModels:[]}),e[a].seriesModels.push(r)}),e}function Cq(t){var e=t.axis,n=t.seriesModels,r=n.length,i=t.boxWidthList=[],a=t.boxOffsetList=[],o=[],l;if(e.type==="category")l=e.getBandWidth();else{var s=0;Zf(n,function(m){s=Math.max(s,m.getData().count())});var c=e.getExtent();l=Math.abs(c[1]-c[0])/s}Zf(n,function(m){var x=m.get("boxWidth");pt(x)||(x=[x,x]),o.push([At(x[0],l)||0,At(x[1],l)||0])});var h=l*.8-2,d=h/r*.3,g=(h-d*(r-1))/r,p=g/2-h/2;Zf(n,function(m,x){a.push(p),p+=d+g,i.push(Math.min(Math.max(g,o[x][0]),o[x][1]))})}function Mq(t,e,n){var r=t.coordinateSystem,i=t.getData(),a=n/2,o=t.get("layout")==="horizontal"?0:1,l=1-o,s=["x","y"],c=i.mapDimension(s[o]),h=i.mapDimensionsAll(s[l]);if(c==null||h.length<5)return;for(var d=0;d<i.count();d++){var g=i.get(c,d),p=T(g,h[2],d),m=T(g,h[0],d),x=T(g,h[1],d),_=T(g,h[3],d),b=T(g,h[4],d),S=[];A(S,x,!1),A(S,_,!0),S.push(m,x,b,_),D(S,m),D(S,b),D(S,p),i.setItemLayout(d,{initBaseline:p[l],ends:S})}function T(M,k,I){var z=i.get(k,I),L=[];L[o]=M,L[l]=z;var O;return isNaN(M)||isNaN(z)?O=[NaN,NaN]:(O=r.dataToPoint(L),O[o]+=e),O}function A(M,k,I){var z=k.slice(),L=k.slice();z[o]+=a,L[o]-=a,I?M.push(z,L):M.push(L,z)}function D(M,k){var I=k.slice(),z=k.slice();I[o]-=a,z[o]+=a,M.push(I,z)}}function Aq(t,e){e=e||{};for(var n=[],r=[],i=e.boundIQR,a=i==="none"||i===0,o=0;o<t.length;o++){var l=yo(t[o].slice()),s=j0(l,.25),c=j0(l,.5),h=j0(l,.75),d=l[0],g=l[l.length-1],p=(i??1.5)*(h-s),m=a?d:Math.max(d,s-p),x=a?g:Math.min(g,h+p),_=e.itemNameFormatter,b=It(_)?_({value:o}):St(_)?_.replace("{value}",o+""):o+"";n.push([b,m,s,c,h,x]);for(var S=0;S<l.length;S++){var T=l[S];if(T<m||T>x){var A=[b,T];r.push(A)}}}return{boxData:n,outliers:r}}var Dq={type:"echarts:boxplot",transform:function(e){var n=e.upstream;if(n.sourceFormat!==Cn){var r="";jn(r)}var i=Aq(n.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function kq(t){t.registerSeriesModel(MB),t.registerChartView(xq),t.registerLayout(wq),t.registerTransform(Dq)}var Lq=["itemStyle","borderColor"],Eq=["itemStyle","borderColor0"],Rq=["itemStyle","borderColorDoji"],Iq=["itemStyle","color"],Oq=["itemStyle","color0"];function FS(t,e){return e.get(t>0?Iq:Oq)}function GS(t,e){return e.get(t===0?Rq:t>0?Lq:Eq)}var zq={seriesType:"candlestick",plan:Bh(),performRawSeries:!0,reset:function(t,e){if(!e.isSeriesFiltered(t)){var n=t.pipelineContext.large;return!n&&{progress:function(r,i){for(var a;(a=r.next())!=null;){var o=i.getItemModel(a),l=i.getItemLayout(a).sign,s=o.getItemStyle();s.fill=FS(l,o),s.stroke=GS(l,o)||s.fill;var c=i.ensureUniqueItemVisual(a,"style");ht(c,s)}}}}}},Bq=["color","borderColor"],Nq=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(n),this._isLargeDraw?this._renderLarge(n):this._renderNormal(n)},e.prototype.incrementalPrepareRender=function(n,r,i){this._clear(),this._updateDrawMode(n)},e.prototype.incrementalRender=function(n,r,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(n,r):this._incrementalRenderNormal(n,r)},e.prototype.eachRendered=function(n){qu(this._progressiveEls||this.group,n)},e.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(n){var r=n.getData(),i=this._data,a=this.group,o=r.getLayout("isSimpleBox"),l=n.get("clip",!0),s=n.coordinateSystem,c=s.getArea&&s.getArea();this._data||a.removeAll(),r.diff(i).add(function(h){if(r.hasValue(h)){var d=r.getItemLayout(h);if(l&&_L(c,d))return;var g=j1(d,h,!0);Qe(g,{shape:{points:d.ends}},n,h),F1(g,r,h,o),a.add(g),r.setItemGraphicEl(h,g)}}).update(function(h,d){var g=i.getItemGraphicEl(d);if(!r.hasValue(h)){a.remove(g);return}var p=r.getItemLayout(h);if(l&&_L(c,p)){a.remove(g);return}g?(He(g,{shape:{points:p.ends}},n,h),Da(g)):g=j1(p),F1(g,r,h,o),a.add(g),r.setItemGraphicEl(h,g)}).remove(function(h){var d=i.getItemGraphicEl(h);d&&a.remove(d)}).execute(),this._data=r},e.prototype._renderLarge=function(n){this._clear(),SL(n,this.group);var r=n.get("clip",!0)?S5(n.coordinateSystem,!1,n):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(n,r){for(var i=r.getData(),a=i.getLayout("isSimpleBox"),o;(o=n.next())!=null;){var l=i.getItemLayout(o),s=j1(l);F1(s,i,o,a),s.incremental=!0,this.group.add(s),this._progressiveEls.push(s)}},e.prototype._incrementalRenderLarge=function(n,r){SL(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(n){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e})(Ye),Pq=(function(){function t(){}return t})(),Vq=(function(t){at(e,t);function e(n){var r=t.call(this,n)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new Pq},e.prototype.buildPath=function(n,r){var i=r.points;this.__simpleBox?(n.moveTo(i[4][0],i[4][1]),n.lineTo(i[6][0],i[6][1])):(n.moveTo(i[0][0],i[0][1]),n.lineTo(i[1][0],i[1][1]),n.lineTo(i[2][0],i[2][1]),n.lineTo(i[3][0],i[3][1]),n.closePath(),n.moveTo(i[4][0],i[4][1]),n.lineTo(i[5][0],i[5][1]),n.moveTo(i[6][0],i[6][1]),n.lineTo(i[7][0],i[7][1]))},e})(fe);function j1(t,e,n){var r=t.ends;return new Vq({shape:{points:n?Hq(r,t):r},z2:100})}function _L(t,e){for(var n=!0,r=0;r<e.ends.length;r++)if(t.contain(e.ends[r][0],e.ends[r][1])){n=!1;break}return n}function F1(t,e,n,r){var i=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=r,Cr(t,i);var a=e.getItemLayout(n).sign;N(t.states,function(l,s){var c=i.getModel(s),h=FS(a,c),d=GS(a,c)||h,g=l.style||(l.style={});h&&(g.fill=h),d&&(g.stroke=d)});var o=i.getModel("emphasis");In(t,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function Hq(t,e){return bt(t,function(n){return n=n.slice(),n[1]=e.initBaseline,n})}var jq=(function(){function t(){}return t})(),G1=(function(t){at(e,t);function e(n){var r=t.call(this,n)||this;return r.type="largeCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new jq},e.prototype.buildPath=function(n,r){for(var i=r.points,a=0;a<i.length;)if(this.__sign===i[a++]){var o=i[a++];n.moveTo(o,i[a++]),n.lineTo(o,i[a++])}else a+=3},e})(fe);function SL(t,e,n,r){var i=t.getData(),a=i.getLayout("largePoints"),o=new G1({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});e.add(o);var l=new G1({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});e.add(l);var s=new G1({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});e.add(s),U1(1,o,t),U1(-1,l,t),U1(0,s,t),r&&(o.incremental=!0,l.incremental=!0),n&&n.push(o,l)}function U1(t,e,n,r){var i=GS(t,n)||FS(t,n),a=n.getModel("itemStyle").getItemStyle(Bq);e.useStyle(a),e.style.fill=null,e.style.stroke=i}var DB=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(n,r,i){var a=r.getItemLayout(n);return a&&i.rect(a.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})(Ke);Xn(DB,CB,!0);function Fq(t){!t||!pt(t.series)||N(t.series,function(e){Lt(e)&&e.type==="k"&&(e.type="candlestick")})}var Gq={seriesType:"candlestick",plan:Bh(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),r=Uq(t,n),i=0,a=1,o=["x","y"],l=n.getDimensionIndex(n.mapDimension(o[i])),s=bt(n.mapDimensionsAll(o[a]),n.getDimensionIndex,n),c=s[0],h=s[1],d=s[2],g=s[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),l<0||s.length<4)return;return{progress:t.pipelineContext.large?m:p};function p(x,_){for(var b,S=_.getStore();(b=x.next())!=null;){var T=S.get(l,b),A=S.get(c,b),D=S.get(h,b),M=S.get(d,b),k=S.get(g,b),I=Math.min(A,D),z=Math.max(A,D),L=X(I,T),O=X(z,T),H=X(M,T),F=X(k,T),Y=[];Z(Y,O,0),Z(Y,L,1),Y.push(j(F),j(O),j(H),j(L));var W=_.getItemModel(b),V=!!W.get(["itemStyle","borderColorDoji"]);_.setItemLayout(b,{sign:wL(S,b,A,D,h,V),initBaseline:A>D?O[a]:L[a],ends:Y,brushRect:tt(M,k,T)})}function X(U,q){var P=[];return P[i]=q,P[a]=U,isNaN(q)||isNaN(U)?[NaN,NaN]:e.dataToPoint(P)}function Z(U,q,P){var J=q.slice(),st=q.slice();J[i]=dp(J[i]+r/2,1,!1),st[i]=dp(st[i]-r/2,1,!0),P?U.push(J,st):U.push(st,J)}function tt(U,q,P){var J=X(U,P),st=X(q,P);return J[i]-=r/2,st[i]-=r/2,{x:J[0],y:J[1],width:r,height:st[1]-J[1]}}function j(U){return U[i]=dp(U[i],1),U}}function m(x,_){for(var b=Pi(x.count*4),S=0,T,A=[],D=[],M,k=_.getStore(),I=!!t.get(["itemStyle","borderColorDoji"]);(M=x.next())!=null;){var z=k.get(l,M),L=k.get(c,M),O=k.get(h,M),H=k.get(d,M),F=k.get(g,M);if(isNaN(z)||isNaN(H)||isNaN(F)){b[S++]=NaN,S+=3;continue}b[S++]=wL(k,M,L,O,h,I),A[i]=z,A[a]=H,T=e.dataToPoint(A,null,D),b[S++]=T?T[0]:NaN,b[S++]=T?T[1]:NaN,A[a]=F,T=e.dataToPoint(A,null,D),b[S++]=T?T[1]:NaN}_.setLayout("largePoints",b)}}};function wL(t,e,n,r,i,a){var o;return n>r?o=-1:n<r?o=1:o=a?0:e>0?t.get(i,e-1)<=r?1:-1:1,o}function Uq(t,e){var n=t.getBaseAxis(),r,i=n.type==="category"?n.getBandWidth():(r=n.getExtent(),Math.abs(r[1]-r[0])/e.count()),a=At(zt(t.get("barMaxWidth"),i),i),o=At(zt(t.get("barMinWidth"),1),i),l=t.get("barWidth");return l!=null?At(l,i):Math.max(Math.min(i/2,a),o)}function Yq(t){t.registerChartView(Nq),t.registerSeriesModel(DB),t.registerPreprocessor(Fq),t.registerVisual(zq),t.registerLayout(Gq)}var Wq=256,Xq=(function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=gi.createCanvas();this.canvas=e}return t.prototype.update=function(e,n,r,i,a,o){var l=this._getBrush(),s=this._getGradient(a,"inRange"),c=this._getGradient(a,"outOfRange"),h=this.pointSize+this.blurSize,d=this.canvas,g=d.getContext("2d"),p=e.length;d.width=n,d.height=r;for(var m=0;m<p;++m){var x=e[m],_=x[0],b=x[1],S=x[2],T=i(S);g.globalAlpha=T,g.drawImage(l,_-h,b-h)}if(!d.width||!d.height)return d;for(var A=g.getImageData(0,0,d.width,d.height),D=A.data,M=0,k=D.length,I=this.minOpacity,z=this.maxOpacity,L=z-I;M<k;){var T=D[M+3]/256,O=Math.floor(T*(Wq-1))*4;if(T>0){var H=o(T)?s:c;T>0&&(T=T*L+I),D[M++]=H[O],D[M++]=H[O+1],D[M++]=H[O+2],D[M++]=H[O+3]*T*256}else M+=4}return g.putImageData(A,0,0),d},t.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=gi.createCanvas()),n=this.pointSize+this.blurSize,r=n*2;e.width=r,e.height=r;var i=e.getContext("2d");return i.clearRect(0,0,r,r),i.shadowOffsetX=r,i.shadowBlur=this.blurSize,i.shadowColor=ot.color.neutral99,i.beginPath(),i.arc(-n,n,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),e},t.prototype._getGradient=function(e,n){for(var r=this._gradientPixels,i=r[n]||(r[n]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,l=0;l<256;l++)e[n](l/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},t})();function qq(t,e,n){var r=t[1]-t[0];e=bt(e,function(o){return{interval:[(o.interval[0]-t[0])/r,(o.interval[1]-t[0])/r]}});var i=e.length,a=0;return function(o){var l;for(l=a;l<i;l++){var s=e[l].interval;if(s[0]<=o&&o<=s[1]){a=l;break}}if(l===i)for(l=a-1;l>=0;l--){var s=e[l].interval;if(s[0]<=o&&o<=s[1]){a=l;break}}return l>=0&&l<i&&n[l]}}function Zq(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(r){return r>=e[0]&&r<=e[1]}}function TL(t){var e=t.dimensions;return e[0]==="lng"&&e[1]==="lat"}var $q=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var a;r.eachComponent("visualMap",function(l){l.eachTargetSeries(function(s){s===n&&(a=l)})}),this._progressiveEls=null,this.group.removeAll();var o=n.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(n,i,0,n.getData().count()):TL(o)&&this._renderOnGeo(o,n,a,i)},e.prototype.incrementalPrepareRender=function(n,r,i){this.group.removeAll()},e.prototype.incrementalRender=function(n,r,i,a){var o=r.coordinateSystem;o&&(TL(o)?this.render(r,i,a):(this._progressiveEls=[],this._renderOnGridLike(r,a,n.start,n.end,!0)))},e.prototype.eachRendered=function(n){qu(this._progressiveEls||this.group,n)},e.prototype._renderOnGridLike=function(n,r,i,a,o){var l=n.coordinateSystem,s=mh(l,"cartesian2d"),c=mh(l,"matrix"),h,d,g,p;if(s){var m=l.getAxis("x"),x=l.getAxis("y");h=m.getBandWidth()+.5,d=x.getBandWidth()+.5,g=m.scale.getExtent(),p=x.scale.getExtent()}for(var _=this.group,b=n.getData(),S=n.getModel(["emphasis","itemStyle"]).getItemStyle(),T=n.getModel(["blur","itemStyle"]).getItemStyle(),A=n.getModel(["select","itemStyle"]).getItemStyle(),D=n.get(["itemStyle","borderRadius"]),M=Qr(n),k=n.getModel("emphasis"),I=k.get("focus"),z=k.get("blurScope"),L=k.get("disabled"),O=s||c?[b.mapDimension("x"),b.mapDimension("y"),b.mapDimension("value")]:[b.mapDimension("time"),b.mapDimension("value")],H=i;H<a;H++){var F=void 0,Y=b.getItemVisual(H,"style");if(s){var W=b.get(O[0],H),V=b.get(O[1],H);if(isNaN(b.get(O[2],H))||isNaN(W)||isNaN(V)||W<g[0]||W>g[1]||V<p[0]||V>p[1])continue;var X=l.dataToPoint([W,V]);F=new le({shape:{x:X[0]-h/2,y:X[1]-d/2,width:h,height:d},style:Y})}else if(c){var Z=l.dataToLayout([b.get(O[0],H),b.get(O[1],H)]).rect;if(To(Z.x))continue;F=new le({z2:1,shape:Z,style:Y})}else{if(isNaN(b.get(O[1],H)))continue;var tt=l.dataToLayout([b.get(O[0],H)]),Z=tt.contentRect||tt.rect;if(To(Z.x)||To(Z.y))continue;F=new le({z2:1,shape:Z,style:Y})}if(b.hasItemOption){var j=b.getItemModel(H),U=j.getModel("emphasis");S=U.getModel("itemStyle").getItemStyle(),T=j.getModel(["blur","itemStyle"]).getItemStyle(),A=j.getModel(["select","itemStyle"]).getItemStyle(),D=j.get(["itemStyle","borderRadius"]),I=U.get("focus"),z=U.get("blurScope"),L=U.get("disabled"),M=Qr(j)}F.shape.r=D;var q=n.getRawValue(H),P="-";q&&q[2]!=null&&(P=q[2]+""),yi(F,M,{labelFetcher:n,labelDataIndex:H,defaultOpacity:Y.opacity,defaultText:P}),F.ensureState("emphasis").style=S,F.ensureState("blur").style=T,F.ensureState("select").style=A,In(F,I,z,L),F.incremental=o,o&&(F.states.emphasis.hoverLayer=!0),_.add(F),b.setItemGraphicEl(H,F),this._progressiveEls&&this._progressiveEls.push(F)}},e.prototype._renderOnGeo=function(n,r,i,a){var o=i.targetVisuals.inRange,l=i.targetVisuals.outOfRange,s=r.getData(),c=this._hmLayer||this._hmLayer||new Xq;c.blurSize=r.get("blurSize"),c.pointSize=r.get("pointSize"),c.minOpacity=r.get("minOpacity"),c.maxOpacity=r.get("maxOpacity");var h=n.getViewRect().clone(),d=n.getRoamTransform();h.applyTransform(d);var g=Math.max(h.x,0),p=Math.max(h.y,0),m=Math.min(h.width+h.x,a.getWidth()),x=Math.min(h.height+h.y,a.getHeight()),_=m-g,b=x-p,S=[s.mapDimension("lng"),s.mapDimension("lat"),s.mapDimension("value")],T=s.mapArray(S,function(k,I,z){var L=n.dataToPoint([k,I]);return L[0]-=g,L[1]-=p,L.push(z),L}),A=i.getExtent(),D=i.type==="visualMap.continuous"?Zq(A,i.option.range):qq(A,i.getPieceList(),i.option.selected);c.update(T,_,b,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:l.color.getColorMapper()},D);var M=new Jr({style:{width:_,height:b,x:g,y:p,image:c.canvas},silent:!0});this.group.add(M)},e.type="heatmap",e})(Ye),Qq=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(n,r){return Qu(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var n=zh.get(this.get("coordinateSystem"));if(n&&n.dimensions)return n.dimensions[0]==="lng"&&n.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:ot.color.primary}}},e})(Ke);function Kq(t){t.registerChartView($q),t.registerSeriesModel(Qq)}var Jq=2,tZ=4,CL=(function(t){at(e,t);function e(n,r,i,a){var o=t.call(this)||this;o.z2=Jq,o.textConfig={inside:!0},$t(o).seriesIndex=r.seriesIndex;var l=new me({z2:tZ,silent:n.getModel().get(["label","silent"])});return o.setTextContent(l),o.updateData(!0,n,r,i,a),o}return e.prototype.updateData=function(n,r,i,a,o){this.node=r,r.piece=this,i=i||this._seriesModel,a=a||this._ecModel;var l=this;$t(l).dataIndex=r.dataIndex;var s=r.getModel(),c=s.getModel("emphasis"),h=r.getLayout(),d=ht({},h);d.label=null;var g=r.getVisual("style");g.lineJoin="bevel";var p=r.getVisual("decal");p&&(g.decal=Kp(p,o));var m=Vl(s.getModel("itemStyle"),d,!0);ht(d,m),N(Tr,function(S){var T=l.ensureState(S),A=s.getModel([S,"itemStyle"]);T.style=A.getItemStyle();var D=Vl(A,d);D&&(T.shape=D)}),n?(l.setShape(d),l.shape.r=h.r0,Qe(l,{shape:{r:h.r}},i,r.dataIndex)):(He(l,{shape:d},i),Da(l)),l.useStyle(g),this._updateLabel(i);var x=s.getShallow("cursor");x&&l.attr("cursor",x),this._seriesModel=i||this._seriesModel,this._ecModel=a||this._ecModel;var _=c.get("focus"),b=_==="relative"?YR(r.getAncestorsIndices(),r.getDescendantIndices()):_==="ancestor"?r.getAncestorsIndices():_==="descendant"?r.getDescendantIndices():_;In(this,b,c.get("blurScope"),c.get("disabled"))},e.prototype._updateLabel=function(n){var r=this,i=this.node.getModel(),a=i.getModel("label"),o=this.node.getLayout(),l=o.endAngle-o.startAngle,s=(o.startAngle+o.endAngle)/2,c=Math.cos(s),h=Math.sin(s),d=this,g=d.getTextContent(),p=this.node.dataIndex,m=a.get("minAngle")/180*Math.PI,x=a.get("show")&&!(m!=null&&Math.abs(l)<m);g.ignore=!x,N(ah,function(b){var S=b==="normal"?i.getModel("label"):i.getModel([b,"label"]),T=b==="normal",A=T?g:g.ensureState(b),D=n.getFormattedLabel(p,b);T&&(D=D||r.node.name),A.style=$e(S,{},null,b!=="normal",!0),D&&(A.style.text=D);var M=S.get("show");M!=null&&!T&&(A.ignore=!M);var k=_(S,"position"),I=T?d:d.states[b],z=I.style.fill;I.textConfig={outsideFill:S.get("color")==="inherit"?z:null,inside:k!=="outside"};var L,O=_(S,"distance")||0,H=_(S,"align"),F=_(S,"rotate"),Y=Math.PI*.5,W=Math.PI*1.5,V=xo(F==="tangential"?Math.PI/2-s:s),X=V>Y&&!rh(V-Y)&&V<W;k==="outside"?(L=o.r+O,H=X?"right":"left"):!H||H==="center"?(l===2*Math.PI&&o.r0===0?L=0:L=(o.r+o.r0)/2,H="center"):H==="left"?(L=o.r0+O,H=X?"right":"left"):H==="right"&&(L=o.r-O,H=X?"left":"right"),A.style.align=H,A.style.verticalAlign=_(S,"verticalAlign")||"middle",A.x=L*c+o.cx,A.y=L*h+o.cy;var Z=0;F==="radial"?Z=xo(-s)+(X?Math.PI:0):F==="tangential"?Z=xo(Math.PI/2-s)+(X?Math.PI:0):ve(F)&&(Z=F*Math.PI/180),A.rotation=xo(Z)});function _(b,S){var T=b.get(S);return T??a.get(S)}g.dirtyStyle()},e})(mi),Yb="sunburstRootToNode",ML="sunburstHighlight",eZ="sunburstUnhighlight";function nZ(t){t.registerAction({type:Yb,update:"updateView"},function(e,n){n.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(i,a){var o=bh(e,[Yb],i);if(o){var l=i.getViewRoot();l&&(e.direction=IS(l,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),t.registerAction({type:ML,update:"none"},function(e,n,r){e=ht({},e),n.eachComponent({mainType:"series",subType:"sunburst",query:e},i);function i(a){var o=bh(e,[ML],a);o&&(e.dataIndex=o.node.dataIndex)}r.dispatchAction(ht(e,{type:"highlight"}))}),t.registerAction({type:eZ,update:"updateView"},function(e,n,r){e=ht({},e),r.dispatchAction(ht(e,{type:"downplay"}))})}var rZ=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i,a){var o=this;this.seriesModel=n,this.api=i,this.ecModel=r;var l=n.getData(),s=l.tree.root,c=n.getViewRoot(),h=this.group,d=n.get("renderLabelForZeroData"),g=[];c.eachNode(function(S){g.push(S)});var p=this._oldChildren||[];m(g,p),b(s,c),this._initEvents(),this._oldChildren=g;function m(S,T){if(S.length===0&&T.length===0)return;new Ph(T,S,A,A).add(D).update(D).remove(Wt(D,null)).execute();function A(M){return M.getId()}function D(M,k){var I=M==null?null:S[M],z=k==null?null:T[k];x(I,z)}}function x(S,T){if(!d&&S&&!S.getValue()&&(S=null),S!==s&&T!==s){if(T&&T.piece)S?(T.piece.updateData(!1,S,n,r,i),l.setItemGraphicEl(S.dataIndex,T.piece)):_(T);else if(S){var A=new CL(S,n,r,i);h.add(A),l.setItemGraphicEl(S.dataIndex,A)}}}function _(S){S&&S.piece&&(h.remove(S.piece),S.piece=null)}function b(S,T){T.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,S,n,r,i):(o.virtualPiece=new CL(S,n,r,i),h.add(o.virtualPiece)),T.piece.off("click"),o.virtualPiece.on("click",function(A){o._rootToNode(T.parentNode)})):o.virtualPiece&&(h.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var n=this;this.group.off("click"),this.group.on("click",function(r){var i=!1,a=n.seriesModel.getViewRoot();a.eachNode(function(o){if(!i&&o.piece&&o.piece===r.target){var l=o.getModel().get("nodeClick");if(l==="rootToNode")n._rootToNode(o);else if(l==="link"){var s=o.getModel(),c=s.get("link");if(c){var h=s.get("target",!0)||"_blank";Yp(c,h)}}i=!0}})})},e.prototype._rootToNode=function(n){n!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Yb,from:this.uid,seriesId:this.seriesModel.id,targetNode:n})},e.prototype.containPoint=function(n,r){var i=r.getData(),a=i.getItemLayout(0);if(a){var o=n[0]-a.cx,l=n[1]-a.cy,s=Math.sqrt(o*o+l*l);return s<=a.r&&s>=a.r0}},e.type="sunburst",e})(Ye),iZ=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return e.prototype.getInitialData=function(n,r){var i={name:n.name,children:n.data};kB(i);var a=this._levelModels=bt(n.levels||[],function(s){return new xe(s,this,r)},this),o=J5.createTree(i,this,l);function l(s){s.wrapMethod("getItemModel",function(c,h){var d=o.getNodeByDataIndex(h),g=a[d.depth];return g&&(c.parentModel=g),c})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(n){var r=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(n);return r.treePathInfo=OS(i,this),r},e.prototype.getLevelModel=function(n){return this._levelModels&&this._levelModels[n.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){eB(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})(Ke);function kB(t){var e=0;N(t.children,function(r){kB(r);var i=r.value;pt(i)&&(i=i[0]),e+=i});var n=t.value;pt(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=e),n<0&&(n=0),pt(t.value)?t.value[0]=n:t.value=n}var AL=Math.PI/180;function aZ(t,e,n){e.eachSeriesByType(t,function(r){var i=r.get("center"),a=r.get("radius");pt(a)||(a=[0,a]),pt(i)||(i=[i,i]);var o=n.getWidth(),l=n.getHeight(),s=Math.min(o,l),c=At(i[0],o),h=At(i[1],l),d=At(a[0],s/2),g=At(a[1],s/2),p=-r.get("startAngle")*AL,m=r.get("minAngle")*AL,x=r.getData().tree.root,_=r.getViewRoot(),b=_.depth,S=r.get("sort");S!=null&&LB(_,S);var T=0;N(_.children,function(V){!isNaN(V.getValue())&&T++});var A=_.getValue(),D=Math.PI/(A||T)*2,M=_.depth>0,k=_.height-(M?-1:1),I=(g-d)/(k||1),z=r.get("clockwise"),L=r.get("stillShowZeroSum"),O=z?1:-1,H=function(V,X){if(V){var Z=X;if(V!==x){var tt=V.getValue(),j=A===0&&L?D:tt*D;j<m&&(j=m),Z=X+O*j;var U=V.depth-b-(M?-1:1),q=d+I*U,P=d+I*(U+1),J=r.getLevelModel(V);if(J){var st=J.get("r0",!0),mt=J.get("r",!0),wt=J.get("radius",!0);wt!=null&&(st=wt[0],mt=wt[1]),st!=null&&(q=At(st,s/2)),mt!=null&&(P=At(mt,s/2))}V.setLayout({angle:j,startAngle:X,endAngle:Z,clockwise:z,cx:c,cy:h,r0:q,r:P})}if(V.children&&V.children.length){var gt=0;N(V.children,function(dt){gt+=H(dt,X+gt)})}return Z-X}};if(M){var F=d,Y=d+I,W=Math.PI*2;x.setLayout({angle:W,startAngle:p,endAngle:p+W,clockwise:z,cx:c,cy:h,r0:F,r:Y})}H(_,p)})}function LB(t,e){var n=t.children||[];t.children=oZ(n,e),n.length&&N(t.children,function(r){LB(r,e)})}function oZ(t,e){if(It(e)){var n=bt(t,function(i,a){var o=i.getValue();return{params:{depth:i.depth,height:i.height,dataIndex:i.dataIndex,getValue:function(){return o}},index:a}});return n.sort(function(i,a){return e(i.params,a.params)}),bt(n,function(i){return t[i.index]})}else{var r=e==="asc";return t.sort(function(i,a){var o=(i.getValue()-a.getValue())*(r?1:-1);return o===0?(i.dataIndex-a.dataIndex)*(r?-1:1):o})}}function lZ(t){var e={};function n(r,i,a){if(r.depth===0)return ot.color.neutral50;for(var o=r;o&&o.depth>1;)o=o.parentNode;var l=i.getColorFromPalette(o.name||o.dataIndex+"",e);return r.depth>1&&St(l)&&(l=Ox(l,(r.depth-1)/(a-1)*.5)),l}t.eachSeriesByType("sunburst",function(r){var i=r.getData(),a=i.tree;a.eachNode(function(o){var l=o.getModel(),s=l.getModel("itemStyle").getItemStyle();s.fill||(s.fill=n(o,r,a.root.height));var c=i.ensureUniqueItemVisual(o.dataIndex,"style");ht(c,s)})})}function sZ(t){t.registerChartView(rZ),t.registerSeriesModel(iZ),t.registerLayout(Wt(aZ,"sunburst")),t.registerProcessor(Wt(Fg,"sunburst")),t.registerVisual(lZ),nZ(t)}var Rl=be(),DL=Rt,Y1=Tt,uZ=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,n,r,i){var a=n.get("value"),o=n.get("status");if(this._axisModel=e,this._axisPointerModel=n,this._api=r,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,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 c={};this.makeElOption(c,a,e,n,r);var h=c.graphicKey;h!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=h;var d=this._moveAnimation=this.determineAnimation(e,n);if(!l)l=this._group=new ie,this.createPointerEl(l,c,e,n),this.createLabelEl(l,c,e,n),r.getZr().add(l);else{var g=Wt(kL,n,d);this.updatePointerEl(l,c,g),this.updateLabelEl(l,c,g,n)}EL(l,n,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,n){var r=n.get("animation"),i=e.axis,a=i.type==="category",o=n.get("snap");if(!o&&!a)return!1;if(r==="auto"||r==null){var l=this.animationThreshold;if(a&&i.getBandWidth()>l)return!0;if(o){var s=DS(e).seriesDataCount,c=i.getExtent();return Math.abs(c[0]-c[1])/s>l}return!1}return r===!0},t.prototype.makeElOption=function(e,n,r,i,a){},t.prototype.createPointerEl=function(e,n,r,i){var a=n.pointer;if(a){var o=Rl(e).pointerEl=new G_[a.type](DL(n.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,n,r,i){if(n.label){var a=Rl(e).labelEl=new me(DL(n.label));e.add(a),LL(a,i)}},t.prototype.updatePointerEl=function(e,n,r){var i=Rl(e).pointerEl;i&&n.pointer&&(i.setStyle(n.pointer.style),r(i,{shape:n.pointer.shape}))},t.prototype.updateLabelEl=function(e,n,r,i){var a=Rl(e).labelEl;a&&(a.setStyle(n.label.style),r(a,{x:n.label.x,y:n.label.y}),LL(a,i))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,a=n.getModel("handle"),o=n.get("status");if(!a.get("show")||!o||o==="hide"){i&&r.remove(i),this._handle=null;return}var l;this._handle||(l=!0,i=this._handle=zg(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(c){Aa(c.event)},onmousedown:Y1(this._onHandleDragMove,this,0,0),drift:Y1(this._onHandleDragMove,this),ondragend:Y1(this._onHandleDragEnd,this)}),r.add(i)),EL(i,n,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=a.get("size");pt(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,Nh(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,l)}},t.prototype._moveHandleToValue=function(e,n){kL(this._axisPointerModel,!n&&this._moveAnimation,this._handle,W1(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,n){var r=this._handle;if(r){this._dragging=!0;var i=this.updateHandleTransform(W1(r),[e,n],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(W1(i)),Rl(r).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var n=e.getZr(),r=this._group,i=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),i&&n.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Xp(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,n,r){return r=r||0,{x:e[r],y:e[1-r],width:n[r],height:n[1-r]}},t})();function kL(t,e,n,r){EB(Rl(n).lastProp,r)||(Rl(n).lastProp=r,e?He(n,r,t):(n.stopAnimation(),n.attr(r)))}function EB(t,e){if(Lt(t)&&Lt(e)){var n=!0;return N(e,function(r,i){n=n&&EB(t[i],r)}),!!n}else return t===e}function LL(t,e){t[e.get(["label","show"])?"show":"hide"]()}function W1(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function EL(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(r!=null&&(a.z=r),i!=null&&(a.zlevel=i),a.silent=n)})}function cZ(t){var e=t.get("type"),n=t.getModel(e+"Style"),r;return e==="line"?(r=n.getLineStyle(),r.fill=null):e==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function fZ(t,e,n,r,i){var a=n.get("value"),o=RB(a,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),l=n.getModel("label"),s=Oh(l.get("padding")||0),c=l.getFont(),h=C_(o,c),d=i.position,g=h.width+s[1]+s[3],p=h.height+s[0]+s[2],m=i.align;m==="right"&&(d[0]-=g),m==="center"&&(d[0]-=g/2);var x=i.verticalAlign;x==="bottom"&&(d[1]-=p),x==="middle"&&(d[1]-=p/2),hZ(d,g,p,r);var _=l.get("backgroundColor");(!_||_==="auto")&&(_=e.get(["axisLine","lineStyle","color"])),t.label={x:d[0],y:d[1],style:$e(l,{text:o,font:c,fill:l.getTextColor(),padding:s,backgroundColor:_}),z2:10}}function hZ(t,e,n,r){var i=r.getWidth(),a=r.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+n,a)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function RB(t,e,n,r,i){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:i.precision}),o=i.formatter;if(o){var l={value:eg(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};N(r,function(s){var c=n.getSeriesByIndex(s.seriesIndex),h=s.dataIndexInside,d=c&&c.getDataParams(h);d&&l.seriesData.push(d)}),St(o)?a=o.replace("{value}",a):It(o)&&(a=o(l))}return a}function IB(t,e,n){var r=hi();return w_(r,r,n.rotation),Jf(r,r,n.position),Do([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function dZ(t,e,n,r,i,a){var o=Ma.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),fZ(e,r,i,a,{position:IB(r.axis,t,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function vZ(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function pZ(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}var gZ=(function(t){at(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(n,r,i,a,o){var l=i.axis,s=l.grid,c=a.get("type"),h=RL(s,l).getOtherAxis(l).getGlobalExtent(),d=l.toGlobalCoord(l.dataToCoord(r,!0));if(c&&c!=="none"){var g=cZ(a),p=mZ[c](l,d,h);p.style=g,n.graphicKey=p.type,n.pointer=p}var m=sg(s.getRect(),i);dZ(r,n,m,i,a,o)},e.prototype.getHandleTransform=function(n,r,i){var a=sg(r.axis.grid.getRect(),r,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=IB(r.axis,n,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(n,r,i,a){var o=i.axis,l=o.grid,s=o.getGlobalExtent(!0),c=RL(l,o).getOtherAxis(o).getGlobalExtent(),h=o.dim==="x"?0:1,d=[n.x,n.y];d[h]+=r[h],d[h]=Math.min(s[1],d[h]),d[h]=Math.max(s[0],d[h]);var g=(c[1]+c[0])/2,p=[g,g];p[h]=d[h];var m=[{verticalAlign:"middle"},{align:"center"}];return{x:d[0],y:d[1],rotation:n.rotation,cursorPoint:p,tooltipOption:m[h]}},e})(uZ);function RL(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var mZ={line:function(t,e,n){var r=vZ([e,n[0]],[e,n[1]],IL(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:pZ([e-r/2,n[0]],[r,i],IL(t))}}};function IL(t){return t.dim==="x"?0:1}var yZ=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}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:ot.color.border,width:1,type:"dashed"},shadowStyle:{color:ot.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:ot.color.neutral00,padding:[5,7,5,7],backgroundColor:ot.color.accent60,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:ot.color.accent40,throttle:40}},e})(ce),Ta=be(),xZ=N;function OB(t,e,n){if(!Ft.node){var r=e.getZr();Ta(r).records||(Ta(r).records={}),bZ(r,e);var i=Ta(r).records[t]||(Ta(r).records[t]={});i.handler=n}}function bZ(t,e){if(Ta(t).initialized)return;Ta(t).initialized=!0,n("click",Wt(OL,"click")),n("mousemove",Wt(OL,"mousemove")),n("globalout",SZ);function n(r,i){t.on(r,function(a){var o=wZ(e);xZ(Ta(t).records,function(l){l&&i(l,a,o.dispatchAction)}),_Z(o.pendings,e)})}}function _Z(t,e){var n=t.showTip.length,r=t.hideTip.length,i;n?i=t.showTip[n-1]:r&&(i=t.hideTip[r-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function SZ(t,e,n){t.handler("leave",null,n)}function OL(t,e,n,r){e.handler(t,n,r)}function wZ(t){var e={showTip:[],hideTip:[]},n=function(r){var i=e[r.type];i?i.push(r):(r.dispatchAction=n,t.dispatchAction(r))};return{dispatchAction:n,pendings:e}}function Wb(t,e){if(!Ft.node){var n=e.getZr(),r=(Ta(n).records||{})[t];r&&(Ta(n).records[t]=null)}}var TZ=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var a=r.getComponent("tooltip"),o=n.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";OB("axisPointer",i,function(l,s,c){o!=="none"&&(l==="leave"||o.indexOf(l)>=0)&&c({type:"updateAxisPointer",currTrigger:l,x:s&&s.offsetX,y:s&&s.offsetY})})},e.prototype.remove=function(n,r){Wb("axisPointer",r)},e.prototype.dispose=function(n,r){Wb("axisPointer",r)},e.type="axisPointer",e})(Mn);function zB(t,e){var n=[],r=t.seriesIndex,i;if(r==null||!(i=e.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=ql(a,t);if(o==null||o<0||pt(o))return{point:[]};var l=a.getItemGraphicEl(o),s=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(s&&s.dataToPoint)if(t.isStacked){var c=s.getBaseAxis(),h=s.getOtherAxis(c),d=h.dim,g=c.dim,p=d==="x"||d==="radius"?1:0,m=a.mapDimension(g),x=[];x[p]=a.get(m,o),x[1-p]=a.get(a.getCalculationInfo("stackResultDimension"),o),n=s.dataToPoint(x)||[]}else n=s.dataToPoint(a.getValues(bt(s.dimensions,function(b){return a.mapDimension(b)}),o))||[];else if(l){var _=l.getBoundingRect().clone();_.applyTransform(l.transform),n=[_.x+_.width/2,_.y+_.height/2]}return{point:n,el:l}}var zL=be();function CZ(t,e,n){var r=t.currTrigger,i=[t.x,t.y],a=t,o=t.dispatchAction||Tt(n.dispatchAction,n),l=e.getComponent("axisPointer").coordSysAxesInfo;if(l){_p(i)&&(i=zB({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var s=_p(i),c=a.axesInfo,h=l.axesInfo,d=r==="leave"||_p(i),g={},p={},m={list:[],map:{}},x={showPointer:Wt(AZ,p),showTooltip:Wt(DZ,m)};N(l.coordSysMap,function(b,S){var T=s||b.containPoint(i);N(l.coordSysAxesInfo[S],function(A,D){var M=A.axis,k=RZ(c,A);if(!d&&T&&(!c||k)){var I=k&&k.value;I==null&&!s&&(I=M.pointToData(i)),I!=null&&BL(A,I,x,!1,g)}})});var _={};return N(h,function(b,S){var T=b.linkGroup;T&&!p[S]&&N(T.axesInfo,function(A,D){var M=p[D];if(A!==b&&M){var k=M.value;T.mapper&&(k=b.axis.scale.parse(T.mapper(k,NL(A),NL(b)))),_[b.key]=k}})}),N(_,function(b,S){BL(h[S],b,x,!0,g)}),kZ(p,h,g),LZ(m,i,t,o),EZ(h,o,n),g}}function BL(t,e,n,r,i){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){n.showPointer(t,e);return}var o=MZ(e,t),l=o.payloadBatch,s=o.snapToValue;l[0]&&i.seriesIndex==null&&ht(i,l[0]),!r&&t.snap&&a.containData(s)&&s!=null&&(e=s),n.showPointer(t,e,l),n.showTooltip(t,o,s)}}function MZ(t,e){var n=e.axis,r=n.dim,i=t,a=[],o=Number.MAX_VALUE,l=-1;return N(e.seriesModels,function(s,c){var h=s.getData().mapDimensionsAll(r),d,g;if(s.getAxisTooltipData){var p=s.getAxisTooltipData(h,t,n);g=p.dataIndices,d=p.nestestValue}else{if(g=s.indicesOfNearest(r,h[0],t,n.type==="category"?.5:null),!g.length)return;d=s.getData().get(h[0],g[0])}if(!(d==null||!isFinite(d))){var m=t-d,x=Math.abs(m);x<=o&&((x<o||m>=0&&l<0)&&(o=x,l=m,i=d,a.length=0),N(g,function(_){a.push({seriesIndex:s.seriesIndex,dataIndexInside:_,dataIndex:s.getData().getRawIndex(_)})}))}}),{payloadBatch:a,snapToValue:i}}function AZ(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function DZ(t,e,n,r){var i=n.payloadBatch,a=e.axis,o=a.model,l=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var s=e.coordSys.model,c=xh(s),h=t.map[c];h||(h=t.map[c]={coordSysId:s.id,coordSysIndex:s.componentIndex,coordSysType:s.type,coordSysMainType:s.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function kZ(t,e,n){var r=n.axesInfo=[];N(e,function(i,a){var o=i.axisPointerModel.option,l=t[a];l?(!i.useHandle&&(o.status="show"),o.value=l.value,o.seriesDataIndices=(l.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function LZ(t,e,n,r){if(_p(e)||!t.list.length){r({type:"hideTip"});return}var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}function EZ(t,e,n){var r=n.getZr(),i="axisPointerLastHighlights",a=zL(r)[i]||{},o=zL(r)[i]={};N(t,function(c,h){var d=c.axisPointerModel.option;d.status==="show"&&c.triggerEmphasis&&N(d.seriesDataIndices,function(g){var p=g.seriesIndex+" | "+g.dataIndex;o[p]=g})});var l=[],s=[];N(a,function(c,h){!o[h]&&s.push(c)}),N(o,function(c,h){!a[h]&&l.push(c)}),s.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:s}),l.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:l})}function RZ(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function NL(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function _p(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function BB(t){Y5.registerAxisPointerClass("CartesianAxisPointer",gZ),t.registerComponentModel(yZ),t.registerComponentView(TZ),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var n=e.axisPointer.link;n&&!pt(n)&&(e.axisPointer.link=[n])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,n){e.getComponent("axisPointer").coordSysAxesInfo=GY(e,n)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},CZ)}function IZ(t){Wn(q5),Wn(BB)}var PL=["x","y","radius","angle","single"],OZ=["cartesian2d","polar","singleAxis"];function zZ(t){var e=t.get("coordinateSystem");return Yt(OZ,e)>=0}function wo(t){return t+"Axis"}function BZ(t,e){var n=Bt(),r=[],i=Bt();t.eachComponent({mainType:"dataZoom",query:e},function(h){i.get(h.uid)||l(h)});var a;do a=!1,t.eachComponent("dataZoom",o);while(a);function o(h){!i.get(h.uid)&&s(h)&&(l(h),a=!0)}function l(h){i.set(h.uid,!0),r.push(h),c(h)}function s(h){var d=!1;return h.eachTargetAxis(function(g,p){var m=n.get(g);m&&m[p]&&(d=!0)}),d}function c(h){h.eachTargetAxis(function(d,g){(n.get(d)||n.set(d,[]))[g]=!0})}return r}function NB(t){var e=t.ecModel,n={infoList:[],infoMap:Bt()};return t.eachTargetAxis(function(r,i){var a=e.getComponent(wo(r),i);if(a){var o=a.getCoordSysModel();if(o){var l=o.uid,s=n.infoMap.get(l);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(l,s)),s.axisModels.push(a)}}}),n}var X1=(function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},t})(),Th=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return e.prototype.init=function(n,r,i){var a=VL(n);this.settledOption=a,this.mergeDefaultAndTheme(n,i),this._doInit(a)},e.prototype.mergeOption=function(n){var r=VL(n);Xt(this.option,n,!0),Xt(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(n){var r=this.option;this._setDefaultThrottle(n),this._updateRangeUse(n);var i=this.settledOption;N([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(r[a[0]]=i[a[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var n=this.get("orient",!0),r=this._targetAxisInfoMap=Bt(),i=this._fillSpecifiedTargetAxis(r);i?this._orient=n||this._makeAutoOrientByTargetAxis():(this._orient=n||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(n){var r=!1;return N(PL,function(i){var a=this.getReferringComponents(wo(i),mH);if(a.specified){r=!0;var o=new X1;N(a.models,function(l){o.add(l.componentIndex)}),n.set(i,o)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(n,r){var i=this.ecModel,a=!0;if(a){var o=r==="vertical"?"y":"x",l=i.findComponents({mainType:o+"Axis"});s(l,o)}if(a){var l=i.findComponents({mainType:"singleAxis",filter:function(h){return h.get("orient",!0)===r}});s(l,"single")}function s(c,h){var d=c[0];if(d){var g=new X1;if(g.add(d.componentIndex),n.set(h,g),a=!1,h==="x"||h==="y"){var p=d.getReferringComponents("grid",En).models[0];p&&N(c,function(m){d.componentIndex!==m.componentIndex&&p===m.getReferringComponents("grid",En).models[0]&&g.add(m.componentIndex)})}}}a&&N(PL,function(c){if(a){var h=i.findComponents({mainType:wo(c),filter:function(g){return g.get("type",!0)==="category"}});if(h[0]){var d=new X1;d.add(h[0].componentIndex),n.set(c,d),a=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var n;return this.eachTargetAxis(function(r){!n&&(n=r)},this),n==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(n){if(n.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(n){var r=this._rangePropMode,i=this.get("rangeMode");N([["start","startValue"],["end","endValue"]],function(a,o){var l=n[a[0]]!=null,s=n[a[1]]!=null;l&&!s?r[o]="percent":!l&&s?r[o]="value":i?r[o]=i[o]:l&&(r[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(r,i){n==null&&(n=this.ecModel.getComponent(wo(r),i))},this),n},e.prototype.eachTargetAxis=function(n,r){this._targetAxisInfoMap.each(function(i,a){N(i.indexList,function(o){n.call(r,a,o)})})},e.prototype.getAxisProxy=function(n,r){var i=this.getAxisModel(n,r);if(i)return i.__dzAxisProxy},e.prototype.getAxisModel=function(n,r){var i=this._targetAxisInfoMap.get(n);if(i&&i.indexMap[r])return this.ecModel.getComponent(wo(n),r)},e.prototype.setRawRange=function(n){var r=this.option,i=this.settledOption;N([["start","startValue"],["end","endValue"]],function(a){(n[a[0]]!=null||n[a[1]]!=null)&&(r[a[0]]=i[a[0]]=n[a[0]],r[a[1]]=i[a[1]]=n[a[1]])},this),this._updateRangeUse(n)},e.prototype.setCalculatedRange=function(n){var r=this.option;N(["start","startValue","end","endValue"],function(i){r[i]=n[i]})},e.prototype.getPercentRange=function(){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataPercentWindow()},e.prototype.getValueRange=function(n,r){if(n==null&&r==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(n,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(n){if(n)return n.__dzAxisProxy;for(var r,i=this._targetAxisInfoMap.keys(),a=0;a<i.length;a++)for(var o=i[a],l=this._targetAxisInfoMap.get(o),s=0;s<l.indexList.length;s++){var c=this.getAxisProxy(o,l.indexList[s]);if(c.hostedBy(this))return c;r||(r=c)}return r},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})(ce);function VL(t){var e={};return N(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var NZ=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="dataZoom.select",e})(Th),US=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i,a){this.dataZoomModel=n,this.ecModel=r,this.api=i},e.type="dataZoom",e})(Mn),PZ=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="dataZoom.select",e})(US),mu=N,HL=yo,VZ=(function(){function t(e,n,r,i){this._dimName=e,this._axisIndex=n,this.ecModel=i,this._dataZoomModel=r}return t.prototype.hostedBy=function(e){return this._dataZoomModel===e},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(n){if(zZ(n)){var r=wo(this._dimName),i=n.getReferringComponents(r,En).models[0];i&&this._axisIndex===i.componentIndex&&e.push(n)}},this),e},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return Rt(this._minMaxSpan)},t.prototype.calculateDataWindow=function(e){var n=this._dataExtent,r=this.getAxisModel(),i=r.axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],l=[],s=[],c;mu(["start","end"],function(g,p){var m=e[g],x=e[g+"Value"];a[p]==="percent"?(m==null&&(m=o[p]),x=i.parse(ue(m,o,n))):(c=!0,x=x==null?n[p]:i.parse(x),m=ue(x,n,o)),s[p]=x==null||isNaN(x)?n[p]:x,l[p]=m==null||isNaN(m)?o[p]:m}),HL(s),HL(l);var h=this._minMaxSpan;c?d(s,l,n,o,!1):d(l,s,o,n,!0);function d(g,p,m,x,_){var b=_?"Span":"ValueSpan";Jl(0,g,m,"all",h["min"+b],h["max"+b]);for(var S=0;S<2;S++)p[S]=ue(g[S],m,x,!0),_&&(p[S]=i.parse(p[S]))}return{valueWindow:s,percentWindow:l}},t.prototype.reset=function(e){if(e===this._dataZoomModel){var n=this.getTargetSeriesModels();this._dataExtent=HZ(this,this._dimName,n),this._updateMinMaxSpan();var r=this.calculateDataWindow(e.settledOption);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(e,n){if(e!==this._dataZoomModel)return;var r=this._dimName,i=this.getTargetSeriesModels(),a=e.get("filterMode"),o=this._valueWindow;if(a==="none")return;mu(i,function(s){var c=s.getData(),h=c.mapDimensionsAll(r);if(h.length){if(a==="weakFilter"){var d=c.getStore(),g=bt(h,function(p){return c.getDimensionIndex(p)},c);c.filterSelf(function(p){for(var m,x,_,b=0;b<h.length;b++){var S=d.get(g[b],p),T=!isNaN(S),A=S<o[0],D=S>o[1];if(T&&!A&&!D)return!0;T&&(_=!0),A&&(m=!0),D&&(x=!0)}return _&&m&&x})}else mu(h,function(p){if(a==="empty")s.setData(c=c.map(p,function(x){return l(x)?x:NaN}));else{var m={};m[p]=o,c.selectRange(m)}});mu(h,function(p){c.setApproximateExtent(o,p)})}});function l(s){return s>=o[0]&&s<=o[1]}},t.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},n=this._dataZoomModel,r=this._dataExtent;mu(["min","max"],function(i){var a=n.get(i+"Span"),o=n.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=ue(r[0]+o,r,[0,100],!0):a!=null&&(o=ue(a,[0,100],r,!0)-r[0]),e[i+"Span"]=a,e[i+"ValueSpan"]=o},this)},t.prototype._setAxisModel=function(){var e=this.getAxisModel(),n=this._percentWindow,r=this._valueWindow;if(n){var i=pI(r,[0,500]);i=Math.min(i,20);var a=e.axis.scale.rawExtentInfo;n[0]!==0&&a.setDeterminedMinMax("min",+r[0].toFixed(i)),n[1]!==100&&a.setDeterminedMinMax("max",+r[1].toFixed(i)),a.freeze()}},t})();function HZ(t,e,n){var r=[1/0,-1/0];mu(n,function(o){G9(r,o.getData(),e)});var i=t.getAxisModel(),a=Zz(i.axis.scale,i,r).calculate();return[a.min,a.max]}var jZ={getTargetSeries:function(t){function e(i){t.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,l){var s=t.getComponent(wo(o),l);i(o,l,s,a)})})}e(function(i,a,o,l){o.__dzAxisProxy=null});var n=[];e(function(i,a,o,l){o.__dzAxisProxy||(o.__dzAxisProxy=new VZ(i,a,l,t),n.push(o.__dzAxisProxy))});var r=Bt();return N(n,function(i){N(i.getTargetSeriesModels(),function(a){r.set(a.uid,a)})}),r},overallReset:function(t,e){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(r,i){n.getAxisProxy(r,i).reset(n)}),n.eachTargetAxis(function(r,i){n.getAxisProxy(r,i).filterData(n,e)})}),t.eachComponent("dataZoom",function(n){var r=n.findRepresentativeAxisProxy();if(r){var i=r.getDataPercentWindow(),a=r.getDataValueWindow();n.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};function FZ(t){t.registerAction("dataZoom",function(e,n){var r=BZ(n,e);N(r,function(i){i.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var jL=!1;function YS(t){jL||(jL=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,jZ),FZ(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function GZ(t){t.registerComponentModel(NZ),t.registerComponentView(PZ),YS(t)}var Yr=(function(){function t(){}return t})(),PB={};function yu(t,e){PB[t]=e}function VB(t){return PB[t]}var UZ=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;N(this.option.feature,function(r,i){var a=VB(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(n)),Xt(r,a.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:ot.color.border,borderRadius:0,borderWidth:0,padding:ot.size.m,itemSize:15,itemGap:ot.size.s,showTitle:!0,iconStyle:{borderColor:ot.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:ot.color.accent50}},tooltip:{show:!1,position:"bottom"}},e})(ce);function HB(t,e){var n=Oh(e.get("padding")),r=e.getItemStyle(["color","opacity"]);r.fill=e.get("backgroundColor");var i=new le({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1});return i}var YZ=(function(t){at(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r,i,a){var o=this.group;if(o.removeAll(),!n.get("show"))return;var l=+n.get("itemSize"),s=n.get("orient")==="vertical",c=n.get("feature")||{},h=this._features||(this._features={}),d=[];N(c,function(S,T){d.push(T)}),new Ph(this._featureNames||[],d).add(g).update(g).remove(Wt(g,null)).execute(),this._featureNames=d;function g(S,T){var A=d[S],D=d[T],M=c[A],k=new xe(M,n,n.ecModel),I;if(a&&a.newTitle!=null&&a.featureName===A&&(M.title=a.newTitle),A&&!D){if(WZ(A))I={onclick:k.option.onclick,featureName:A};else{var z=VB(A);if(!z)return;I=new z}h[A]=I}else if(I=h[D],!I)return;I.uid=Ih("toolbox-feature"),I.model=k,I.ecModel=r,I.api=i;var L=I instanceof Yr;if(!A&&D){L&&I.dispose&&I.dispose(r,i);return}if(!k.get("show")||L&&I.unusable){L&&I.remove&&I.remove(r,i);return}p(k,I,A),k.setIconStatus=function(O,H){var F=this.option,Y=this.iconPaths;F.iconStatus=F.iconStatus||{},F.iconStatus[O]=H,Y[O]&&(H==="emphasis"?$l:Ql)(Y[O])},I instanceof Yr&&I.render&&I.render(k,r,i,a)}function p(S,T,A){var D=S.getModel("iconStyle"),M=S.getModel(["emphasis","iconStyle"]),k=T instanceof Yr&&T.getIcons?T.getIcons():S.get("icon"),I=S.get("title")||{},z,L;St(k)?(z={},z[A]=k):z=k,St(I)?(L={},L[A]=I):L=I;var O=S.iconPaths={};N(z,function(H,F){var Y=zg(H,{},{x:-l/2,y:-l/2,width:l,height:l});Y.setStyle(D.getItemStyle());var W=Y.ensureState("emphasis");W.style=M.getItemStyle();var V=new me({style:{text:L[F],align:M.get("textAlign"),borderRadius:M.get("textBorderRadius"),padding:M.get("textPadding"),fill:null,font:sO({fontStyle:M.get("textFontStyle"),fontFamily:M.get("textFontFamily"),fontSize:M.get("textFontSize"),fontWeight:M.get("textFontWeight")},r)},ignore:!0});Y.setTextContent(V),Eh({el:Y,componentModel:n,itemName:F,formatterParamsExtra:{title:L[F]}}),Y.__title=L[F],Y.on("mouseover",function(){var X=M.getItemStyle(),Z=s?n.get("right")==null&&n.get("left")!=="right"?"right":"left":n.get("bottom")==null&&n.get("top")!=="bottom"?"bottom":"top";V.setStyle({fill:M.get("textFill")||X.fill||X.stroke||ot.color.neutral99,backgroundColor:M.get("textBackgroundColor")}),Y.setTextConfig({position:M.get("textPosition")||Z}),V.ignore=!n.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){S.get(["iconStatus",F])!=="emphasis"&&i.leaveEmphasis(this),V.hide()}),(S.get(["iconStatus",F])==="emphasis"?$l:Ql)(Y),o.add(Y),Y.on("click",Tt(T.onclick,T,r,i,F)),O[F]=Y})}var m=ti(n,i).refContainer,x=n.getBoxLayoutParams(),_=n.get("padding"),b=On(x,m,_);Wl(n.get("orient"),o,n.get("itemGap"),b.width,b.height),eS(o,x,m,_),o.add(HB(o.getBoundingRect(),n)),s||o.eachChild(function(S){var T=S.__title,A=S.ensureState("emphasis"),D=A.textConfig||(A.textConfig={}),M=S.getTextContent(),k=M&&M.ensureState("emphasis");if(k&&!It(k)&&T){var I=k.style||(k.style={}),z=C_(T,me.makeFont(I)),L=S.x+o.x,O=S.y+o.y+l,H=!1;O+z.height>i.getHeight()&&(D.position="top",H=!0);var F=H?-5-z.height:l+10;L+z.width/2>i.getWidth()?(D.position=["100%",F],I.align="right"):L-z.width/2<0&&(D.position=[0,F],I.align="left")}})},e.prototype.updateView=function(n,r,i,a){N(this._features,function(o){o instanceof Yr&&o.updateView&&o.updateView(o.model,r,i,a)})},e.prototype.remove=function(n,r){N(this._features,function(i){i instanceof Yr&&i.remove&&i.remove(n,r)}),this.group.removeAll()},e.prototype.dispose=function(n,r){N(this._features,function(i){i instanceof Yr&&i.dispose&&i.dispose(n,r)})},e.type="toolbox",e})(Mn);function WZ(t){return t.indexOf("my")===0}var XZ=(function(t){at(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(n,r){var i=this.model,a=i.get("name")||n.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",l=o?"svg":i.get("type",!0)||"png",s=r.getConnectedDataURL({type:l,backgroundColor:i.get("backgroundColor",!0)||n.get("backgroundColor")||ot.color.neutral00,connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),c=Ft.browser;if(typeof MouseEvent=="function"&&(c.newEdge||!c.ie&&!c.edge)){var h=document.createElement("a");h.download=a+"."+l,h.target="_blank",h.href=s;var d=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});h.dispatchEvent(d)}else if(window.navigator.msSaveOrOpenBlob||o){var g=s.split(","),p=g[0].indexOf("base64")>-1,m=o?decodeURIComponent(g[1]):g[1];p&&(m=window.atob(m));var x=a+"."+l;if(window.navigator.msSaveOrOpenBlob){for(var _=m.length,b=new Uint8Array(_);_--;)b[_]=m.charCodeAt(_);var S=new Blob([b]);window.navigator.msSaveOrOpenBlob(S,x)}else{var T=document.createElement("iframe");document.body.appendChild(T);var A=T.contentWindow,D=A.document;D.open("image/svg+xml","replace"),D.write(m),D.close(),A.focus(),D.execCommand("SaveAs",!0,x),document.body.removeChild(T)}}else{var M=i.get("lang"),k='<body style="margin:0;"><img src="'+s+'" style="max-width:100%;" title="'+(M&&M[0]||"")+'" /></body>',I=window.open();I.document.write(k),I.document.title=a}},e.getDefaultOption=function(n){var r={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:n.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:ot.color.neutral00,name:"",excludeComponents:["toolbox"],lang:n.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e})(Yr),FL="__ec_magicType_stack__",qZ=[["line","bar"],["stack"]],ZZ=(function(t){at(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getIcons=function(){var n=this.model,r=n.get("icon"),i={};return N(n.get("type"),function(a){r[a]&&(i[a]=r[a])}),i},e.getDefaultOption=function(n){var r={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:n.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(n,r,i){var a=this.model,o=a.get(["seriesIndex",i]);if(GL[i]){var l={series:[]},s=function(d){var g=d.subType,p=d.id,m=GL[i](g,p,d,a);m&&(qt(m,d.option),l.series.push(m));var x=d.coordinateSystem;if(x&&x.type==="cartesian2d"&&(i==="line"||i==="bar")){var _=x.getAxesByScale("ordinal")[0];if(_){var b=_.dim,S=b+"Axis",T=d.getReferringComponents(S,En).models[0],A=T.componentIndex;l[S]=l[S]||[];for(var D=0;D<=A;D++)l[S][A]=l[S][A]||{};l[S][A].boundaryGap=i==="bar"}}};N(qZ,function(d){Yt(d,i)>=0&&N(d,function(g){a.setIconStatus(g,"normal")})}),a.setIconStatus(i,"emphasis"),n.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},s);var c,h=i;i==="stack"&&(c=Xt({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(h="tiled")),r.dispatchAction({type:"changeMagicType",currentType:h,newOption:l,newTitle:c,featureName:"magicType"})}},e})(Yr),GL={line:function(t,e,n,r){if(t==="bar")return Xt({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(t,e,n,r){if(t==="line")return Xt({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(t,e,n,r){var i=n.get("stack")===FL;if(t==="line"||t==="bar")return r.setIconStatus("stack",i?"normal":"emphasis"),Xt({id:e,stack:i?"":FL},r.get(["option","stack"])||{},!0)}};Wi({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});var Yg=new Array(60).join("-"),ju=" ";function $Z(t){var e={},n=[],r=[];return t.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var l=o.dim+"_"+o.index;e[l]||(e[l]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[l].series.push(i)}else n.push(i)}else n.push(i)}),{seriesGroupByCategoryAxis:e,other:n,meta:r}}function QZ(t){var e=[];return N(t,function(n,r){var i=n.categoryAxis,a=n.valueAxis,o=a.dim,l=[" "].concat(bt(n.series,function(p){return p.name})),s=[i.model.getCategories()];N(n.series,function(p){var m=p.getRawData();s.push(p.getRawData().mapArray(m.mapDimension(o),function(x){return x}))});for(var c=[l.join(ju)],h=0;h<s[0].length;h++){for(var d=[],g=0;g<s.length;g++)d.push(s[g][h]);c.push(d.join(ju))}e.push(c.join(`
96
+ `))}),e.join(`
97
+
98
+ `+Yg+`
99
+
100
+ `)}function KZ(t){return bt(t,function(e){var n=e.getRawData(),r=[e.name],i=[];return n.each(n.dimensions,function(){for(var a=arguments.length,o=arguments[a-1],l=n.getName(o),s=0;s<a-1;s++)i[s]=arguments[s];r.push((l?l+ju:"")+i.join(ju))}),r.join(`
101
+ `)}).join(`
102
+
103
+ `+Yg+`
104
+
105
+ `)}function JZ(t){var e=$Z(t);return{value:Ze([QZ(e.seriesGroupByCategoryAxis),KZ(e.other)],function(n){return!!n.replace(/[\n\t\s]/g,"")}).join(`
106
+
107
+ `+Yg+`
108
+
109
+ `),meta:e.meta}}function dg(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function t$(t){var e=t.slice(0,t.indexOf(`
110
+ `));if(e.indexOf(ju)>=0)return!0}var Xb=new RegExp("["+ju+"]+","g");function e$(t){for(var e=t.split(/\n+/g),n=dg(e.shift()).split(Xb),r=[],i=bt(n,function(s){return{name:s,data:[]}}),a=0;a<e.length;a++){var o=dg(e[a]).split(Xb);r.push(o.shift());for(var l=0;l<o.length;l++)i[l]&&(i[l].data[a]=o[l])}return{series:i,categories:r}}function n$(t){for(var e=t.split(/\n+/g),n=dg(e.shift()),r=[],i=0;i<e.length;i++){var a=dg(e[i]);if(a){var o=a.split(Xb),l="",s=void 0,c=!1;isNaN(o[0])?(c=!0,l=o[0],o=o.slice(1),r[i]={name:l,value:[]},s=r[i].value):s=r[i]=[];for(var h=0;h<o.length;h++)s.push(+o[h]);s.length===1&&(c?r[i].value=s[0]:r[i]=s[0])}}return{name:n,data:r}}function r$(t,e){var n=t.split(new RegExp(`
111
+ *`+Yg+`
112
+ *`,"g")),r={series:[]};return N(n,function(i,a){if(t$(i)){var o=e$(i),l=e[a],s=l.axisDim+"Axis";l&&(r[s]=r[s]||[],r[s][l.axisIndex]={data:o.categories},r.series=r.series.concat(o.series))}else{var o=n$(i);r.series.push(o)}}),r}var i$=(function(t){at(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(n,r){setTimeout(function(){r.dispatchAction({type:"hideTip"})});var i=r.getDom(),a=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=a.get("backgroundColor")||ot.color.neutral00;var l=document.createElement("h4"),s=a.get("lang")||[];l.innerHTML=s[0]||a.get("title"),l.style.cssText="margin:10px 20px",l.style.color=a.get("textColor");var c=document.createElement("div"),h=document.createElement("textarea");c.style.cssText="overflow:auto";var d=a.get("optionToContent"),g=a.get("contentToOption"),p=JZ(n);if(It(d)){var m=d(r.getOption());St(m)?c.innerHTML=m:Ru(m)&&c.appendChild(m)}else{h.readOnly=a.get("readOnly");var x=h.style;x.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",x.color=a.get("textColor"),x.borderColor=a.get("textareaBorderColor"),x.backgroundColor=a.get("textareaColor"),h.value=p.value,c.appendChild(h)}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",T=document.createElement("div"),A=document.createElement("div");S+=";background-color:"+a.get("buttonColor"),S+=";color:"+a.get("buttonTextColor");var D=this;function M(){i.removeChild(o),D._dom=null}kx(T,"click",M),kx(A,"click",function(){if(g==null&&d!=null||g!=null&&d==null){M();return}var k;try{It(g)?k=g(c,r.getOption()):k=r$(h.value,_)}catch(I){throw M(),new Error("Data view format error "+I)}k&&r.dispatchAction({type:"changeDataView",newOption:k}),M()}),T.innerHTML=s[1],A.innerHTML=s[2],A.style.cssText=T.style.cssText=S,!a.get("readOnly")&&b.appendChild(A),b.appendChild(T),o.appendChild(l),o.appendChild(c),o.appendChild(b),c.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},e.prototype.remove=function(n,r){this._dom&&r.getDom().removeChild(this._dom)},e.prototype.dispose=function(n,r){this.remove(n,r)},e.getDefaultOption=function(n){var r={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:n.getLocaleModel().get(["toolbox","dataView","title"]),lang:n.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:ot.color.background,textColor:ot.color.primary,textareaColor:ot.color.background,textareaBorderColor:ot.color.border,buttonColor:ot.color.accent50,buttonTextColor:ot.color.neutral00};return r},e})(Yr);function a$(t,e){return bt(t,function(n,r){var i=e&&e[r];if(Lt(i)&&!pt(i)){var a=Lt(n)&&!pt(n);a||(n={value:n});var o=i.name!=null&&n.name==null;return n=qt(n,i),o&&delete n.name,n}else return n})}Wi({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var n=[];N(t.newOption.series,function(r){var i=e.getSeriesByName(r.name)[0];if(!i)n.push(ht({type:"scatter"},r));else{var a=i.get("data");n.push({name:r.name,data:a$(r.data,a)})}}),e.mergeOption(qt({series:n},t.newOption))});var jB=N,FB=be();function o$(t,e){var n=WS(t);jB(e,function(r,i){for(var a=n.length-1;a>=0;a--){var o=n[a];if(o[i])break}if(a<0){var l=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(l){var s=l.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}}),n.push(e)}function l$(t){var e=WS(t),n=e[e.length-1];e.length>1&&e.pop();var r={};return jB(n,function(i,a){for(var o=e.length-1;o>=0;o--)if(i=e[o][a],i){r[a]=i;break}}),r}function s$(t){FB(t).snapshots=null}function u$(t){return WS(t).length}function WS(t){var e=FB(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var c$=(function(t){at(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(n,r){s$(n),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(n){var r={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:n.getLocaleModel().get(["toolbox","restore","title"])};return r},e})(Yr);Wi({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});var f$=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],XS=(function(){function t(e,n,r){var i=this;this._targetInfoList=[];var a=UL(n,e);N(h$,function(o,l){(!r||!r.include||Yt(r.include,l)>=0)&&o(a,i._targetInfoList)})}return t.prototype.setOutputRanges=function(e,n){return this.matchOutputRanges(e,n,function(r,i,a){if((r.coordRanges||(r.coordRanges=[])).push(i),!r.coordRange){r.coordRange=i;var o=q1[r.brushType](0,a,i);r.__rangeOffset={offset:qL[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},t.prototype.matchOutputRanges=function(e,n,r){N(e,function(i){var a=this.findTargetInfo(i,n);a&&a!==!0&&N(a.coordSyses,function(o){var l=q1[i.brushType](1,o,i.range,!0);r(i,l.values,o,n)})},this)},t.prototype.setInputRanges=function(e,n){N(e,function(r){var i=this.findTargetInfo(r,n);if(r.range=r.range||[],i&&i!==!0){r.panelId=i.panelId;var a=q1[r.brushType](0,i.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?qL[r.brushType](a.values,o.offset,d$(a.xyMinMax,o.xyMinMax)):a.values}},this)},t.prototype.makePanelOpts=function(e,n){return bt(this._targetInfoList,function(r){var i=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:n?n(r):null,clipPath:WX(i),isTargetByCursor:qX(i,e,r.coordSysModel),getLinearBrushOtherExtent:XX(i)}})},t.prototype.controlSeries=function(e,n,r){var i=this.findTargetInfo(e,r);return i===!0||i&&Yt(i.coordSyses,n.coordinateSystem)>=0},t.prototype.findTargetInfo=function(e,n){for(var r=this._targetInfoList,i=UL(n,e),a=0;a<r.length;a++){var o=r[a],l=e.panelId;if(l){if(o.panelId===l)return o}else for(var s=0;s<YL.length;s++)if(YL[s](i,o))return o}return!0},t})();function qb(t){return t[0]>t[1]&&t.reverse(),t}function UL(t,e){return jf(t,e,{includeMainTypes:f$})}var h$={grid:function(t,e){var n=t.xAxisModels,r=t.yAxisModels,i=t.gridModels,a=Bt(),o={},l={};!n&&!r&&!i||(N(n,function(s){var c=s.axis.grid.model;a.set(c.id,c),o[c.id]=!0}),N(r,function(s){var c=s.axis.grid.model;a.set(c.id,c),l[c.id]=!0}),N(i,function(s){a.set(s.id,s),o[s.id]=!0,l[s.id]=!0}),a.each(function(s){var c=s.coordinateSystem,h=[];N(c.getCartesians(),function(d,g){(Yt(n,d.getAxis("x").model)>=0||Yt(r,d.getAxis("y").model)>=0)&&h.push(d)}),e.push({panelId:"grid--"+s.id,gridModel:s,coordSysModel:s,coordSys:h[0],coordSyses:h,getPanelRect:WL.grid,xAxisDeclared:o[s.id],yAxisDeclared:l[s.id]})}))},geo:function(t,e){N(t.geoModels,function(n){var r=n.coordinateSystem;e.push({panelId:"geo--"+n.id,geoModel:n,coordSysModel:n,coordSys:r,coordSyses:[r],getPanelRect:WL.geo})})}},YL=[function(t,e){var n=t.xAxisModel,r=t.yAxisModel,i=t.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],WL={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Ul(t)),e}},q1={lineX:Wt(XL,0),lineY:Wt(XL,1),rect:function(t,e,n,r){var i=t?e.pointToData([n[0][0],n[1][0]],r):e.dataToPoint([n[0][0],n[1][0]],r),a=t?e.pointToData([n[0][1],n[1][1]],r):e.dataToPoint([n[0][1],n[1][1]],r),o=[qb([i[0],a[0]]),qb([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(t,e,n,r){var i=[[1/0,-1/0],[1/0,-1/0]],a=bt(n,function(o){var l=t?e.pointToData(o,r):e.dataToPoint(o,r);return i[0][0]=Math.min(i[0][0],l[0]),i[1][0]=Math.min(i[1][0],l[1]),i[0][1]=Math.max(i[0][1],l[0]),i[1][1]=Math.max(i[1][1],l[1]),l});return{values:a,xyMinMax:i}}};function XL(t,e,n,r){var i=n.getAxis(["x","y"][t]),a=qb(bt([0,1],function(l){return e?i.coordToData(i.toLocalCoord(r[l]),!0):i.toGlobalCoord(i.dataToCoord(r[l]))})),o=[];return o[t]=a,o[1-t]=[NaN,NaN],{values:a,xyMinMax:o}}var qL={lineX:Wt(ZL,0),lineY:Wt(ZL,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return bt(t,function(r,i){return[r[0]-n[0]*e[i][0],r[1]-n[1]*e[i][1]]})}};function ZL(t,e,n,r){return[e[0]-r[t]*n[0],e[1]-r[t]*n[1]]}function d$(t,e){var n=$L(t),r=$L(e),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function $L(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var Zb=N,v$=hH("toolbox-dataZoom_"),p$=(function(t){at(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r,i,a){this._brushController||(this._brushController=new hB(i.getZr()),this._brushController.on("brush",Tt(this._onBrush,this)).mount()),y$(n,r,this,a,i),m$(n,r)},e.prototype.onclick=function(n,r,i){g$[i].call(this)},e.prototype.remove=function(n,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(n,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(n){var r=n.areas;if(!n.isEnd||!r.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new XS(qS(this.model),a,{include:["grid"]});o.matchOutputRanges(r,a,function(c,h,d){if(d.type==="cartesian2d"){var g=c.brushType;g==="rect"?(l("x",d,h[0]),l("y",d,h[1])):l({lineX:"x",lineY:"y"}[g],d,h)}}),o$(a,i),this._dispatchZoomAction(i);function l(c,h,d){var g=h.getAxis(c),p=g.model,m=s(c,p,a),x=m.findRepresentativeAxisProxy(p).getMinMaxSpan();(x.minValueSpan!=null||x.maxValueSpan!=null)&&(d=Jl(0,d.slice(),g.scale.getExtent(),0,x.minValueSpan,x.maxValueSpan)),m&&(i[m.id]={dataZoomId:m.id,startValue:d[0],endValue:d[1]})}function s(c,h,d){var g;return d.eachComponent({mainType:"dataZoom",subType:"select"},function(p){var m=p.getAxisModel(c,h.componentIndex);m&&(g=p)}),g}},e.prototype._dispatchZoomAction=function(n){var r=[];Zb(n,function(i,a){r.push(Rt(i))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(n){var r={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:n.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:ot.color.backgroundTint}};return r},e})(Yr),g$={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(l$(this.ecModel))}};function qS(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function m$(t,e){t.setIconStatus("back",u$(e)>1?"emphasis":"normal")}function y$(t,e,n,r,i){var a=n._isZoomActive;r&&r.type==="takeGlobalCursor"&&(a=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),n._isZoomActive=a,t.setIconStatus("zoom",a?"emphasis":"normal");var o=new XS(qS(t),e,{include:["grid"]}),l=o.makePanelOpts(i,function(s){return s.xAxisDeclared&&!s.yAxisDeclared?"lineX":!s.xAxisDeclared&&s.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(l).enableBrush(a&&l.length?{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()}:!1)}hF("dataZoom",function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(!e||e.get(n)==null)return;var r=e.getModel(n),i=[],a=qS(r),o=jf(t,a);Zb(o.xAxisModels,function(s){return l(s,"xAxis","xAxisIndex")}),Zb(o.yAxisModels,function(s){return l(s,"yAxis","yAxisIndex")});function l(s,c,h){var d=s.componentIndex,g={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:v$+c+d};g[h]=d,i.push(g)}return i});function x$(t){t.registerComponentModel(UZ),t.registerComponentView(YZ),yu("saveAsImage",XZ),yu("magicType",ZZ),yu("dataView",i$),yu("dataZoom",p$),yu("restore",c$),Wn(GZ)}var b$=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:ot.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:ot.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:ot.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:ot.color.tertiary,fontSize:14}},e})(ce);function GB(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function UB(t){if(Ft.domSupported){for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}}var YB=UB(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),_$=UB(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function WB(t,e){if(!t)return e;e=SO(e,!0);var n=t.indexOf(e);return t=n===-1?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function S$(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?n[e]:null}var w$=WB(_$,"transition"),ZS=WB(YB,"transform"),T$="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ft.transform3dSupported?"will-change:transform;":"");function C$(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function M$(t,e,n){if(!St(n)||n==="inside")return"";var r=t.get("backgroundColor"),i=t.get("borderWidth");e=Kl(e);var a=C$(n),o=Math.max(Math.round(i)*1.5,6),l="",s=ZS+":",c;Yt(["left","right"],a)>-1?(l+="top:50%",s+="translateY(-50%) rotate("+(c=a==="left"?-225:-45)+"deg)"):(l+="left:50%",s+="translateX(-50%) rotate("+(c=a==="top"?225:45)+"deg)");var h=c*Math.PI/180,d=o+i,g=d*Math.abs(Math.cos(h))+d*Math.abs(Math.sin(h)),p=Math.round(((g-Math.SQRT2*i)/2+Math.SQRT2*i-(g-d)/2)*100)/100;l+=";"+a+":-"+p+"px";var m=e+" solid "+i+"px;",x=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",l+";"+s+";","border-bottom:"+m,"border-right:"+m,"background-color:"+r+";"];return'<div style="'+x.join("")+'"></div>'}function A$(t,e,n){var r="cubic-bezier(0.23,1,0.32,1)",i="",a="";return n&&(i=" "+t/2+"s "+r,a="opacity"+i+",visibility"+i),e||(i=" "+t+"s "+r,a+=(a.length?",":"")+(Ft.transformSupported?""+ZS+i:",left"+i+",top"+i)),w$+":"+a}function QL(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!Ft.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var a=Ft.transform3dSupported,o="translate"+(a?"3d":"")+"("+r+","+i+(a?",0":"")+")";return n?"top:0;left:0;"+ZS+":"+o+";":[["top",0],["left",0],[YB,o]]}function D$(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont());var i=zt(t.get("lineHeight"),Math.round(n*3/2));n&&e.push("line-height:"+i+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,l=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+l+"px "+s+"px "+o+"px "+a),N(["decoration","align"],function(c){var h=t.get(c);h&&e.push("text-"+c+":"+h)}),e.join(";")}function k$(t,e,n,r){var i=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),l=t.get("shadowBlur"),s=t.get("shadowColor"),c=t.get("shadowOffsetX"),h=t.get("shadowOffsetY"),d=t.getModel("textStyle"),g=tz(t,"html"),p=c+"px "+h+"px "+l+"px "+s;return i.push("box-shadow:"+p),e&&a>0&&i.push(A$(a,n,r)),o&&i.push("background-color:"+o),N(["width","color","radius"],function(m){var x="border-"+m,_=SO(x),b=t.get(_);b!=null&&i.push(x+":"+b+(m==="color"?"":"px"))}),i.push(D$(d)),g!=null&&i.push("padding:"+Oh(g).join("px ")+"px"),i.join(";")+";"}function KL(t,e,n,r,i){var a=e&&e.painter;if(n){var o=a&&a.getViewportRoot();o&&V6(t,o,n,r,i)}else{t[0]=r,t[1]=i;var l=a&&a.getViewportRootOffset();l&&(t[0]+=l.offsetLeft,t[1]+=l.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var L$=(function(){function t(e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ft.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=e.getZr(),a=n.appendTo,o=a&&(St(a)?document.querySelector(a):Ru(a)?a:It(a)&&a(e.getDom()));KL(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(r),this._api=e,this._container=o;var l=this;r.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},r.onmousemove=function(s){if(s=s||window.event,!l._enterable){var c=i.handler,h=i.painter.getViewportRoot();Vr(h,s,!0),c.dispatch("mousemove",s)}},r.onmouseleave=function(){l._inContent=!1,l._enterable&&l._show&&l.hideLater(l._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var n=this._api.getDom(),r=S$(n,"position"),i=n.style;i.position!=="absolute"&&r!=="absolute"&&(i.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,i=r.style,a=this._styleCoord;r.innerHTML?i.cssText=T$+k$(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+QL(a[0],a[1],!0)+("border-color:"+Kl(n)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,n,r,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var l="";if(St(a)&&r.get("trigger")==="item"&&!GB(r)&&(l=M$(r,i,a)),St(e))o.innerHTML=e+l;else if(e){o.innerHTML="",pt(e)||(e=[e]);for(var s=0;s<e.length;s++)Ru(e[s])&&e[s].parentNode!==o&&o.appendChild(e[s]);if(l&&o.childNodes.length){var c=document.createElement("div");c.innerHTML=l,o.appendChild(c)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,n){if(this.el){var r=this._styleCoord;if(KL(r,this._zr,this._container,e,n),r[0]!=null&&r[1]!=null){var i=this.el.style,a=QL(r[0],r[1]);N(a,function(o){i[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),n*this._zr.getHeight())},t.prototype.hide=function(){var e=this,n=this.el.style;this._enableDisplayTransition?(n.visibility="hidden",n.opacity="0"):n.display="none",Ft.transform3dSupported&&(n.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Tt(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;H6(e&&e.painter&&e.painter.getViewportRoot(),this._container);var n=this.el;if(n){n.onmouseenter=n.onmousemove=n.onmouseleave=null;var r=n.parentNode;r&&r.removeChild(n)}this.el=this._container=null},t})(),E$=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),tE(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var n=e.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,n,r,i,a){var o=this;Lt(e)&&jn(""),this.el&&this._zr.remove(this.el);var l=r.getModel("textStyle");this.el=new me({style:{rich:n.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:l.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:tz(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),N(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(c){o.el.style[c]=r.get(c)}),N(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(c){o.el.style[c]=l.get(c)||0}),this._zr.add(this.el);var s=this;this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,n=this.el.getBoundingRect(),r=JL(e.style);return[n.width+r.left+r.right,n.height+r.top+r.bottom]},t.prototype.moveTo=function(e,n){var r=this.el;if(r){var i=this._styleCoord;tE(i,this._zr,e,n),e=i[0],n=i[1];var a=r.style,o=vo(a.borderWidth||0),l=JL(a);r.x=e+o+l.left,r.y=n+o+l.top,r.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),n*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Tt(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function vo(t){return Math.max(0,t)}function JL(t){var e=vo(t.shadowBlur||0),n=vo(t.shadowOffsetX||0),r=vo(t.shadowOffsetY||0);return{left:vo(e-n),right:vo(e+n),top:vo(e-r),bottom:vo(e+r)}}function tE(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var R$=new le({shape:{x:-1,y:-1,width:2,height:2}}),I$=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){if(!(Ft.node||!r.getDom())){var i=n.getComponent("tooltip"),a=this._renderMode=xH(i.get("renderMode"));this._tooltipContent=a==="richText"?new E$(r):new L$(r,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(n,r,i){if(!(Ft.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=n,this._ecModel=r,this._api=i;var a=this._tooltipContent;a.update(n),a.setEnterable(n.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&n.get("transitionDuration")?Nh(this,"_updatePosition",50,"fixRate"):Xp(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var n=this._tooltipModel,r=n.get("triggerOn");OB("itemTooltip",this._api,Tt(function(i,a,o){r!=="none"&&(r.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,i=this._api,a=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(n,r,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(n,r,i,a){if(!(a.from===this.uid||Ft.node||!i.getDom())){var o=eE(a,i);this._ticket="";var l=a.dataByCoordSys,s=N$(a,r,i);if(s){var c=s.el.getBoundingRect().clone();c.applyTransform(s.el.transform),this._tryShow({offsetX:c.x+c.width/2,offsetY:c.y+c.height/2,target:s.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var h=R$;h.x=a.x,h.y=a.y,h.update(),$t(h).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:h},o)}else if(l)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:l,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,i,a))return;var d=zB(a,r),g=d.point[0],p=d.point[1];g!=null&&p!=null&&this._tryShow({offsetX:g,offsetY:p,target:d.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(n,r,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(eE(a,i))},e.prototype._manuallyAxisShowTip=function(n,r,i,a){var o=a.seriesIndex,l=a.dataIndex,s=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||l==null||s==null)){var c=r.getSeriesByIndex(o);if(c){var h=c.getData(),d=mf([h.getItemModel(l),c,(c.coordinateSystem||{}).model],this._tooltipModel);if(d.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:l,position:a.position}),!0}}},e.prototype._tryShow=function(n,r){var i=n.target,a=this._tooltipModel;if(a){this._lastX=n.offsetX,this._lastY=n.offsetY;var o=n.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,n);else if(i){var l=$t(i);if(l.ssrType==="legend")return;this._lastDataByCoordSys=null;var s,c;Mu(i,function(h){if(h.tooltipDisabled)return s=c=null,!0;s||c||($t(h).dataIndex!=null?s=h:$t(h).tooltipConfig!=null&&(c=h))},!0),s?this._showSeriesItemTooltip(n,s,r):c?this._showComponentItemTooltip(n,c,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(n,r){var i=n.get("showDelay");r=Tt(r,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(r,i):r()},e.prototype._showAxisTooltip=function(n,r){var i=this._ecModel,a=this._tooltipModel,o=[r.offsetX,r.offsetY],l=mf([r.tooltipOption],a),s=this._renderMode,c=[],h=Gi("section",{blocks:[],noHeader:!0}),d=[],g=new d1;N(n,function(S){N(S.dataByAxis,function(T){var A=i.getComponent(T.axisDim+"Axis",T.axisIndex),D=T.value;if(!(!A||D==null)){var M=RB(D,A.axis,i,T.seriesDataIndices,T.valueLabelOpt),k=Gi("section",{header:M,noHeader:!zi(M),sortBlocks:!0,blocks:[]});h.blocks.push(k),N(T.seriesDataIndices,function(I){var z=i.getSeriesByIndex(I.seriesIndex),L=I.dataIndexInside,O=z.getDataParams(L);if(!(O.dataIndex<0)){O.axisDim=T.axisDim,O.axisIndex=T.axisIndex,O.axisType=T.axisType,O.axisId=T.axisId,O.axisValue=eg(A.axis,{value:D}),O.axisValueLabel=M,O.marker=g.makeTooltipMarker("item",Kl(O.color),s);var H=yD(z.formatTooltip(L,!0,null)),F=H.frag;if(F){var Y=mf([z],a).get("valueFormatter");k.blocks.push(Y?ht({valueFormatter:Y},F):F)}H.text&&d.push(H.text),c.push(O)}})}})}),h.blocks.reverse(),d.reverse();var p=r.position,m=l.get("order"),x=TD(h,g,s,m,i.get("useUTC"),l.get("textStyle"));x&&d.unshift(x);var _=s==="richText"?`
113
+
114
+ `:"<br/>",b=d.join(_);this._showOrMove(l,function(){this._updateContentNotChangedOnAxis(n,c)?this._updatePosition(l,p,o[0],o[1],this._tooltipContent,c):this._showTooltipContent(l,b,c,Math.random()+"",o[0],o[1],p,null,g)})},e.prototype._showSeriesItemTooltip=function(n,r,i){var a=this._ecModel,o=$t(r),l=o.seriesIndex,s=a.getSeriesByIndex(l),c=o.dataModel||s,h=o.dataIndex,d=o.dataType,g=c.getData(d),p=this._renderMode,m=n.positionDefault,x=mf([g.getItemModel(h),c,s&&(s.coordinateSystem||{}).model],this._tooltipModel,m?{position:m}:null),_=x.get("trigger");if(!(_!=null&&_!=="item")){var b=c.getDataParams(h,d),S=new d1;b.marker=S.makeTooltipMarker("item",Kl(b.color),p);var T=yD(c.formatTooltip(h,!1,d)),A=x.get("order"),D=x.get("valueFormatter"),M=T.frag,k=M?TD(D?ht({valueFormatter:D},M):M,S,p,A,a.get("useUTC"),x.get("textStyle")):T.text,I="item_"+c.name+"_"+h;this._showOrMove(x,function(){this._showTooltipContent(x,k,b,I,n.offsetX,n.offsetY,n.position,n.target,S)}),i({type:"showTip",dataIndexInside:h,dataIndex:g.getRawIndex(h),seriesIndex:l,from:this.uid})}},e.prototype._showComponentItemTooltip=function(n,r,i){var a=this._renderMode==="html",o=$t(r),l=o.tooltipConfig,s=l.option||{},c=s.encodeHTMLContent;if(St(s)){var h=s;s={content:h,formatter:h},c=!0}c&&a&&s.content&&(s=Rt(s),s.content=ir(s.content));var d=[s],g=this._ecModel.getComponent(o.componentMainType,o.componentIndex);g&&d.push(g),d.push({formatter:s.content});var p=n.positionDefault,m=mf(d,this._tooltipModel,p?{position:p}:null),x=m.get("content"),_=Math.random()+"",b=new d1;this._showOrMove(m,function(){var S=Rt(m.get("formatterParams")||{});this._showTooltipContent(m,x,S,_,n.offsetX,n.offsetY,n.position,r,b)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(n,r,i,a,o,l,s,c,h){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var d=this._tooltipContent;d.setEnterable(n.get("enterable"));var g=n.get("formatter");s=s||n.get("position");var p=r,m=this._getNearestPoint([o,l],i,n.get("trigger"),n.get("borderColor"),n.get("defaultBorderColor",!0)),x=m.color;if(g)if(St(g)){var _=n.ecModel.get("useUTC"),b=pt(i)?i[0]:i,S=b&&b.axisType&&b.axisType.indexOf("time")>=0;p=g,S&&(p=Ng(b.axisValue,p,_)),p=wO(p,i,!0)}else if(It(g)){var T=Tt(function(A,D){A===this._ticket&&(d.setContent(D,h,n,x,s),this._updatePosition(n,s,o,l,d,i,c))},this);this._ticket=a,p=g(i,a,T)}else p=g;d.setContent(p,h,n,x,s),d.show(n,x),this._updatePosition(n,s,o,l,d,i,c)}},e.prototype._getNearestPoint=function(n,r,i,a,o){if(i==="axis"||pt(r))return{color:a||o};if(!pt(r))return{color:a||r.color||r.borderColor}},e.prototype._updatePosition=function(n,r,i,a,o,l,s){var c=this._api.getWidth(),h=this._api.getHeight();r=r||n.get("position");var d=o.getSize(),g=n.get("align"),p=n.get("verticalAlign"),m=s&&s.getBoundingRect().clone();if(s&&m.applyTransform(s.transform),It(r)&&(r=r([i,a],l,o.el,m,{viewSize:[c,h],contentSize:d.slice()})),pt(r))i=At(r[0],c),a=At(r[1],h);else if(Lt(r)){var x=r;x.width=d[0],x.height=d[1];var _=On(x,{width:c,height:h});i=_.x,a=_.y,g=null,p=null}else if(St(r)&&s){var b=B$(r,m,d,n.get("borderWidth"));i=b[0],a=b[1]}else{var b=O$(i,a,o,c,h,g?null:20,p?null:20);i=b[0],a=b[1]}if(g&&(i-=nE(g)?d[0]/2:g==="right"?d[0]:0),p&&(a-=nE(p)?d[1]/2:p==="bottom"?d[1]:0),GB(n)){var b=z$(i,a,o,c,h);i=b[0],a=b[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(n,r){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===n.length;return o&&N(i,function(l,s){var c=l.dataByAxis||[],h=n[s]||{},d=h.dataByAxis||[];o=o&&c.length===d.length,o&&N(c,function(g,p){var m=d[p]||{},x=g.seriesDataIndices||[],_=m.seriesDataIndices||[];o=o&&g.value===m.value&&g.axisType===m.axisType&&g.axisId===m.axisId&&x.length===_.length,o&&N(x,function(b,S){var T=_[S];o=o&&b.seriesIndex===T.seriesIndex&&b.dataIndex===T.dataIndex}),a&&N(g.seriesDataIndices,function(b){var S=b.seriesIndex,T=r[S],A=a[S];T&&A&&A.data!==T.data&&(o=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!o},e.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},e.prototype.dispose=function(n,r){Ft.node||!r.getDom()||(Xp(this,"_updatePosition"),this._tooltipContent.dispose(),Wb("itemTooltip",r))},e.type="tooltip",e})(Mn);function mf(t,e,n){var r=e.ecModel,i;n?(i=new xe(n,r,r),i=new xe(e.option,i,r)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof xe&&(o=o.get("tooltip",!0)),St(o)&&(o={formatter:o}),o&&(i=new xe(o,i,r)))}return i}function eE(t,e){return t.dispatchAction||Tt(e.dispatchAction,e)}function O$(t,e,n,r,i,a,o){var l=n.getSize(),s=l[0],c=l[1];return a!=null&&(t+s+a+2>r?t-=s+a:t+=a),o!=null&&(e+c+o>i?e-=c+o:e+=o),[t,e]}function z$(t,e,n,r,i){var a=n.getSize(),o=a[0],l=a[1];return t=Math.min(t+o,r)-o,e=Math.min(e+l,i)-l,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function B$(t,e,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,l=0,s=0,c=e.width,h=e.height;switch(t){case"inside":l=e.x+c/2-i/2,s=e.y+h/2-a/2;break;case"top":l=e.x+c/2-i/2,s=e.y-a-o;break;case"bottom":l=e.x+c/2-i/2,s=e.y+h+o;break;case"left":l=e.x-i-o,s=e.y+h/2-a/2;break;case"right":l=e.x+c+o,s=e.y+h/2-a/2}return[l,s]}function nE(t){return t==="center"||t==="middle"}function N$(t,e,n){var r=D_(t).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var a=Wu(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var l=n.getViewOfComponentModel(o),s;if(l.group.traverse(function(c){var h=$t(c).tooltipConfig;if(h&&h.name===t.name)return s=c,!0}),s)return{componentMainType:i,componentIndex:o.componentIndex,el:s}}}}function P$(t){Wn(BB),t.registerComponentModel(b$),t.registerComponentView(I$),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},cn),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},cn)}var V$=["rect","polygon","keep","clear"];function H$(t,e){var n=ln(t?t.brush:[]);if(n.length){var r=[];N(n,function(s){var c=s.hasOwnProperty("toolbox")?s.toolbox:[];c instanceof Array&&(r=r.concat(c))});var i=t&&t.toolbox;pt(i)&&(i=i[0]),i||(i={feature:{}},t.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),l=o.type||(o.type=[]);l.push.apply(l,r),j$(l),e&&!l.length&&l.push.apply(l,V$)}}function j$(t){var e={};N(t,function(n){e[n]=1}),t.length=0,N(e,function(n,r){t.push(r)})}var rE=N;function iE(t){if(t){for(var e in t)if(t.hasOwnProperty(e))return!0}}function $b(t,e,n){var r={};return rE(e,function(a){var o=r[a]=i();rE(t[a],function(l,s){if(fn.isValidType(s)){var c={type:s,visual:l};n&&n(c,a),o[s]=new fn(c),s==="opacity"&&(c=Rt(c),c.type="colorAlpha",o.__hidden.__alphaForOpacity=new fn(c))}})}),r;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function XB(t,e,n){var r;N(n,function(i){e.hasOwnProperty(i)&&iE(e[i])&&(r=!0)}),r&&N(n,function(i){e.hasOwnProperty(i)&&iE(e[i])?t[i]=Rt(e[i]):delete t[i]})}function F$(t,e,n,r,i,a){var o={};N(t,function(d){var g=fn.prepareVisualTypes(e[d]);o[d]=g});var l;function s(d){return cS(n,l,d)}function c(d,g){cz(n,l,d,g)}n.each(h);function h(d,g){l=d;var p=n.getRawDataItem(l);if(!(p&&p.visualMap===!1))for(var m=r.call(i,d),x=e[m],_=o[m],b=0,S=_.length;b<S;b++){var T=_[b];x[T]&&x[T].applyVisual(d,s,c)}}}function G$(t,e,n,r){var i={};return N(t,function(a){var o=fn.prepareVisualTypes(e[a]);i[a]=o}),{progress:function(o,l){var s;r!=null&&(s=l.getDimensionIndex(r));function c(D){return cS(l,d,D)}function h(D,M){cz(l,d,D,M)}for(var d,g=l.getStore();(d=o.next())!=null;){var p=l.getRawDataItem(d);if(!(p&&p.visualMap===!1))for(var m=r!=null?g.get(s,d):d,x=n(m),_=e[x],b=i[x],S=0,T=b.length;S<T;S++){var A=b[S];_[A]&&_[A].applyVisual(m,c,h)}}}}}function U$(t){var e=t.brushType,n={point:function(r){return aE[e].point(r,n,t)},rect:function(r){return aE[e].rect(r,n,t)}};return n}var aE={lineX:oE(0),lineY:oE(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&uf(n.range,t[0],t[1])},rect:function(t,e,n){var r=n.range;if(!t||r.length<=1)return!1;var i=t.x,a=t.y,o=t.width,l=t.height,s=r[0];if(uf(r,i,a)||uf(r,i+o,a)||uf(r,i,a+l)||uf(r,i+o,a+l)||Pt.create(t).contain(s[0],s[1])||Ef(i,a,i+o,a,r)||Ef(i,a,i,a+l,r)||Ef(i+o,a,i+o,a+l,r)||Ef(i,a+l,i+o,a+l,r))return!0}}};function oE(t){var e=["x","y"],n=["width","height"];return{point:function(r,i,a){if(r){var o=a.range,l=r[t];return yf(l,o)}},rect:function(r,i,a){if(r){var o=a.range,l=[r[e[t]],r[e[t]]+r[n[t]]];return l[1]<l[0]&&l.reverse(),yf(l[0],o)||yf(l[1],o)||yf(o[0],l)||yf(o[1],l)}}}}function yf(t,e){return e[0]<=t&&t<=e[1]}var lE=["inBrush","outOfBrush"],Z1="__ecBrushSelect",Qb="__ecInBrushSelectEvent";function qB(t){t.eachComponent({mainType:"brush"},function(e){var n=e.brushTargetManager=new XS(e.option,t);n.setInputRanges(e.areas,t)})}function Y$(t,e,n){var r=[],i,a;t.eachComponent({mainType:"brush"},function(o){n&&n.type==="takeGlobalCursor"&&o.setBrushOption(n.key==="brush"?n.brushOption:{brushType:!1})}),qB(t),t.eachComponent({mainType:"brush"},function(o,l){var s={brushId:o.id,brushIndex:l,brushName:o.name,areas:Rt(o.areas),selected:[]};r.push(s);var c=o.option,h=c.brushLink,d=[],g=[],p=[],m=!1;l||(i=c.throttleType,a=c.throttleDelay);var x=bt(o.areas,function(D){var M=Z$[D.brushType],k=qt({boundingRect:M?M(D):void 0},D);return k.selectors=U$(k),k}),_=$b(o.option,lE,function(D){D.mappingMethod="fixed"});pt(h)&&N(h,function(D){d[D]=1});function b(D){return h==="all"||!!d[D]}function S(D){return!!D.length}t.eachSeries(function(D,M){var k=p[M]=[];D.subType==="parallel"?T(D,M):A(D,M,k)});function T(D,M){var k=D.coordinateSystem;m=m||k.hasAxisBrushed(),b(M)&&k.eachActiveState(D.getData(),function(I,z){I==="active"&&(g[z]=1)})}function A(D,M,k){if(!(!D.brushSelector||q$(o,M))&&(N(x,function(z){o.brushTargetManager.controlSeries(z,D,t)&&k.push(z),m=m||S(k)}),b(M)&&S(k))){var I=D.getData();I.each(function(z){sE(D,k,I,z)&&(g[z]=1)})}}t.eachSeries(function(D,M){var k={seriesId:D.id,seriesIndex:M,seriesName:D.name,dataIndex:[]};s.selected.push(k);var I=p[M],z=D.getData(),L=b(M)?function(O){return g[O]?(k.dataIndex.push(z.getRawIndex(O)),"inBrush"):"outOfBrush"}:function(O){return sE(D,I,z,O)?(k.dataIndex.push(z.getRawIndex(O)),"inBrush"):"outOfBrush"};(b(M)?m:S(I))&&F$(lE,_,z,L)})}),W$(e,i,a,r,n)}function W$(t,e,n,r,i){if(i){var a=t.getZr();if(!a[Qb]){a[Z1]||(a[Z1]=X$);var o=Nh(a,Z1,n,e);o(t,r)}}}function X$(t,e){if(!t.isDisposed()){var n=t.getZr();n[Qb]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[Qb]=!1}}function sE(t,e,n,r){for(var i=0,a=e.length;i<a;i++){var o=e[i];if(t.brushSelector(r,n,o.selectors,o))return!0}}function q$(t,e){var n=t.option.seriesIndex;return n!=null&&n!=="all"&&(pt(n)?Yt(n,e)<0:e!==n)}var Z$={rect:function(t){return uE(t.range)},polygon:function(t){for(var e,n=t.range,r=0,i=n.length;r<i;r++){e=e||[[1/0,-1/0],[1/0,-1/0]];var a=n[r];a[0]<e[0][0]&&(e[0][0]=a[0]),a[0]>e[0][1]&&(e[0][1]=a[0]),a[1]<e[1][0]&&(e[1][0]=a[1]),a[1]>e[1][1]&&(e[1][1]=a[1])}return e&&uE(e)}};function uE(t){return new Pt(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var $$=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){this.ecModel=n,this.api=r,this.model,(this._brushController=new hB(r.getZr())).on("brush",Tt(this._onBrush,this)).mount()},e.prototype.render=function(n,r,i,a){this.model=n,this._updateController(n,r,i,a)},e.prototype.updateTransform=function(n,r,i,a){qB(r),this._updateController(n,r,i,a)},e.prototype.updateVisual=function(n,r,i,a){this.updateTransform(n,r,i,a)},e.prototype.updateView=function(n,r,i,a){this._updateController(n,r,i,a)},e.prototype._updateController=function(n,r,i,a){(!a||a.$from!==n.id)&&this._brushController.setPanels(n.brushTargetManager.makePanelOpts(i)).enableBrush(n.brushOption).updateCovers(n.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(n){var r=this.model.id,i=this.model.brushTargetManager.setOutputRanges(n.areas,this.ecModel);(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Rt(i),$from:r}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Rt(i),$from:r})},e.type="brush",e})(Mn),Q$=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return e.prototype.optionUpdated=function(n,r){var i=this.option;!r&&XB(i,n,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:this.option.defaultOutOfBrushColor},a.hasOwnProperty("liftZ")||(a.liftZ=5)},e.prototype.setAreas=function(n){n&&(this.areas=bt(n,function(r){return cE(this.option,r)},this))},e.prototype.setBrushOption=function(n){this.brushOption=cE(this.option,n),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:ot.color.backgroundTint,borderColor:ot.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:ot.color.disabled},e})(ce);function cE(t,e){return Xt({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new xe(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var K$=["rect","polygon","lineX","lineY","keep","clear"],J$=(function(t){at(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r,i){var a,o,l;r.eachComponent({mainType:"brush"},function(s){a=s.brushType,o=s.brushOption.brushMode||"single",l=l||!!s.areas.length}),this._brushType=a,this._brushMode=o,N(n.get("type",!0),function(s){n.setIconStatus(s,(s==="keep"?o==="multiple":s==="clear"?l:s===a)?"emphasis":"normal")})},e.prototype.updateView=function(n,r,i){this.render(n,r,i)},e.prototype.getIcons=function(){var n=this.model,r=n.get("icon",!0),i={};return N(n.get("type",!0),function(a){r[a]&&(i[a]=r[a])}),i},e.prototype.onclick=function(n,r,i){var a=this._brushType,o=this._brushMode;i==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(n){var r={show:!0,type:K$.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:n.getLocaleModel().get(["toolbox","brush","title"])};return r},e})(Yr);function tQ(t){t.registerComponentView($$),t.registerComponentModel(Q$),t.registerPreprocessor(H$),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,Y$),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,n){n.eachComponent({mainType:"brush",query:e},function(r){r.setAreas(e.areas)})}),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},cn),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},cn),yu("brush",J$)}var eQ=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:ot.size.m,backgroundColor:ot.color.transparent,borderColor:ot.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:ot.color.primary},subtextStyle:{fontSize:12,color:ot.color.quaternary}},e})(ce),nQ=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){if(this.group.removeAll(),!!n.get("show")){var a=this.group,o=n.getModel("textStyle"),l=n.getModel("subtextStyle"),s=n.get("textAlign"),c=zt(n.get("textBaseline"),n.get("textVerticalAlign")),h=new me({style:$e(o,{text:n.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),d=h.getBoundingRect(),g=n.get("subtext"),p=new me({style:$e(l,{text:g,fill:l.getTextColor(),y:d.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),m=n.get("link"),x=n.get("sublink"),_=n.get("triggerEvent",!0);h.silent=!m&&!_,p.silent=!x&&!_,m&&h.on("click",function(){Yp(m,"_"+n.get("target"))}),x&&p.on("click",function(){Yp(x,"_"+n.get("subtarget"))}),$t(h).eventData=$t(p).eventData=_?{componentType:"title",componentIndex:n.componentIndex}:null,a.add(h),g&&a.add(p);var b=a.getBoundingRect(),S=n.getBoxLayoutParams();S.width=b.width,S.height=b.height;var T=ti(n,i),A=On(S,T.refContainer,n.get("padding"));s||(s=n.get("left")||n.get("right"),s==="middle"&&(s="center"),s==="right"?A.x+=A.width:s==="center"&&(A.x+=A.width/2)),c||(c=n.get("top")||n.get("bottom"),c==="center"&&(c="middle"),c==="bottom"?A.y+=A.height:c==="middle"&&(A.y+=A.height/2),c=c||"top"),a.x=A.x,a.y=A.y,a.markRedraw();var D={align:s,verticalAlign:c};h.setStyle(D),p.setStyle(D),b=a.getBoundingRect();var M=A.margin,k=n.getItemStyle(["color","opacity"]);k.fill=n.get("backgroundColor");var I=new le({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:n.get("borderRadius")},style:k,subPixelOptimize:!0,silent:!0});a.add(I)}},e.type="title",e})(Mn);function rQ(t){t.registerComponentModel(eQ),t.registerComponentView(nQ)}var iQ=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},Kb=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return e.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i),n.selected=n.selected||{},this._updateSelector(n)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},e.prototype._updateSelector=function(n){var r=n.selector,i=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),pt(r)&&N(r,function(a,o){St(a)&&(a={type:a}),r[o]=Xt(a,iQ(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,i=0;i<n.length;i++){var a=n[i].get("name");if(this.isSelected(a)){this.select(a),r=!0;break}}!r&&this.select(n[0].get("name"))}},e.prototype._updateData=function(n){var r=[],i=[];n.eachRawSeries(function(s){var c=s.name;i.push(c);var h;if(s.legendVisualProvider){var d=s.legendVisualProvider,g=d.getAllNames();n.isSeriesFiltered(s)||(i=i.concat(g)),g.length?r=r.concat(g):h=!0}else h=!0;h&&A_(s)&&r.push(s.name)}),this._availableNames=i;var a=this.get("data")||r,o=Bt(),l=bt(a,function(s){return(St(s)||ve(s))&&(s={name:s}),o.get(s.name)?null:(o.set(s.name,!0),new xe(s,this,this.ecModel))},this);this._data=Ze(l,function(s){return!!s})},e.prototype.getData=function(){return this._data},e.prototype.select=function(n){var r=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;N(a,function(o){r[o.get("name")]=!1})}r[n]=!0},e.prototype.unSelect=function(n){this.get("selectedMode")!=="single"&&(this.option.selected[n]=!1)},e.prototype.toggleSelected=function(n){var r=this.option.selected;r.hasOwnProperty(n)||(r[n]=!0),this[r[n]?"unSelect":"select"](n)},e.prototype.allSelect=function(){var n=this._data,r=this.option.selected;N(n,function(i){r[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var n=this._data,r=this.option.selected;N(n,function(i){var a=i.get("name",!0);r.hasOwnProperty(a)||(r[a]=!0),r[a]=!r[a]})},e.prototype.isSelected=function(n){var r=this.option.selected;return!(r.hasOwnProperty(n)&&!r[n])&&Yt(this._availableNames,n)>=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",bottom:ot.size.m,align:"auto",backgroundColor:ot.color.transparent,borderColor:ot.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:ot.color.disabled,inactiveBorderColor:ot.color.disabled,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:ot.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:ot.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:ot.color.tertiary,borderWidth:1,borderColor:ot.color.border},emphasis:{selectorLabel:{show:!0,color:ot.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(ce),uu=Wt,Jb=N,Kv=ie,ZB=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return e.prototype.init=function(){this.group.add(this._contentGroup=new Kv),this.group.add(this._selectorGroup=new Kv),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(n,r,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var o=n.get("align"),l=n.get("orient");(!o||o==="auto")&&(o=n.get("left")==="right"&&l==="vertical"?"right":"left");var s=n.get("selector",!0),c=n.get("selectorPosition",!0);s&&(!c||c==="auto")&&(c=l==="horizontal"?"end":"start"),this.renderInner(o,n,r,i,s,l,c);var h=ti(n,i).refContainer,d=n.getBoxLayoutParams(),g=n.get("padding"),p=On(d,h,g),m=this.layoutInner(n,o,p,a,s,c),x=On(qt({width:m.width,height:m.height},d),h,g);this.group.x=x.x-m.x,this.group.y=x.y-m.y,this.group.markRedraw(),this.group.add(this._backgroundEl=HB(m,n))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(n,r,i,a,o,l,s){var c=this.getContentGroup(),h=Bt(),d=r.get("selectedMode"),g=r.get("triggerEvent"),p=[];i.eachRawSeries(function(m){!m.get("legendHoverLink")&&p.push(m.id)}),Jb(r.getData(),function(m,x){var _=this,b=m.get("name");if(!this.newlineDisabled&&(b===""||b===`
115
+ `)){var S=new Kv;S.newline=!0,c.add(S);return}var T=i.getSeriesByName(b)[0];if(!h.get(b))if(T){var A=T.getData(),D=A.getVisual("legendLineStyle")||{},M=A.getVisual("legendIcon"),k=A.getVisual("style"),I=this._createItem(T,b,x,m,r,n,D,k,M,d,a);I.on("click",uu(fE,b,null,a,p)).on("mouseover",uu(t_,T.name,null,a,p)).on("mouseout",uu(e_,T.name,null,a,p)),i.ssr&&I.eachChild(function(z){var L=$t(z);L.seriesIndex=T.seriesIndex,L.dataIndex=x,L.ssrType="legend"}),g&&I.eachChild(function(z){_.packEventData(z,r,T,x,b)}),h.set(b,!0)}else i.eachRawSeries(function(z){var L=this;if(!h.get(b)&&z.legendVisualProvider){var O=z.legendVisualProvider;if(!O.containName(b))return;var H=O.indexOfName(b),F=O.getItemVisual(H,"style"),Y=O.getItemVisual(H,"legendIcon"),W=qr(F.fill);W&&W[3]===0&&(W[3]=.2,F=ht(ht({},F),{fill:Ca(W,"rgba")}));var V=this._createItem(z,b,x,m,r,n,{},F,Y,d,a);V.on("click",uu(fE,null,b,a,p)).on("mouseover",uu(t_,null,b,a,p)).on("mouseout",uu(e_,null,b,a,p)),i.ssr&&V.eachChild(function(X){var Z=$t(X);Z.seriesIndex=z.seriesIndex,Z.dataIndex=x,Z.ssrType="legend"}),g&&V.eachChild(function(X){L.packEventData(X,r,z,x,b)}),h.set(b,!0)}},this)},this),o&&this._createSelector(o,r,a,l,s)},e.prototype.packEventData=function(n,r,i,a,o){var l={componentType:"legend",componentIndex:r.componentIndex,dataIndex:a,value:o,seriesIndex:i.seriesIndex};$t(n).eventData=l},e.prototype._createSelector=function(n,r,i,a,o){var l=this.getSelectorGroup();Jb(n,function(c){var h=c.type,d=new me({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:h==="all"?"legendAllSelect":"legendInverseSelect",legendId:r.id})}});l.add(d);var g=r.getModel("selectorLabel"),p=r.getModel(["emphasis","selectorLabel"]);yi(d,{normal:g,emphasis:p},{defaultText:c.title}),Vp(d)})},e.prototype._createItem=function(n,r,i,a,o,l,s,c,h,d,g){var p=n.visualDrawType,m=o.get("itemWidth"),x=o.get("itemHeight"),_=o.isSelected(r),b=a.get("symbolRotate"),S=a.get("symbolKeepAspect"),T=a.get("icon");h=T||h||"roundRect";var A=aQ(h,a,s,c,p,_,g),D=new Kv,M=a.getModel("textStyle");if(It(n.getLegendIcon)&&(!T||T==="inherit"))D.add(n.getLegendIcon({itemWidth:m,itemHeight:x,icon:h,iconRotate:b,itemStyle:A.itemStyle,lineStyle:A.lineStyle,symbolKeepAspect:S}));else{var k=T==="inherit"&&n.getData().getVisual("symbol")?b==="inherit"?n.getData().getVisual("symbolRotate"):b:0;D.add(oQ({itemWidth:m,itemHeight:x,icon:h,iconRotate:k,itemStyle:A.itemStyle,symbolKeepAspect:S}))}var I=l==="left"?m+5:-5,z=l,L=o.get("formatter"),O=r;St(L)&&L?O=L.replace("{name}",r??""):It(L)&&(O=L(r));var H=_?M.getTextColor():a.get("inactiveColor");D.add(new me({style:$e(M,{text:O,x:I,y:x/2,fill:H,align:z,verticalAlign:"middle"},{inheritColor:H})}));var F=new le({shape:D.getBoundingRect(),style:{fill:"transparent"}}),Y=a.getModel("tooltip");return Y.get("show")&&Eh({el:F,componentModel:o,itemName:r,itemTooltipOption:Y.option}),D.add(F),D.eachChild(function(W){W.silent=!0}),F.silent=!d,this.getContentGroup().add(D),Vp(D),D.__legendDataIndex=i,D},e.prototype.layoutInner=function(n,r,i,a,o,l){var s=this.getContentGroup(),c=this.getSelectorGroup();Wl(n.get("orient"),s,n.get("itemGap"),i.width,i.height);var h=s.getBoundingRect(),d=[-h.x,-h.y];if(c.markRedraw(),s.markRedraw(),o){Wl("horizontal",c,n.get("selectorItemGap",!0));var g=c.getBoundingRect(),p=[-g.x,-g.y],m=n.get("selectorButtonGap",!0),x=n.getOrient().index,_=x===0?"width":"height",b=x===0?"height":"width",S=x===0?"y":"x";l==="end"?p[x]+=h[_]+m:d[x]+=g[_]+m,p[1-x]+=h[b]/2-g[b]/2,c.x=p[0],c.y=p[1],s.x=d[0],s.y=d[1];var T={x:0,y:0};return T[_]=h[_]+m+g[_],T[b]=Math.max(h[b],g[b]),T[S]=Math.min(0,g[S]+p[1-x]),T}else return s.x=d[0],s.y=d[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(Mn);function aQ(t,e,n,r,i,a,o){function l(_,b){_.lineWidth==="auto"&&(_.lineWidth=b.lineWidth>0?2:0),Jb(_,function(S,T){_[T]==="inherit"&&(_[T]=b[T])})}var s=e.getModel("itemStyle"),c=s.getItemStyle(),h=t.lastIndexOf("empty",0)===0?"fill":"stroke",d=s.getShallow("decal");c.decal=!d||d==="inherit"?r.decal:Kp(d,o),c.fill==="inherit"&&(c.fill=r[i]),c.stroke==="inherit"&&(c.stroke=r[h]),c.opacity==="inherit"&&(c.opacity=(i==="fill"?r:n).opacity),l(c,r);var g=e.getModel("lineStyle"),p=g.getLineStyle();if(l(p,n),c.fill==="auto"&&(c.fill=r.fill),c.stroke==="auto"&&(c.stroke=r.fill),p.stroke==="auto"&&(p.stroke=r.fill),!a){var m=e.get("inactiveBorderWidth"),x=c[h];c.lineWidth=m==="auto"?r.lineWidth>0&&x?2:0:c.lineWidth,c.fill=e.get("inactiveColor"),c.stroke=e.get("inactiveBorderColor"),p.stroke=g.get("inactiveColor"),p.lineWidth=g.get("inactiveWidth")}return{itemStyle:c,lineStyle:p}}function oQ(t){var e=t.icon||"roundRect",n=Yn(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill=ot.color.neutral00,n.style.lineWidth=2),n}function fE(t,e,n,r){e_(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:t??e}),t_(t,e,n,r)}function $B(t){for(var e=t.getZr().storage.getDisplayList(),n,r=0,i=e.length;r<i&&!(n=e[r].states.emphasis);)r++;return n&&n.hoverLayer}function t_(t,e,n,r){$B(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function e_(t,e,n,r){$B(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}function lQ(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(n){for(var r=0;r<e.length;r++)if(!e[r].isSelected(n.name))return!1;return!0})}function xf(t,e,n){var r=t==="allSelect"||t==="inverseSelect",i={},a=[];n.eachComponent({mainType:"legend",query:e},function(l){r?l[t]():l[t](e.name),hE(l,i),a.push(l.componentIndex)});var o={};return n.eachComponent("legend",function(l){N(i,function(s,c){l[s?"select":"unSelect"](c)}),hE(l,o)}),r?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function hE(t,e){var n=e||{};return N(t.getData(),function(r){var i=r.get("name");if(!(i===`
116
+ `||i==="")){var a=t.isSelected(i);fi(n,i)?n[i]=n[i]&&a:n[i]=a}}),n}function sQ(t){t.registerAction("legendToggleSelect","legendselectchanged",Wt(xf,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Wt(xf,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Wt(xf,"inverseSelect")),t.registerAction("legendSelect","legendselected",Wt(xf,"select")),t.registerAction("legendUnSelect","legendunselected",Wt(xf,"unSelect"))}function QB(t){t.registerComponentModel(Kb),t.registerComponentView(ZB),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,lQ),t.registerSubTypeDefaulter("legend",function(){return"plain"}),sQ(t)}var uQ=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},e.prototype.init=function(n,r,i){var a=$u(n);t.prototype.init.call(this,n,r,i),dE(this,n,a)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),dE(this,this.option,n)},e.type="legend.scroll",e.defaultOption=Zu(Kb.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:ot.color.accent50,pageIconInactiveColor:ot.color.accent10,pageIconSize:15,pageTextStyle:{color:ot.color.tertiary},animationDurationUpdate:800}),e})(Kb);function dE(t,e,n){var r=t.getOrient(),i=[1,1];i[r.index]=0,Oo(e,n,{type:"box",ignoreSize:!!i})}var vE=ie,$1=["width","height"],Q1=["x","y"],cQ=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new vE),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new vE)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(n,r,i,a,o,l,s){var c=this;t.prototype.renderInner.call(this,n,r,i,a,o,l,s);var h=this._controllerGroup,d=r.get("pageIconSize",!0),g=pt(d)?d:[d,d];m("pagePrev",0);var p=r.getModel("pageTextStyle");h.add(new me({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),m("pageNext",1);function m(x,_){var b=x+"DataIndex",S=zg(r.get("pageIcons",!0)[r.getOrient().name][_],{onclick:Tt(c._pageGo,c,b,r,a)},{x:-g[0]/2,y:-g[1]/2,width:g[0],height:g[1]});S.name=x,h.add(S)}},e.prototype.layoutInner=function(n,r,i,a,o,l){var s=this.getSelectorGroup(),c=n.getOrient().index,h=$1[c],d=Q1[c],g=$1[1-c],p=Q1[1-c];o&&Wl("horizontal",s,n.get("selectorItemGap",!0));var m=n.get("selectorButtonGap",!0),x=s.getBoundingRect(),_=[-x.x,-x.y],b=Rt(i);o&&(b[h]=i[h]-x[h]-m);var S=this._layoutContentAndController(n,a,b,c,h,g,p,d);if(o){if(l==="end")_[c]+=S[h]+m;else{var T=x[h]+m;_[c]-=T,S[d]-=T}S[h]+=x[h]+m,_[1-c]+=S[p]+S[g]/2-x[g]/2,S[g]=Math.max(S[g],x[g]),S[p]=Math.min(S[p],x[p]+_[1-c]),s.x=_[0],s.y=_[1],s.markRedraw()}return S},e.prototype._layoutContentAndController=function(n,r,i,a,o,l,s,c){var h=this.getContentGroup(),d=this._containerGroup,g=this._controllerGroup;Wl(n.get("orient"),h,n.get("itemGap"),a?i.width:null,a?null:i.height),Wl("horizontal",g,n.get("pageButtonItemGap",!0));var p=h.getBoundingRect(),m=g.getBoundingRect(),x=this._showController=p[o]>i[o],_=[-p.x,-p.y];r||(_[a]=h[c]);var b=[0,0],S=[-m.x,-m.y],T=zt(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(x){var A=n.get("pageButtonPosition",!0);A==="end"?S[a]+=i[o]-m[o]:b[a]+=m[o]+T}S[1-a]+=p[l]/2-m[l]/2,h.setPosition(_),d.setPosition(b),g.setPosition(S);var D={x:0,y:0};if(D[o]=x?i[o]:p[o],D[l]=Math.max(p[l],m[l]),D[s]=Math.min(0,m[s]+S[1-a]),d.__rectSize=i[o],x){var M={x:0,y:0};M[o]=Math.max(i[o]-m[o]-T,0),M[l]=D[l],d.setClipPath(new le({shape:M})),d.__rectSize=M[o]}else g.eachChild(function(I){I.attr({invisible:!0,silent:!0})});var k=this._getPageInfo(n);return k.pageIndex!=null&&He(h,{x:k.contentPosition[0],y:k.contentPosition[1]},x?n:null),this._updatePageInfoView(n,k),D},e.prototype._pageGo=function(n,r,i){var a=this._getPageInfo(r)[n];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:r.id})},e.prototype._updatePageInfoView=function(n,r){var i=this._controllerGroup;N(["pagePrev","pageNext"],function(h){var d=h+"DataIndex",g=r[d]!=null,p=i.childOfName(h);p&&(p.setStyle("fill",g?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),p.cursor=g?"pointer":"default")});var a=i.childOfName("pageText"),o=n.get("pageFormatter"),l=r.pageIndex,s=l!=null?l+1:0,c=r.pageCount;a&&o&&a.setStyle("text",St(o)?o.replace("{current}",s==null?"":s+"").replace("{total}",c==null?"":c+""):o({current:s,total:c}))},e.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=n.getOrient().index,l=$1[o],s=Q1[o],c=this._findTargetItemIndex(r),h=i.children(),d=h[c],g=h.length,p=g?1:0,m={contentPosition:[i.x,i.y],pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return m;var x=A(d);m.contentPosition[o]=-x.s;for(var _=c+1,b=x,S=x,T=null;_<=g;++_)T=A(h[_]),(!T&&S.e>b.s+a||T&&!D(T,b.s))&&(S.i>b.i?b=S:b=T,b&&(m.pageNextDataIndex==null&&(m.pageNextDataIndex=b.i),++m.pageCount)),S=T;for(var _=c-1,b=x,S=x,T=null;_>=-1;--_)T=A(h[_]),(!T||!D(S,T.s))&&b.i<S.i&&(S=b,m.pagePrevDataIndex==null&&(m.pagePrevDataIndex=b.i),++m.pageCount,++m.pageIndex),b=T;return m;function A(M){if(M){var k=M.getBoundingRect(),I=k[s]+M[s];return{s:I,e:I+k[l],i:M.__legendDataIndex}}}function D(M,k){return M.e>=k&&M.s<=k+a}},e.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,i=this.getContentGroup(),a;return i.eachChild(function(o,l){var s=o.__legendDataIndex;a==null&&s!=null&&(a=l),s===n&&(r=l)}),r??a},e.type="legend.scroll",e})(ZB);function fQ(t){t.registerAction("legendScroll","legendscroll",function(e,n){var r=e.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(r)})})}function hQ(t){Wn(QB),t.registerComponentModel(uQ),t.registerComponentView(cQ),fQ(t)}function dQ(t){Wn(QB),Wn(hQ)}var vQ=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="dataZoom.inside",e.defaultOption=Zu(Th.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e})(Th),$S=be();function pQ(t,e,n){$S(t).coordSysRecordMap.each(function(r){var i=r.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)})}function gQ(t,e){for(var n=$S(t).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var a=r[i],o=n.get(a),l=o.dataZoomInfoMap;if(l){var s=e.uid,c=l.get(s);c&&(l.removeKey(s),l.keys().length||KB(n,o))}}}function KB(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function mQ(t,e){var n={model:e,containsPoint:Wt(xQ,e),dispatchAction:Wt(yQ,t),dataZoomInfoMap:null,controller:null},r=n.controller=new LS(t.getZr());return N(["pan","zoom","scrollMove"],function(i){r.on(i,function(a){var o=[];n.dataZoomInfoMap.each(function(l){if(a.isAvailableBehavior(l.model.option)){var s=(l.getRange||{})[i],c=s&&s(l.dzReferCoordSysInfo,n.model.mainType,n.controller,a);!l.model.get("disabled",!0)&&c&&o.push({dataZoomId:l.model.id,start:c[0],end:c[1]})}}),o.length&&n.dispatchAction(o)})}),n}function yQ(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function xQ(t,e,n,r){return t.coordinateSystem.containPoint([n,r])}function bQ(t,e,n){var r,i="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return t.each(function(l){var s=l.model,c=s.get("disabled",!0)?!1:s.get("zoomLock",!0)?"move":!0;a[i+c]>a[i+r]&&(r=c),o=o&&s.get("preventDefaultMouseMove",!0)}),{controlType:r,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:n,zInfo:{component:e.model},triggerInfo:{roamTrigger:null,isInSelf:e.containsPoint}}}}function _Q(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(e,n){var r=$S(n),i=r.coordSysRecordMap||(r.coordSysRecordMap=Bt());i.each(function(a){a.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=NB(a);N(o.infoList,function(l){var s=l.model.uid,c=i.get(s)||i.set(s,mQ(n,l.model)),h=c.dataZoomInfoMap||(c.dataZoomInfoMap=Bt());h.set(a.uid,{dzReferCoordSysInfo:l,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,l,s=a.dataZoomInfoMap;if(s){var c=s.keys()[0];c!=null&&(l=s.get(c))}if(!l){KB(i,a);return}var h=bQ(s,a,n);o.enable(h.controlType,h.opt),Nh(a,"dispatchAction",l.model.get("throttle",!0),"fixRate")})})}var SQ=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataZoom.inside",n}return e.prototype.render=function(n,r,i){if(t.prototype.render.apply(this,arguments),n.noTarget()){this._clear();return}this.range=n.getPercentRange(),pQ(i,n,{pan:Tt(K1.pan,this),zoom:Tt(K1.zoom,this),scrollMove:Tt(K1.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){gQ(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e})(US),K1={zoom:function(t,e,n,r){var i=this.range,a=i.slice(),o=t.axisModels[0];if(o){var l=J1[e](null,[r.originX,r.originY],o,n,t),s=(l.signal>0?l.pixelStart+l.pixelLength-l.pixel:l.pixel-l.pixelStart)/l.pixelLength*(a[1]-a[0])+a[0],c=Math.max(1/r.scale,0);a[0]=(a[0]-s)*c+s,a[1]=(a[1]-s)*c+s;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Jl(0,a,[0,100],0,h.minSpan,h.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:pE(function(t,e,n,r,i,a){var o=J1[r]([a.oldX,a.oldY],[a.newX,a.newY],e,i,n);return o.signal*(t[1]-t[0])*o.pixel/o.pixelLength}),scrollMove:pE(function(t,e,n,r,i,a){var o=J1[r]([0,0],[a.scrollDelta,a.scrollDelta],e,i,n);return o.signal*(t[1]-t[0])*a.scrollDelta})};function pE(t){return function(e,n,r,i){var a=this.range,o=a.slice(),l=e.axisModels[0];if(l){var s=t(o,l,e,n,r,i);if(Jl(s,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var J1={grid:function(t,e,n,r,i){var a=n.axis,o={},l=i.model.coordinateSystem.getRect();return t=t||[0,0],a.dim==="x"?(o.pixel=e[0]-t[0],o.pixelLength=l.width,o.pixelStart=l.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=l.height,o.pixelStart=l.y,o.signal=a.inverse?-1:1),o},polar:function(t,e,n,r,i){var a=n.axis,o={},l=i.model.coordinateSystem,s=l.getRadiusAxis().getExtent(),c=l.getAngleAxis().getExtent();return t=t?l.pointToCoord(t):[0,0],e=l.pointToCoord(e),n.mainType==="radiusAxis"?(o.pixel=e[0]-t[0],o.pixelLength=s[1]-s[0],o.pixelStart=s[0],o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=a.inverse?-1:1),o},singleAxis:function(t,e,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),l={};return t=t||[0,0],a.orient==="horizontal"?(l.pixel=e[0]-t[0],l.pixelLength=o.width,l.pixelStart=o.x,l.signal=a.inverse?1:-1):(l.pixel=e[1]-t[1],l.pixelLength=o.height,l.pixelStart=o.y,l.signal=a.inverse?-1:1),l}};function wQ(t){YS(t),t.registerComponentModel(vQ),t.registerComponentView(SQ),_Q(t)}var TQ=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Zu(Th.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:ot.color.accent10,borderRadius:0,backgroundColor:ot.color.transparent,dataBackground:{lineStyle:{color:ot.color.accent30,width:.5},areaStyle:{color:ot.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:ot.color.accent40,width:.5},areaStyle:{color:ot.color.accent20,opacity:.3}},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:ot.color.neutral00,borderColor:ot.color.accent20},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:ot.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:ot.color.tertiary},brushSelect:!0,brushStyle:{color:ot.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:ot.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e})(Th),bf=le,CQ=1,tx=30,MQ=7,_f="horizontal",gE="vertical",AQ=5,DQ=["line","bar","candlestick","scatter"],kQ={easing:"cubicOut",duration:100,delay:0},LQ=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return e.prototype.init=function(n,r){this.api=r,this._onBrush=Tt(this._onBrush,this),this._onBrushEnd=Tt(this._onBrushEnd,this)},e.prototype.render=function(n,r,i,a){if(t.prototype.render.apply(this,arguments),Nh(this,"_dispatchZoomAction",n.get("throttle"),"fixRate"),this._orient=n.getOrient(),n.get("show")===!1){this.group.removeAll();return}if(n.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Xp(this,"_dispatchZoomAction");var n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var n=this.group;n.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new ie;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),n.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var n=this.dataZoomModel,r=this.api,i=n.get("brushSelect"),a=i?MQ:0,o=ti(n,r).refContainer,l=this._findCoordRect(),s=n.get("defaultLocationEdgeGap",!0)||0,c=this._orient===_f?{right:o.width-l.x-l.width,top:o.height-tx-s-a,width:l.width,height:tx}:{right:s,top:l.y,width:tx,height:l.height},h=$u(n.option);N(["right","top","width","height"],function(g){h[g]==="ph"&&(h[g]=c[g])});var d=On(h,o);this._location={x:d.x,y:d.y},this._size=[d.width,d.height],this._orient===gE&&this._size.reverse()},e.prototype._positionGroup=function(){var n=this.group,r=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),l=this._displayables.sliderGroup,s=(this._dataShadowInfo||{}).otherAxisInverse;l.attr(i===_f&&!o?{scaleY:s?1:-1,scaleX:1}:i===_f&&o?{scaleY:s?1:-1,scaleX:-1}:i===gE&&!o?{scaleY:s?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:s?-1:1,scaleX:-1,rotation:Math.PI/2});var c=n.getBoundingRect([l]);n.x=r.x-c.x,n.y=r.y-c.y,n.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var n=this.dataZoomModel,r=this._size,i=this._displayables.sliderGroup,a=n.get("brushSelect");i.add(new bf({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var o=new bf({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:Tt(this._onClickPanel,this)}),l=this.api.getZr();a?(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)),i.add(o)},e.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!n)return;var r=this._size,i=this._shadowSize||[],a=n.series,o=a.getRawData(),l=a.getShadowDim&&a.getShadowDim(),s=l&&o.getDimensionInfo(l)?a.getShadowDim():n.otherDim;if(s==null)return;var c=this._shadowPolygonPts,h=this._shadowPolylinePts;if(o!==this._shadowData||s!==this._shadowDim||r[0]!==i[0]||r[1]!==i[1]){var d=o.getDataExtent(n.thisDim),g=o.getDataExtent(s),p=(g[1]-g[0])*.3;g=[g[0]-p,g[1]+p];var m=[0,r[1]],x=[0,r[0]],_=[[r[0],0],[0,0]],b=[],S=x[1]/Math.max(1,o.count()-1),T=r[0]/(d[1]-d[0]),A=n.thisAxis.type==="time",D=-S,M=Math.round(o.count()/r[0]),k;o.each([n.thisDim,s],function(H,F,Y){if(M>0&&Y%M){A||(D+=S);return}D=A?(+H-d[0])*T:D+S;var W=F==null||isNaN(F)||F==="",V=W?0:ue(F,g,m,!0);W&&!k&&Y?(_.push([_[_.length-1][0],0]),b.push([b[b.length-1][0],0])):!W&&k&&(_.push([D,0]),b.push([D,0])),W||(_.push([D,V]),b.push([D,V])),k=W}),c=this._shadowPolygonPts=_,h=this._shadowPolylinePts=b}this._shadowData=o,this._shadowDim=s,this._shadowSize=[r[0],r[1]];var I=this.dataZoomModel;function z(H){var F=I.getModel(H?"selectedDataBackground":"dataBackground"),Y=new ie,W=new Ui({shape:{points:c},segmentIgnoreThreshold:1,style:F.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),V=new Yi({shape:{points:h},segmentIgnoreThreshold:1,style:F.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return Y.add(W),Y.add(V),Y}for(var L=0;L<3;L++){var O=z(L===1);this._displayables.sliderGroup.add(O),this._displayables.dataShadowSegs.push(O)}},e.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,r=n.get("showDataShadow");if(r!==!1){var i,a=this.ecModel;return n.eachTargetAxis(function(o,l){var s=n.getAxisProxy(o,l).getTargetSeriesModels();N(s,function(c){if(!i&&!(r!==!0&&Yt(DQ,c.get("type"))<0)){var h=a.getComponent(wo(o),l).axis,d=EQ(o),g,p=c.coordinateSystem;d!=null&&p.getOtherAxis&&(g=p.getOtherAxis(h).inverse),d=c.getData().mapDimension(d);var m=c.getData().mapDimension(o);i={thisAxis:h,series:c,thisDim:m,otherDim:d,otherAxisInverse:g}}},this)},this),i}},e.prototype._renderHandle=function(){var n=this.group,r=this._displayables,i=r.handles=[null,null],a=r.handleLabels=[null,null],o=this._displayables.sliderGroup,l=this._size,s=this.dataZoomModel,c=this.api,h=s.get("borderRadius")||0,d=s.get("brushSelect"),g=r.filler=new bf({silent:d,style:{fill:s.get("fillerColor")},textConfig:{position:"inside"}});o.add(g),o.add(new bf({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:l[0],height:l[1],r:h},style:{stroke:s.get("dataBackgroundColor")||s.get("borderColor"),lineWidth:CQ,fill:ot.color.transparent}})),N([0,1],function(T){var A=s.get("handleIcon");!Zp[A]&&A.indexOf("path://")<0&&A.indexOf("image://")<0&&(A="path://"+A);var D=Yn(A,-1,0,2,2,null,!0);D.attr({cursor:RQ(this._orient),draggable:!0,drift:Tt(this._onDragMove,this,T),ondragend:Tt(this._onDragEnd,this),onmouseover:Tt(this._showDataInfo,this,!0),onmouseout:Tt(this._showDataInfo,this,!1),z2:5});var M=D.getBoundingRect(),k=s.get("handleSize");this._handleHeight=At(k,this._size[1]),this._handleWidth=M.width/M.height*this._handleHeight,D.setStyle(s.getModel("handleStyle").getItemStyle()),D.style.strokeNoScale=!0,D.rectHover=!0,D.ensureState("emphasis").style=s.getModel(["emphasis","handleStyle"]).getItemStyle(),Vp(D);var I=s.get("handleColor");I!=null&&(D.style.fill=I),o.add(i[T]=D);var z=s.getModel("textStyle"),L=s.get("handleLabel")||{},O=L.show||!1;n.add(a[T]=new me({silent:!0,invisible:!O,style:$e(z,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:z.getTextColor(),font:z.getFont()}),z2:10}))},this);var p=g;if(d){var m=At(s.get("moveHandleSize"),l[1]),x=r.moveHandle=new le({style:s.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:l[1]-.5,height:m}}),_=m*.8,b=r.moveHandleIcon=Yn(s.get("moveHandleIcon"),-_/2,-_/2,_,_,ot.color.neutral00,!0);b.silent=!0,b.y=l[1]+m/2-.5,x.ensureState("emphasis").style=s.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var S=Math.min(l[1]/2,Math.max(m,10));p=r.moveZone=new le({invisible:!0,shape:{y:l[1]-S,height:m+S}}),p.on("mouseover",function(){c.enterEmphasis(x)}).on("mouseout",function(){c.leaveEmphasis(x)}),o.add(x),o.add(b),o.add(p)}p.attr({draggable:!0,cursor:"default",drift:Tt(this._onDragMove,this,"all"),ondragstart:Tt(this._showDataInfo,this,!0),ondragend:Tt(this._onDragEnd,this),onmouseover:Tt(this._showDataInfo,this,!0),onmouseout:Tt(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[ue(n[0],[0,100],r,!0),ue(n[1],[0,100],r,!0)]},e.prototype._updateInterval=function(n,r){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),l=i.findRepresentativeAxisProxy().getMinMaxSpan(),s=[0,100];Jl(r,a,o,i.get("zoomLock")?"all":n,l.minSpan!=null?ue(l.minSpan,s,o,!0):null,l.maxSpan!=null?ue(l.maxSpan,s,o,!0):null);var c=this._range,h=this._range=yo([ue(a[0],o,s,!0),ue(a[1],o,s,!0)]);return!c||c[0]!==h[0]||c[1]!==h[1]},e.prototype._updateView=function(n){var r=this._displayables,i=this._handleEnds,a=yo(i.slice()),o=this._size;N([0,1],function(p){var m=r.handles[p],x=this._handleHeight;m.attr({scaleX:x/2,scaleY:x/2,x:i[p]+(p?-1:1),y:o[1]/2-x/2})},this),r.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var l={x:a[0],width:a[1]-a[0]};r.moveHandle&&(r.moveHandle.setShape(l),r.moveZone.setShape(l),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",l.x+l.width/2));for(var s=r.dataShadowSegs,c=[0,a[0],a[1],o[0]],h=0;h<s.length;h++){var d=s[h],g=d.getClipPath();g||(g=new le,d.setClipPath(g)),g.setShape({x:c[h],y:0,width:c[h+1]-c[h],height:o[1]})}this._updateDataInfo(n)},e.prototype._updateDataInfo=function(n){var r=this.dataZoomModel,i=this._displayables,a=i.handleLabels,o=this._orient,l=["",""];if(r.get("showDetail")){var s=r.findRepresentativeAxisProxy();if(s){var c=s.getAxisModel().axis,h=this._range,d=n?s.calculateDataWindow({start:h[0],end:h[1]}).valueWindow:s.getDataValueWindow();l=[this._formatLabel(d[0],c),this._formatLabel(d[1],c)]}}var g=yo(this._handleEnds.slice());p.call(this,0),p.call(this,1);function p(m){var x=Ul(i.handles[m].parent,this.group),_=Og(m===0?"right":"left",x),b=this._handleWidth/2+AQ,S=Do([g[m]+(m===0?-b:b),this._size[1]/2],x);a[m].setStyle({x:S[0],y:S[1],verticalAlign:o===_f?"middle":_,align:o===_f?_:"center",text:l[m]})}},e.prototype._formatLabel=function(n,r){var i=this.dataZoomModel,a=i.get("labelFormatter"),o=i.get("labelPrecision");(o==null||o==="auto")&&(o=r.getPixelPrecision());var l=n==null||isNaN(n)?"":r.type==="category"||r.type==="time"?r.scale.getLabel({value:Math.round(n)}):n.toFixed(Math.min(o,20));return It(a)?a(n,l):St(a)?a.replace("{value}",l):l},e.prototype._showDataInfo=function(n){var r=this.dataZoomModel.get("handleLabel")||{},i=r.show||!1,a=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=a.get("show")||!1,l=n||this._dragging?o:i,s=this._displayables,c=s.handleLabels;c[0].attr("invisible",!l),c[1].attr("invisible",!l),s.moveHandle&&this.api[l?"enterEmphasis":"leaveEmphasis"](s.moveHandle,1)},e.prototype._onDragMove=function(n,r,i,a){this._dragging=!0,Aa(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),l=Do([r,i],o,!0),s=this._updateInterval(n,l[0]),c=this.dataZoomModel.get("realtime");this._updateView(!c),s&&c&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var n=this.dataZoomModel.get("realtime");!n&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(n){var r=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(n.offsetX,n.offsetY);if(!(i[0]<0||i[0]>r[0]||i[1]<0||i[1]>r[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,l=this._updateInterval("all",i[0]-o);this._updateView(),l&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(n){var r=n.offsetX,i=n.offsetY;this._brushStart=new jt(r,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(n){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var i=r.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),l=[0,100],s=this._handleEnds=[i.x,i.x+i.width],c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();Jl(0,s,o,0,c.minSpan!=null?ue(c.minSpan,l,o,!0):null,c.maxSpan!=null?ue(c.maxSpan,l,o,!0):null),this._range=yo([ue(s[0],o,l,!0),ue(s[1],o,l,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(n){this._brushing&&(Aa(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},e.prototype._updateBrushRect=function(n,r){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new bf({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var l=this._brushStart,s=this._displayables.sliderGroup,c=s.transformCoordToLocal(n,r),h=s.transformCoordToLocal(l.x,l.y),d=this._size;c[0]=Math.max(Math.min(d[0],c[0]),0),o.setShape({x:h[0],y:0,width:c[0]-h[0],height:d[1]})},e.prototype._dispatchZoomAction=function(n){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:n?kQ:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var n,r=NB(this.dataZoomModel).infoList;if(!n&&r.length){var i=r[0].model.coordinateSystem;n=i.getRect&&i.getRect()}if(!n){var a=this.api.getWidth(),o=this.api.getHeight();n={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return n},e.type="dataZoom.slider",e})(US);function EQ(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function RQ(t){return t==="vertical"?"ns-resize":"ew-resize"}function IQ(t){t.registerComponentModel(TQ),t.registerComponentView(LQ),YS(t)}function OQ(t){Wn(wQ),Wn(IQ)}var JB={get:function(t,e,n){var r=Rt((zQ[t]||{})[e]);return n&&pt(r)?r[r.length-1]:r}},zQ={color:{active:["#006edd","#e0ffff"],inactive:[ot.color.transparent]},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]}},mE=fn.mapVisual,BQ=fn.eachVisual,NQ=pt,yE=N,PQ=yo,VQ=ue,vg=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return e.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i)},e.prototype.optionUpdated=function(n,r){var i=this.option;!r&&XB(i,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(n){var r=this.stateList;n=Tt(n,this),this.controllerVisuals=$b(this.option.controller,r,n),this.targetVisuals=$b(this.option.target,r,n)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var n=this.option.seriesId,r=this.option.seriesIndex;r==null&&n==null&&(r="all");var i=Wu(this.ecModel,"series",{index:r,id:n},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return bt(i,function(a){return a.componentIndex})},e.prototype.eachTargetSeries=function(n,r){N(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&n.call(r,a)},this)},e.prototype.isTargetSeries=function(n){var r=!1;return this.eachTargetSeries(function(i){i===n&&(r=!0)}),r},e.prototype.formatValueText=function(n,r,i){var a=this.option,o=a.precision,l=this.dataBound,s=a.formatter,c;i=i||["<",">"],pt(n)&&(n=n.slice(),c=!0);var h=r?n:c?[d(n[0]),d(n[1])]:d(n);if(St(s))return s.replace("{value}",c?h[0]:h).replace("{value2}",c?h[1]:h);if(It(s))return c?s(n[0],n[1]):s(n);if(c)return n[0]===l[0]?i[0]+" "+h[1]:n[1]===l[1]?i[1]+" "+h[0]:h[0]+" - "+h[1];return h;function d(g){return g===l[0]?"min":g===l[1]?"max":(+g).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var n=this.option,r=PQ([n.min,n.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(n){var r=this.option.dimension;if(r!=null)return n.getDimensionIndex(r);for(var i=n.dimensions,a=i.length-1;a>=0;a--){var o=i[a],l=n.getDimensionInfo(o);if(!l.isCalculationCoord)return l.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var n=this.ecModel,r=this.option,i={inRange:r.inRange,outOfRange:r.outOfRange},a=r.target||(r.target={}),o=r.controller||(r.controller={});Xt(a,i),Xt(o,i);var l=this.isCategory();s.call(this,a),s.call(this,o),c.call(this,a,"inRange","outOfRange"),h.call(this,o);function s(d){NQ(r.color)&&!d.inRange&&(d.inRange={color:r.color.slice().reverse()}),d.inRange=d.inRange||{color:n.get("gradientColor")}}function c(d,g,p){var m=d[g],x=d[p];m&&!x&&(x=d[p]={},yE(m,function(_,b){if(fn.isValidType(b)){var S=JB.get(b,"inactive",l);S!=null&&(x[b]=S,b==="color"&&!x.hasOwnProperty("opacity")&&!x.hasOwnProperty("colorAlpha")&&(x.opacity=[0,0]))}}))}function h(d){var g=(d.inRange||{}).symbol||(d.outOfRange||{}).symbol,p=(d.inRange||{}).symbolSize||(d.outOfRange||{}).symbolSize,m=this.get("inactiveColor"),x=this.getItemSymbol(),_=x||"roundRect";yE(this.stateList,function(b){var S=this.itemSize,T=d[b];T||(T=d[b]={color:l?m:[m]}),T.symbol==null&&(T.symbol=g&&Rt(g)||(l?_:[_])),T.symbolSize==null&&(T.symbolSize=p&&Rt(p)||(l?S[0]:[S[0],S[0]])),T.symbol=mE(T.symbol,function(M){return M==="none"?_:M});var A=T.symbolSize;if(A!=null){var D=-1/0;BQ(A,function(M){M>D&&(D=M)}),T.symbolSize=mE(A,function(M){return VQ(M,[0,D],[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(n){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(n){return null},e.prototype.getVisualMeta=function(n){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:ot.color.transparent,borderColor:ot.color.borderTint,contentColor:ot.color.theme[0],inactiveColor:ot.color.disabled,borderWidth:0,padding:ot.size.m,textGap:10,precision:0,textStyle:{color:ot.color.secondary}},e})(ce),xE=[20,140],HQ=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.optionUpdated=function(n,r){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var n=this.itemSize;(n[0]==null||isNaN(n[0]))&&(n[0]=xE[0]),(n[1]==null||isNaN(n[1]))&&(n[1]=xE[1])},e.prototype._resetRange=function(){var n=this.getExtent(),r=this.option.range;!r||r.auto?(n.auto=1,this.option.range=n):pt(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],n[0]),r[1]=Math.min(r[1],n[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),N(this.stateList,function(n){var r=this.option.controller[n].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(n){this.option.range=n.slice(),this._resetRange()},e.prototype.getSelected=function(){var n=this.getExtent(),r=yo((this.get("range")||[]).slice());return r[0]>n[1]&&(r[0]=n[1]),r[1]>n[1]&&(r[1]=n[1]),r[0]<n[0]&&(r[0]=n[0]),r[1]<n[0]&&(r[1]=n[0]),r},e.prototype.getValueState=function(n){var r=this.option.range,i=this.getExtent(),a=zt(this.option.unboundedRange,!0);return(a&&r[0]<=i[0]||r[0]<=n)&&(a&&r[1]>=i[1]||n<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(n){var r=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(l,s){n[0]<=l&&l<=n[1]&&a.push(s)},this),r.push({seriesId:i.id,dataIndex:a})},this),r},e.prototype.getVisualMeta=function(n){var r=bE(this,"outOfRange",this.getExtent()),i=bE(this,"inRange",this.option.range.slice()),a=[];function o(p,m){a.push({value:p,color:n(p,m)})}for(var l=0,s=0,c=i.length,h=r.length;s<h&&(!i.length||r[s]<=i[0]);s++)r[s]<i[l]&&o(r[s],"outOfRange");for(var d=1;l<c;l++,d=0)d&&a.length&&o(i[l],"outOfRange"),o(i[l],"inRange");for(var d=1;s<h;s++)(!i.length||i[i.length-1]<r[s])&&(d&&(a.length&&o(a[a.length-1].value,"outOfRange"),d=0),o(r[s],"outOfRange"));var g=a.length;return{stops:a,outerColors:[g?a[0].color:"transparent",g?a[g-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Zu(vg.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:ot.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:ot.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:ot.color.shadow}}),e})(vg);function bE(t,e,n){if(n[0]===n[1])return n.slice();for(var r=200,i=(n[1]-n[0])/r,a=n[0],o=[],l=0;l<=r&&a<n[1];l++)o.push(a),a+=i;return o.push(n[1]),o}var t3=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return e.prototype.init=function(n,r){this.ecModel=n,this.api=r},e.prototype.render=function(n,r,i,a){if(this.visualMapModel=n,n.get("show")===!1){this.group.removeAll();return}this.doRender(n,r,i,a)},e.prototype.renderBackground=function(n){var r=this.visualMapModel,i=Oh(r.get("padding")||0),a=n.getBoundingRect();n.add(new le({z2:-1,silent:!0,shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[3]+i[1],height:a.height+i[0]+i[2]},style:{fill:r.get("backgroundColor"),stroke:r.get("borderColor"),lineWidth:r.get("borderWidth")}}))},e.prototype.getControllerVisual=function(n,r,i){i=i||{};var a=i.forceState,o=this.visualMapModel,l={};if(r==="color"){var s=o.get("contentColor");l.color=s}function c(p){return l[p]}function h(p,m){l[p]=m}var d=o.controllerVisuals[a||o.getValueState(n)],g=fn.prepareVisualTypes(d);return N(g,function(p){var m=d[p];i.convertOpacityToAlpha&&p==="opacity"&&(p="colorAlpha",m=d.__alphaForOpacity),fn.dependsOn(p,r)&&m&&m.applyVisual(n,c,h)}),l[r]},e.prototype.positionGroup=function(n){var r=this.visualMapModel,i=this.api,a=ti(r,i).refContainer;eS(n,r.getBoxLayoutParams(),a)},e.prototype.doRender=function(n,r,i,a){},e.type="visualMap",e})(Mn),_E=[["left","right","width"],["top","bottom","height"]];function e3(t,e,n){var r=t.option,i=r.align;if(i!=null&&i!=="auto")return i;for(var a={width:e.getWidth(),height:e.getHeight()},o=r.orient==="horizontal"?1:0,l=_E[o],s=[0,null,10],c={},h=0;h<3;h++)c[_E[1-o][h]]=s[h],c[l[h]]=h===2?n[0]:r[l[h]];var d=[["x","width",3],["y","height",0]][o],g=On(c,a,r.padding);return l[(g.margin[d[2]]||0)+g[d[0]]+g[d[1]]*.5<a[d[1]]*.5?0:1]}function Sp(t,e){return N(t||[],function(n){n.dataIndex!=null&&(n.dataIndexInside=n.dataIndex,n.dataIndex=null),n.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}var Ei=ue,jQ=N,SE=Math.min,ex=Math.max,FQ=12,GQ=6,UQ=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return e.prototype.init=function(n,r){t.prototype.init.call(this,n,r),this._hoverLinkFromSeriesMouseOver=Tt(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Tt(this._hideIndicator,this)},e.prototype.doRender=function(n,r,i,a){(!a||a.type!=="selectDataRange"||a.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var n=this.visualMapModel,r=this.group;this._orient=n.get("orient"),this._useHandle=n.get("calculable"),this._resetInterval(),this._renderBar(r);var i=n.get("text");this._renderEndsText(r,i,0),this._renderEndsText(r,i,1),this._updateView(!0),this.renderBackground(r),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(r)},e.prototype._renderEndsText=function(n,r,i){if(r){var a=r[1-i];a=a!=null?a+"":"";var o=this.visualMapModel,l=o.get("textGap"),s=o.itemSize,c=this._shapes.mainGroup,h=this._applyTransform([s[0]/2,i===0?-l:s[1]+l],c),d=this._applyTransform(i===0?"bottom":"top",c),g=this._orient,p=this.visualMapModel.textStyleModel;this.group.add(new me({style:$e(p,{x:h[0],y:h[1],verticalAlign:p.get("verticalAlign")||(g==="horizontal"?"middle":d),align:p.get("align")||(g==="horizontal"?d:"center"),text:a})}))}},e.prototype._renderBar=function(n){var r=this.visualMapModel,i=this._shapes,a=r.itemSize,o=this._orient,l=this._useHandle,s=e3(r,this.api,a),c=i.mainGroup=this._createBarGroup(s),h=new ie;c.add(h),h.add(i.outOfRange=wE()),h.add(i.inRange=wE(null,l?CE(this._orient):null,Tt(this._dragHandle,this,"all",!1),Tt(this._dragHandle,this,"all",!0))),h.setClipPath(new le({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var d=r.textStyleModel.getTextRect("国"),g=ex(d.width,d.height);l&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(r,c,0,a,g,o),this._createHandle(r,c,1,a,g,o)),this._createIndicator(r,c,a,g,o),n.add(c)},e.prototype._createHandle=function(n,r,i,a,o,l){var s=Tt(this._dragHandle,this,i,!1),c=Tt(this._dragHandle,this,i,!0),h=ji(n.get("handleSize"),a[0]),d=Yn(n.get("handleIcon"),-h/2,-h/2,h,h,null,!0),g=CE(this._orient);d.attr({cursor:g,draggable:!0,drift:s,ondragend:c,onmousemove:function(b){Aa(b.event)}}),d.x=a[0]/2,d.useStyle(n.getModel("handleStyle").getItemStyle()),d.setStyle({strokeNoScale:!0,strokeFirst:!0}),d.style.lineWidth*=2,d.ensureState("emphasis").style=n.getModel(["emphasis","handleStyle"]).getItemStyle(),Bl(d,!0),r.add(d);var p=this.visualMapModel.textStyleModel,m=new me({cursor:g,draggable:!0,drift:s,onmousemove:function(b){Aa(b.event)},ondragend:c,style:$e(p,{x:0,y:0,text:""})});m.ensureState("blur").style={opacity:.1},m.stateTransition={duration:200},this.group.add(m);var x=[h,0],_=this._shapes;_.handleThumbs[i]=d,_.handleLabelPoints[i]=x,_.handleLabels[i]=m},e.prototype._createIndicator=function(n,r,i,a,o){var l=ji(n.get("indicatorSize"),i[0]),s=Yn(n.get("indicatorIcon"),-l/2,-l/2,l,l,null,!0);s.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var c=n.getModel("indicatorStyle").getItemStyle();if(s instanceof Jr){var h=s.style;s.useStyle(ht({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},c))}else s.useStyle(c);r.add(s);var d=this.visualMapModel.textStyleModel,g=new me({silent:!0,invisible:!0,style:$e(d,{x:0,y:0,text:""})});this.group.add(g);var p=[(o==="horizontal"?a/2:GQ)+i[0]/2,0],m=this._shapes;m.indicator=s,m.indicatorLabel=g,m.indicatorLabelPoint=p,this._firstShowIndicator=!0},e.prototype._dragHandle=function(n,r,i,a){if(this._useHandle){if(this._dragging=!r,!r){var o=this._applyTransform([i,a],this._shapes.mainGroup,!0);this._updateInterval(n,o[1]),this._hideIndicator(),this._updateView()}r===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),r?!this._hovering&&this._clearHoverLinkToSeries():TE(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[n],!1)}},e.prototype._resetInterval=function(){var n=this.visualMapModel,r=this._dataInterval=n.getSelected(),i=n.getExtent(),a=[0,n.itemSize[1]];this._handleEnds=[Ei(r[0],i,a,!0),Ei(r[1],i,a,!0)]},e.prototype._updateInterval=function(n,r){r=r||0;var i=this.visualMapModel,a=this._handleEnds,o=[0,i.itemSize[1]];Jl(r,a,o,n,0);var l=i.getExtent();this._dataInterval=[Ei(a[0],o,l,!0),Ei(a[1],o,l,!0)]},e.prototype._updateView=function(n){var r=this.visualMapModel,i=r.getExtent(),a=this._shapes,o=[0,r.itemSize[1]],l=n?o:this._handleEnds,s=this._createBarVisual(this._dataInterval,i,l,"inRange"),c=this._createBarVisual(i,i,o,"outOfRange");a.inRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),a.outOfRange.setStyle({fill:c.barColor}).setShape("points",c.barPoints),this._updateHandle(l,s)},e.prototype._createBarVisual=function(n,r,i,a){var o={forceState:a,convertOpacityToAlpha:!0},l=this._makeColorGradient(n,o),s=[this.getControllerVisual(n[0],"symbolSize",o),this.getControllerVisual(n[1],"symbolSize",o)],c=this._createBarPoints(i,s);return{barColor:new Ig(0,0,0,1,l),barPoints:c,handlesColor:[l[0].color,l[l.length-1].color]}},e.prototype._makeColorGradient=function(n,r){var i=100,a=[],o=(n[1]-n[0])/i;a.push({color:this.getControllerVisual(n[0],"color",r),offset:0});for(var l=1;l<i;l++){var s=n[0]+o*l;if(s>n[1])break;a.push({color:this.getControllerVisual(s,"color",r),offset:l/i})}return a.push({color:this.getControllerVisual(n[1],"color",r),offset:1}),a},e.prototype._createBarPoints=function(n,r){var i=this.visualMapModel.itemSize;return[[i[0]-r[0],n[0]],[i[0],n[0]],[i[0],n[1]],[i[0]-r[1],n[1]]]},e.prototype._createBarGroup=function(n){var r=this._orient,i=this.visualMapModel.get("inverse");return new ie(r==="horizontal"&&!i?{scaleX:n==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&i?{scaleX:n==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!i?{scaleX:n==="left"?1:-1,scaleY:-1}:{scaleX:n==="left"?1:-1})},e.prototype._updateHandle=function(n,r){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,l=i.handleLabels,s=a.itemSize,c=a.getExtent(),h=this._applyTransform("left",i.mainGroup);jQ([0,1],function(d){var g=o[d];g.setStyle("fill",r.handlesColor[d]),g.y=n[d];var p=Ei(n[d],[0,s[1]],c,!0),m=this.getControllerVisual(p,"symbolSize");g.scaleX=g.scaleY=m/s[0],g.x=s[0]-m/2;var x=Do(i.handleLabelPoints[d],Ul(g,this.group));if(this._orient==="horizontal"){var _=h==="left"||h==="top"?(s[0]-m)/2:(s[0]-m)/-2;x[1]+=_}l[d].setStyle({x:x[0],y:x[1],text:a.formatValueText(this._dataInterval[d]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(n,r,i,a){var o=this.visualMapModel,l=o.getExtent(),s=o.itemSize,c=[0,s[1]],h=this._shapes,d=h.indicator;if(d){d.attr("invisible",!1);var g={convertOpacityToAlpha:!0},p=this.getControllerVisual(n,"color",g),m=this.getControllerVisual(n,"symbolSize"),x=Ei(n,l,c,!0),_=s[0]-m/2,b={x:d.x,y:d.y};d.y=x,d.x=_;var S=Do(h.indicatorLabelPoint,Ul(d,this.group)),T=h.indicatorLabel;T.attr("invisible",!1);var A=this._applyTransform("left",h.mainGroup),D=this._orient,M=D==="horizontal";T.setStyle({text:(i||"")+o.formatValueText(r),verticalAlign:M?A:"middle",align:M?"center":A});var k={x:_,y:x,style:{fill:p}},I={style:{x:S[0],y:S[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var z={duration:100,easing:"cubicInOut",additive:!0};d.x=b.x,d.y=b.y,d.animateTo(k,z),T.animateTo(I,z)}else d.attr(k),T.attr(I);this._firstShowIndicator=!1;var L=this._shapes.handleLabels;if(L)for(var O=0;O<L.length;O++)this.api.enterBlur(L[O])}},e.prototype._enableHoverLinkToSeries=function(){var n=this;this._shapes.mainGroup.on("mousemove",function(r){if(n._hovering=!0,!n._dragging){var i=n.visualMapModel.itemSize,a=n._applyTransform([r.offsetX,r.offsetY],n._shapes.mainGroup,!0,!0);a[1]=SE(ex(0,a[1]),i[1]),n._doHoverLinkToSeries(a[1],0<=a[0]&&a[0]<=i[0])}}).on("mouseout",function(){n._hovering=!1,!n._dragging&&n._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var n=this.api.getZr();this.visualMapModel.option.hoverLink?(n.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),n.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(n,r){var i=this.visualMapModel,a=i.itemSize;if(i.option.hoverLink){var o=[0,a[1]],l=i.getExtent();n=SE(ex(o[0],n),o[1]);var s=YQ(i,l,o),c=[n-s,n+s],h=Ei(n,o,l,!0),d=[Ei(c[0],o,l,!0),Ei(c[1],o,l,!0)];c[0]<o[0]&&(d[0]=-1/0),c[1]>o[1]&&(d[1]=1/0),r&&(d[0]===-1/0?this._showIndicator(h,d[1],"< ",s):d[1]===1/0?this._showIndicator(h,d[0],"> ",s):this._showIndicator(h,h,"≈ ",s));var g=this._hoverLinkDataIndices,p=[];(r||TE(i))&&(p=this._hoverLinkDataIndices=i.findTargetDataIndices(d));var m=pH(g,p);this._dispatchHighDown("downplay",Sp(m[0],i)),this._dispatchHighDown("highlight",Sp(m[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(n){var r;if(Mu(n.target,function(s){var c=$t(s);if(c.dataIndex!=null)return r=c,!0},!0),!!r){var i=this.ecModel.getSeriesByIndex(r.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(r.dataType),l=o.getStore().get(a.getDataDimensionIndex(o),r.dataIndex);isNaN(l)||this._showIndicator(l,l)}}},e.prototype._hideIndicator=function(){var n=this._shapes;n.indicator&&n.indicator.attr("invisible",!0),n.indicatorLabel&&n.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var i=0;i<r.length;i++)this.api.leaveBlur(r[i])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var n=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Sp(n,this.visualMapModel)),n.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var n=this.api.getZr();n.off("mouseover",this._hoverLinkFromSeriesMouseOver),n.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(n,r,i,a){var o=Ul(r,a?null:this.group);return pt(n)?Do(n,o,i):Og(n,o,i)},e.prototype._dispatchHighDown=function(n,r){r&&r.length&&this.api.dispatchAction({type:n,batch:r})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e})(t3);function wE(t,e,n,r){return new Ui({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(i){Aa(i.event)},ondragend:r})}function YQ(t,e,n){var r=FQ/2,i=t.get("hoverLinkDataSize");return i&&(r=Ei(i,e,n,!0)/2),r}function TE(t){var e=t.get("hoverLinkOnHandle");return!!(e??t.get("realtime"))}function CE(t){return t==="vertical"?"ns-resize":"ew-resize"}var WQ={type:"selectDataRange",event:"dataRangeSelected",update:"update"},XQ=function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(n){n.setSelected(t.selected)})},qQ=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",function(r){var i=t.pipelineContext;!r.isTargetSeries(t)||i&&i.large||n.push(G$(r.stateList,r.targetVisuals,Tt(r.getValueState,r),r.getDataDimensionIndex(t.getData())))}),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),r=[];e.eachComponent("visualMap",function(i){if(i.isTargetSeries(t)){var a=i.getVisualMeta(Tt(ZQ,null,t,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(n);o>=0&&(a.dimension=o,r.push(a))}}),t.getData().setVisual("visualMeta",r)}}];function ZQ(t,e,n,r){for(var i=e.targetVisuals[r],a=fn.prepareVisualTypes(i),o={color:uz(t.getData(),"color")},l=0,s=a.length;l<s;l++){var c=a[l],h=i[c==="opacity"?"__alphaForOpacity":c];h&&h.applyVisual(n,d,g)}return o.color;function d(p){return o[p]}function g(p,m){o[p]=m}}var ME=N;function $Q(t){var e=t&&t.visualMap;pt(e)||(e=e?[e]:[]),ME(e,function(n){if(n){cu(n,"splitList")&&!cu(n,"pieces")&&(n.pieces=n.splitList,delete n.splitList);var r=n.pieces;r&&pt(r)&&ME(r,function(i){Lt(i)&&(cu(i,"start")&&!cu(i,"min")&&(i.min=i.start),cu(i,"end")&&!cu(i,"max")&&(i.max=i.end))})}})}function cu(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var AE=!1;function n3(t){AE||(AE=!0,t.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),t.registerAction(WQ,XQ),N(qQ,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor($Q))}function QQ(t){t.registerComponentModel(HQ),t.registerComponentView(UQ),n3(t)}var KQ=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return e.prototype.optionUpdated=function(n,r){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],JQ[this._mode].call(this,this._pieceList),this._resetSelected(n,r);var a=this.option.categories;this.resetVisual(function(o,l){i==="categories"?(o.mappingMethod="category",o.categories=Rt(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=bt(this._pieceList,function(s){return s=Rt(s),l!=="inRange"&&(s.visual=null),s}))})},e.prototype.completeVisualOption=function(){var n=this.option,r={},i=fn.listVisualTypes(),a=this.isCategory();N(n.pieces,function(l){N(i,function(s){l.hasOwnProperty(s)&&(r[s]=1)})}),N(r,function(l,s){var c=!1;N(this.stateList,function(h){c=c||o(n,h,s)||o(n.target,h,s)},this),!c&&N(this.stateList,function(h){(n[h]||(n[h]={}))[s]=JB.get(s,h==="inRange"?"active":"inactive",a)})},this);function o(l,s,c){return l&&l[s]&&l[s].hasOwnProperty(c)}t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(n,r){var i=this.option,a=this._pieceList,o=(r?i:n).selected||{};if(i.selected=o,N(a,function(s,c){var h=this.getSelectedMapKey(s);o.hasOwnProperty(h)||(o[h]=!0)},this),i.selectedMode==="single"){var l=!1;N(a,function(s,c){var h=this.getSelectedMapKey(s);o[h]&&(l?o[h]=!1:l=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(n){return this._mode==="categories"?n.value+"":n.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var n=this.option;return n.pieces&&n.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(n){this.option.selected=Rt(n)},e.prototype.getValueState=function(n){var r=fn.findPieceIndex(n,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(n){var r=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],l=a.getData();l.each(this.getDataDimensionIndex(l),function(s,c){var h=fn.findPieceIndex(s,i);h===n&&o.push(c)},this),r.push({seriesId:a.id,dataIndex:o})},this),r},e.prototype.getRepresentValue=function(n){var r;if(this.isCategory())r=n.value;else if(n.value!=null)r=n.value;else{var i=n.interval||[];r=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return r},e.prototype.getVisualMeta=function(n){if(this.isCategory())return;var r=[],i=["",""],a=this;function o(h,d){var g=a.getRepresentValue({interval:h});d||(d=a.getValueState(g));var p=n(g,d);h[0]===-1/0?i[0]=p:h[1]===1/0?i[1]=p:r.push({value:h[0],color:p},{value:h[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 c=-1/0;return N(l,function(h){var d=h.interval;d&&(d[0]>c&&o([c,d[0]],"outOfRange"),o(d.slice()),c=d[1])},this),{stops:r,outerColors:i}},e.type="visualMap.piecewise",e.defaultOption=Zu(vg.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})(vg),JQ={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),r=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;e.precision=n,a=+a.toFixed(n),e.minOpen&&t.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,l=r[0];o<i;l+=a,o++){var s=o===i-1?r[1]:l+a;t.push({interval:[l,s],close:[1,1]})}e.maxOpen&&t.push({interval:[r[1],1/0],close:[0,0]}),aA(t),N(t,function(c,h){c.index=h,c.text=this.formatValueText(c.interval)},this)},categories:function(t){var e=this.option;N(e.categories,function(n){t.push({text:this.formatValueText(n,!0),value:n})},this),DE(e,t)},pieces:function(t){var e=this.option;N(e.pieces,function(n,r){Lt(n)||(n={value:n});var i={text:"",index:r};if(n.label!=null&&(i.text=n.label),n.hasOwnProperty("value")){var a=i.value=n.value;i.interval=[a,a],i.close=[1,1]}else{for(var o=i.interval=[],l=i.close=[0,0],s=[1,0,1],c=[-1/0,1/0],h=[],d=0;d<2;d++){for(var g=[["gte","gt","min"],["lte","lt","max"]][d],p=0;p<3&&o[d]==null;p++)o[d]=n[g[p]],l[d]=s[p],h[d]=p===2;o[d]==null&&(o[d]=c[d])}h[0]&&o[1]===1/0&&(l[0]=0),h[1]&&o[0]===-1/0&&(l[1]=0),o[0]===o[1]&&l[0]&&l[1]&&(i.value=o[0])}i.visual=fn.retrieveVisuals(n),t.push(i)},this),DE(e,t),aA(t),N(t,function(n){var r=n.close,i=[["<","≤"][r[1]],[">","≥"][r[0]]];n.text=n.text||this.formatValueText(n.value!=null?n.value:n.interval,!1,i)},this)}};function DE(t,e){var n=t.inverse;(t.orient==="vertical"?!n:n)&&e.reverse()}var tK=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.doRender=function(){var n=this.group;n.removeAll();var r=this.visualMapModel,i=r.get("textGap"),a=r.textStyleModel,o=this._getItemAlign(),l=r.itemSize,s=this._getViewData(),c=s.endsText,h=Io(r.get("showLabel",!0),!c),d=!r.get("selectedMode");c&&this._renderEndsText(n,c[0],l,h,o),N(s.viewPieceList,function(g){var p=g.piece,m=new ie;m.onclick=Tt(this._onItemClick,this,p),this._enableHoverLink(m,g.indexInModelPieceList);var x=r.getRepresentValue(p);if(this._createItemSymbol(m,x,[0,0,l[0],l[1]],d),h){var _=this.visualMapModel.getValueState(x),b=a.get("align")||o;m.add(new me({style:$e(a,{x:b==="right"?-i:l[0]+i,y:l[1]/2,text:p.text,verticalAlign:a.get("verticalAlign")||"middle",align:b,opacity:zt(a.get("opacity"),_==="outOfRange"?.5:1)}),silent:d}))}n.add(m)},this),c&&this._renderEndsText(n,c[1],l,h,o),Wl(r.get("orient"),n,r.get("itemGap")),this.renderBackground(n),this.positionGroup(n)},e.prototype._enableHoverLink=function(n,r){var i=this;n.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var l=i.visualMapModel;l.option.hoverLink&&i.api.dispatchAction({type:o,batch:Sp(l.findTargetDataIndices(r),l)})}},e.prototype._getItemAlign=function(){var n=this.visualMapModel,r=n.option;if(r.orient==="vertical")return e3(n,this.api,n.itemSize);var i=r.align;return(!i||i==="auto")&&(i="left"),i},e.prototype._renderEndsText=function(n,r,i,a,o){if(r){var l=new ie,s=this.visualMapModel.textStyleModel;l.add(new me({style:$e(s,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:r})})),n.add(l)}},e.prototype._getViewData=function(){var n=this.visualMapModel,r=bt(n.getPieceList(),function(l,s){return{piece:l,indexInModelPieceList:s}}),i=n.get("text"),a=n.get("orient"),o=n.get("inverse");return(a==="horizontal"?o:!o)?r.reverse():i&&(i=i.slice().reverse()),{viewPieceList:r,endsText:i}},e.prototype._createItemSymbol=function(n,r,i,a){var o=Yn(this.getControllerVisual(r,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(r,"color"));o.silent=a,n.add(o)},e.prototype._onItemClick=function(n){var r=this.visualMapModel,i=r.option,a=i.selectedMode;if(a){var o=Rt(i.selected),l=r.getSelectedMapKey(n);a==="single"||a===!0?(o[l]=!0,N(o,function(s,c){o[c]=c===l})):o[l]=!o[l],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e})(t3);function eK(t){t.registerComponentModel(KQ),t.registerComponentView(tK),n3(t)}function nK(t){Wn(QQ),Wn(eK)}var rK=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataset",n}return e.prototype.init=function(n,r,i){t.prototype.init.call(this,n,r,i),this._sourceManager=new XO(this),SD(this)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),SD(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:vi},e})(ce),iK=(function(t){at(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataset",n}return e.type="dataset",e})(Mn);function aK(t){t.registerComponentModel(rK),t.registerComponentView(iK)}function kE(t,e,n){var r=gi.createCanvas(),i=e.getWidth(),a=e.getHeight(),o=r.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",r.setAttribute("data-zr-dom-id",t)),r.width=i*n,r.height=a*n,r}var nx=(function(t){at(e,t);function e(n,r,i){var a=t.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||Rp,typeof n=="string"?o=kE(n,r,i):Lt(n)&&(o=n,n=o.id),a.id=n,a.dom=o;var l=o.style;return l&&(WR(o),o.onselectstart=function(){return!1},l.padding="0",l.margin="0",l.borderWidth="0"),a.painter=r,a.dpr=i,a}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 n=this.dpr;this.domBack=kE("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),n!==1&&this.ctxBack.scale(n,n)},e.prototype.createRepaintRects=function(n,r,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],l=this.maxRepaintRectCount,s=!1,c=new Pt(0,0,0,0);function h(S){if(!(!S.isFinite()||S.isZero()))if(o.length===0){var T=new Pt(0,0,0,0);T.copy(S),o.push(T)}else{for(var A=!1,D=1/0,M=0,k=0;k<o.length;++k){var I=o[k];if(I.intersect(S)){var z=new Pt(0,0,0,0);z.copy(I),z.union(S),o[k]=z,A=!0;break}else if(s){c.copy(S),c.union(I);var L=S.width*S.height,O=I.width*I.height,H=c.width*c.height,F=H-L-O;F<D&&(D=F,M=k)}}if(s&&(o[M].union(S),A=!0),!A){var T=new Pt(0,0,0,0);T.copy(S),o.push(T)}s||(s=o.length>=l)}}for(var d=this.__startIndex;d<this.__endIndex;++d){var g=n[d];if(g){var p=g.shouldBePainted(i,a,!0,!0),m=g.__isRendered&&(g.__dirty&_r||!p)?g.getPrevPaintRect():null;m&&h(m);var x=p&&(g.__dirty&_r||!g.__isRendered)?g.getPaintRect():null;x&&h(x)}}for(var d=this.__prevStartIndex;d<this.__prevEndIndex;++d){var g=r[d],p=g&&g.shouldBePainted(i,a,!0,!0);if(g&&(!p||!g.__zr)&&g.__isRendered){var m=g.getPrevPaintRect();m&&h(m)}}var _;do{_=!1;for(var d=0;d<o.length;){if(o[d].isZero()){o.splice(d,1);continue}for(var b=d+1;b<o.length;)o[d].intersect(o[b])?(_=!0,o[d].union(o[b]),o.splice(b,1)):b++;d++}}while(_);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(n,r){var i=this.dpr,a=this.dom,o=a.style,l=this.domBack;o&&(o.width=n+"px",o.height=r+"px"),a.width=n*i,a.height=r*i,l&&(l.width=n*i,l.height=r*i,i!==1&&this.ctxBack.scale(i,i))},e.prototype.clear=function(n,r,i){var a=this.dom,o=this.ctx,l=a.width,s=a.height;r=r||this.clearColor;var c=this.motionBlur&&!n,h=this.lastFrameAlpha,d=this.dpr,g=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,l/d,s/d));var p=this.domBack;function m(x,_,b,S){if(o.clearRect(x,_,b,S),r&&r!=="transparent"){var T=void 0;if(bg(r)){var A=r.global||r.__width===b&&r.__height===S;T=A&&r.__canvasGradient||mb(o,r,{x:0,y:0,width:b,height:S}),r.__canvasGradient=T,r.__width=b,r.__height=S}else C6(r)&&(r.scaleX=r.scaleX||d,r.scaleY=r.scaleY||d,T=yb(o,r,{dirty:function(){g.setUnpainted(),g.painter.refresh()}}));o.save(),o.fillStyle=T||r,o.fillRect(x,_,b,S),o.restore()}c&&(o.save(),o.globalAlpha=h,o.drawImage(p,x,_,b,S),o.restore())}!i||c?m(0,0,l,s):i.length&&N(i,function(x){m(x.x*d,x.y*d,x.width*d,x.height*d)})},e})(Kr),LE=1e5,Al=314159,Jv=.01,oK=.001;function lK(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function sK(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var uK=(function(){function t(e,n,r,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=r=ht({},r||{}),this.dpr=r.devicePixelRatio||Rp,this._singleCanvas=a,this.root=e;var o=e.style;o&&(WR(e),e.innerHTML=""),this.storage=n;var l=this._zlevelList;this._prevDisplayList=[];var s=this._layers;if(a){var h=e,d=h.width,g=h.height;r.width!=null&&(d=r.width),r.height!=null&&(g=r.height),this.dpr=r.devicePixelRatio||1,h.width=d*this.dpr,h.height=g*this.dpr,this._width=d,this._height=g;var p=new nx(h,this,this.dpr);p.__builtin__=!0,p.initContext(),s[Al]=p,p.zlevel=Al,l.push(Al),this._domRoot=e}else{this._width=Iv(e,0,r),this._height=Iv(e,1,r);var c=this._domRoot=sK(this._width,this._height);e.appendChild(c)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var n=this.storage.getDisplayList(!0),r=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(n,r,e,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],l=this._layers[o];if(!l.__builtin__&&l.refresh){var s=a===0?this._backgroundColor:null;l.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=n.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(e){var n=e.length,r=this._hoverlayer;if(r&&r.clear(),!!n){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<n;o++){var l=e[o];l.__inHover&&(r||(r=this._hoverlayer=this.getLayer(LE)),a||(a=r.ctx,a.save()),Pl(a,l,i,o===n-1))}a&&a.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(LE)},t.prototype.paintOne=function(e,n){gz(e,n)},t.prototype._paintList=function(e,n,r,i){if(this._redrawId===i){r=r||!1,this._updateLayerStatus(e);var a=this._doPaintList(e,n,r),o=a.finished,l=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),l&&this._paintHoverList(e),o)this.eachLayer(function(c){c.afterBrush&&c.afterBrush()});else{var s=this;Mp(function(){s._paintList(e,n,r,i)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(Al).ctx,n=this._domRoot.width,r=this._domRoot.height;e.clearRect(0,0,n,r),this.eachBuiltinLayer(function(i){i.virtual&&e.drawImage(i.dom,0,0,n,r)})},t.prototype._doPaintList=function(e,n,r){for(var i=this,a=[],o=this._opts.useDirtyRect,l=0;l<this._zlevelList.length;l++){var s=this._zlevelList[l],c=this._layers[s];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||r)&&a.push(c)}for(var h=!0,d=!1,g=function(x){var _=a[x],b=_.ctx,S=o&&_.createRepaintRects(e,n,p._width,p._height),T=r?_.__startIndex:_.__drawIndex,A=!r&&_.incremental&&Date.now,D=A&&Date.now(),M=_.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(_.__startIndex===_.__endIndex)_.clear(!1,M,S);else if(T===_.__startIndex){var k=e[T];(!k.incremental||!k.notClear||r)&&_.clear(!1,M,S)}T===-1&&(console.error("For some unknown reason. drawIndex is -1"),T=_.__startIndex);var I,z=function(F){var Y={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(I=T;I<_.__endIndex;I++){var W=e[I];if(W.__inHover&&(d=!0),i._doPaintEl(W,_,o,F,Y,I===_.__endIndex-1),A){var V=Date.now()-D;if(V>15)break}}Y.prevElClipPaths&&b.restore()};if(S)if(S.length===0)I=_.__endIndex;else for(var L=p.dpr,O=0;O<S.length;++O){var H=S[O];b.save(),b.beginPath(),b.rect(H.x*L,H.y*L,H.width*L,H.height*L),b.clip(),z(H),b.restore()}else b.save(),z(),b.restore();_.__drawIndex=I,_.__drawIndex<_.__endIndex&&(h=!1)},p=this,m=0;m<a.length;m++)g(m);return Ft.wxa&&N(this._layers,function(x){x&&x.ctx&&x.ctx.draw&&x.ctx.draw()}),{finished:h,needsRefreshHover:d}},t.prototype._doPaintEl=function(e,n,r,i,a,o){var l=n.ctx;if(r){var s=e.getPaintRect();(!i||s&&s.intersect(i))&&(Pl(l,e,a,o),e.setPrevPaintRect(s))}else Pl(l,e,a,o)},t.prototype.getLayer=function(e,n){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Al);var r=this._layers[e];return r||(r=new nx("zr_"+e,this,this.dpr),r.zlevel=e,r.__builtin__=!0,this._layerConfig[e]?Xt(r,this._layerConfig[e],!0):this._layerConfig[e-Jv]&&Xt(r,this._layerConfig[e-Jv],!0),n&&(r.virtual=n),this.insertLayer(e,r),r.initContext()),r},t.prototype.insertLayer=function(e,n){var r=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,l=null,s=-1;if(!r[e]&&lK(n)){if(a>0&&e>i[0]){for(s=0;s<a-1&&!(i[s]<e&&i[s+1]>e);s++);l=r[i[s]]}if(i.splice(s+1,0,e),r[e]=n,!n.virtual)if(l){var c=l.dom;c.nextSibling?o.insertBefore(n.dom,c.nextSibling):o.appendChild(n.dom)}else o.firstChild?o.insertBefore(n.dom,o.firstChild):o.appendChild(n.dom);n.painter||(n.painter=this)}},t.prototype.eachLayer=function(e,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var a=r[i];e.call(n,this._layers[a],a)}},t.prototype.eachBuiltinLayer=function(e,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var a=r[i],o=this._layers[a];o.__builtin__&&e.call(n,o,a)}},t.prototype.eachOtherLayer=function(e,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var a=r[i],o=this._layers[a];o.__builtin__||e.call(n,o,a)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(d,g){d.__dirty=d.__used=!1});function n(d){a&&(a.__endIndex!==d&&(a.__dirty=!0),a.__endIndex=d)}if(this._singleCanvas)for(var r=1;r<e.length;r++){var i=e[r];if(i.zlevel!==e[r-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,l,s;for(s=0;s<e.length;s++){var i=e[s],c=i.zlevel,h=void 0;l!==c&&(l=c,o=0),i.incremental?(h=this.getLayer(c+oK,this._needsManuallyCompositing),h.incremental=!0,o=1):h=this.getLayer(c+(o>0?Jv:0),this._needsManuallyCompositing),h.__builtin__||y_("ZLevel "+c+" has been used by unkown layer "+h.id),h!==a&&(h.__used=!0,h.__startIndex!==s&&(h.__dirty=!0),h.__startIndex=s,h.incremental?h.__drawIndex=-1:h.__drawIndex=s,n(s),a=h),i.__dirty&_r&&!i.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=s))}n(s),this.eachBuiltinLayer(function(d,g){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,N(this._layers,function(n){n.setUnpainted()})},t.prototype.configLayer=function(e,n){if(n){var r=this._layerConfig;r[e]?Xt(r[e],n,!0):r[e]=n;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===e||a===e+Jv){var o=this._layers[a];Xt(o,r[e],!0)}}}},t.prototype.delLayer=function(e){var n=this._layers,r=this._zlevelList,i=n[e];i&&(i.dom.parentNode.removeChild(i.dom),delete n[e],r.splice(Yt(r,e),1))},t.prototype.resize=function(e,n){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var i=this._opts,a=this.root;if(e!=null&&(i.width=e),n!=null&&(i.height=n),e=Iv(a,0,i),n=Iv(a,1,i),r.style.display="",this._width!==e||n!==this._height){r.style.width=e+"px",r.style.height=n+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,n);this.refresh(!0)}this._width=e,this._height=n}else{if(e==null||n==null)return;this._width=e,this._height=n,this.getLayer(Al).resize(e,n)}return this},t.prototype.clearLayer=function(e){var n=this._layers[e];n&&n.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[Al].dom;var n=new nx("image",this,e.pixelRatio||this.dpr);n.initContext(),n.clear(!1,e.backgroundColor||this._backgroundColor);var r=n.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=n.dom.width,a=n.dom.height;this.eachLayer(function(d){d.__builtin__?r.drawImage(d.dom,0,0,i,a):d.renderToCanvas&&(r.save(),d.renderToCanvas(r),r.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},l=this.storage.getDisplayList(!0),s=0,c=l.length;s<c;s++){var h=l[s];Pl(r,h,o,s===c-1)}return n.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t})();function cK(t){t.registerPainter("canvas",uK)}const fK={color:[B.orange,B.teal,B.blue,"#AB47BC","#66BB6A","#FFD54F","#42A5F5","#EC407A","#26A69A","#8D6E63"],backgroundColor:"transparent",textStyle:{fontFamily:'system-ui, -apple-system, "Segoe UI", sans-serif',color:B.textPrimary},title:{textStyle:{color:B.textPrimary,fontSize:14,fontWeight:600},subtextStyle:{color:B.textSecondary,fontSize:12}},tooltip:{backgroundColor:B.surface,borderColor:"#BDBDBD",borderWidth:1.5,textStyle:{color:B.textPrimary,fontSize:12},extraCssText:"box-shadow: 0 2px 8px rgba(0,0,0,0.12); border-radius: 6px;"},legend:{type:"scroll",pageIconSize:12,textStyle:{color:B.textSecondary,fontSize:12}},categoryAxis:{axisLine:{lineStyle:{color:B.border}},axisTick:{lineStyle:{color:B.border}},axisLabel:{color:B.textSecondary,fontSize:12},splitLine:{lineStyle:{color:B.borderLight,type:"dashed"}}},valueAxis:{axisLine:{lineStyle:{color:B.border}},axisTick:{lineStyle:{color:B.border}},axisLabel:{color:B.textSecondary,fontSize:12},splitLine:{lineStyle:{color:B.borderLight,type:"dashed"}}},dataZoom:{backgroundColor:B.surfaceHover,borderColor:B.border,fillerColor:"rgba(30, 136, 229, 0.08)",handleStyle:{color:B.blue},handleSize:"110%",textStyle:{color:B.textSecondary}},toolbox:{iconStyle:{borderColor:B.textTertiary},emphasis:{iconStyle:{borderColor:B.orange}}},aria:{decal:{show:!0}}},hK="rgba(30, 136, 229, 0.15)",dK=B.blue;Wn([I7,q7,iY,nW,Kq,hW,vX,yq,LX,SX,kq,Yq,sZ,rQ,P$,dQ,IZ,OQ,x$,aK,nK,tQ,cK]);vS("analitoly",fK);function QS({chartId:t,option:e,height:n=400,onBrushSelect:r,interactive:i=!0,timeRange:a}){const o=vt.useRef(null),l=vt.useRef(null),s=vt.useCallback(()=>{if(!o.current)return;l.current&&l.current.dispose();const c=NU(o.current,"analitoly",{renderer:"canvas"});l.current=c;const h={...e};e.grid||(h.grid={containLabel:!0,left:12,right:12,top:40,bottom:i?60:12}),e.aria||(h.aria={decal:{show:!0}}),i&&(e.xAxis&&!e.brush&&(h.brush={toolbox:["lineX","clear"],xAxisIndex:0,brushStyle:{color:hK,borderColor:dK,borderWidth:1.5}}),e.xAxis&&!e.dataZoom&&(h.dataZoom=[{type:"inside",xAxisIndex:0},{type:"slider",xAxisIndex:0,height:28,bottom:4,handleSize:"110%"}]));try{c.setOption(h)}catch(d){console.error("ECharts setOption error:",d),o.current&&(o.current.innerHTML='<div style="display:flex;align-items:center;justify-content:center;height:100%;color:#999;font-size:13px;">Не удалось отрисовать график</div>');return}return i&&r&&c.on("brushEnd",d=>{const g=d.areas;if(!g||g.length===0)return;const p=g[0];p.coordRange&&r({chartId:t,xRange:p.coordRange[0]??p.coordRange,yRange:p.coordRange[1]})}),c},[t,e,i,r]);return vt.useEffect(()=>{const c=l.current;!c||!i||(a?c.dispatchAction({type:"dataZoom",startValue:a.from,endValue:a.to}):c.dispatchAction({type:"dataZoom",start:0,end:100}))},[a,i]),vt.useEffect(()=>{const c=s(),h=new ResizeObserver(()=>{c==null||c.resize()});return o.current&&h.observe(o.current),()=>{h.disconnect(),c==null||c.dispose(),l.current=null}},[s]),E.jsx("div",{ref:o,style:{width:"100%",height:n,minHeight:i?300:160}})}function vK({chart:t,onClick:e}){return E.jsxs("div",{onClick:e,style:{background:B.surface,border:`1px solid ${B.border}`,borderRadius:8,padding:8,marginBottom:8,cursor:"pointer",transition:Gt.normal,boxShadow:ze.sm},onMouseEnter:n=>{n.currentTarget.style.borderColor=B.orange,n.currentTarget.style.boxShadow=ze.md},onMouseLeave:n=>{n.currentTarget.style.borderColor=B.border,n.currentTarget.style.boxShadow=ze.sm},children:[E.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:4},children:[E.jsx("span",{style:{fontSize:12,fontWeight:600,color:B.teal},children:t.title}),E.jsx("span",{style:{fontSize:10,color:B.textTertiary,background:B.surfaceHover,padding:"2px 6px",borderRadius:4},children:"Открыть"})]}),t.description&&E.jsx("p",{style:{fontSize:11,color:B.textSecondary,margin:"0 0 4px 0",lineHeight:1.3},children:t.description}),E.jsx("div",{style:{pointerEvents:"none"},children:E.jsx(QS,{chartId:t.chartId,option:t.echartsOption,height:160,interactive:!1})})]})}const pK=`
117
+ @keyframes wave-dot {
118
+ 0%, 100% { transform: translateY(0); opacity: 0.4; }
119
+ 50% { transform: translateY(-4px); opacity: 1; }
120
+ }`;function gK({label:t}){return E.jsxs(E.Fragment,{children:[E.jsx("style",{children:pK}),E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"8px 14px",background:"rgba(255, 140, 66, 0.06)",borderRadius:8,marginBottom:8},children:[E.jsx("div",{style:{display:"flex",gap:4,alignItems:"end"},children:[0,.2,.4].map((e,n)=>E.jsx("span",{style:{width:6,height:6,borderRadius:"50%",background:B.orange,animation:`wave-dot 1.2s ease-in-out infinite ${e}s`}},n))}),E.jsx("span",{style:{color:B.orange,fontSize:12},children:t})]})]})}const mK=`
121
+ @keyframes chart-bar-grow {
122
+ 0%, 100% { transform: scaleY(0.3); }
123
+ 50% { transform: scaleY(1); }
124
+ }
125
+ @keyframes chart-line-draw {
126
+ 0% { stroke-dashoffset: 60; }
127
+ 100% { stroke-dashoffset: 0; }
128
+ }
129
+ @keyframes chart-fade-pulse {
130
+ 0%, 100% { opacity: 0.5; }
131
+ 50% { opacity: 1; }
132
+ }`;function yK(){const t=[14,20,10,18,12],e=4,n=3,r=t.length*(e+n)-n;return E.jsxs(E.Fragment,{children:[E.jsx("style",{children:mK}),E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"12px 16px",background:"linear-gradient(135deg, rgba(0, 105, 92, 0.06), rgba(255, 140, 66, 0.06))",borderRadius:10,marginBottom:8,border:`1px solid ${B.borderLight}`},children:[E.jsx("svg",{width:r+4,height:"26",viewBox:`0 0 ${r+4} 26`,children:t.map((i,a)=>E.jsx("rect",{x:a*(e+n)+2,y:26-i,width:e,height:i,rx:1.5,fill:a%2===0?B.teal:B.orange,style:{transformOrigin:`${a*(e+n)+2+e/2}px 26px`,animation:`chart-bar-grow 1.6s ease-in-out infinite ${a*.15}s`,opacity:.8}},a))}),E.jsx("span",{style:{color:B.teal,fontSize:12,fontWeight:500,animation:"chart-fade-pulse 2s ease-in-out infinite"},children:"Генерация графика..."})]})]})}function xK(t,e){const n={};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const bK=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,_K=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,SK={};function EE(t,e){return(SK.jsx?_K:bK).test(t)}const wK=/[ \t\n\f\r]/g;function TK(t){return typeof t=="object"?t.type==="text"?RE(t.value):!1:RE(t)}function RE(t){return t.replace(wK,"")===""}class jh{constructor(e,n,r){this.normal=n,this.property=e,r&&(this.space=r)}}jh.prototype.normal={};jh.prototype.property={};jh.prototype.space=void 0;function r3(t,e){const n={},r={};for(const i of t)Object.assign(n,i.property),Object.assign(r,i.normal);return new jh(n,r,e)}function n_(t){return t.toLowerCase()}class ur{constructor(e,n){this.attribute=n,this.property=e}}ur.prototype.attribute="";ur.prototype.booleanish=!1;ur.prototype.boolean=!1;ur.prototype.commaOrSpaceSeparated=!1;ur.prototype.commaSeparated=!1;ur.prototype.defined=!1;ur.prototype.mustUseProperty=!1;ur.prototype.number=!1;ur.prototype.overloadedBoolean=!1;ur.prototype.property="";ur.prototype.spaceSeparated=!1;ur.prototype.space=void 0;let CK=0;const Kt=as(),on=as(),r_=as(),xt=as(),Oe=as(),Eu=as(),xr=as();function as(){return 2**++CK}const i_=Object.freeze(Object.defineProperty({__proto__:null,boolean:Kt,booleanish:on,commaOrSpaceSeparated:xr,commaSeparated:Eu,number:xt,overloadedBoolean:r_,spaceSeparated:Oe},Symbol.toStringTag,{value:"Module"})),rx=Object.keys(i_);class KS extends ur{constructor(e,n,r,i){let a=-1;if(super(e,n),IE(this,"space",i),typeof r=="number")for(;++a<rx.length;){const o=rx[a];IE(this,rx[a],(r&i_[o])===i_[o])}}}KS.prototype.defined=!0;function IE(t,e,n){n&&(t[e]=n)}function Ku(t){const e={},n={};for(const[r,i]of Object.entries(t.properties)){const a=new KS(r,t.transform(t.attributes||{},r),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),e[r]=a,n[n_(r)]=r,n[n_(a.attribute)]=r}return new jh(e,n,t.space)}const i3=Ku({properties:{ariaActiveDescendant:null,ariaAtomic:on,ariaAutoComplete:null,ariaBusy:on,ariaChecked:on,ariaColCount:xt,ariaColIndex:xt,ariaColSpan:xt,ariaControls:Oe,ariaCurrent:null,ariaDescribedBy:Oe,ariaDetails:null,ariaDisabled:on,ariaDropEffect:Oe,ariaErrorMessage:null,ariaExpanded:on,ariaFlowTo:Oe,ariaGrabbed:on,ariaHasPopup:null,ariaHidden:on,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Oe,ariaLevel:xt,ariaLive:null,ariaModal:on,ariaMultiLine:on,ariaMultiSelectable:on,ariaOrientation:null,ariaOwns:Oe,ariaPlaceholder:null,ariaPosInSet:xt,ariaPressed:on,ariaReadOnly:on,ariaRelevant:null,ariaRequired:on,ariaRoleDescription:Oe,ariaRowCount:xt,ariaRowIndex:xt,ariaRowSpan:xt,ariaSelected:on,ariaSetSize:xt,ariaSort:null,ariaValueMax:xt,ariaValueMin:xt,ariaValueNow:xt,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function a3(t,e){return e in t?t[e]:e}function o3(t,e){return a3(t,e.toLowerCase())}const MK=Ku({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Eu,acceptCharset:Oe,accessKey:Oe,action:null,allow:null,allowFullScreen:Kt,allowPaymentRequest:Kt,allowUserMedia:Kt,alt:null,as:null,async:Kt,autoCapitalize:null,autoComplete:Oe,autoFocus:Kt,autoPlay:Kt,blocking:Oe,capture:null,charSet:null,checked:Kt,cite:null,className:Oe,cols:xt,colSpan:null,content:null,contentEditable:on,controls:Kt,controlsList:Oe,coords:xt|Eu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Kt,defer:Kt,dir:null,dirName:null,disabled:Kt,download:r_,draggable:on,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Kt,formTarget:null,headers:Oe,height:xt,hidden:r_,high:xt,href:null,hrefLang:null,htmlFor:Oe,httpEquiv:Oe,id:null,imageSizes:null,imageSrcSet:null,inert:Kt,inputMode:null,integrity:null,is:null,isMap:Kt,itemId:null,itemProp:Oe,itemRef:Oe,itemScope:Kt,itemType:Oe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Kt,low:xt,manifest:null,max:null,maxLength:xt,media:null,method:null,min:null,minLength:xt,multiple:Kt,muted:Kt,name:null,nonce:null,noModule:Kt,noValidate:Kt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Kt,optimum:xt,pattern:null,ping:Oe,placeholder:null,playsInline:Kt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Kt,referrerPolicy:null,rel:Oe,required:Kt,reversed:Kt,rows:xt,rowSpan:xt,sandbox:Oe,scope:null,scoped:Kt,seamless:Kt,selected:Kt,shadowRootClonable:Kt,shadowRootDelegatesFocus:Kt,shadowRootMode:null,shape:null,size:xt,sizes:null,slot:null,span:xt,spellCheck:on,src:null,srcDoc:null,srcLang:null,srcSet:null,start:xt,step:null,style:null,tabIndex:xt,target:null,title:null,translate:null,type:null,typeMustMatch:Kt,useMap:null,value:on,width:xt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Oe,axis:null,background:null,bgColor:null,border:xt,borderColor:null,bottomMargin:xt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Kt,declare:Kt,event:null,face:null,frame:null,frameBorder:null,hSpace:xt,leftMargin:xt,link:null,longDesc:null,lowSrc:null,marginHeight:xt,marginWidth:xt,noResize:Kt,noHref:Kt,noShade:Kt,noWrap:Kt,object:null,profile:null,prompt:null,rev:null,rightMargin:xt,rules:null,scheme:null,scrolling:on,standby:null,summary:null,text:null,topMargin:xt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:xt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Kt,disableRemotePlayback:Kt,prefix:null,property:null,results:xt,security:null,unselectable:null},space:"html",transform:o3}),AK=Ku({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:xr,accentHeight:xt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:xt,amplitude:xt,arabicForm:null,ascent:xt,attributeName:null,attributeType:null,azimuth:xt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:xt,by:null,calcMode:null,capHeight:xt,className:Oe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:xt,diffuseConstant:xt,direction:null,display:null,dur:null,divisor:xt,dominantBaseline:null,download:Kt,dx:null,dy:null,edgeMode:null,editable:null,elevation:xt,enableBackground:null,end:null,event:null,exponent:xt,externalResourcesRequired:null,fill:null,fillOpacity:xt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Eu,g2:Eu,glyphName:Eu,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:xt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:xt,horizOriginX:xt,horizOriginY:xt,id:null,ideographic:xt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:xt,k:xt,k1:xt,k2:xt,k3:xt,k4:xt,kernelMatrix:xr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:xt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:xt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:xt,overlineThickness:xt,paintOrder:null,panose1:null,path:null,pathLength:xt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Oe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:xt,pointsAtY:xt,pointsAtZ:xt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xr,rev:xr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xr,requiredFeatures:xr,requiredFonts:xr,requiredFormats:xr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:xt,specularExponent:xt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:xt,strikethroughThickness:xt,string:null,stroke:null,strokeDashArray:xr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:xt,strokeOpacity:xt,strokeWidth:null,style:null,surfaceScale:xt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xr,tabIndex:xt,tableValues:null,target:null,targetX:xt,targetY:xt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:xt,underlineThickness:xt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:xt,values:null,vAlphabetic:xt,vMathematical:xt,vectorEffect:null,vHanging:xt,vIdeographic:xt,version:null,vertAdvY:xt,vertOriginX:xt,vertOriginY:xt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:xt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:a3}),l3=Ku({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),s3=Ku({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:o3}),u3=Ku({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),DK={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},kK=/[A-Z]/g,OE=/-[a-z]/g,LK=/^data[-\w.:]+$/i;function EK(t,e){const n=n_(e);let r=e,i=ur;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&LK.test(e)){if(e.charAt(4)==="-"){const a=e.slice(5).replace(OE,IK);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=e.slice(4);if(!OE.test(a)){let o=a.replace(kK,RK);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}i=KS}return new i(r,e)}function RK(t){return"-"+t.toLowerCase()}function IK(t){return t.charAt(1).toUpperCase()}const OK=r3([i3,MK,l3,s3,u3],"html"),JS=r3([i3,AK,l3,s3,u3],"svg");function zK(t){return t.join(" ").trim()}var fu={},ix,zE;function BK(){if(zE)return ix;zE=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g,s=`
133
+ `,c="/",h="*",d="",g="comment",p="declaration";function m(_,b){if(typeof _!="string")throw new TypeError("First argument must be a string");if(!_)return[];b=b||{};var S=1,T=1;function A(Y){var W=Y.match(e);W&&(S+=W.length);var V=Y.lastIndexOf(s);T=~V?Y.length-V:T+Y.length}function D(){var Y={line:S,column:T};return function(W){return W.position=new M(Y),z(),W}}function M(Y){this.start=Y,this.end={line:S,column:T},this.source=b.source}M.prototype.content=_;function k(Y){var W=new Error(b.source+":"+S+":"+T+": "+Y);if(W.reason=Y,W.filename=b.source,W.line=S,W.column=T,W.source=_,!b.silent)throw W}function I(Y){var W=Y.exec(_);if(W){var V=W[0];return A(V),_=_.slice(V.length),W}}function z(){I(n)}function L(Y){var W;for(Y=Y||[];W=O();)W!==!1&&Y.push(W);return Y}function O(){var Y=D();if(!(c!=_.charAt(0)||h!=_.charAt(1))){for(var W=2;d!=_.charAt(W)&&(h!=_.charAt(W)||c!=_.charAt(W+1));)++W;if(W+=2,d===_.charAt(W-1))return k("End of comment missing");var V=_.slice(2,W-2);return T+=2,A(V),_=_.slice(W),T+=2,Y({type:g,comment:V})}}function H(){var Y=D(),W=I(r);if(W){if(O(),!I(i))return k("property missing ':'");var V=I(a),X=Y({type:p,property:x(W[0].replace(t,d)),value:V?x(V[0].replace(t,d)):d});return I(o),X}}function F(){var Y=[];L(Y);for(var W;W=H();)W!==!1&&(Y.push(W),L(Y));return Y}return z(),F()}function x(_){return _?_.replace(l,d):d}return ix=m,ix}var BE;function NK(){if(BE)return fu;BE=1;var t=fu&&fu.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(fu,"__esModule",{value:!0}),fu.default=n;const e=t(BK());function n(r,i){let a=null;if(!r||typeof r!="string")return a;const o=(0,e.default)(r),l=typeof i=="function";return o.forEach(s=>{if(s.type!=="declaration")return;const{property:c,value:h}=s;l?i(c,h,s):h&&(a=a||{},a[c]=h)}),a}return fu}var Sf={},NE;function PK(){if(NE)return Sf;NE=1,Object.defineProperty(Sf,"__esModule",{value:!0}),Sf.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(c){return!c||n.test(c)||t.test(c)},o=function(c,h){return h.toUpperCase()},l=function(c,h){return"".concat(h,"-")},s=function(c,h){return h===void 0&&(h={}),a(c)?c:(c=c.toLowerCase(),h.reactCompat?c=c.replace(i,l):c=c.replace(r,l),c.replace(e,o))};return Sf.camelCase=s,Sf}var wf,PE;function VK(){if(PE)return wf;PE=1;var t=wf&&wf.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},e=t(NK()),n=PK();function r(i,a){var o={};return!i||typeof i!="string"||(0,e.default)(i,function(l,s){l&&s&&(o[(0,n.camelCase)(l,a)]=s)}),o}return r.default=r,wf=r,wf}var HK=VK();const jK=zR(HK),c3=f3("end"),tw=f3("start");function f3(t){return e;function e(n){const r=n&&n.position&&n.position[t]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function FK(t){const e=tw(t),n=c3(t);if(e&&n)return{start:e,end:n}}function $f(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?VE(t.position):"start"in t||"end"in t?VE(t):"line"in t||"column"in t?a_(t):""}function a_(t){return HE(t&&t.line)+":"+HE(t&&t.column)}function VE(t){return a_(t&&t.start)+"-"+a_(t&&t.end)}function HE(t){return t&&typeof t=="number"?t:1}class zn extends Error{constructor(e,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},o=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof e=="string"?i=e:!a.cause&&e&&(o=!0,i=e.message,a.cause=e),!a.ruleId&&!a.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?a.ruleId=r:(a.source=r.slice(0,s),a.ruleId=r.slice(s+1))}if(!a.place&&a.ancestors&&a.ancestors){const s=a.ancestors[a.ancestors.length-1];s&&(a.place=s.position)}const l=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=l?l.line:void 0,this.name=$f(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}zn.prototype.file="";zn.prototype.name="";zn.prototype.reason="";zn.prototype.message="";zn.prototype.stack="";zn.prototype.column=void 0;zn.prototype.line=void 0;zn.prototype.ancestors=void 0;zn.prototype.cause=void 0;zn.prototype.fatal=void 0;zn.prototype.place=void 0;zn.prototype.ruleId=void 0;zn.prototype.source=void 0;const ew={}.hasOwnProperty,GK=new Map,UK=/[A-Z]/g,YK=new Set(["table","tbody","thead","tfoot","tr"]),WK=new Set(["td","th"]),h3="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function XK(t,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=e.filePath||void 0;let r;if(e.development){if(typeof e.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=eJ(n,e.jsxDEV)}else{if(typeof e.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof e.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=tJ(n,e.jsx,e.jsxs)}const i={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:r,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?JS:OK,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},a=d3(i,t,void 0);return a&&typeof a!="string"?a:i.create(t,i.Fragment,{children:a||void 0},void 0)}function d3(t,e,n){if(e.type==="element")return qK(t,e,n);if(e.type==="mdxFlowExpression"||e.type==="mdxTextExpression")return ZK(t,e);if(e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement")return QK(t,e,n);if(e.type==="mdxjsEsm")return $K(t,e);if(e.type==="root")return KK(t,e,n);if(e.type==="text")return JK(t,e)}function qK(t,e,n){const r=t.schema;let i=r;e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=JS,t.schema=i),t.ancestors.push(e);const a=p3(t,e.tagName,!1),o=nJ(t,e);let l=rw(t,e);return YK.has(e.tagName)&&(l=l.filter(function(s){return typeof s=="string"?!TK(s):!0})),v3(t,o,a,e),nw(o,l),t.ancestors.pop(),t.schema=r,t.create(e,a,o,n)}function ZK(t,e){if(e.data&&e.data.estree&&t.evaluater){const r=e.data.estree.body[0];return r.type,t.evaluater.evaluateExpression(r.expression)}Ch(t,e.position)}function $K(t,e){if(e.data&&e.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(e.data.estree);Ch(t,e.position)}function QK(t,e,n){const r=t.schema;let i=r;e.name==="svg"&&r.space==="html"&&(i=JS,t.schema=i),t.ancestors.push(e);const a=e.name===null?t.Fragment:p3(t,e.name,!0),o=rJ(t,e),l=rw(t,e);return v3(t,o,a,e),nw(o,l),t.ancestors.pop(),t.schema=r,t.create(e,a,o,n)}function KK(t,e,n){const r={};return nw(r,rw(t,e)),t.create(e,t.Fragment,r,n)}function JK(t,e){return e.value}function v3(t,e,n,r){typeof n!="string"&&n!==t.Fragment&&t.passNode&&(e.node=r)}function nw(t,e){if(e.length>0){const n=e.length>1?e:e[0];n&&(t.children=n)}}function tJ(t,e,n){return r;function r(i,a,o,l){const c=Array.isArray(o.children)?n:e;return l?c(a,o,l):c(a,o)}}function eJ(t,e){return n;function n(r,i,a,o){const l=Array.isArray(a.children),s=tw(r);return e(i,a,o,l,{columnNumber:s?s.column-1:void 0,fileName:t,lineNumber:s?s.line:void 0},void 0)}}function nJ(t,e){const n={};let r,i;for(i in e.properties)if(i!=="children"&&ew.call(e.properties,i)){const a=iJ(t,i,e.properties[i]);if(a){const[o,l]=a;t.tableCellAlignToStyle&&o==="align"&&typeof l=="string"&&WK.has(e.tagName)?r=l:n[o]=l}}if(r){const a=n.style||(n.style={});a[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function rJ(t,e){const n={};for(const r of e.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&t.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const l=o.properties[0];l.type,Object.assign(n,t.evaluater.evaluateExpression(l.argument))}else Ch(t,e.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&t.evaluater){const l=r.value.data.estree.body[0];l.type,a=t.evaluater.evaluateExpression(l.expression)}else Ch(t,e.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function rw(t,e){const n=[];let r=-1;const i=t.passKeys?new Map:GK;for(;++r<e.children.length;){const a=e.children[r];let o;if(t.passKeys){const s=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(s){const c=i.get(s)||0;o=s+"-"+c,i.set(s,c+1)}}const l=d3(t,a,o);l!==void 0&&n.push(l)}return n}function iJ(t,e,n){const r=EK(t.schema,e);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?xK(n):zK(n)),r.property==="style"){let i=typeof n=="object"?n:aJ(t,String(n));return t.stylePropertyNameCase==="css"&&(i=oJ(i)),["style",i]}return[t.elementAttributeNameCase==="react"&&r.space?DK[r.property]||r.property:r.attribute,n]}}function aJ(t,e){try{return jK(e,{reactCompat:!0})}catch(n){if(t.ignoreInvalidStyle)return{};const r=n,i=new zn("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=t.filePath||void 0,i.url=h3+"#cannot-parse-style-attribute",i}}function p3(t,e,n){let r;if(!n)r={type:"Literal",value:e};else if(e.includes(".")){const i=e.split(".");let a=-1,o;for(;++a<i.length;){const l=EE(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};o=o?{type:"MemberExpression",object:o,property:l,computed:!!(a&&l.type==="Literal"),optional:!1}:l}r=o}else r=EE(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};if(r.type==="Literal"){const i=r.value;return ew.call(t.components,i)?t.components[i]:i}if(t.evaluater)return t.evaluater.evaluateExpression(r);Ch(t)}function Ch(t,e){const n=new zn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=t.filePath||void 0,n.url=h3+"#cannot-handle-mdx-estrees-without-createevaluater",n}function oJ(t){const e={};let n;for(n in t)ew.call(t,n)&&(e[lJ(n)]=t[n]);return e}function lJ(t){let e=t.replace(UK,sJ);return e.slice(0,3)==="ms-"&&(e="-"+e),e}function sJ(t){return"-"+t.toLowerCase()}const ax={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},uJ={};function iw(t,e){const n=uJ,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return g3(t,r,i)}function g3(t,e,n){if(cJ(t)){if("value"in t)return t.type==="html"&&!n?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return jE(t.children,e,n)}return Array.isArray(t)?jE(t,e,n):""}function jE(t,e,n){const r=[];let i=-1;for(;++i<t.length;)r[i]=g3(t[i],e,n);return r.join("")}function cJ(t){return!!(t&&typeof t=="object")}const FE=document.createElement("i");function aw(t){const e="&"+t+";";FE.innerHTML=e;const n=FE.textContent;return n.charCodeAt(n.length-1)===59&&t!=="semi"||n===e?!1:n}function wr(t,e,n,r){const i=t.length;let a=0,o;if(e<0?e=-e>i?0:i+e:e=e>i?i:e,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(e,n),t.splice(...o);else for(n&&t.splice(e,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(e,0),t.splice(...o),a+=1e4,e+=1e4}function Wr(t,e){return t.length>0?(wr(t,t.length,0,e),t):e}const GE={}.hasOwnProperty;function m3(t){const e={};let n=-1;for(;++n<t.length;)fJ(e,t[n]);return e}function fJ(t,e){let n;for(n in e){const i=(GE.call(t,n)?t[n]:void 0)||(t[n]={}),a=e[n];let o;if(a)for(o in a){GE.call(i,o)||(i[o]=[]);const l=a[o];hJ(i[o],Array.isArray(l)?l:l?[l]:[])}}}function hJ(t,e){let n=-1;const r=[];for(;++n<e.length;)(e[n].add==="after"?t:r).push(e[n]);wr(t,0,0,r)}function y3(t,e){const n=Number.parseInt(t,e);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function pi(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Fn=Vo(/[A-Za-z]/),Rn=Vo(/[\dA-Za-z]/),dJ=Vo(/[#-'*+\--9=?A-Z^-~]/);function pg(t){return t!==null&&(t<32||t===127)}const o_=Vo(/\d/),vJ=Vo(/[\dA-Fa-f]/),pJ=Vo(/[!-/:-@[-`{-~]/);function Nt(t){return t!==null&&t<-2}function Re(t){return t!==null&&(t<0||t===32)}function re(t){return t===-2||t===-1||t===32}const Wg=Vo(new RegExp("\\p{P}|\\p{S}","u")),ns=Vo(/\s/);function Vo(t){return e;function e(n){return n!==null&&n>-1&&t.test(String.fromCharCode(n))}}function Ju(t){const e=[];let n=-1,r=0,i=0;for(;++n<t.length;){const a=t.charCodeAt(n);let o="";if(a===37&&Rn(t.charCodeAt(n+1))&&Rn(t.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const l=t.charCodeAt(n+1);a<56320&&l>56319&&l<57344?(o=String.fromCharCode(a,l),i=1):o="�"}else o=String.fromCharCode(a);o&&(e.push(t.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return e.join("")+t.slice(r)}function de(t,e,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(s){return re(s)?(t.enter(n),l(s)):e(s)}function l(s){return re(s)&&a++<i?(t.consume(s),l):(t.exit(n),e(s))}}const gJ={tokenize:mJ};function mJ(t){const e=t.attempt(this.parser.constructs.contentInitial,r,i);let n;return e;function r(l){if(l===null){t.consume(l);return}return t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),de(t,e,"linePrefix")}function i(l){return t.enter("paragraph"),a(l)}function a(l){const s=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,o(l)}function o(l){if(l===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(l);return}return Nt(l)?(t.consume(l),t.exit("chunkText"),a):(t.consume(l),o)}}const yJ={tokenize:xJ},UE={tokenize:bJ};function xJ(t){const e=this,n=[];let r=0,i,a,o;return l;function l(T){if(r<n.length){const A=n[r];return e.containerState=A[1],t.attempt(A[0].continuation,s,c)(T)}return c(T)}function s(T){if(r++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,i&&S();const A=e.events.length;let D=A,M;for(;D--;)if(e.events[D][0]==="exit"&&e.events[D][1].type==="chunkFlow"){M=e.events[D][1].end;break}b(r);let k=A;for(;k<e.events.length;)e.events[k][1].end={...M},k++;return wr(e.events,D+1,0,e.events.slice(A)),e.events.length=k,c(T)}return l(T)}function c(T){if(r===n.length){if(!i)return g(T);if(i.currentConstruct&&i.currentConstruct.concrete)return m(T);e.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(UE,h,d)(T)}function h(T){return i&&S(),b(r),g(T)}function d(T){return e.parser.lazy[e.now().line]=r!==n.length,o=e.now().offset,m(T)}function g(T){return e.containerState={},t.attempt(UE,p,m)(T)}function p(T){return r++,n.push([e.currentConstruct,e.containerState]),g(T)}function m(T){if(T===null){i&&S(),b(0),t.consume(T);return}return i=i||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),x(T)}function x(T){if(T===null){_(t.exit("chunkFlow"),!0),b(0),t.consume(T);return}return Nt(T)?(t.consume(T),_(t.exit("chunkFlow")),r=0,e.interrupt=void 0,l):(t.consume(T),x)}function _(T,A){const D=e.sliceStream(T);if(A&&D.push(null),T.previous=a,a&&(a.next=T),a=T,i.defineSkip(T.start),i.write(D),e.parser.lazy[T.start.line]){let M=i.events.length;for(;M--;)if(i.events[M][1].start.offset<o&&(!i.events[M][1].end||i.events[M][1].end.offset>o))return;const k=e.events.length;let I=k,z,L;for(;I--;)if(e.events[I][0]==="exit"&&e.events[I][1].type==="chunkFlow"){if(z){L=e.events[I][1].end;break}z=!0}for(b(r),M=k;M<e.events.length;)e.events[M][1].end={...L},M++;wr(e.events,I+1,0,e.events.slice(k)),e.events.length=M}}function b(T){let A=n.length;for(;A-- >T;){const D=n[A];e.containerState=D[1],D[0].exit.call(e,t)}n.length=T}function S(){i.write([null]),a=void 0,i=void 0,e.containerState._closeFlow=void 0}}function bJ(t,e,n){return de(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Fu(t){if(t===null||Re(t)||ns(t))return 1;if(Wg(t))return 2}function Xg(t,e,n){const r=[];let i=-1;for(;++i<t.length;){const a=t[i].resolveAll;a&&!r.includes(a)&&(e=a(e,n),r.push(a))}return e}const l_={name:"attention",resolveAll:_J,tokenize:SJ};function _J(t,e){let n=-1,r,i,a,o,l,s,c,h;for(;++n<t.length;)if(t[n][0]==="enter"&&t[n][1].type==="attentionSequence"&&t[n][1]._close){for(r=n;r--;)if(t[r][0]==="exit"&&t[r][1].type==="attentionSequence"&&t[r][1]._open&&e.sliceSerialize(t[r][1]).charCodeAt(0)===e.sliceSerialize(t[n][1]).charCodeAt(0)){if((t[r][1]._close||t[n][1]._open)&&(t[n][1].end.offset-t[n][1].start.offset)%3&&!((t[r][1].end.offset-t[r][1].start.offset+t[n][1].end.offset-t[n][1].start.offset)%3))continue;s=t[r][1].end.offset-t[r][1].start.offset>1&&t[n][1].end.offset-t[n][1].start.offset>1?2:1;const d={...t[r][1].end},g={...t[n][1].start};YE(d,-s),YE(g,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...t[r][1].end}},l={type:s>1?"strongSequence":"emphasisSequence",start:{...t[n][1].start},end:g},a={type:s>1?"strongText":"emphasisText",start:{...t[r][1].end},end:{...t[n][1].start}},i={type:s>1?"strong":"emphasis",start:{...o.start},end:{...l.end}},t[r][1].end={...o.start},t[n][1].start={...l.end},c=[],t[r][1].end.offset-t[r][1].start.offset&&(c=Wr(c,[["enter",t[r][1],e],["exit",t[r][1],e]])),c=Wr(c,[["enter",i,e],["enter",o,e],["exit",o,e],["enter",a,e]]),c=Wr(c,Xg(e.parser.constructs.insideSpan.null,t.slice(r+1,n),e)),c=Wr(c,[["exit",a,e],["enter",l,e],["exit",l,e],["exit",i,e]]),t[n][1].end.offset-t[n][1].start.offset?(h=2,c=Wr(c,[["enter",t[n][1],e],["exit",t[n][1],e]])):h=0,wr(t,r-1,n-r+3,c),n=r+c.length-h-2;break}}for(n=-1;++n<t.length;)t[n][1].type==="attentionSequence"&&(t[n][1].type="data");return t}function SJ(t,e){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Fu(r);let a;return o;function o(s){return a=s,t.enter("attentionSequence"),l(s)}function l(s){if(s===a)return t.consume(s),l;const c=t.exit("attentionSequence"),h=Fu(s),d=!h||h===2&&i||n.includes(s),g=!i||i===2&&h||n.includes(r);return c._open=!!(a===42?d:d&&(i||!g)),c._close=!!(a===42?g:g&&(h||!d)),e(s)}}function YE(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const wJ={name:"autolink",tokenize:TJ};function TJ(t,e,n){let r=0;return i;function i(p){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),a}function a(p){return Fn(p)?(t.consume(p),o):p===64?n(p):c(p)}function o(p){return p===43||p===45||p===46||Rn(p)?(r=1,l(p)):c(p)}function l(p){return p===58?(t.consume(p),r=0,s):(p===43||p===45||p===46||Rn(p))&&r++<32?(t.consume(p),l):(r=0,c(p))}function s(p){return p===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.exit("autolink"),e):p===null||p===32||p===60||pg(p)?n(p):(t.consume(p),s)}function c(p){return p===64?(t.consume(p),h):dJ(p)?(t.consume(p),c):n(p)}function h(p){return Rn(p)?d(p):n(p)}function d(p){return p===46?(t.consume(p),r=0,h):p===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.exit("autolink"),e):g(p)}function g(p){if((p===45||Rn(p))&&r++<63){const m=p===45?g:d;return t.consume(p),m}return n(p)}}const Fh={partial:!0,tokenize:CJ};function CJ(t,e,n){return r;function r(a){return re(a)?de(t,i,"linePrefix")(a):i(a)}function i(a){return a===null||Nt(a)?e(a):n(a)}}const x3={continuation:{tokenize:AJ},exit:DJ,name:"blockQuote",tokenize:MJ};function MJ(t,e,n){const r=this;return i;function i(o){if(o===62){const l=r.containerState;return l.open||(t.enter("blockQuote",{_container:!0}),l.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(o),t.exit("blockQuoteMarker"),a}return n(o)}function a(o){return re(o)?(t.enter("blockQuotePrefixWhitespace"),t.consume(o),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(o))}}function AJ(t,e,n){const r=this;return i;function i(o){return re(o)?de(t,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return t.attempt(x3,e,n)(o)}}function DJ(t){t.exit("blockQuote")}const b3={name:"characterEscape",tokenize:kJ};function kJ(t,e,n){return r;function r(a){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(a),t.exit("escapeMarker"),i}function i(a){return pJ(a)?(t.enter("characterEscapeValue"),t.consume(a),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(a)}}const _3={name:"characterReference",tokenize:LJ};function LJ(t,e,n){const r=this;let i=0,a,o;return l;function l(d){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(d),t.exit("characterReferenceMarker"),s}function s(d){return d===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(d),t.exit("characterReferenceMarkerNumeric"),c):(t.enter("characterReferenceValue"),a=31,o=Rn,h(d))}function c(d){return d===88||d===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(d),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),a=6,o=vJ,h):(t.enter("characterReferenceValue"),a=7,o=o_,h(d))}function h(d){if(d===59&&i){const g=t.exit("characterReferenceValue");return o===Rn&&!aw(r.sliceSerialize(g))?n(d):(t.enter("characterReferenceMarker"),t.consume(d),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return o(d)&&i++<a?(t.consume(d),h):n(d)}}const WE={partial:!0,tokenize:RJ},XE={concrete:!0,name:"codeFenced",tokenize:EJ};function EJ(t,e,n){const r=this,i={partial:!0,tokenize:D};let a=0,o=0,l;return s;function s(M){return c(M)}function c(M){const k=r.events[r.events.length-1];return a=k&&k[1].type==="linePrefix"?k[2].sliceSerialize(k[1],!0).length:0,l=M,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),h(M)}function h(M){return M===l?(o++,t.consume(M),h):o<3?n(M):(t.exit("codeFencedFenceSequence"),re(M)?de(t,d,"whitespace")(M):d(M))}function d(M){return M===null||Nt(M)?(t.exit("codeFencedFence"),r.interrupt?e(M):t.check(WE,x,A)(M)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),g(M))}function g(M){return M===null||Nt(M)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),d(M)):re(M)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),de(t,p,"whitespace")(M)):M===96&&M===l?n(M):(t.consume(M),g)}function p(M){return M===null||Nt(M)?d(M):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),m(M))}function m(M){return M===null||Nt(M)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),d(M)):M===96&&M===l?n(M):(t.consume(M),m)}function x(M){return t.attempt(i,A,_)(M)}function _(M){return t.enter("lineEnding"),t.consume(M),t.exit("lineEnding"),b}function b(M){return a>0&&re(M)?de(t,S,"linePrefix",a+1)(M):S(M)}function S(M){return M===null||Nt(M)?t.check(WE,x,A)(M):(t.enter("codeFlowValue"),T(M))}function T(M){return M===null||Nt(M)?(t.exit("codeFlowValue"),S(M)):(t.consume(M),T)}function A(M){return t.exit("codeFenced"),e(M)}function D(M,k,I){let z=0;return L;function L(W){return M.enter("lineEnding"),M.consume(W),M.exit("lineEnding"),O}function O(W){return M.enter("codeFencedFence"),re(W)?de(M,H,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):H(W)}function H(W){return W===l?(M.enter("codeFencedFenceSequence"),F(W)):I(W)}function F(W){return W===l?(z++,M.consume(W),F):z>=o?(M.exit("codeFencedFenceSequence"),re(W)?de(M,Y,"whitespace")(W):Y(W)):I(W)}function Y(W){return W===null||Nt(W)?(M.exit("codeFencedFence"),k(W)):I(W)}}}function RJ(t,e,n){const r=this;return i;function i(o){return o===null?n(o):(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):e(o)}}const ox={name:"codeIndented",tokenize:OJ},IJ={partial:!0,tokenize:zJ};function OJ(t,e,n){const r=this;return i;function i(c){return t.enter("codeIndented"),de(t,a,"linePrefix",5)(c)}function a(c){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?s(c):Nt(c)?t.attempt(IJ,o,s)(c):(t.enter("codeFlowValue"),l(c))}function l(c){return c===null||Nt(c)?(t.exit("codeFlowValue"),o(c)):(t.consume(c),l)}function s(c){return t.exit("codeIndented"),e(c)}}function zJ(t,e,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Nt(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),i):de(t,a,"linePrefix",5)(o)}function a(o){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?e(o):Nt(o)?i(o):n(o)}}const BJ={name:"codeText",previous:PJ,resolve:NJ,tokenize:VJ};function NJ(t){let e=t.length-4,n=3,r,i;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(r=n;++r<e;)if(t[r][1].type==="codeTextData"){t[n][1].type="codeTextPadding",t[e][1].type="codeTextPadding",n+=2,e-=2;break}}for(r=n-1,e++;++r<=e;)i===void 0?r!==e&&t[r][1].type!=="lineEnding"&&(i=r):(r===e||t[r][1].type==="lineEnding")&&(t[i][1].type="codeTextData",r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),e-=r-i-2,r=i+2),i=void 0);return t}function PJ(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function VJ(t,e,n){let r=0,i,a;return o;function o(d){return t.enter("codeText"),t.enter("codeTextSequence"),l(d)}function l(d){return d===96?(t.consume(d),r++,l):(t.exit("codeTextSequence"),s(d))}function s(d){return d===null?n(d):d===32?(t.enter("space"),t.consume(d),t.exit("space"),s):d===96?(a=t.enter("codeTextSequence"),i=0,h(d)):Nt(d)?(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),s):(t.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||Nt(d)?(t.exit("codeTextData"),s(d)):(t.consume(d),c)}function h(d){return d===96?(t.consume(d),i++,h):i===r?(t.exit("codeTextSequence"),t.exit("codeText"),e(d)):(a.type="codeTextData",c(d))}}class HJ{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(e,r):e>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,n,r){const i=n||0;this.setCursor(Math.trunc(e));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Tf(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Tf(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Tf(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const n=this.left.splice(e,Number.POSITIVE_INFINITY);Tf(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Tf(this.left,n.reverse())}}}function Tf(t,e){let n=0;if(e.length<1e4)t.push(...e);else for(;n<e.length;)t.push(...e.slice(n,n+1e4)),n+=1e4}function S3(t){const e={};let n=-1,r,i,a,o,l,s,c;const h=new HJ(t);for(;++n<h.length;){for(;n in e;)n=e[n];if(r=h.get(n),n&&r[1].type==="chunkFlow"&&h.get(n-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,a=0,a<s.length&&s[a][1].type==="lineEndingBlank"&&(a+=2),a<s.length&&s[a][1].type==="content"))for(;++a<s.length&&s[a][1].type!=="content";)s[a][1].type==="chunkText"&&(s[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(e,jJ(h,n)),n=e[n],c=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=h.get(a),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(h.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...h.get(i)[1].start},l=h.slice(i,n),l.unshift(r),h.splice(i,n-i+1,l))}}return wr(t,0,Number.POSITIVE_INFINITY,h.slice(0)),!c}function jJ(t,e){const n=t.get(e)[1],r=t.get(e)[2];let i=e-1;const a=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const l=o.events,s=[],c={};let h,d,g=-1,p=n,m=0,x=0;const _=[x];for(;p;){for(;t.get(++i)[1]!==p;);a.push(i),p._tokenizer||(h=r.sliceStream(p),p.next||h.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(h),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++g<l.length;)l[g][0]==="exit"&&l[g-1][0]==="enter"&&l[g][1].type===l[g-1][1].type&&l[g][1].start.line!==l[g][1].end.line&&(x=g+1,_.push(x),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):_.pop(),g=_.length;g--;){const b=l.slice(_[g],_[g+1]),S=a.pop();s.push([S,S+b.length-1]),t.splice(S,2,b)}for(s.reverse(),g=-1;++g<s.length;)c[m+s[g][0]]=m+s[g][1],m+=s[g][1]-s[g][0]-1;return c}const FJ={resolve:UJ,tokenize:YJ},GJ={partial:!0,tokenize:WJ};function UJ(t){return S3(t),t}function YJ(t,e){let n;return r;function r(l){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?a(l):Nt(l)?t.check(GJ,o,a)(l):(t.consume(l),i)}function a(l){return t.exit("chunkContent"),t.exit("content"),e(l)}function o(l){return t.consume(l),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function WJ(t,e,n){const r=this;return i;function i(o){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),de(t,a,"linePrefix")}function a(o){if(o===null||Nt(o))return n(o);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?e(o):t.interrupt(r.parser.constructs.flow,n,e)(o)}}function w3(t,e,n,r,i,a,o,l,s){const c=s||Number.POSITIVE_INFINITY;let h=0;return d;function d(b){return b===60?(t.enter(r),t.enter(i),t.enter(a),t.consume(b),t.exit(a),g):b===null||b===32||b===41||pg(b)?n(b):(t.enter(r),t.enter(o),t.enter(l),t.enter("chunkString",{contentType:"string"}),x(b))}function g(b){return b===62?(t.enter(a),t.consume(b),t.exit(a),t.exit(i),t.exit(r),e):(t.enter(l),t.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===62?(t.exit("chunkString"),t.exit(l),g(b)):b===null||b===60||Nt(b)?n(b):(t.consume(b),b===92?m:p)}function m(b){return b===60||b===62||b===92?(t.consume(b),p):p(b)}function x(b){return!h&&(b===null||b===41||Re(b))?(t.exit("chunkString"),t.exit(l),t.exit(o),t.exit(r),e(b)):h<c&&b===40?(t.consume(b),h++,x):b===41?(t.consume(b),h--,x):b===null||b===32||b===40||pg(b)?n(b):(t.consume(b),b===92?_:x)}function _(b){return b===40||b===41||b===92?(t.consume(b),x):x(b)}}function T3(t,e,n,r,i,a){const o=this;let l=0,s;return c;function c(p){return t.enter(r),t.enter(i),t.consume(p),t.exit(i),t.enter(a),h}function h(p){return l>999||p===null||p===91||p===93&&!s||p===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(t.exit(a),t.enter(i),t.consume(p),t.exit(i),t.exit(r),e):Nt(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),h):(t.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||Nt(p)||l++>999?(t.exit("chunkString"),h(p)):(t.consume(p),s||(s=!re(p)),p===92?g:d)}function g(p){return p===91||p===92||p===93?(t.consume(p),l++,d):d(p)}}function C3(t,e,n,r,i,a){let o;return l;function l(g){return g===34||g===39||g===40?(t.enter(r),t.enter(i),t.consume(g),t.exit(i),o=g===40?41:g,s):n(g)}function s(g){return g===o?(t.enter(i),t.consume(g),t.exit(i),t.exit(r),e):(t.enter(a),c(g))}function c(g){return g===o?(t.exit(a),s(o)):g===null?n(g):Nt(g)?(t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),de(t,c,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),h(g))}function h(g){return g===o||g===null||Nt(g)?(t.exit("chunkString"),c(g)):(t.consume(g),g===92?d:h)}function d(g){return g===o||g===92?(t.consume(g),h):h(g)}}function Qf(t,e){let n;return r;function r(i){return Nt(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),n=!0,r):re(i)?de(t,r,n?"linePrefix":"lineSuffix")(i):e(i)}}const XJ={name:"definition",tokenize:ZJ},qJ={partial:!0,tokenize:$J};function ZJ(t,e,n){const r=this;let i;return a;function a(p){return t.enter("definition"),o(p)}function o(p){return T3.call(r,t,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function l(p){return i=pi(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(t.enter("definitionMarker"),t.consume(p),t.exit("definitionMarker"),s):n(p)}function s(p){return Re(p)?Qf(t,c)(p):c(p)}function c(p){return w3(t,h,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function h(p){return t.attempt(qJ,d,d)(p)}function d(p){return re(p)?de(t,g,"whitespace")(p):g(p)}function g(p){return p===null||Nt(p)?(t.exit("definition"),r.parser.defined.push(i),e(p)):n(p)}}function $J(t,e,n){return r;function r(l){return Re(l)?Qf(t,i)(l):n(l)}function i(l){return C3(t,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function a(l){return re(l)?de(t,o,"whitespace")(l):o(l)}function o(l){return l===null||Nt(l)?e(l):n(l)}}const QJ={name:"hardBreakEscape",tokenize:KJ};function KJ(t,e,n){return r;function r(a){return t.enter("hardBreakEscape"),t.consume(a),i}function i(a){return Nt(a)?(t.exit("hardBreakEscape"),e(a)):n(a)}}const JJ={name:"headingAtx",resolve:ttt,tokenize:ett};function ttt(t,e){let n=t.length-2,r=3,i,a;return t[r][1].type==="whitespace"&&(r+=2),n-2>r&&t[n][1].type==="whitespace"&&(n-=2),t[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&t[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:t[r][1].start,end:t[n][1].end},a={type:"chunkText",start:t[r][1].start,end:t[n][1].end,contentType:"text"},wr(t,r,n-r+1,[["enter",i,e],["enter",a,e],["exit",a,e],["exit",i,e]])),t}function ett(t,e,n){let r=0;return i;function i(h){return t.enter("atxHeading"),a(h)}function a(h){return t.enter("atxHeadingSequence"),o(h)}function o(h){return h===35&&r++<6?(t.consume(h),o):h===null||Re(h)?(t.exit("atxHeadingSequence"),l(h)):n(h)}function l(h){return h===35?(t.enter("atxHeadingSequence"),s(h)):h===null||Nt(h)?(t.exit("atxHeading"),e(h)):re(h)?de(t,l,"whitespace")(h):(t.enter("atxHeadingText"),c(h))}function s(h){return h===35?(t.consume(h),s):(t.exit("atxHeadingSequence"),l(h))}function c(h){return h===null||h===35||Re(h)?(t.exit("atxHeadingText"),l(h)):(t.consume(h),c)}}const ntt=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],qE=["pre","script","style","textarea"],rtt={concrete:!0,name:"htmlFlow",resolveTo:ott,tokenize:ltt},itt={partial:!0,tokenize:utt},att={partial:!0,tokenize:stt};function ott(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function ltt(t,e,n){const r=this;let i,a,o,l,s;return c;function c(P){return h(P)}function h(P){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(P),d}function d(P){return P===33?(t.consume(P),g):P===47?(t.consume(P),a=!0,x):P===63?(t.consume(P),i=3,r.interrupt?e:j):Fn(P)?(t.consume(P),o=String.fromCharCode(P),_):n(P)}function g(P){return P===45?(t.consume(P),i=2,p):P===91?(t.consume(P),i=5,l=0,m):Fn(P)?(t.consume(P),i=4,r.interrupt?e:j):n(P)}function p(P){return P===45?(t.consume(P),r.interrupt?e:j):n(P)}function m(P){const J="CDATA[";return P===J.charCodeAt(l++)?(t.consume(P),l===J.length?r.interrupt?e:H:m):n(P)}function x(P){return Fn(P)?(t.consume(P),o=String.fromCharCode(P),_):n(P)}function _(P){if(P===null||P===47||P===62||Re(P)){const J=P===47,st=o.toLowerCase();return!J&&!a&&qE.includes(st)?(i=1,r.interrupt?e(P):H(P)):ntt.includes(o.toLowerCase())?(i=6,J?(t.consume(P),b):r.interrupt?e(P):H(P)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(P):a?S(P):T(P))}return P===45||Rn(P)?(t.consume(P),o+=String.fromCharCode(P),_):n(P)}function b(P){return P===62?(t.consume(P),r.interrupt?e:H):n(P)}function S(P){return re(P)?(t.consume(P),S):L(P)}function T(P){return P===47?(t.consume(P),L):P===58||P===95||Fn(P)?(t.consume(P),A):re(P)?(t.consume(P),T):L(P)}function A(P){return P===45||P===46||P===58||P===95||Rn(P)?(t.consume(P),A):D(P)}function D(P){return P===61?(t.consume(P),M):re(P)?(t.consume(P),D):T(P)}function M(P){return P===null||P===60||P===61||P===62||P===96?n(P):P===34||P===39?(t.consume(P),s=P,k):re(P)?(t.consume(P),M):I(P)}function k(P){return P===s?(t.consume(P),s=null,z):P===null||Nt(P)?n(P):(t.consume(P),k)}function I(P){return P===null||P===34||P===39||P===47||P===60||P===61||P===62||P===96||Re(P)?D(P):(t.consume(P),I)}function z(P){return P===47||P===62||re(P)?T(P):n(P)}function L(P){return P===62?(t.consume(P),O):n(P)}function O(P){return P===null||Nt(P)?H(P):re(P)?(t.consume(P),O):n(P)}function H(P){return P===45&&i===2?(t.consume(P),V):P===60&&i===1?(t.consume(P),X):P===62&&i===4?(t.consume(P),U):P===63&&i===3?(t.consume(P),j):P===93&&i===5?(t.consume(P),tt):Nt(P)&&(i===6||i===7)?(t.exit("htmlFlowData"),t.check(itt,q,F)(P)):P===null||Nt(P)?(t.exit("htmlFlowData"),F(P)):(t.consume(P),H)}function F(P){return t.check(att,Y,q)(P)}function Y(P){return t.enter("lineEnding"),t.consume(P),t.exit("lineEnding"),W}function W(P){return P===null||Nt(P)?F(P):(t.enter("htmlFlowData"),H(P))}function V(P){return P===45?(t.consume(P),j):H(P)}function X(P){return P===47?(t.consume(P),o="",Z):H(P)}function Z(P){if(P===62){const J=o.toLowerCase();return qE.includes(J)?(t.consume(P),U):H(P)}return Fn(P)&&o.length<8?(t.consume(P),o+=String.fromCharCode(P),Z):H(P)}function tt(P){return P===93?(t.consume(P),j):H(P)}function j(P){return P===62?(t.consume(P),U):P===45&&i===2?(t.consume(P),j):H(P)}function U(P){return P===null||Nt(P)?(t.exit("htmlFlowData"),q(P)):(t.consume(P),U)}function q(P){return t.exit("htmlFlow"),e(P)}}function stt(t,e,n){const r=this;return i;function i(o){return Nt(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):e(o)}}function utt(t,e,n){return r;function r(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),t.attempt(Fh,e,n)}}const ctt={name:"htmlText",tokenize:ftt};function ftt(t,e,n){const r=this;let i,a,o;return l;function l(j){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(j),s}function s(j){return j===33?(t.consume(j),c):j===47?(t.consume(j),D):j===63?(t.consume(j),T):Fn(j)?(t.consume(j),I):n(j)}function c(j){return j===45?(t.consume(j),h):j===91?(t.consume(j),a=0,m):Fn(j)?(t.consume(j),S):n(j)}function h(j){return j===45?(t.consume(j),p):n(j)}function d(j){return j===null?n(j):j===45?(t.consume(j),g):Nt(j)?(o=d,X(j)):(t.consume(j),d)}function g(j){return j===45?(t.consume(j),p):d(j)}function p(j){return j===62?V(j):j===45?g(j):d(j)}function m(j){const U="CDATA[";return j===U.charCodeAt(a++)?(t.consume(j),a===U.length?x:m):n(j)}function x(j){return j===null?n(j):j===93?(t.consume(j),_):Nt(j)?(o=x,X(j)):(t.consume(j),x)}function _(j){return j===93?(t.consume(j),b):x(j)}function b(j){return j===62?V(j):j===93?(t.consume(j),b):x(j)}function S(j){return j===null||j===62?V(j):Nt(j)?(o=S,X(j)):(t.consume(j),S)}function T(j){return j===null?n(j):j===63?(t.consume(j),A):Nt(j)?(o=T,X(j)):(t.consume(j),T)}function A(j){return j===62?V(j):T(j)}function D(j){return Fn(j)?(t.consume(j),M):n(j)}function M(j){return j===45||Rn(j)?(t.consume(j),M):k(j)}function k(j){return Nt(j)?(o=k,X(j)):re(j)?(t.consume(j),k):V(j)}function I(j){return j===45||Rn(j)?(t.consume(j),I):j===47||j===62||Re(j)?z(j):n(j)}function z(j){return j===47?(t.consume(j),V):j===58||j===95||Fn(j)?(t.consume(j),L):Nt(j)?(o=z,X(j)):re(j)?(t.consume(j),z):V(j)}function L(j){return j===45||j===46||j===58||j===95||Rn(j)?(t.consume(j),L):O(j)}function O(j){return j===61?(t.consume(j),H):Nt(j)?(o=O,X(j)):re(j)?(t.consume(j),O):z(j)}function H(j){return j===null||j===60||j===61||j===62||j===96?n(j):j===34||j===39?(t.consume(j),i=j,F):Nt(j)?(o=H,X(j)):re(j)?(t.consume(j),H):(t.consume(j),Y)}function F(j){return j===i?(t.consume(j),i=void 0,W):j===null?n(j):Nt(j)?(o=F,X(j)):(t.consume(j),F)}function Y(j){return j===null||j===34||j===39||j===60||j===61||j===96?n(j):j===47||j===62||Re(j)?z(j):(t.consume(j),Y)}function W(j){return j===47||j===62||Re(j)?z(j):n(j)}function V(j){return j===62?(t.consume(j),t.exit("htmlTextData"),t.exit("htmlText"),e):n(j)}function X(j){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(j),t.exit("lineEnding"),Z}function Z(j){return re(j)?de(t,tt,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):tt(j)}function tt(j){return t.enter("htmlTextData"),o(j)}}const ow={name:"labelEnd",resolveAll:ptt,resolveTo:gtt,tokenize:mtt},htt={tokenize:ytt},dtt={tokenize:xtt},vtt={tokenize:btt};function ptt(t){let e=-1;const n=[];for(;++e<t.length;){const r=t[e][1];if(n.push(t[e]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",e+=i}}return t.length!==n.length&&wr(t,0,t.length,n),t}function gtt(t,e){let n=t.length,r=0,i,a,o,l;for(;n--;)if(i=t[n][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;t[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(t[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const s={type:t[a][1].type==="labelLink"?"link":"image",start:{...t[a][1].start},end:{...t[t.length-1][1].end}},c={type:"label",start:{...t[a][1].start},end:{...t[o][1].end}},h={type:"labelText",start:{...t[a+r+2][1].end},end:{...t[o-2][1].start}};return l=[["enter",s,e],["enter",c,e]],l=Wr(l,t.slice(a+1,a+r+3)),l=Wr(l,[["enter",h,e]]),l=Wr(l,Xg(e.parser.constructs.insideSpan.null,t.slice(a+r+4,o-3),e)),l=Wr(l,[["exit",h,e],t[o-2],t[o-1],["exit",c,e]]),l=Wr(l,t.slice(o+1)),l=Wr(l,[["exit",s,e]]),wr(t,a,t.length,l),t}function mtt(t,e,n){const r=this;let i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return l;function l(g){return a?a._inactive?d(g):(o=r.parser.defined.includes(pi(r.sliceSerialize({start:a.end,end:r.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(g),t.exit("labelMarker"),t.exit("labelEnd"),s):n(g)}function s(g){return g===40?t.attempt(htt,h,o?h:d)(g):g===91?t.attempt(dtt,h,o?c:d)(g):o?h(g):d(g)}function c(g){return t.attempt(vtt,h,d)(g)}function h(g){return e(g)}function d(g){return a._balanced=!0,n(g)}}function ytt(t,e,n){return r;function r(d){return t.enter("resource"),t.enter("resourceMarker"),t.consume(d),t.exit("resourceMarker"),i}function i(d){return Re(d)?Qf(t,a)(d):a(d)}function a(d){return d===41?h(d):w3(t,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function o(d){return Re(d)?Qf(t,s)(d):h(d)}function l(d){return n(d)}function s(d){return d===34||d===39||d===40?C3(t,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):h(d)}function c(d){return Re(d)?Qf(t,h)(d):h(d)}function h(d){return d===41?(t.enter("resourceMarker"),t.consume(d),t.exit("resourceMarker"),t.exit("resource"),e):n(d)}}function xtt(t,e,n){const r=this;return i;function i(l){return T3.call(r,t,a,o,"reference","referenceMarker","referenceString")(l)}function a(l){return r.parser.defined.includes(pi(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?e(l):n(l)}function o(l){return n(l)}}function btt(t,e,n){return r;function r(a){return t.enter("reference"),t.enter("referenceMarker"),t.consume(a),t.exit("referenceMarker"),i}function i(a){return a===93?(t.enter("referenceMarker"),t.consume(a),t.exit("referenceMarker"),t.exit("reference"),e):n(a)}}const _tt={name:"labelStartImage",resolveAll:ow.resolveAll,tokenize:Stt};function Stt(t,e,n){const r=this;return i;function i(l){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(l),t.exit("labelImageMarker"),a}function a(l){return l===91?(t.enter("labelMarker"),t.consume(l),t.exit("labelMarker"),t.exit("labelImage"),o):n(l)}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):e(l)}}const wtt={name:"labelStartLink",resolveAll:ow.resolveAll,tokenize:Ttt};function Ttt(t,e,n){const r=this;return i;function i(o){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(o),t.exit("labelMarker"),t.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):e(o)}}const lx={name:"lineEnding",tokenize:Ctt};function Ctt(t,e){return n;function n(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),de(t,e,"linePrefix")}}const wp={name:"thematicBreak",tokenize:Mtt};function Mtt(t,e,n){let r=0,i;return a;function a(c){return t.enter("thematicBreak"),o(c)}function o(c){return i=c,l(c)}function l(c){return c===i?(t.enter("thematicBreakSequence"),s(c)):r>=3&&(c===null||Nt(c))?(t.exit("thematicBreak"),e(c)):n(c)}function s(c){return c===i?(t.consume(c),r++,s):(t.exit("thematicBreakSequence"),re(c)?de(t,l,"whitespace")(c):l(c))}}const rr={continuation:{tokenize:Ltt},exit:Rtt,name:"list",tokenize:ktt},Att={partial:!0,tokenize:Itt},Dtt={partial:!0,tokenize:Ett};function ktt(t,e,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return l;function l(p){const m=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:o_(p)){if(r.containerState.type||(r.containerState.type=m,t.enter(m,{_container:!0})),m==="listUnordered")return t.enter("listItemPrefix"),p===42||p===45?t.check(wp,n,c)(p):c(p);if(!r.interrupt||p===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),s(p)}return n(p)}function s(p){return o_(p)&&++o<10?(t.consume(p),s):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(t.exit("listItemValue"),c(p)):n(p)}function c(p){return t.enter("listItemMarker"),t.consume(p),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,t.check(Fh,r.interrupt?n:h,t.attempt(Att,g,d))}function h(p){return r.containerState.initialBlankLine=!0,a++,g(p)}function d(p){return re(p)?(t.enter("listItemPrefixWhitespace"),t.consume(p),t.exit("listItemPrefixWhitespace"),g):n(p)}function g(p){return r.containerState.size=a+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(p)}}function Ltt(t,e,n){const r=this;return r.containerState._closeFlow=void 0,t.check(Fh,i,a);function i(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,de(t,e,"listItemIndent",r.containerState.size+1)(l)}function a(l){return r.containerState.furtherBlankLines||!re(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(Dtt,e,o)(l))}function o(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,de(t,t.attempt(rr,e,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function Ett(t,e,n){const r=this;return de(t,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?e(a):n(a)}}function Rtt(t){t.exit(this.containerState.type)}function Itt(t,e,n){const r=this;return de(t,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=r.events[r.events.length-1];return!re(a)&&o&&o[1].type==="listItemPrefixWhitespace"?e(a):n(a)}}const ZE={name:"setextUnderline",resolveTo:Ott,tokenize:ztt};function Ott(t,e){let n=t.length,r,i,a;for(;n--;)if(t[n][0]==="enter"){if(t[n][1].type==="content"){r=n;break}t[n][1].type==="paragraph"&&(i=n)}else t[n][1].type==="content"&&t.splice(n,1),!a&&t[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:{...t[r][1].start},end:{...t[t.length-1][1].end}};return t[i][1].type="setextHeadingText",a?(t.splice(i,0,["enter",o,e]),t.splice(a+1,0,["exit",t[r][1],e]),t[r][1].end={...t[a][1].end}):t[r][1]=o,t.push(["exit",o,e]),t}function ztt(t,e,n){const r=this;let i;return a;function a(c){let h=r.events.length,d;for(;h--;)if(r.events[h][1].type!=="lineEnding"&&r.events[h][1].type!=="linePrefix"&&r.events[h][1].type!=="content"){d=r.events[h][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(t.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return t.enter("setextHeadingLineSequence"),l(c)}function l(c){return c===i?(t.consume(c),l):(t.exit("setextHeadingLineSequence"),re(c)?de(t,s,"lineSuffix")(c):s(c))}function s(c){return c===null||Nt(c)?(t.exit("setextHeadingLine"),e(c)):n(c)}}const Btt={tokenize:Ntt};function Ntt(t){const e=this,n=t.attempt(Fh,r,t.attempt(this.parser.constructs.flowInitial,i,de(t,t.attempt(this.parser.constructs.flow,i,t.attempt(FJ,i)),"linePrefix")));return n;function r(a){if(a===null){t.consume(a);return}return t.enter("lineEndingBlank"),t.consume(a),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}function i(a){if(a===null){t.consume(a);return}return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),e.currentConstruct=void 0,n}}const Ptt={resolveAll:A3()},Vtt=M3("string"),Htt=M3("text");function M3(t){return{resolveAll:A3(t==="text"?jtt:void 0),tokenize:e};function e(n){const r=this,i=this.parser.constructs[t],a=n.attempt(i,o,l);return o;function o(h){return c(h)?a(h):l(h)}function l(h){if(h===null){n.consume(h);return}return n.enter("data"),n.consume(h),s}function s(h){return c(h)?(n.exit("data"),a(h)):(n.consume(h),s)}function c(h){if(h===null)return!0;const d=i[h];let g=-1;if(d)for(;++g<d.length;){const p=d[g];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function A3(t){return e;function e(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type==="data"&&(a=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return t?t(n,r):n}}function jtt(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||t[n][1].type==="lineEnding")&&t[n-1][1].type==="data"){const r=t[n-1][1],i=e.sliceStream(r);let a=i.length,o=-1,l=0,s;for(;a--;){const c=i[a];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)l++,o--;if(o)break;o=-1}else if(c===-2)s=!0,l++;else if(c!==-1){a++;break}}if(e._contentTypeTextTrailing&&n===t.length&&(l=0),l){const c={type:n===t.length||s||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(t.splice(n,0,["enter",c,e],["exit",c,e]),n+=2)}n++}return t}const Ftt={42:rr,43:rr,45:rr,48:rr,49:rr,50:rr,51:rr,52:rr,53:rr,54:rr,55:rr,56:rr,57:rr,62:x3},Gtt={91:XJ},Utt={[-2]:ox,[-1]:ox,32:ox},Ytt={35:JJ,42:wp,45:[ZE,wp],60:rtt,61:ZE,95:wp,96:XE,126:XE},Wtt={38:_3,92:b3},Xtt={[-5]:lx,[-4]:lx,[-3]:lx,33:_tt,38:_3,42:l_,60:[wJ,ctt],91:wtt,92:[QJ,b3],93:ow,95:l_,96:BJ},qtt={null:[l_,Ptt]},Ztt={null:[42,95]},$tt={null:[]},Qtt=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Ztt,contentInitial:Gtt,disable:$tt,document:Ftt,flow:Ytt,flowInitial:Utt,insideSpan:qtt,string:Wtt,text:Xtt},Symbol.toStringTag,{value:"Module"}));function Ktt(t,e,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},a=[];let o=[],l=[];const s={attempt:k(D),check:k(M),consume:S,enter:T,exit:A,interrupt:k(M,{interrupt:!0})},c={code:null,containerState:{},defineSkip:x,events:[],now:m,parser:t,previous:null,sliceSerialize:g,sliceStream:p,write:d};let h=e.tokenize.call(c,s);return e.resolveAll&&a.push(e),c;function d(O){return o=Wr(o,O),_(),o[o.length-1]!==null?[]:(I(e,0),c.events=Xg(a,c.events,c),c.events)}function g(O,H){return tet(p(O),H)}function p(O){return Jtt(o,O)}function m(){const{_bufferIndex:O,_index:H,line:F,column:Y,offset:W}=r;return{_bufferIndex:O,_index:H,line:F,column:Y,offset:W}}function x(O){i[O.line]=O.column,L()}function _(){let O;for(;r._index<o.length;){const H=o[r._index];if(typeof H=="string")for(O=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===O&&r._bufferIndex<H.length;)b(H.charCodeAt(r._bufferIndex));else b(H)}}function b(O){h=h(O)}function S(O){Nt(O)?(r.line++,r.column=1,r.offset+=O===-3?2:1,L()):O!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=O}function T(O,H){const F=H||{};return F.type=O,F.start=m(),c.events.push(["enter",F,c]),l.push(F),F}function A(O){const H=l.pop();return H.end=m(),c.events.push(["exit",H,c]),H}function D(O,H){I(O,H.from)}function M(O,H){H.restore()}function k(O,H){return F;function F(Y,W,V){let X,Z,tt,j;return Array.isArray(Y)?q(Y):"tokenize"in Y?q([Y]):U(Y);function U(mt){return wt;function wt(gt){const dt=gt!==null&&mt[gt],Dt=gt!==null&&mt.null,yt=[...Array.isArray(dt)?dt:dt?[dt]:[],...Array.isArray(Dt)?Dt:Dt?[Dt]:[]];return q(yt)(gt)}}function q(mt){return X=mt,Z=0,mt.length===0?V:P(mt[Z])}function P(mt){return wt;function wt(gt){return j=z(),tt=mt,mt.partial||(c.currentConstruct=mt),mt.name&&c.parser.constructs.disable.null.includes(mt.name)?st():mt.tokenize.call(H?Object.assign(Object.create(c),H):c,s,J,st)(gt)}}function J(mt){return O(tt,j),W}function st(mt){return j.restore(),++Z<X.length?P(X[Z]):V}}}function I(O,H){O.resolveAll&&!a.includes(O)&&a.push(O),O.resolve&&wr(c.events,H,c.events.length-H,O.resolve(c.events.slice(H),c)),O.resolveTo&&(c.events=O.resolveTo(c.events,c))}function z(){const O=m(),H=c.previous,F=c.currentConstruct,Y=c.events.length,W=Array.from(l);return{from:Y,restore:V};function V(){r=O,c.previous=H,c.currentConstruct=F,c.events.length=Y,l=W,L()}}function L(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Jtt(t,e){const n=e.start._index,r=e.start._bufferIndex,i=e.end._index,a=e.end._bufferIndex;let o;if(n===i)o=[t[n].slice(r,a)];else{if(o=t.slice(n,i),r>-1){const l=o[0];typeof l=="string"?o[0]=l.slice(r):o.shift()}a>0&&o.push(t[i].slice(0,a))}return o}function tet(t,e){let n=-1;const r=[];let i;for(;++n<t.length;){const a=t[n];let o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
134
+ `;break}case-3:{o=`\r
135
+ `;break}case-2:{o=e?" ":" ";break}case-1:{if(!e&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join("")}function eet(t){const r={constructs:m3([Qtt,...(t||{}).extensions||[]]),content:i(gJ),defined:[],document:i(yJ),flow:i(Btt),lazy:{},string:i(Vtt),text:i(Htt)};return r;function i(a){return o;function o(l){return Ktt(r,a,l)}}}function net(t){for(;!S3(t););return t}const $E=/[\0\t\n\r]/g;function ret(){let t=1,e="",n=!0,r;return i;function i(a,o,l){const s=[];let c,h,d,g,p;for(a=e+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),d=0,e="",n&&(a.charCodeAt(0)===65279&&d++,n=void 0);d<a.length;){if($E.lastIndex=d,c=$E.exec(a),g=c&&c.index!==void 0?c.index:a.length,p=a.charCodeAt(g),!c){e=a.slice(d);break}if(p===10&&d===g&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),d<g&&(s.push(a.slice(d,g)),t+=g-d),p){case 0:{s.push(65533),t++;break}case 9:{for(h=Math.ceil(t/4)*4,s.push(-2);t++<h;)s.push(-1);break}case 10:{s.push(-4),t=1;break}default:r=!0,t=1}d=g+1}return l&&(r&&s.push(-5),e&&s.push(e),s.push(null)),s}}const iet=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function aet(t){return t.replace(iet,oet)}function oet(t,e,n){if(e)return e;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return y3(n.slice(a?2:1),a?16:10)}return aw(n)||t}const D3={}.hasOwnProperty;function set(t,e,n){return e&&typeof e=="object"&&(n=e,e=void 0),uet(n)(net(eet(n).document().write(ret()(t,e,!0))))}function uet(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(An),autolinkProtocol:z,autolinkEmail:z,atxHeading:a(he),blockQuote:a(Dt),characterEscape:z,characterReference:z,codeFenced:a(yt),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(yt,o),codeText:a(Mt,o),codeTextData:z,data:z,codeFlowValue:z,definition:a(_e),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(Jt),hardBreakEscape:a(Me),hardBreakTrailing:a(Me),htmlFlow:a(Je,o),htmlFlowData:z,htmlText:a(Je,o),htmlTextData:z,image:a(cr),label:o,link:a(An),listItem:a(qi),listItemValue:g,listOrdered:a(ni,d),listUnordered:a(ni),paragraph:a(Ho),reference:P,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(he),strong:a(Qg),thematicBreak:a(Kg)},exit:{atxHeading:s(),atxHeadingSequence:D,autolink:s(),autolinkEmail:dt,autolinkProtocol:gt,blockQuote:s(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:st,characterReferenceMarkerNumeric:st,characterReferenceValue:mt,characterReference:wt,codeFenced:s(_),codeFencedFence:x,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:L,codeIndented:s(b),codeText:s(W),codeTextData:L,data:L,definition:s(),definitionDestinationString:A,definitionLabelString:S,definitionTitleString:T,emphasis:s(),hardBreakEscape:s(H),hardBreakTrailing:s(H),htmlFlow:s(F),htmlFlowData:L,htmlText:s(Y),htmlTextData:L,image:s(X),label:tt,labelText:Z,lineEnding:O,link:s(V),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:J,resourceDestinationString:j,resourceTitleString:U,resource:q,setextHeading:s(I),setextHeadingLineSequence:k,setextHeadingText:M,strong:s(),thematicBreak:s()}};k3(e,(t||{}).mdastExtensions||[]);const n={};return r;function r(ut){let _t={type:"root",children:[]};const Ht={stack:[_t],tokenStack:[],config:e,enter:l,exit:c,buffer:o,resume:h,data:n},te=[];let Se=-1;for(;++Se<ut.length;)if(ut[Se][1].type==="listOrdered"||ut[Se][1].type==="listUnordered")if(ut[Se][0]==="enter")te.push(Se);else{const fr=te.pop();Se=i(ut,fr,Se)}for(Se=-1;++Se<ut.length;){const fr=e[ut[Se][0]];D3.call(fr,ut[Se][1].type)&&fr[ut[Se][1].type].call(Object.assign({sliceSerialize:ut[Se][2].sliceSerialize},Ht),ut[Se][1])}if(Ht.tokenStack.length>0){const fr=Ht.tokenStack[Ht.tokenStack.length-1];(fr[1]||QE).call(Ht,void 0,fr[0])}for(_t.position={start:fo(ut.length>0?ut[0][1].start:{line:1,column:1,offset:0}),end:fo(ut.length>0?ut[ut.length-2][1].end:{line:1,column:1,offset:0})},Se=-1;++Se<e.transforms.length;)_t=e.transforms[Se](_t)||_t;return _t}function i(ut,_t,Ht){let te=_t-1,Se=-1,fr=!1,Zi,Nn,sn,qn;for(;++te<=Ht;){const Le=ut[te];switch(Le[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Le[0]==="enter"?Se++:Se--,qn=void 0;break}case"lineEndingBlank":{Le[0]==="enter"&&(Zi&&!qn&&!Se&&!sn&&(sn=te),qn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:qn=void 0}if(!Se&&Le[0]==="enter"&&Le[1].type==="listItemPrefix"||Se===-1&&Le[0]==="exit"&&(Le[1].type==="listUnordered"||Le[1].type==="listOrdered")){if(Zi){let Ea=te;for(Nn=void 0;Ea--;){const ri=ut[Ea];if(ri[1].type==="lineEnding"||ri[1].type==="lineEndingBlank"){if(ri[0]==="exit")continue;Nn&&(ut[Nn][1].type="lineEndingBlank",fr=!0),ri[1].type="lineEnding",Nn=Ea}else if(!(ri[1].type==="linePrefix"||ri[1].type==="blockQuotePrefix"||ri[1].type==="blockQuotePrefixWhitespace"||ri[1].type==="blockQuoteMarker"||ri[1].type==="listItemIndent"))break}sn&&(!Nn||sn<Nn)&&(Zi._spread=!0),Zi.end=Object.assign({},Nn?ut[Nn][1].start:Le[1].end),ut.splice(Nn||te,0,["exit",Zi,Le[2]]),te++,Ht++}if(Le[1].type==="listItemPrefix"){const Ea={type:"listItem",_spread:!1,start:Object.assign({},Le[1].start),end:void 0};Zi=Ea,ut.splice(te,0,["enter",Ea,Le[2]]),te++,Ht++,sn=void 0,qn=!0}}}return ut[_t][1]._spread=fr,Ht}function a(ut,_t){return Ht;function Ht(te){l.call(this,ut(te),te),_t&&_t.call(this,te)}}function o(){this.stack.push({type:"fragment",children:[]})}function l(ut,_t,Ht){this.stack[this.stack.length-1].children.push(ut),this.stack.push(ut),this.tokenStack.push([_t,Ht||void 0]),ut.position={start:fo(_t.start),end:void 0}}function s(ut){return _t;function _t(Ht){ut&&ut.call(this,Ht),c.call(this,Ht)}}function c(ut,_t){const Ht=this.stack.pop(),te=this.tokenStack.pop();if(te)te[0].type!==ut.type&&(_t?_t.call(this,ut,te[0]):(te[1]||QE).call(this,ut,te[0]));else throw new Error("Cannot close `"+ut.type+"` ("+$f({start:ut.start,end:ut.end})+"): it’s not open");Ht.position.end=fo(ut.end)}function h(){return iw(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function g(ut){if(this.data.expectingFirstListItemValue){const _t=this.stack[this.stack.length-2];_t.start=Number.parseInt(this.sliceSerialize(ut),10),this.data.expectingFirstListItemValue=void 0}}function p(){const ut=this.resume(),_t=this.stack[this.stack.length-1];_t.lang=ut}function m(){const ut=this.resume(),_t=this.stack[this.stack.length-1];_t.meta=ut}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){const ut=this.resume(),_t=this.stack[this.stack.length-1];_t.value=ut.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const ut=this.resume(),_t=this.stack[this.stack.length-1];_t.value=ut.replace(/(\r?\n|\r)$/g,"")}function S(ut){const _t=this.resume(),Ht=this.stack[this.stack.length-1];Ht.label=_t,Ht.identifier=pi(this.sliceSerialize(ut)).toLowerCase()}function T(){const ut=this.resume(),_t=this.stack[this.stack.length-1];_t.title=ut}function A(){const ut=this.resume(),_t=this.stack[this.stack.length-1];_t.url=ut}function D(ut){const _t=this.stack[this.stack.length-1];if(!_t.depth){const Ht=this.sliceSerialize(ut).length;_t.depth=Ht}}function M(){this.data.setextHeadingSlurpLineEnding=!0}function k(ut){const _t=this.stack[this.stack.length-1];_t.depth=this.sliceSerialize(ut).codePointAt(0)===61?1:2}function I(){this.data.setextHeadingSlurpLineEnding=void 0}function z(ut){const Ht=this.stack[this.stack.length-1].children;let te=Ht[Ht.length-1];(!te||te.type!=="text")&&(te=Bn(),te.position={start:fo(ut.start),end:void 0},Ht.push(te)),this.stack.push(te)}function L(ut){const _t=this.stack.pop();_t.value+=this.sliceSerialize(ut),_t.position.end=fo(ut.end)}function O(ut){const _t=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ht=_t.children[_t.children.length-1];Ht.position.end=fo(ut.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(_t.type)&&(z.call(this,ut),L.call(this,ut))}function H(){this.data.atHardBreak=!0}function F(){const ut=this.resume(),_t=this.stack[this.stack.length-1];_t.value=ut}function Y(){const ut=this.resume(),_t=this.stack[this.stack.length-1];_t.value=ut}function W(){const ut=this.resume(),_t=this.stack[this.stack.length-1];_t.value=ut}function V(){const ut=this.stack[this.stack.length-1];if(this.data.inReference){const _t=this.data.referenceType||"shortcut";ut.type+="Reference",ut.referenceType=_t,delete ut.url,delete ut.title}else delete ut.identifier,delete ut.label;this.data.referenceType=void 0}function X(){const ut=this.stack[this.stack.length-1];if(this.data.inReference){const _t=this.data.referenceType||"shortcut";ut.type+="Reference",ut.referenceType=_t,delete ut.url,delete ut.title}else delete ut.identifier,delete ut.label;this.data.referenceType=void 0}function Z(ut){const _t=this.sliceSerialize(ut),Ht=this.stack[this.stack.length-2];Ht.label=aet(_t),Ht.identifier=pi(_t).toLowerCase()}function tt(){const ut=this.stack[this.stack.length-1],_t=this.resume(),Ht=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ht.type==="link"){const te=ut.children;Ht.children=te}else Ht.alt=_t}function j(){const ut=this.resume(),_t=this.stack[this.stack.length-1];_t.url=ut}function U(){const ut=this.resume(),_t=this.stack[this.stack.length-1];_t.title=ut}function q(){this.data.inReference=void 0}function P(){this.data.referenceType="collapsed"}function J(ut){const _t=this.resume(),Ht=this.stack[this.stack.length-1];Ht.label=_t,Ht.identifier=pi(this.sliceSerialize(ut)).toLowerCase(),this.data.referenceType="full"}function st(ut){this.data.characterReferenceType=ut.type}function mt(ut){const _t=this.sliceSerialize(ut),Ht=this.data.characterReferenceType;let te;Ht?(te=y3(_t,Ht==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):te=aw(_t);const Se=this.stack[this.stack.length-1];Se.value+=te}function wt(ut){const _t=this.stack.pop();_t.position.end=fo(ut.end)}function gt(ut){L.call(this,ut);const _t=this.stack[this.stack.length-1];_t.url=this.sliceSerialize(ut)}function dt(ut){L.call(this,ut);const _t=this.stack[this.stack.length-1];_t.url="mailto:"+this.sliceSerialize(ut)}function Dt(){return{type:"blockquote",children:[]}}function yt(){return{type:"code",lang:null,meta:null,value:""}}function Mt(){return{type:"inlineCode",value:""}}function _e(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Jt(){return{type:"emphasis",children:[]}}function he(){return{type:"heading",depth:0,children:[]}}function Me(){return{type:"break"}}function Je(){return{type:"html",value:""}}function cr(){return{type:"image",title:null,url:"",alt:null}}function An(){return{type:"link",title:null,url:"",children:[]}}function ni(ut){return{type:"list",ordered:ut.type==="listOrdered",start:null,spread:ut._spread,children:[]}}function qi(ut){return{type:"listItem",spread:ut._spread,checked:null,children:[]}}function Ho(){return{type:"paragraph",children:[]}}function Qg(){return{type:"strong",children:[]}}function Bn(){return{type:"text",value:""}}function Kg(){return{type:"thematicBreak"}}}function fo(t){return{line:t.line,column:t.column,offset:t.offset}}function k3(t,e){let n=-1;for(;++n<e.length;){const r=e[n];Array.isArray(r)?k3(t,r):cet(t,r)}}function cet(t,e){let n;for(n in e)if(D3.call(e,n))switch(n){case"canContainEols":{const r=e[n];r&&t[n].push(...r);break}case"transforms":{const r=e[n];r&&t[n].push(...r);break}case"enter":case"exit":{const r=e[n];r&&Object.assign(t[n],r);break}}}function QE(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+$f({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+$f({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+$f({start:e.start,end:e.end})+") is still open")}function fet(t){const e=this;e.parser=n;function n(r){return set(r,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}function het(t,e){const n={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,n),t.applyData(e,n)}function det(t,e){const n={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,n),[t.applyData(e,n),{type:"text",value:`
136
+ `}]}function vet(t,e){const n=e.value?e.value+`
137
+ `:"",r={},i=e.lang?e.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return e.meta&&(a.data={meta:e.meta}),t.patch(e,a),a=t.applyData(e,a),a={type:"element",tagName:"pre",properties:{},children:[a]},t.patch(e,a),a}function pet(t,e){const n={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function get(t,e){const n={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function met(t,e){const n=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=String(e.identifier).toUpperCase(),i=Ju(r.toLowerCase()),a=t.footnoteOrder.indexOf(r);let o,l=t.footnoteCounts.get(r);l===void 0?(l=0,t.footnoteOrder.push(r),o=t.footnoteOrder.length):o=a+1,l+=1,t.footnoteCounts.set(r,l);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};t.patch(e,s);const c={type:"element",tagName:"sup",properties:{},children:[s]};return t.patch(e,c),t.applyData(e,c)}function yet(t,e){const n={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function xet(t,e){if(t.options.allowDangerousHtml){const n={type:"raw",value:e.value};return t.patch(e,n),t.applyData(e,n)}}function L3(t,e){const n=e.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+r}];const i=t.all(e),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function bet(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return L3(t,e);const i={src:Ju(r.url||""),alt:e.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return t.patch(e,a),t.applyData(e,a)}function _et(t,e){const n={src:Ju(e.url)};e.alt!==null&&e.alt!==void 0&&(n.alt=e.alt),e.title!==null&&e.title!==void 0&&(n.title=e.title);const r={type:"element",tagName:"img",properties:n,children:[]};return t.patch(e,r),t.applyData(e,r)}function wet(t,e){const n={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return t.patch(e,r),t.applyData(e,r)}function Tet(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return L3(t,e);const i={href:Ju(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:t.all(e)};return t.patch(e,a),t.applyData(e,a)}function Cet(t,e){const n={href:Ju(e.url)};e.title!==null&&e.title!==void 0&&(n.title=e.title);const r={type:"element",tagName:"a",properties:n,children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function Met(t,e,n){const r=t.all(e),i=n?Aet(n):E3(e),a={},o=[];if(typeof e.checked=="boolean"){const h=r[0];let d;h&&h.type==="element"&&h.tagName==="p"?d=h:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const h=r[l];(i||l!==0||h.type!=="element"||h.tagName!=="p")&&o.push({type:"text",value:`
138
+ `}),h.type==="element"&&h.tagName==="p"&&!i?o.push(...h.children):o.push(h)}const s=r[r.length-1];s&&(i||s.type!=="element"||s.tagName!=="p")&&o.push({type:"text",value:`
139
+ `});const c={type:"element",tagName:"li",properties:a,children:o};return t.patch(e,c),t.applyData(e,c)}function Aet(t){let e=!1;if(t.type==="list"){e=t.spread||!1;const n=t.children;let r=-1;for(;!e&&++r<n.length;)e=E3(n[r])}return e}function E3(t){const e=t.spread;return e??t.children.length>1}function Det(t,e){const n={},r=t.all(e);let i=-1;for(typeof e.start=="number"&&e.start!==1&&(n.start=e.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:e.ordered?"ol":"ul",properties:n,children:t.wrap(r,!0)};return t.patch(e,a),t.applyData(e,a)}function ket(t,e){const n={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function Let(t,e){const n={type:"root",children:t.wrap(t.all(e))};return t.patch(e,n),t.applyData(e,n)}function Eet(t,e){const n={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function Ret(t,e){const n=t.all(e),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:t.wrap([r],!0)};t.patch(e.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:t.wrap(n,!0)},l=tw(e.children[1]),s=c3(e.children[e.children.length-1]);l&&s&&(o.position={start:l,end:s}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:t.wrap(i,!0)};return t.patch(e,a),t.applyData(e,a)}function Iet(t,e,n){const r=n?n.children:void 0,a=(r?r.indexOf(e):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,l=o?o.length:e.children.length;let s=-1;const c=[];for(;++s<l;){const d=e.children[s],g={},p=o?o[s]:void 0;p&&(g.align=p);let m={type:"element",tagName:a,properties:g,children:[]};d&&(m.children=t.all(d),t.patch(d,m),m=t.applyData(d,m)),c.push(m)}const h={type:"element",tagName:"tr",properties:{},children:t.wrap(c,!0)};return t.patch(e,h),t.applyData(e,h)}function Oet(t,e){const n={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}const KE=9,JE=32;function zet(t){const e=String(t),n=/\r?\n|\r/g;let r=n.exec(e),i=0;const a=[];for(;r;)a.push(tR(e.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(e);return a.push(tR(e.slice(i),i>0,!1)),a.join("")}function tR(t,e,n){let r=0,i=t.length;if(e){let a=t.codePointAt(r);for(;a===KE||a===JE;)r++,a=t.codePointAt(r)}if(n){let a=t.codePointAt(i-1);for(;a===KE||a===JE;)i--,a=t.codePointAt(i-1)}return i>r?t.slice(r,i):""}function Bet(t,e){const n={type:"text",value:zet(String(e.value))};return t.patch(e,n),t.applyData(e,n)}function Net(t,e){const n={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,n),t.applyData(e,n)}const Pet={blockquote:het,break:det,code:vet,delete:pet,emphasis:get,footnoteReference:met,heading:yet,html:xet,imageReference:bet,image:_et,inlineCode:wet,linkReference:Tet,link:Cet,listItem:Met,list:Det,paragraph:ket,root:Let,strong:Eet,table:Ret,tableCell:Oet,tableRow:Iet,text:Bet,thematicBreak:Net,toml:tp,yaml:tp,definition:tp,footnoteDefinition:tp};function tp(){}const R3=-1,qg=0,Kf=1,gg=2,lw=3,sw=4,uw=5,cw=6,I3=7,O3=8,eR=typeof self=="object"?self:globalThis,Vet=(t,e)=>{const n=(i,a)=>(t.set(a,i),i),r=i=>{if(t.has(i))return t.get(i);const[a,o]=e[i];switch(a){case qg:case R3:return n(o,i);case Kf:{const l=n([],i);for(const s of o)l.push(r(s));return l}case gg:{const l=n({},i);for(const[s,c]of o)l[r(s)]=r(c);return l}case lw:return n(new Date(o),i);case sw:{const{source:l,flags:s}=o;return n(new RegExp(l,s),i)}case uw:{const l=n(new Map,i);for(const[s,c]of o)l.set(r(s),r(c));return l}case cw:{const l=n(new Set,i);for(const s of o)l.add(r(s));return l}case I3:{const{name:l,message:s}=o;return n(new eR[l](s),i)}case O3:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:l}=new Uint8Array(o);return n(new DataView(l),o)}}return n(new eR[a](o),i)};return r},nR=t=>Vet(new Map,t)(0),hu="",{toString:Het}={},{keys:jet}=Object,Cf=t=>{const e=typeof t;if(e!=="object"||!t)return[qg,e];const n=Het.call(t).slice(8,-1);switch(n){case"Array":return[Kf,hu];case"Object":return[gg,hu];case"Date":return[lw,hu];case"RegExp":return[sw,hu];case"Map":return[uw,hu];case"Set":return[cw,hu];case"DataView":return[Kf,n]}return n.includes("Array")?[Kf,n]:n.includes("Error")?[I3,n]:[gg,n]},ep=([t,e])=>t===qg&&(e==="function"||e==="symbol"),Fet=(t,e,n,r)=>{const i=(o,l)=>{const s=r.push(o)-1;return n.set(l,s),s},a=o=>{if(n.has(o))return n.get(o);let[l,s]=Cf(o);switch(l){case qg:{let h=o;switch(s){case"bigint":l=O3,h=o.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+s);h=null;break;case"undefined":return i([R3],o)}return i([l,h],o)}case Kf:{if(s){let g=o;return s==="DataView"?g=new Uint8Array(o.buffer):s==="ArrayBuffer"&&(g=new Uint8Array(o)),i([s,[...g]],o)}const h=[],d=i([l,h],o);for(const g of o)h.push(a(g));return d}case gg:{if(s)switch(s){case"BigInt":return i([s,o.toString()],o);case"Boolean":case"Number":case"String":return i([s,o.valueOf()],o)}if(e&&"toJSON"in o)return a(o.toJSON());const h=[],d=i([l,h],o);for(const g of jet(o))(t||!ep(Cf(o[g])))&&h.push([a(g),a(o[g])]);return d}case lw:return i([l,o.toISOString()],o);case sw:{const{source:h,flags:d}=o;return i([l,{source:h,flags:d}],o)}case uw:{const h=[],d=i([l,h],o);for(const[g,p]of o)(t||!(ep(Cf(g))||ep(Cf(p))))&&h.push([a(g),a(p)]);return d}case cw:{const h=[],d=i([l,h],o);for(const g of o)(t||!ep(Cf(g)))&&h.push(a(g));return d}}const{message:c}=o;return i([l,{name:s,message:c}],o)};return a},rR=(t,{json:e,lossy:n}={})=>{const r=[];return Fet(!(e||n),!!e,new Map,r)(t),r},mg=typeof structuredClone=="function"?(t,e)=>e&&("json"in e||"lossy"in e)?nR(rR(t,e)):structuredClone(t):(t,e)=>nR(rR(t,e));function Get(t,e){const n=[{type:"text",value:"↩"}];return e>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),n}function Uet(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}function Yet(t){const e=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",n=t.options.footnoteBackContent||Get,r=t.options.footnoteBackLabel||Uet,i=t.options.footnoteLabel||"Footnotes",a=t.options.footnoteLabelTagName||"h2",o=t.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let s=-1;for(;++s<t.footnoteOrder.length;){const c=t.footnoteById.get(t.footnoteOrder[s]);if(!c)continue;const h=t.all(c),d=String(c.identifier).toUpperCase(),g=Ju(d.toLowerCase());let p=0;const m=[],x=t.footnoteCounts.get(d);for(;x!==void 0&&++p<=x;){m.length>0&&m.push({type:"text",value:" "});let S=typeof n=="string"?n:n(s,p);typeof S=="string"&&(S={type:"text",value:S}),m.push({type:"element",tagName:"a",properties:{href:"#"+e+"fnref-"+g+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,p),className:["data-footnote-backref"]},children:Array.isArray(S)?S:[S]})}const _=h[h.length-1];if(_&&_.type==="element"&&_.tagName==="p"){const S=_.children[_.children.length-1];S&&S.type==="text"?S.value+=" ":_.children.push({type:"text",value:" "}),_.children.push(...m)}else h.push(...m);const b={type:"element",tagName:"li",properties:{id:e+"fn-"+g},children:t.wrap(h,!0)};t.patch(c,b),l.push(b)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...mg(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
140
+ `},{type:"element",tagName:"ol",properties:{},children:t.wrap(l,!0)},{type:"text",value:`
141
+ `}]}}const Zg=(function(t){if(t==null)return Zet;if(typeof t=="function")return $g(t);if(typeof t=="object")return Array.isArray(t)?Wet(t):Xet(t);if(typeof t=="string")return qet(t);throw new Error("Expected function, string, or object as test")});function Wet(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=Zg(t[n]);return $g(r);function r(...i){let a=-1;for(;++a<e.length;)if(e[a].apply(this,i))return!0;return!1}}function Xet(t){const e=t;return $g(n);function n(r){const i=r;let a;for(a in t)if(i[a]!==e[a])return!1;return!0}}function qet(t){return $g(e);function e(n){return n&&n.type===t}}function $g(t){return e;function e(n,r,i){return!!($et(n)&&t.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function Zet(){return!0}function $et(t){return t!==null&&typeof t=="object"&&"type"in t}const z3=[],Qet=!0,s_=!1,Ket="skip";function B3(t,e,n,r){let i;typeof e=="function"&&typeof n!="function"?(r=n,n=e):i=e;const a=Zg(i),o=r?-1:1;l(t,void 0,[])();function l(s,c,h){const d=s&&typeof s=="object"?s:{};if(typeof d.type=="string"){const p=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(g,"name",{value:"node ("+(s.type+(p?"<"+p+">":""))+")"})}return g;function g(){let p=z3,m,x,_;if((!e||a(s,c,h[h.length-1]||void 0))&&(p=Jet(n(s,h)),p[0]===s_))return p;if("children"in s&&s.children){const b=s;if(b.children&&p[0]!==Ket)for(x=(r?b.children.length:-1)+o,_=h.concat(b);x>-1&&x<b.children.length;){const S=b.children[x];if(m=l(S,x,_)(),m[0]===s_)return m;x=typeof m[1]=="number"?m[1]:x+o}}return p}}}function Jet(t){return Array.isArray(t)?t:typeof t=="number"?[Qet,t]:t==null?z3:[t]}function fw(t,e,n,r){let i,a,o;typeof e=="function"&&typeof n!="function"?(a=void 0,o=e,i=n):(a=e,o=n,i=r),B3(t,a,l,i);function l(s,c){const h=c[c.length-1],d=h?h.children.indexOf(s):void 0;return o(s,d,h)}}const u_={}.hasOwnProperty,tnt={};function ent(t,e){const n=e||tnt,r=new Map,i=new Map,a=new Map,o={...Pet,...n.handlers},l={all:c,applyData:rnt,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:s,options:n,patch:nnt,wrap:ant};return fw(t,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const d=h.type==="definition"?r:i,g=String(h.identifier).toUpperCase();d.has(g)||d.set(g,h)}}),l;function s(h,d){const g=h.type,p=l.handlers[g];if(u_.call(l.handlers,g)&&p)return p(l,h,d);if(l.options.passThrough&&l.options.passThrough.includes(g)){if("children"in h){const{children:x,..._}=h,b=mg(_);return b.children=l.all(h),b}return mg(h)}return(l.options.unknownHandler||int)(l,h,d)}function c(h){const d=[];if("children"in h){const g=h.children;let p=-1;for(;++p<g.length;){const m=l.one(g[p],h);if(m){if(p&&g[p-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=iR(m.value)),!Array.isArray(m)&&m.type==="element")){const x=m.children[0];x&&x.type==="text"&&(x.value=iR(x.value))}Array.isArray(m)?d.push(...m):d.push(m)}}}return d}}function nnt(t,e){t.position&&(e.position=FK(t))}function rnt(t,e){let n=e;if(t&&t.data){const r=t.data.hName,i=t.data.hChildren,a=t.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&a&&Object.assign(n.properties,mg(a)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function int(t,e){const n=e.data||{},r="value"in e&&!(u_.call(n,"hProperties")||u_.call(n,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function ant(t,e){const n=[];let r=-1;for(e&&n.push({type:"text",value:`
142
+ `});++r<t.length;)r&&n.push({type:"text",value:`
143
+ `}),n.push(t[r]);return e&&t.length>0&&n.push({type:"text",value:`
144
+ `}),n}function iR(t){let e=0,n=t.charCodeAt(e);for(;n===9||n===32;)e++,n=t.charCodeAt(e);return t.slice(e)}function aR(t,e){const n=ent(t,e),r=n.one(t,void 0),i=Yet(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
145
+ `},i),a}function ont(t,e){return t&&"run"in t?async function(n,r){const i=aR(n,{file:r,...e});await t.run(i,r)}:function(n,r){return aR(n,{file:r,...t||e})}}function oR(t){if(t)throw t}var sx,lR;function lnt(){if(lR)return sx;lR=1;var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(c){return typeof Array.isArray=="function"?Array.isArray(c):e.call(c)==="[object Array]"},a=function(c){if(!c||e.call(c)!=="[object Object]")return!1;var h=t.call(c,"constructor"),d=c.constructor&&c.constructor.prototype&&t.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!h&&!d)return!1;var g;for(g in c);return typeof g>"u"||t.call(c,g)},o=function(c,h){n&&h.name==="__proto__"?n(c,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):c[h.name]=h.newValue},l=function(c,h){if(h==="__proto__")if(t.call(c,h)){if(r)return r(c,h).value}else return;return c[h]};return sx=function s(){var c,h,d,g,p,m,x=arguments[0],_=1,b=arguments.length,S=!1;for(typeof x=="boolean"&&(S=x,x=arguments[1]||{},_=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});_<b;++_)if(c=arguments[_],c!=null)for(h in c)d=l(x,h),g=l(c,h),x!==g&&(S&&g&&(a(g)||(p=i(g)))?(p?(p=!1,m=d&&i(d)?d:[]):m=d&&a(d)?d:{},o(x,{name:h,newValue:s(S,m,g)})):typeof g<"u"&&o(x,{name:h,newValue:g}));return x},sx}var snt=lnt();const ux=zR(snt);function c_(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function unt(){const t=[],e={run:n,use:r};return e;function n(...i){let a=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);l(null,...i);function l(s,...c){const h=t[++a];let d=-1;if(s){o(s);return}for(;++d<i.length;)(c[d]===null||c[d]===void 0)&&(c[d]=i[d]);i=c,h?cnt(h,l)(...c):o(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return t.push(i),e}}function cnt(t,e){let n;return r;function r(...o){const l=t.length>o.length;let s;l&&o.push(i);try{s=t.apply(this,o)}catch(c){const h=c;if(l&&n)throw h;return i(h)}l||(s&&s.then&&typeof s.then=="function"?s.then(a,i):s instanceof Error?i(s):a(s))}function i(o,...l){n||(n=!0,e(o,...l))}function a(o){i(null,o)}}const Ri={basename:fnt,dirname:hnt,extname:dnt,join:vnt,sep:"/"};function fnt(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');Gh(t);let n=0,r=-1,i=t.length,a;if(e===void 0||e.length===0||e.length>t.length){for(;i--;)if(t.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":t.slice(n,r)}if(e===t)return"";let o=-1,l=e.length-1;for(;i--;)if(t.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),l>-1&&(t.codePointAt(i)===e.codePointAt(l--)?l<0&&(r=i):(l=-1,r=o));return n===r?r=o:r<0&&(r=t.length),t.slice(n,r)}function hnt(t){if(Gh(t),t.length===0)return".";let e=-1,n=t.length,r;for(;--n;)if(t.codePointAt(n)===47){if(r){e=n;break}}else r||(r=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}function dnt(t){Gh(t);let e=t.length,n=-1,r=0,i=-1,a=0,o;for(;e--;){const l=t.codePointAt(e);if(l===47){if(o){r=e+1;break}continue}n<0&&(o=!0,n=e+1),l===46?i<0?i=e:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":t.slice(i,n)}function vnt(...t){let e=-1,n;for(;++e<t.length;)Gh(t[e]),t[e]&&(n=n===void 0?t[e]:n+"/"+t[e]);return n===void 0?".":pnt(n)}function pnt(t){Gh(t);const e=t.codePointAt(0)===47;let n=gnt(t,!e);return n.length===0&&!e&&(n="."),n.length>0&&t.codePointAt(t.length-1)===47&&(n+="/"),e?"/"+n:n}function gnt(t,e){let n="",r=0,i=-1,a=0,o=-1,l,s;for(;++o<=t.length;){if(o<t.length)l=t.codePointAt(o);else{if(l===47)break;l=47}if(l===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}e&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+t.slice(i+1,o):n=t.slice(i+1,o),r=o-i-1;i=o,a=0}else l===46&&a>-1?a++:a=-1}return n}function Gh(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const mnt={cwd:ynt};function ynt(){return"/"}function f_(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function xnt(t){if(typeof t=="string")t=new URL(t);else if(!f_(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return bnt(t)}function bnt(t){if(t.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const e=t.pathname;let n=-1;for(;++n<e.length;)if(e.codePointAt(n)===37&&e.codePointAt(n+1)===50){const r=e.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(e)}const cx=["history","path","basename","stem","extname","dirname"];class N3{constructor(e){let n;e?f_(e)?n={path:e}:typeof e=="string"||_nt(e)?n={value:e}:n=e:n={},this.cwd="cwd"in n?"":mnt.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<cx.length;){const a=cx[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let i;for(i in n)cx.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Ri.basename(this.path):void 0}set basename(e){hx(e,"basename"),fx(e,"basename"),this.path=Ri.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?Ri.dirname(this.path):void 0}set dirname(e){sR(this.basename,"dirname"),this.path=Ri.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?Ri.extname(this.path):void 0}set extname(e){if(fx(e,"extname"),sR(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ri.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){f_(e)&&(e=xnt(e)),hx(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?Ri.basename(this.path,this.extname):void 0}set stem(e){hx(e,"stem"),fx(e,"stem"),this.path=Ri.join(this.dirname||"",e+(this.extname||""))}fail(e,n,r){const i=this.message(e,n,r);throw i.fatal=!0,i}info(e,n,r){const i=this.message(e,n,r);return i.fatal=void 0,i}message(e,n,r){const i=new zn(e,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}}function fx(t,e){if(t&&t.includes(Ri.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+Ri.sep+"`")}function hx(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function sR(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}function _nt(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const Snt=(function(t){const r=this.constructor.prototype,i=r[t],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a}),wnt={}.hasOwnProperty;class hw extends Snt{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=unt()}copy(){const e=new hw;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];e.use(...r)}return e.data(ux(!0,{},this.namespace)),e}data(e,n){return typeof e=="string"?arguments.length===2?(px("data",this.frozen),this.namespace[e]=n,this):wnt.call(this.namespace,e)&&this.namespace[e]||void 0:e?(px("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(e,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const n=np(e),r=this.parser||this.Parser;return dx("parse",r),r(String(n),n)}process(e,n){const r=this;return this.freeze(),dx("process",this.parser||this.Parser),vx("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,o){const l=np(e),s=r.parse(l);r.run(s,l,function(h,d,g){if(h||!d||!g)return c(h);const p=d,m=r.stringify(p,g);Mnt(m)?g.value=m:g.result=m,c(h,g)});function c(h,d){h||!d?o(h):a?a(d):n(void 0,d)}}}processSync(e){let n=!1,r;return this.freeze(),dx("processSync",this.parser||this.Parser),vx("processSync",this.compiler||this.Compiler),this.process(e,i),cR("processSync","process",n),r;function i(a,o){n=!0,oR(a),r=o}}run(e,n,r){uR(e),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(o,l){const s=np(n);i.run(e,s,c);function c(h,d,g){const p=d||e;h?l(h):o?o(p):r(void 0,p,g)}}}runSync(e,n){let r=!1,i;return this.run(e,n,a),cR("runSync","run",r),i;function a(o,l){oR(o),i=l,r=!0}}stringify(e,n){this.freeze();const r=np(n),i=this.compiler||this.Compiler;return vx("stringify",i),uR(e),i(e,r)}use(e,...n){const r=this.attachers,i=this.namespace;if(px("use",this.frozen),e!=null)if(typeof e=="function")s(e,n);else if(typeof e=="object")Array.isArray(e)?l(e):o(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function a(c){if(typeof c=="function")s(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[h,...d]=c;s(h,d)}else o(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function o(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(c.plugins),c.settings&&(i.settings=ux(!0,i.settings,c.settings))}function l(c){let h=-1;if(c!=null)if(Array.isArray(c))for(;++h<c.length;){const d=c[h];a(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function s(c,h){let d=-1,g=-1;for(;++d<r.length;)if(r[d][0]===c){g=d;break}if(g===-1)r.push([c,...h]);else if(h.length>0){let[p,...m]=h;const x=r[g][1];c_(x)&&c_(p)&&(p=ux(!0,x,p)),r[g]=[c,p,...m]}}}}const Tnt=new hw().freeze();function dx(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function vx(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function px(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function uR(t){if(!c_(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function cR(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function np(t){return Cnt(t)?t:new N3(t)}function Cnt(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function Mnt(t){return typeof t=="string"||Ant(t)}function Ant(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const Dnt="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",fR=[],hR={allowDangerousHtml:!0},knt=/^(https?|ircs?|mailto|xmpp)$/i,Lnt=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Ent(t){const e=Rnt(t),n=Int(t);return Ont(e.runSync(e.parse(n),n),t)}function Rnt(t){const e=t.rehypePlugins||fR,n=t.remarkPlugins||fR,r=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...hR}:hR;return Tnt().use(fet).use(n).use(ont,r).use(e)}function Int(t){const e=t.children||"",n=new N3;return typeof e=="string"&&(n.value=e),n}function Ont(t,e){const n=e.allowedElements,r=e.allowElement,i=e.components,a=e.disallowedElements,o=e.skipHtml,l=e.unwrapDisallowed,s=e.urlTransform||znt;for(const h of Lnt)Object.hasOwn(e,h.from)&&(""+h.from+(h.to?"use `"+h.to+"` instead":"remove it")+Dnt+h.id,void 0);return fw(t,c),XK(t,{Fragment:E.Fragment,components:i,ignoreInvalidStyle:!0,jsx:E.jsx,jsxs:E.jsxs,passKeys:!0,passNode:!0});function c(h,d,g){if(h.type==="raw"&&g&&typeof d=="number")return o?g.children.splice(d,1):g.children[d]={type:"text",value:h.value},d;if(h.type==="element"){let p;for(p in ax)if(Object.hasOwn(ax,p)&&Object.hasOwn(h.properties,p)){const m=h.properties[p],x=ax[p];(x===null||x.includes(h.tagName))&&(h.properties[p]=s(String(m||""),p,h))}}if(h.type==="element"){let p=n?!n.includes(h.tagName):a?a.includes(h.tagName):!1;if(!p&&r&&typeof d=="number"&&(p=!r(h,d,g)),p&&g&&typeof d=="number")return l&&h.children?g.children.splice(d,1,...h.children):g.children.splice(d,1),d}}}function znt(t){const e=t.indexOf(":"),n=t.indexOf("?"),r=t.indexOf("#"),i=t.indexOf("/");return e===-1||i!==-1&&e>i||n!==-1&&e>n||r!==-1&&e>r||knt.test(t.slice(0,e))?t:""}function dR(t,e){const n=String(t);if(typeof e!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(e);for(;i!==-1;)r++,i=n.indexOf(e,i+e.length);return r}function Bnt(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Nnt(t,e,n){const i=Zg((n||{}).ignore||[]),a=Pnt(e);let o=-1;for(;++o<a.length;)B3(t,"text",l);function l(c,h){let d=-1,g;for(;++d<h.length;){const p=h[d],m=g?g.children:void 0;if(i(p,m?m.indexOf(p):void 0,g))return;g=p}if(g)return s(c,h)}function s(c,h){const d=h[h.length-1],g=a[o][0],p=a[o][1];let m=0;const _=d.children.indexOf(c);let b=!1,S=[];g.lastIndex=0;let T=g.exec(c.value);for(;T;){const A=T.index,D={index:T.index,input:T.input,stack:[...h,c]};let M=p(...T,D);if(typeof M=="string"&&(M=M.length>0?{type:"text",value:M}:void 0),M===!1?g.lastIndex=A+1:(m!==A&&S.push({type:"text",value:c.value.slice(m,A)}),Array.isArray(M)?S.push(...M):M&&S.push(M),m=A+T[0].length,b=!0),!g.global)break;T=g.exec(c.value)}return b?(m<c.value.length&&S.push({type:"text",value:c.value.slice(m)}),d.children.splice(_,1,...S)):S=[c],_+S.length}}function Pnt(t){const e=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!t[0]||Array.isArray(t[0])?t:[t];let r=-1;for(;++r<n.length;){const i=n[r];e.push([Vnt(i[0]),Hnt(i[1])])}return e}function Vnt(t){return typeof t=="string"?new RegExp(Bnt(t),"g"):t}function Hnt(t){return typeof t=="function"?t:function(){return t}}const gx="phrasing",mx=["autolink","link","image","label"];function jnt(){return{transforms:[qnt],enter:{literalAutolink:Gnt,literalAutolinkEmail:yx,literalAutolinkHttp:yx,literalAutolinkWww:yx},exit:{literalAutolink:Xnt,literalAutolinkEmail:Wnt,literalAutolinkHttp:Unt,literalAutolinkWww:Ynt}}}function Fnt(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:gx,notInConstruct:mx},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:gx,notInConstruct:mx},{character:":",before:"[ps]",after:"\\/",inConstruct:gx,notInConstruct:mx}]}}function Gnt(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function yx(t){this.config.enter.autolinkProtocol.call(this,t)}function Unt(t){this.config.exit.autolinkProtocol.call(this,t)}function Ynt(t){this.config.exit.data.call(this,t);const e=this.stack[this.stack.length-1];e.type,e.url="http://"+this.sliceSerialize(t)}function Wnt(t){this.config.exit.autolinkEmail.call(this,t)}function Xnt(t){this.exit(t)}function qnt(t){Nnt(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Znt],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),$nt]],{ignore:["link","linkReference"]})}function Znt(t,e,n,r,i){let a="";if(!P3(i)||(/^w/i.test(e)&&(n=e+n,e="",a="http://"),!Qnt(n)))return!1;const o=Knt(n+r);if(!o[0])return!1;const l={type:"link",title:null,url:a+e+o[0],children:[{type:"text",value:e+o[0]}]};return o[1]?[l,{type:"text",value:o[1]}]:l}function $nt(t,e,n,r){return!P3(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+e+"@"+n,children:[{type:"text",value:e+"@"+n}]}}function Qnt(t){const e=t.split(".");return!(e.length<2||e[e.length-1]&&(/_/.test(e[e.length-1])||!/[a-zA-Z\d]/.test(e[e.length-1]))||e[e.length-2]&&(/_/.test(e[e.length-2])||!/[a-zA-Z\d]/.test(e[e.length-2])))}function Knt(t){const e=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!e)return[t,void 0];t=t.slice(0,e.index);let n=e[0],r=n.indexOf(")");const i=dR(t,"(");let a=dR(t,")");for(;r!==-1&&i>a;)t+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[t,n]}function P3(t,e){const n=t.input.charCodeAt(t.index-1);return(t.index===0||ns(n)||Wg(n))&&(!e||n!==47)}V3.peek=lrt;function Jnt(){this.buffer()}function trt(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function ert(){this.buffer()}function nrt(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function rrt(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=pi(this.sliceSerialize(t)).toLowerCase(),n.label=e}function irt(t){this.exit(t)}function art(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=pi(this.sliceSerialize(t)).toLowerCase(),n.label=e}function ort(t){this.exit(t)}function lrt(){return"["}function V3(t,e,n,r){const i=n.createTracker(r);let a=i.move("[^");const o=n.enter("footnoteReference"),l=n.enter("reference");return a+=i.move(n.safe(n.associationId(t),{after:"]",before:a})),l(),o(),a+=i.move("]"),a}function srt(){return{enter:{gfmFootnoteCallString:Jnt,gfmFootnoteCall:trt,gfmFootnoteDefinitionLabelString:ert,gfmFootnoteDefinition:nrt},exit:{gfmFootnoteCallString:rrt,gfmFootnoteCall:irt,gfmFootnoteDefinitionLabelString:art,gfmFootnoteDefinition:ort}}}function urt(t){let e=!1;return t&&t.firstLineBlank&&(e=!0),{handlers:{footnoteDefinition:n,footnoteReference:V3},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,o){const l=a.createTracker(o);let s=l.move("[^");const c=a.enter("footnoteDefinition"),h=a.enter("label");return s+=l.move(a.safe(a.associationId(r),{before:s,after:"]"})),h(),s+=l.move("]:"),r.children&&r.children.length>0&&(l.shift(4),s+=l.move((e?`
146
+ `:" ")+a.indentLines(a.containerFlow(r,l.current()),e?H3:crt))),c(),s}}function crt(t,e,n){return e===0?t:H3(t,e,n)}function H3(t,e,n){return(n?"":" ")+t}const frt=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];j3.peek=grt;function hrt(){return{canContainEols:["delete"],enter:{strikethrough:vrt},exit:{strikethrough:prt}}}function drt(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:frt}],handlers:{delete:j3}}}function vrt(t){this.enter({type:"delete",children:[]},t)}function prt(t){this.exit(t)}function j3(t,e,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(t,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function grt(){return"~"}function mrt(t){return t.length}function yrt(t,e){const n=e||{},r=(n.align||[]).concat(),i=n.stringLength||mrt,a=[],o=[],l=[],s=[];let c=0,h=-1;for(;++h<t.length;){const x=[],_=[];let b=-1;for(t[h].length>c&&(c=t[h].length);++b<t[h].length;){const S=xrt(t[h][b]);if(n.alignDelimiters!==!1){const T=i(S);_[b]=T,(s[b]===void 0||T>s[b])&&(s[b]=T)}x.push(S)}o[h]=x,l[h]=_}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<c;)a[d]=vR(r[d]);else{const x=vR(r);for(;++d<c;)a[d]=x}d=-1;const g=[],p=[];for(;++d<c;){const x=a[d];let _="",b="";x===99?(_=":",b=":"):x===108?_=":":x===114&&(b=":");let S=n.alignDelimiters===!1?1:Math.max(1,s[d]-_.length-b.length);const T=_+"-".repeat(S)+b;n.alignDelimiters!==!1&&(S=_.length+S+b.length,S>s[d]&&(s[d]=S),p[d]=S),g[d]=T}o.splice(1,0,g),l.splice(1,0,p),h=-1;const m=[];for(;++h<o.length;){const x=o[h],_=l[h];d=-1;const b=[];for(;++d<c;){const S=x[d]||"";let T="",A="";if(n.alignDelimiters!==!1){const D=s[d]-(_[d]||0),M=a[d];M===114?T=" ".repeat(D):M===99?D%2?(T=" ".repeat(D/2+.5),A=" ".repeat(D/2-.5)):(T=" ".repeat(D/2),A=T):A=" ".repeat(D)}n.delimiterStart!==!1&&!d&&b.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&S==="")&&(n.delimiterStart!==!1||d)&&b.push(" "),n.alignDelimiters!==!1&&b.push(T),b.push(S),n.alignDelimiters!==!1&&b.push(A),n.padding!==!1&&b.push(" "),(n.delimiterEnd!==!1||d!==c-1)&&b.push("|")}m.push(n.delimiterEnd===!1?b.join("").replace(/ +$/,""):b.join(""))}return m.join(`
147
+ `)}function xrt(t){return t==null?"":String(t)}function vR(t){const e=typeof t=="string"?t.codePointAt(0):0;return e===67||e===99?99:e===76||e===108?108:e===82||e===114?114:0}function brt(t,e,n,r){const i=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const o=n.indentLines(n.containerFlow(t,a.current()),_rt);return i(),o}function _rt(t,e,n){return">"+(n?"":" ")+t}function Srt(t,e){return pR(t,e.inConstruct,!0)&&!pR(t,e.notInConstruct,!1)}function pR(t,e,n){if(typeof e=="string"&&(e=[e]),!e||e.length===0)return n;let r=-1;for(;++r<e.length;)if(t.includes(e[r]))return!0;return!1}function gR(t,e,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
148
+ `&&Srt(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
149
+ `}function wrt(t,e){const n=String(t);let r=n.indexOf(e),i=r,a=0,o=0;if(typeof e!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+e.length,r=n.indexOf(e,i);return o}function Trt(t,e){return!!(e.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function Crt(t){const e=t.options.fence||"`";if(e!=="`"&&e!=="~")throw new Error("Cannot serialize code with `"+e+"` for `options.fence`, expected `` ` `` or `~`");return e}function Mrt(t,e,n,r){const i=Crt(n),a=t.value||"",o=i==="`"?"GraveAccent":"Tilde";if(Trt(t,n)){const d=n.enter("codeIndented"),g=n.indentLines(a,Art);return d(),g}const l=n.createTracker(r),s=i.repeat(Math.max(wrt(a,i)+1,3)),c=n.enter("codeFenced");let h=l.move(s);if(t.lang){const d=n.enter(`codeFencedLang${o}`);h+=l.move(n.safe(t.lang,{before:h,after:" ",encode:["`"],...l.current()})),d()}if(t.lang&&t.meta){const d=n.enter(`codeFencedMeta${o}`);h+=l.move(" "),h+=l.move(n.safe(t.meta,{before:h,after:`
150
+ `,encode:["`"],...l.current()})),d()}return h+=l.move(`
151
+ `),a&&(h+=l.move(a+`
152
+ `)),h+=l.move(s),c(),h}function Art(t,e,n){return(n?"":" ")+t}function dw(t){const e=t.options.quote||'"';if(e!=='"'&&e!=="'")throw new Error("Cannot serialize title with `"+e+"` for `options.quote`, expected `\"`, or `'`");return e}function Drt(t,e,n,r){const i=dw(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let l=n.enter("label");const s=n.createTracker(r);let c=s.move("[");return c+=s.move(n.safe(n.associationId(t),{before:c,after:"]",...s.current()})),c+=s.move("]: "),l(),!t.url||/[\0- \u007F]/.test(t.url)?(l=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(t.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=n.enter("destinationRaw"),c+=s.move(n.safe(t.url,{before:c,after:t.title?" ":`
153
+ `,...s.current()}))),l(),t.title&&(l=n.enter(`title${a}`),c+=s.move(" "+i),c+=s.move(n.safe(t.title,{before:c,after:i,...s.current()})),c+=s.move(i),l()),o(),c}function krt(t){const e=t.options.emphasis||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize emphasis with `"+e+"` for `options.emphasis`, expected `*`, or `_`");return e}function Mh(t){return"&#x"+t.toString(16).toUpperCase()+";"}function yg(t,e,n){const r=Fu(t),i=Fu(e);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}F3.peek=Lrt;function F3(t,e,n,r){const i=krt(n),a=n.enter("emphasis"),o=n.createTracker(r),l=o.move(i);let s=o.move(n.containerPhrasing(t,{after:i,before:l,...o.current()}));const c=s.charCodeAt(0),h=yg(r.before.charCodeAt(r.before.length-1),c,i);h.inside&&(s=Mh(c)+s.slice(1));const d=s.charCodeAt(s.length-1),g=yg(r.after.charCodeAt(0),d,i);g.inside&&(s=s.slice(0,-1)+Mh(d));const p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:g.outside,before:h.outside},l+s+p}function Lrt(t,e,n){return n.options.emphasis||"*"}function Ert(t,e){let n=!1;return fw(t,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,s_}),!!((!t.depth||t.depth<3)&&iw(t)&&(e.options.setext||n))}function Rrt(t,e,n,r){const i=Math.max(Math.min(6,t.depth||1),1),a=n.createTracker(r);if(Ert(t,n)){const h=n.enter("headingSetext"),d=n.enter("phrasing"),g=n.containerPhrasing(t,{...a.current(),before:`
154
+ `,after:`
155
+ `});return d(),h(),g+`
156
+ `+(i===1?"=":"-").repeat(g.length-(Math.max(g.lastIndexOf("\r"),g.lastIndexOf(`
157
+ `))+1))}const o="#".repeat(i),l=n.enter("headingAtx"),s=n.enter("phrasing");a.move(o+" ");let c=n.containerPhrasing(t,{before:"# ",after:`
158
+ `,...a.current()});return/^[\t ]/.test(c)&&(c=Mh(c.charCodeAt(0))+c.slice(1)),c=c?o+" "+c:o,n.options.closeAtx&&(c+=" "+o),s(),l(),c}G3.peek=Irt;function G3(t){return t.value||""}function Irt(){return"<"}U3.peek=Ort;function U3(t,e,n,r){const i=dw(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let l=n.enter("label");const s=n.createTracker(r);let c=s.move("![");return c+=s.move(n.safe(t.alt,{before:c,after:"]",...s.current()})),c+=s.move("]("),l(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(l=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(t.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=n.enter("destinationRaw"),c+=s.move(n.safe(t.url,{before:c,after:t.title?" ":")",...s.current()}))),l(),t.title&&(l=n.enter(`title${a}`),c+=s.move(" "+i),c+=s.move(n.safe(t.title,{before:c,after:i,...s.current()})),c+=s.move(i),l()),c+=s.move(")"),o(),c}function Ort(){return"!"}Y3.peek=zrt;function Y3(t,e,n,r){const i=t.referenceType,a=n.enter("imageReference");let o=n.enter("label");const l=n.createTracker(r);let s=l.move("![");const c=n.safe(t.alt,{before:s,after:"]",...l.current()});s+=l.move(c+"]["),o();const h=n.stack;n.stack=[],o=n.enter("reference");const d=n.safe(n.associationId(t),{before:s,after:"]",...l.current()});return o(),n.stack=h,a(),i==="full"||!c||c!==d?s+=l.move(d+"]"):i==="shortcut"?s=s.slice(0,-1):s+=l.move("]"),s}function zrt(){return"!"}W3.peek=Brt;function W3(t,e,n){let r=t.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const o=n.unsafe[a],l=n.compilePattern(o);let s;if(o.atBreak)for(;s=l.exec(r);){let c=s.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(s.index+1)}}return i+r+i}function Brt(){return"`"}function X3(t,e){const n=iw(t);return!!(!e.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(n===t.url||"mailto:"+n===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}q3.peek=Nrt;function q3(t,e,n,r){const i=dw(n),a=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let l,s;if(X3(t,n)){const h=n.stack;n.stack=[],l=n.enter("autolink");let d=o.move("<");return d+=o.move(n.containerPhrasing(t,{before:d,after:">",...o.current()})),d+=o.move(">"),l(),n.stack=h,d}l=n.enter("link"),s=n.enter("label");let c=o.move("[");return c+=o.move(n.containerPhrasing(t,{before:c,after:"](",...o.current()})),c+=o.move("]("),s(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(s=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(t.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(s=n.enter("destinationRaw"),c+=o.move(n.safe(t.url,{before:c,after:t.title?" ":")",...o.current()}))),s(),t.title&&(s=n.enter(`title${a}`),c+=o.move(" "+i),c+=o.move(n.safe(t.title,{before:c,after:i,...o.current()})),c+=o.move(i),s()),c+=o.move(")"),l(),c}function Nrt(t,e,n){return X3(t,n)?"<":"["}Z3.peek=Prt;function Z3(t,e,n,r){const i=t.referenceType,a=n.enter("linkReference");let o=n.enter("label");const l=n.createTracker(r);let s=l.move("[");const c=n.containerPhrasing(t,{before:s,after:"]",...l.current()});s+=l.move(c+"]["),o();const h=n.stack;n.stack=[],o=n.enter("reference");const d=n.safe(n.associationId(t),{before:s,after:"]",...l.current()});return o(),n.stack=h,a(),i==="full"||!c||c!==d?s+=l.move(d+"]"):i==="shortcut"?s=s.slice(0,-1):s+=l.move("]"),s}function Prt(){return"["}function vw(t){const e=t.options.bullet||"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}function Vrt(t){const e=vw(t),n=t.options.bulletOther;if(!n)return e==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===e)throw new Error("Expected `bullet` (`"+e+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Hrt(t){const e=t.options.bulletOrdered||".";if(e!=="."&&e!==")")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOrdered`, expected `.` or `)`");return e}function $3(t){const e=t.options.rule||"*";if(e!=="*"&&e!=="-"&&e!=="_")throw new Error("Cannot serialize rules with `"+e+"` for `options.rule`, expected `*`, `-`, or `_`");return e}function jrt(t,e,n,r){const i=n.enter("list"),a=n.bulletCurrent;let o=t.ordered?Hrt(n):vw(n);const l=t.ordered?o==="."?")":".":Vrt(n);let s=e&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!t.ordered){const h=t.children?t.children[0]:void 0;if((o==="*"||o==="-")&&h&&(!h.children||!h.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(s=!0),$3(n)===o&&h){let d=-1;for(;++d<t.children.length;){const g=t.children[d];if(g&&g.type==="listItem"&&g.children&&g.children[0]&&g.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(o=l),n.bulletCurrent=o;const c=n.containerFlow(t,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),c}function Frt(t){const e=t.options.listItemIndent||"one";if(e!=="tab"&&e!=="one"&&e!=="mixed")throw new Error("Cannot serialize items with `"+e+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return e}function Grt(t,e,n,r){const i=Frt(n);let a=n.bulletCurrent||vw(n);e&&e.type==="list"&&e.ordered&&(a=(typeof e.start=="number"&&e.start>-1?e.start:1)+(n.options.incrementListMarker===!1?0:e.children.indexOf(t))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(e&&e.type==="list"&&e.spread||t.spread))&&(o=Math.ceil(o/4)*4);const l=n.createTracker(r);l.move(a+" ".repeat(o-a.length)),l.shift(o);const s=n.enter("listItem"),c=n.indentLines(n.containerFlow(t,l.current()),h);return s(),c;function h(d,g,p){return g?(p?"":" ".repeat(o))+d:(p?a:a+" ".repeat(o-a.length))+d}}function Urt(t,e,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),o=n.containerPhrasing(t,r);return a(),i(),o}const Yrt=Zg(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Wrt(t,e,n,r){return(t.children.some(function(o){return Yrt(o)})?n.containerPhrasing:n.containerFlow).call(n,t,r)}function Xrt(t){const e=t.options.strong||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize strong with `"+e+"` for `options.strong`, expected `*`, or `_`");return e}Q3.peek=qrt;function Q3(t,e,n,r){const i=Xrt(n),a=n.enter("strong"),o=n.createTracker(r),l=o.move(i+i);let s=o.move(n.containerPhrasing(t,{after:i,before:l,...o.current()}));const c=s.charCodeAt(0),h=yg(r.before.charCodeAt(r.before.length-1),c,i);h.inside&&(s=Mh(c)+s.slice(1));const d=s.charCodeAt(s.length-1),g=yg(r.after.charCodeAt(0),d,i);g.inside&&(s=s.slice(0,-1)+Mh(d));const p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:g.outside,before:h.outside},l+s+p}function qrt(t,e,n){return n.options.strong||"*"}function Zrt(t,e,n,r){return n.safe(t.value,r)}function $rt(t){const e=t.options.ruleRepetition||3;if(e<3)throw new Error("Cannot serialize rules with repetition `"+e+"` for `options.ruleRepetition`, expected `3` or more");return e}function Qrt(t,e,n){const r=($3(n)+(n.options.ruleSpaces?" ":"")).repeat($rt(n));return n.options.ruleSpaces?r.slice(0,-1):r}const K3={blockquote:brt,break:gR,code:Mrt,definition:Drt,emphasis:F3,hardBreak:gR,heading:Rrt,html:G3,image:U3,imageReference:Y3,inlineCode:W3,link:q3,linkReference:Z3,list:jrt,listItem:Grt,paragraph:Urt,root:Wrt,strong:Q3,text:Zrt,thematicBreak:Qrt};function Krt(){return{enter:{table:Jrt,tableData:mR,tableHeader:mR,tableRow:eit},exit:{codeText:nit,table:tit,tableData:xx,tableHeader:xx,tableRow:xx}}}function Jrt(t){const e=t._align;this.enter({type:"table",align:e.map(function(n){return n==="none"?null:n}),children:[]},t),this.data.inTable=!0}function tit(t){this.exit(t),this.data.inTable=void 0}function eit(t){this.enter({type:"tableRow",children:[]},t)}function xx(t){this.exit(t)}function mR(t){this.enter({type:"tableCell",children:[]},t)}function nit(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,rit));const n=this.stack[this.stack.length-1];n.type,n.value=e,this.exit(t)}function rit(t,e){return e==="|"?e:t}function iit(t){const e=t||{},n=e.tableCellPadding,r=e.tablePipeAlign,i=e.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
159
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:g,table:o,tableCell:s,tableRow:l}};function o(p,m,x,_){return c(h(p,x,_),p.align)}function l(p,m,x,_){const b=d(p,x,_),S=c([b]);return S.slice(0,S.indexOf(`
160
+ `))}function s(p,m,x,_){const b=x.enter("tableCell"),S=x.enter("phrasing"),T=x.containerPhrasing(p,{..._,before:a,after:a});return S(),b(),T}function c(p,m){return yrt(p,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function h(p,m,x){const _=p.children;let b=-1;const S=[],T=m.enter("table");for(;++b<_.length;)S[b]=d(_[b],m,x);return T(),S}function d(p,m,x){const _=p.children;let b=-1;const S=[],T=m.enter("tableRow");for(;++b<_.length;)S[b]=s(_[b],p,m,x);return T(),S}function g(p,m,x){let _=K3.inlineCode(p,m,x);return x.stack.includes("tableCell")&&(_=_.replace(/\|/g,"\\$&")),_}}function ait(){return{exit:{taskListCheckValueChecked:yR,taskListCheckValueUnchecked:yR,paragraph:lit}}}function oit(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:sit}}}function yR(t){const e=this.stack[this.stack.length-2];e.type,e.checked=t.type==="taskListCheckValueChecked"}function lit(t){const e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=e.children;let a=-1,o;for(;++a<i.length;){const l=i[a];if(l.type==="paragraph"){o=l;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(t)}function sit(t,e,n,r){const i=t.children[0],a=typeof t.checked=="boolean"&&i&&i.type==="paragraph",o="["+(t.checked?"x":" ")+"] ",l=n.createTracker(r);a&&l.move(o);let s=K3.listItem(t,e,n,{...r,...l.current()});return a&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),s;function c(h){return h+o}}function uit(){return[jnt(),srt(),hrt(),Krt(),ait()]}function cit(t){return{extensions:[Fnt(),urt(t),drt(),iit(t),oit()]}}const fit={tokenize:mit,partial:!0},J3={tokenize:yit,partial:!0},t4={tokenize:xit,partial:!0},e4={tokenize:bit,partial:!0},hit={tokenize:_it,partial:!0},n4={name:"wwwAutolink",tokenize:pit,previous:i4},r4={name:"protocolAutolink",tokenize:git,previous:a4},La={name:"emailAutolink",tokenize:vit,previous:o4},Xi={};function dit(){return{text:Xi}}let Dl=48;for(;Dl<123;)Xi[Dl]=La,Dl++,Dl===58?Dl=65:Dl===91&&(Dl=97);Xi[43]=La;Xi[45]=La;Xi[46]=La;Xi[95]=La;Xi[72]=[La,r4];Xi[104]=[La,r4];Xi[87]=[La,n4];Xi[119]=[La,n4];function vit(t,e,n){const r=this;let i,a;return o;function o(d){return!h_(d)||!o4.call(r,r.previous)||pw(r.events)?n(d):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),l(d))}function l(d){return h_(d)?(t.consume(d),l):d===64?(t.consume(d),s):n(d)}function s(d){return d===46?t.check(hit,h,c)(d):d===45||d===95||Rn(d)?(a=!0,t.consume(d),s):h(d)}function c(d){return t.consume(d),i=!0,s}function h(d){return a&&i&&Fn(r.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(d)):n(d)}}function pit(t,e,n){const r=this;return i;function i(o){return o!==87&&o!==119||!i4.call(r,r.previous)||pw(r.events)?n(o):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(fit,t.attempt(J3,t.attempt(t4,a),n),n)(o))}function a(o){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(o)}}function git(t,e,n){const r=this;let i="",a=!1;return o;function o(d){return(d===72||d===104)&&a4.call(r,r.previous)&&!pw(r.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),t.consume(d),l):n(d)}function l(d){if(Fn(d)&&i.length<5)return i+=String.fromCodePoint(d),t.consume(d),l;if(d===58){const g=i.toLowerCase();if(g==="http"||g==="https")return t.consume(d),s}return n(d)}function s(d){return d===47?(t.consume(d),a?c:(a=!0,s)):n(d)}function c(d){return d===null||pg(d)||Re(d)||ns(d)||Wg(d)?n(d):t.attempt(J3,t.attempt(t4,h),n)(d)}function h(d){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(d)}}function mit(t,e,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,t.consume(o),i):o===46&&r===3?(t.consume(o),a):n(o)}function a(o){return o===null?n(o):e(o)}}function yit(t,e,n){let r,i,a;return o;function o(c){return c===46||c===95?t.check(e4,s,l)(c):c===null||Re(c)||ns(c)||c!==45&&Wg(c)?s(c):(a=!0,t.consume(c),o)}function l(c){return c===95?r=!0:(i=r,r=void 0),t.consume(c),o}function s(c){return i||r||!a?n(c):e(c)}}function xit(t,e){let n=0,r=0;return i;function i(o){return o===40?(n++,t.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?t.check(e4,e,a)(o):o===null||Re(o)||ns(o)?e(o):(t.consume(o),i)}function a(o){return o===41&&r++,t.consume(o),i}}function bit(t,e,n){return r;function r(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(t.consume(l),r):l===38?(t.consume(l),a):l===93?(t.consume(l),i):l===60||l===null||Re(l)||ns(l)?e(l):n(l)}function i(l){return l===null||l===40||l===91||Re(l)||ns(l)?e(l):r(l)}function a(l){return Fn(l)?o(l):n(l)}function o(l){return l===59?(t.consume(l),r):Fn(l)?(t.consume(l),o):n(l)}}function _it(t,e,n){return r;function r(a){return t.consume(a),i}function i(a){return Rn(a)?n(a):e(a)}}function i4(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||Re(t)}function a4(t){return!Fn(t)}function o4(t){return!(t===47||h_(t))}function h_(t){return t===43||t===45||t===46||t===95||Rn(t)}function pw(t){let e=t.length,n=!1;for(;e--;){const r=t[e][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return t.length>0&&!n&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Sit={tokenize:Lit,partial:!0};function wit(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Ait,continuation:{tokenize:Dit},exit:kit}},text:{91:{name:"gfmFootnoteCall",tokenize:Mit},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Tit,resolveTo:Cit}}}}function Tit(t,e,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const s=r.events[i][1];if(s.type==="labelImage"){o=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return l;function l(s){if(!o||!o._balanced)return n(s);const c=pi(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(s):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(s),t.exit("gfmFootnoteCallLabelMarker"),e(s))}}function Cit(t,e){let n=t.length;for(;n--;)if(t[n][1].type==="labelImage"&&t[n][0]==="enter"){t[n][1];break}t[n+1][1].type="data",t[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},t[n+3][1].start),end:Object.assign({},t[t.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},t[n+3][1].end),end:Object.assign({},t[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},t[t.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[t[n+1],t[n+2],["enter",r,e],t[n+3],t[n+4],["enter",i,e],["exit",i,e],["enter",a,e],["enter",o,e],["exit",o,e],["exit",a,e],t[t.length-2],t[t.length-1],["exit",r,e]];return t.splice(n,t.length-n+1,...l),t}function Mit(t,e,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return l;function l(d){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(d),t.exit("gfmFootnoteCallLabelMarker"),s}function s(d){return d!==94?n(d):(t.enter("gfmFootnoteCallMarker"),t.consume(d),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",c)}function c(d){if(a>999||d===93&&!o||d===null||d===91||Re(d))return n(d);if(d===93){t.exit("chunkString");const g=t.exit("gfmFootnoteCallString");return i.includes(pi(r.sliceSerialize(g)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(d),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):n(d)}return Re(d)||(o=!0),a++,t.consume(d),d===92?h:c}function h(d){return d===91||d===92||d===93?(t.consume(d),a++,c):c(d)}}function Ait(t,e,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,l;return s;function s(m){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(m){return m===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",h):n(m)}function h(m){if(o>999||m===93&&!l||m===null||m===91||Re(m))return n(m);if(m===93){t.exit("chunkString");const x=t.exit("gfmFootnoteDefinitionLabelString");return a=pi(r.sliceSerialize(x)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),g}return Re(m)||(l=!0),o++,t.consume(m),m===92?d:h}function d(m){return m===91||m===92||m===93?(t.consume(m),o++,h):h(m)}function g(m){return m===58?(t.enter("definitionMarker"),t.consume(m),t.exit("definitionMarker"),i.includes(a)||i.push(a),de(t,p,"gfmFootnoteDefinitionWhitespace")):n(m)}function p(m){return e(m)}}function Dit(t,e,n){return t.check(Fh,e,t.attempt(Sit,e,n))}function kit(t){t.exit("gfmFootnoteDefinition")}function Lit(t,e,n){const r=this;return de(t,i,"gfmFootnoteDefinitionIndent",5);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?e(a):n(a)}}function Eit(t){let n=(t||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,l){let s=-1;for(;++s<o.length;)if(o[s][0]==="enter"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._close){let c=s;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[s][1].end.offset-o[s][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[s][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[s][1].end)},d={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[s][1].start)},g=[["enter",h,l],["enter",o[c][1],l],["exit",o[c][1],l],["enter",d,l]],p=l.parser.constructs.insideSpan.null;p&&wr(g,g.length,0,Xg(p,o.slice(c+1,s),l)),wr(g,g.length,0,[["exit",d,l],["enter",o[s][1],l],["exit",o[s][1],l],["exit",h,l]]),wr(o,c-1,s-c+3,g),s=c+g.length-2;break}}for(s=-1;++s<o.length;)o[s][1].type==="strikethroughSequenceTemporary"&&(o[s][1].type="data");return o}function a(o,l,s){const c=this.previous,h=this.events;let d=0;return g;function g(m){return c===126&&h[h.length-1][1].type!=="characterEscape"?s(m):(o.enter("strikethroughSequenceTemporary"),p(m))}function p(m){const x=Fu(c);if(m===126)return d>1?s(m):(o.consume(m),d++,p);if(d<2&&!n)return s(m);const _=o.exit("strikethroughSequenceTemporary"),b=Fu(m);return _._open=!b||b===2&&!!x,_._close=!x||x===2&&!!b,l(m)}}}class Rit{constructor(){this.map=[]}add(e,n,r){Iit(this,e,n,r)}consume(e){if(this.map.sort(function(a,o){return a[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(e.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),e.length=this.map[n][0];r.push(e.slice()),e.length=0;let i=r.pop();for(;i;){for(const a of i)e.push(a);i=r.pop()}this.map.length=0}}function Iit(t,e,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<t.map.length;){if(t.map[i][0]===e){t.map[i][1]+=n,t.map[i][2].push(...r);return}i+=1}t.map.push([e,n,r])}}function Oit(t,e){let n=!1;const r=[];for(;e<t.length;){const i=t[e];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(t[e-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);e+=1}return r}function zit(){return{flow:{null:{name:"table",tokenize:Bit,resolveAll:Nit}}}}function Bit(t,e,n){const r=this;let i=0,a=0,o;return l;function l(L){let O=r.events.length-1;for(;O>-1;){const Y=r.events[O][1].type;if(Y==="lineEnding"||Y==="linePrefix")O--;else break}const H=O>-1?r.events[O][1].type:null,F=H==="tableHead"||H==="tableRow"?M:s;return F===M&&r.parser.lazy[r.now().line]?n(L):F(L)}function s(L){return t.enter("tableHead"),t.enter("tableRow"),c(L)}function c(L){return L===124||(o=!0,a+=1),h(L)}function h(L){return L===null?n(L):Nt(L)?a>1?(a=0,r.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(L),t.exit("lineEnding"),p):n(L):re(L)?de(t,h,"whitespace")(L):(a+=1,o&&(o=!1,i+=1),L===124?(t.enter("tableCellDivider"),t.consume(L),t.exit("tableCellDivider"),o=!0,h):(t.enter("data"),d(L)))}function d(L){return L===null||L===124||Re(L)?(t.exit("data"),h(L)):(t.consume(L),L===92?g:d)}function g(L){return L===92||L===124?(t.consume(L),d):d(L)}function p(L){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(L):(t.enter("tableDelimiterRow"),o=!1,re(L)?de(t,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):m(L))}function m(L){return L===45||L===58?_(L):L===124?(o=!0,t.enter("tableCellDivider"),t.consume(L),t.exit("tableCellDivider"),x):D(L)}function x(L){return re(L)?de(t,_,"whitespace")(L):_(L)}function _(L){return L===58?(a+=1,o=!0,t.enter("tableDelimiterMarker"),t.consume(L),t.exit("tableDelimiterMarker"),b):L===45?(a+=1,b(L)):L===null||Nt(L)?A(L):D(L)}function b(L){return L===45?(t.enter("tableDelimiterFiller"),S(L)):D(L)}function S(L){return L===45?(t.consume(L),S):L===58?(o=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(L),t.exit("tableDelimiterMarker"),T):(t.exit("tableDelimiterFiller"),T(L))}function T(L){return re(L)?de(t,A,"whitespace")(L):A(L)}function A(L){return L===124?m(L):L===null||Nt(L)?!o||i!==a?D(L):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(L)):D(L)}function D(L){return n(L)}function M(L){return t.enter("tableRow"),k(L)}function k(L){return L===124?(t.enter("tableCellDivider"),t.consume(L),t.exit("tableCellDivider"),k):L===null||Nt(L)?(t.exit("tableRow"),e(L)):re(L)?de(t,k,"whitespace")(L):(t.enter("data"),I(L))}function I(L){return L===null||L===124||Re(L)?(t.exit("data"),k(L)):(t.consume(L),L===92?z:I)}function z(L){return L===92||L===124?(t.consume(L),I):I(L)}}function Nit(t,e){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],l=!1,s=0,c,h,d;const g=new Rit;for(;++n<t.length;){const p=t[n],m=p[1];p[0]==="enter"?m.type==="tableHead"?(l=!1,s!==0&&(xR(g,e,s,c,h),h=void 0,s=0),c={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},g.add(n,0,[["enter",c,e]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],l&&(l=!1,h={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},g.add(n,0,[["enter",h,e]])),i=m.type==="tableDelimiterRow"?2:h?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=rp(g,e,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=rp(g,e,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type==="tableHead"?(l=!0,s=n):m.type==="tableRow"||m.type==="tableDelimiterRow"?(s=n,a[1]!==0?(o[0]=o[1],d=rp(g,e,a,i,n,d)):o[1]!==0&&(d=rp(g,e,o,i,n,d)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(o[3]=n)}for(s!==0&&xR(g,e,s,c,h),g.consume(e.events),n=-1;++n<e.events.length;){const p=e.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=Oit(e.events,n))}return t}function rp(t,e,n,r,i,a){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(a.end=Object.assign({},xu(e.events,n[0])),t.add(n[0],0,[["exit",a,e]]));const s=xu(e.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},t.add(n[1],0,[["enter",a,e]]),n[2]!==0){const c=xu(e.events,n[2]),h=xu(e.events,n[3]),d={type:l,start:Object.assign({},c),end:Object.assign({},h)};if(t.add(n[2],0,[["enter",d,e]]),r!==2){const g=e.events[n[2]],p=e.events[n[3]];if(g[1].end=Object.assign({},p[1].end),g[1].type="chunkText",g[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,x=n[3]-n[2]-1;t.add(m,x,[])}}t.add(n[3]+1,0,[["exit",d,e]])}return i!==void 0&&(a.end=Object.assign({},xu(e.events,i)),t.add(i,0,[["exit",a,e]]),a=void 0),a}function xR(t,e,n,r,i){const a=[],o=xu(e.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,e])),r.end=Object.assign({},o),a.push(["exit",r,e]),t.add(n+1,0,a)}function xu(t,e){const n=t[e],r=n[0]==="enter"?"start":"end";return n[1][r]}const Pit={name:"tasklistCheck",tokenize:Hit};function Vit(){return{text:{91:Pit}}}function Hit(t,e,n){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(s):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(s),t.exit("taskListCheckMarker"),a)}function a(s){return Re(s)?(t.enter("taskListCheckValueUnchecked"),t.consume(s),t.exit("taskListCheckValueUnchecked"),o):s===88||s===120?(t.enter("taskListCheckValueChecked"),t.consume(s),t.exit("taskListCheckValueChecked"),o):n(s)}function o(s){return s===93?(t.enter("taskListCheckMarker"),t.consume(s),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),l):n(s)}function l(s){return Nt(s)?e(s):re(s)?t.check({tokenize:jit},e,n)(s):n(s)}}function jit(t,e,n){return de(t,r,"whitespace");function r(i){return i===null?n(i):e(i)}}function Fit(t){return m3([dit(),wit(),Eit(t),zit(),Vit()])}const Git={};function Uit(t){const e=this,n=t||Git,r=e.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Fit(n)),a.push(uit()),o.push(cit(n))}const Yit=`
161
+ @keyframes streaming-cursor {
162
+ 0%, 100% { opacity: 1; }
163
+ 50% { opacity: 0; }
164
+ }
165
+
166
+ /* Кастомный scrollbar для таблиц */
167
+ .markdown-table::-webkit-scrollbar {
168
+ width: 8px;
169
+ height: 8px;
170
+ }
171
+ .markdown-table::-webkit-scrollbar-track {
172
+ background: #F5F5F5;
173
+ border-radius: 4px;
174
+ }
175
+ .markdown-table::-webkit-scrollbar-thumb {
176
+ background: #E0E0E0;
177
+ border-radius: 4px;
178
+ }
179
+ .markdown-table::-webkit-scrollbar-thumb:hover {
180
+ background: #00695C;
181
+ }
182
+ .markdown-table {
183
+ scrollbar-width: thin;
184
+ scrollbar-color: #E0E0E0 #F5F5F5;
185
+ }
186
+ `,Wit={code({children:t,className:e,...n}){return/language-/.test(e||"")?E.jsx("code",{style:{fontFamily:'Monaco, "Courier New", monospace',fontSize:13,lineHeight:1.5},className:e,...n,children:t}):E.jsx("code",{style:{background:B.tealLight,color:B.tealDark,padding:"2px 6px",borderRadius:4,fontSize:13,fontFamily:'Monaco, "Courier New", monospace'},...n,children:t})},pre({children:t}){return E.jsx("pre",{style:{background:B.neutral,color:"#E8E8E8",padding:14,borderRadius:8,overflow:"auto",fontSize:13,lineHeight:1.5,fontFamily:'Monaco, "Courier New", monospace',border:`1px solid ${B.border}`,boxShadow:ze.xs,margin:"8px 0"},children:t})},h1:({children:t})=>E.jsx("h1",{style:{fontSize:20,fontWeight:700,margin:"16px 0 8px",color:B.textPrimary},children:t}),h2:({children:t})=>E.jsx("h2",{style:{fontSize:17,fontWeight:600,margin:"14px 0 6px",color:B.textPrimary},children:t}),h3:({children:t})=>E.jsx("h3",{style:{fontSize:15,fontWeight:600,margin:"12px 0 4px",color:B.textPrimary},children:t}),ul:({children:t})=>E.jsx("ul",{style:{paddingLeft:20,margin:"6px 0"},children:t}),ol:({children:t})=>E.jsx("ol",{style:{paddingLeft:20,margin:"6px 0"},children:t}),li:({children:t})=>E.jsx("li",{style:{marginBottom:4},children:t}),p:({children:t})=>E.jsx("p",{style:{margin:"6px 0"},children:t}),a:({href:t,children:e})=>E.jsx("a",{href:t,style:{color:B.teal,textDecoration:"underline"},target:"_blank",rel:"noopener noreferrer",children:e}),blockquote:({children:t})=>E.jsx("blockquote",{style:{borderLeft:`3px solid ${B.orange}`,paddingLeft:12,margin:"8px 0",color:B.textSecondary},children:t}),table:({children:t})=>E.jsx("div",{style:{margin:"8px 0",borderRadius:8,overflow:"hidden",border:`0.5px solid ${B.border}`},children:E.jsx("table",{style:{borderCollapse:"collapse",fontSize:13,width:"100%"},children:t})}),th:({children:t})=>E.jsx("th",{style:{border:`1px solid ${B.border}`,padding:"6px 10px",background:B.tealLight,fontWeight:600,textAlign:"left"},children:t}),td:({children:t})=>E.jsx("td",{style:{border:`1px solid ${B.border}`,padding:"6px 10px"},children:t})},Xit={display:"inline-block",width:2,height:14,background:B.orange,animation:"streaming-cursor 1s step-end infinite",verticalAlign:"middle",marginLeft:2};function qit({content:t,streaming:e}){return E.jsxs("div",{style:{display:"inline-block",maxWidth:"90%",textAlign:"left",fontSize:14,lineHeight:1.6,color:B.textPrimary,marginBottom:8},children:[e&&E.jsx("style",{children:Yit}),E.jsx(Ent,{remarkPlugins:[Uit],components:Wit,children:t}),e&&E.jsx("span",{style:Xit})]})}const l4="/api/connections/dashboard";async function Zit(){const t=await fetch(l4);return t.ok?t.json():{charts:[]}}async function bR(t){const e=await fetch(l4,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({charts:t})});if(!e.ok)throw new Error("Failed to save dashboard");return e.json()}const s4="analitoly_session_charts",u4="analitoly_chart_tabs";function $it(){try{const t=localStorage.getItem(s4);return t?JSON.parse(t):[]}catch{return[]}}function Qit(t){try{localStorage.setItem(s4,JSON.stringify(t))}catch{}}function Kit(){try{const t=localStorage.getItem(u4);return t?JSON.parse(t).filter(n=>n.type!=="dashboard"):[]}catch{return[]}}function Jit(t){try{const e=t.filter(n=>n.type!=="dashboard");localStorage.setItem(u4,JSON.stringify(e))}catch{}}const tat={id:"dashboard",type:"dashboard"};function eat(){const t=$it(),e=Kit();return{dashboardCharts:[],dashboardLoaded:!1,sessionCharts:t,tabs:[tat,...e],activeTabId:"dashboard",brushSelection:null}}let _R=Date.now();function nat(t,e){var n;switch(e.type){case"LOAD_DASHBOARD_CHARTS":return{...t,dashboardCharts:e.payload,dashboardLoaded:!0};case"ADD_CHART":{const r=e.payload,a=t.sessionCharts.some(c=>c.chartId===r.chartId)?t.sessionCharts:[...t.sessionCharts,r],o=`tab_${++_R}`,l={id:o,type:"chart",chartId:r.chartId},s=[...t.tabs,l];return{...t,sessionCharts:a,tabs:s,activeTabId:o}}case"ADD_TO_DASHBOARD":{const r=e.payload;return t.dashboardCharts.some(a=>a.chartId===r.chartId)?t:{...t,dashboardCharts:[...t.dashboardCharts,r]}}case"REMOVE_FROM_DASHBOARD":{const r=e.payload;return{...t,dashboardCharts:t.dashboardCharts.filter(i=>i.chartId!==r)}}case"OPEN_IN_TAB":{const r=`tab_${++_R}`,i={id:r,type:"chart",chartId:e.payload.chartId};return{...t,tabs:[...t.tabs,i],activeTabId:r}}case"CLOSE_TAB":{const r=e.payload,i=t.tabs.filter(o=>o.id!==r),a=t.activeTabId===r?((n=i[i.length-1])==null?void 0:n.id)??"dashboard":t.activeTabId;return{...t,tabs:i,activeTabId:a,brushSelection:null}}case"SET_ACTIVE_TAB":return{...t,activeTabId:e.payload,brushSelection:null};case"SET_BRUSH":return{...t,brushSelection:e.payload};default:return t}}const c4=vt.createContext(null);function rat({children:t}){const[e,n]=vt.useReducer(nat,void 0,eat),r=vt.useRef(e);r.current=e;const i=vt.useCallback(async()=>{try{const{charts:m}=await Zit();n({type:"LOAD_DASHBOARD_CHARTS",payload:m})}catch{n({type:"LOAD_DASHBOARD_CHARTS",payload:[]})}},[]);vt.useEffect(()=>{i()},[i]),vt.useEffect(()=>{Qit(e.sessionCharts)},[e.sessionCharts]),vt.useEffect(()=>{Jit(e.tabs)},[e.tabs]);const a=vt.useCallback(m=>{n({type:"ADD_CHART",payload:m})},[]),o=vt.useCallback(m=>{n({type:"SET_ACTIVE_TAB",payload:m})},[]),l=vt.useCallback(m=>{n({type:"SET_BRUSH",payload:m})},[]),s=vt.useCallback(async m=>{const x=r.current,_=x.sessionCharts.find(S=>S.chartId===m)??x.dashboardCharts.find(S=>S.chartId===m);if(!_||x.dashboardCharts.some(S=>S.chartId===m))return;n({type:"ADD_TO_DASHBOARD",payload:_});const b=[...x.dashboardCharts,_];try{await bR(b)}catch{}},[]),c=vt.useCallback(async m=>{n({type:"REMOVE_FROM_DASHBOARD",payload:m});const b=r.current.dashboardCharts.filter(S=>S.chartId!==m);try{await bR(b)}catch{}},[]),h=vt.useCallback(m=>{n({type:"OPEN_IN_TAB",payload:{chartId:m}})},[]),d=vt.useCallback(m=>{n({type:"CLOSE_TAB",payload:m})},[]),g=vt.useCallback(m=>r.current.sessionCharts.find(x=>x.chartId===m)??r.current.dashboardCharts.find(x=>x.chartId===m),[]),p=vt.useCallback(m=>r.current.dashboardCharts.some(x=>x.chartId===m),[]);return E.jsx(c4.Provider,{value:{state:e,addChart:a,setActiveTab:o,setBrushSelection:l,addToDashboard:s,removeFromDashboard:c,openInTab:h,closeTab:d,getChart:g,isOnDashboard:p,reloadDashboard:i},children:t})}function os(){const t=vt.useContext(c4);if(!t)throw new Error("useChartContext must be used within ChartProvider");return t}function iat(t){try{const e=localStorage.getItem(`analitoly_messages_${t}`);return e?JSON.parse(e):[]}catch{return[]}}function du(t,e){try{const n=e.map(r=>{if(r.role!=="assistant"||!r.segments)return r;const i=r.segments.filter(a=>a.type!=="thinking").map(a=>a.type==="text"&&a.streaming?{...a,streaming:!1}:a);return{...r,segments:i}});localStorage.setItem(`analitoly_messages_${t}`,JSON.stringify(n))}catch{}}const f4=vt.createContext(null);function gw(){const t=vt.useContext(f4);if(!t)throw new Error("useSession must be used within SessionProvider");return t}function aat({initialSessionId:t,onConnect:e,onLogout:n,children:r}){const[i,a]=vt.useState(t),[,o]=vt.useState(0),l=vt.useCallback(()=>o(D=>D+1),[]),s=vt.useRef(new Map),c=vt.useRef(i);c.current=i;const{addChart:h}=os(),d=vt.useCallback(D=>{let M=s.current.get(D);return M||(M={messages:iat(D),loading:!1,abortController:null},s.current.set(D,M)),M},[]),g=d(i),p=vt.useCallback(async(D,M)=>{const k=d(D);k.messages=[...k.messages,{role:"user",content:M},{role:"assistant",content:"",segments:[{type:"thinking",label:"Анализирую запрос..."}]}],k.loading=!0,c.current===D&&l();const I=W=>{const V=k.messages,X=V[V.length-1];(X==null?void 0:X.role)==="assistant"&&(V[V.length-1]={...X,segments:W([...X.segments??[]])}),c.current===D&&l()},z=W=>W.filter(V=>V.type!=="thinking"),L=W=>{const V=W[W.length-1];if((V==null?void 0:V.type)==="text"&&V.streaming){const X=[...W];return X[X.length-1]={...V,streaming:!1},X}return W},O=W=>W.map(V=>V.type==="tool"&&V.meta.status==="pending"?{...V,meta:{...V.meta,status:"error",result:"Остановлено"}}:V),H=new AbortController;k.abortController=H;const F=Date.now();let Y=null;try{const W=await fetch(`/api/agent/${D}/message`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:M}),signal:H.signal});if(!W.ok||!W.body)throw new Error("Stream failed");const V=W.body.getReader(),X=new TextDecoder;let Z="";const tt=()=>{Y&&clearTimeout(Y),Y=setTimeout(()=>{const j=k.messages,U=j[j.length-1],q=(U==null?void 0:U.segments)??[],P=q[q.length-1];(P==null?void 0:P.type)==="text"&&P.streaming&&I(J=>{const st=L(J);return st.push({type:"thinking",label:"Подготовка..."}),st})},1e3)};for(;;){const{done:j,value:U}=await V.read();if(j)break;tt(),Z+=X.decode(U,{stream:!0});const q=Z.split(`
187
+ `);Z=q.pop()??"";for(const P of q){if(!P.startsWith("data: "))continue;let J;try{J=JSON.parse(P.slice(6))}catch{continue}if(J.type==="tool_call"||J.type==="tool_use"){const st=J.tool??J.name,mt=J.tool_use_id,wt=st.startsWith("mcp__analitoly__");let gt;if(J.input){const dt=J.input;dt.query?gt=dt.query:dt.type&&(gt=JSON.stringify(dt,null,2))}if(mt&&wt){const dt=st.endsWith("render_chart");I(Dt=>{let yt=z(Dt);return yt=L(yt),dt?yt.some(Mt=>Mt.type==="thinking"&&Mt.label===bx)||yt.push({type:"thinking",label:bx}):yt.push({type:"tool",meta:{tool:st,toolUseId:mt,query:gt,status:"pending"}}),yt}),await new Promise(Dt=>setTimeout(Dt,0))}}else if(J.type==="tool_result"){const st=J.tool_use_id;if(st){const mt=J.result;let wt=null;try{const gt=JSON.parse(mt??"");gt.type==="chart"&&gt.echartsOption&&(wt={chartId:gt.chartId,echartsOption:gt.echartsOption,title:gt.title,description:gt.description??"",sourceQuery:gt.sourceQuery??""})}catch{}wt?(h(wt),I(gt=>{const dt=gt.findIndex(yt=>yt.type==="tool"&&yt.meta.toolUseId===st);if(dt!==-1){const yt=[...gt];return yt[dt]={type:"chart",data:wt},yt.push({type:"thinking",label:"Анализирую результат..."}),yt}const Dt=z(gt);return Dt.push({type:"chart",data:wt}),Dt.push({type:"thinking",label:"Анализирую результат..."}),Dt})):I(gt=>{const dt=gt.findIndex(Mt=>Mt.type==="tool"&&Mt.meta.toolUseId===st);if(dt===-1)return gt;const Dt=[...gt],yt=gt[dt];return Dt[dt]={type:"tool",meta:{...yt.meta,result:mt,status:BR(mt)?"error":"success"}},Dt.push({type:"thinking",label:"Анализирую результат..."}),Dt})}}else if(J.type==="text_delta"||J.type==="text"){const st=J.text??J.content;I(mt=>{let wt=z(mt);const gt=wt[wt.length-1];if((gt==null?void 0:gt.type)==="text"&&gt.streaming){const dt=[...wt];return dt[dt.length-1]={...gt,content:gt.content+st},dt}return wt.push({type:"text",content:st,streaming:!0}),wt})}else J.type==="done"||J.type==="close"?(I(st=>L(z(st))),k.loading=!1,du(D,k.messages),c.current===D&&l()):J.type==="error"&&(I(st=>{let mt=z(st);return mt.push({type:"text",content:`Ошибка: ${J.message}`,streaming:!1}),mt}),k.loading=!1,du(D,k.messages),c.current===D&&l())}}}catch(W){Y&&clearTimeout(Y);const V=((Date.now()-F)/1e3).toFixed(1);if(W.name==="AbortError"){I(X=>O(L(z(X)))),k.loading=!1,du(D,k.messages),c.current===D&&l();return}console.error(`[Session] Stream error after ${V}s:`,W),I(X=>{let Z=z(X);return Z=O(Z),Z.push({type:"text",content:`Ошибка соединения (${V}с): ${W}`,streaming:!1}),Z}),k.loading=!1,du(D,k.messages),c.current===D&&l()}finally{Y&&clearTimeout(Y),k.abortController=null,k.loading&&(k.loading=!1,du(D,k.messages),c.current===D&&l())}},[d,l,h]),m=vt.useCallback(D=>{if(!D)return;const M=d(c.current);M.loading||(du(c.current,[...M.messages,{role:"user",content:D}]),p(c.current,D))},[d,p]),x=vt.useCallback(()=>{const D=s.current.get(c.current);D!=null&&D.abortController&&D.abortController.abort()},[]),_=vt.useCallback(D=>{a(D),c.current=D,d(D),localStorage.setItem("analitoly_current_session",D)},[d]),b=vt.useCallback(async()=>{const D=await e();D&&(s.current.set(D,{messages:[],loading:!1,abortController:null}),a(D),c.current=D,localStorage.setItem("analitoly_current_session",D))},[e]),S=vt.useCallback(async D=>{const M=s.current.get(D);if(M!=null&&M.abortController&&M.abortController.abort(),s.current.delete(D),localStorage.removeItem(`analitoly_messages_${D}`),fetch(`/api/agent/${D}`,{method:"DELETE"}).catch(()=>{}),c.current===D){let k=null;try{const I=await fetch("/api/agent/sessions");if(I.ok){const L=(await I.json()).filter(O=>O.sessionId!==D);L.length>0&&(L.sort((O,H)=>new Date(H.createdAt).getTime()-new Date(O.createdAt).getTime()),k=L[0].sessionId)}}catch{}if(k)d(k),a(k),c.current=k,localStorage.setItem("analitoly_current_session",k);else{const I=await e();I&&(s.current.set(I,{messages:[],loading:!1,abortController:null}),a(I),c.current=I,localStorage.setItem("analitoly_current_session",I))}}l()},[l,e]),T=vt.useCallback(()=>{for(const D of s.current.values())D.abortController&&D.abortController.abort();n()},[n]),A=vt.useCallback(D=>{var M;return((M=s.current.get(D))==null?void 0:M.loading)??!1},[]);return E.jsx(f4.Provider,{value:{activeSessionId:i,messages:g.messages,loading:g.loading,sendMessage:m,stopSession:x,switchSession:_,newSession:b,deleteSession:S,logout:T,isSessionLoading:A},children:r})}function oat(t){const e=Date.now()-new Date(t).getTime(),n=Math.floor(e/6e4);if(n<1)return"только что";if(n<60)return`${n} мин назад`;const r=Math.floor(n/60);return r<24?`${r} ч назад`:`${Math.floor(r/24)} дн назад`}function lat(){const{activeSessionId:t,switchSession:e,newSession:n,deleteSession:r,isSessionLoading:i}=gw(),[a,o]=vt.useState(!1),[l,s]=vt.useState([]),c=vt.useRef(null);return vt.useEffect(()=>{a&&fetch("/api/agent/sessions").then(h=>h.json()).then(h=>{h.sort((d,g)=>new Date(g.createdAt).getTime()-new Date(d.createdAt).getTime()),s(h)}).catch(()=>{})},[a]),vt.useEffect(()=>{if(!a)return;const h=d=>{c.current&&!c.current.contains(d.target)&&o(!1)};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[a]),E.jsxs("div",{ref:c,style:{position:"relative",marginBottom:12},children:[E.jsxs("button",{onClick:()=>o(!a),style:{display:"flex",alignItems:"center",gap:6,padding:"6px 12px",background:a?B.orangeLight:B.surface,border:`1px solid ${a?B.orange:B.border}`,borderRadius:8,cursor:"pointer",fontSize:13,color:B.textSecondary,fontFamily:"Monaco, monospace",transition:Gt.fast},onMouseEnter:h=>{a||(h.currentTarget.style.borderColor=B.neutral,h.currentTarget.style.background=B.surfaceHover)},onMouseLeave:h=>{a||(h.currentTarget.style.borderColor=B.border,h.currentTarget.style.background=B.surface)},children:[E.jsx("span",{style:{width:6,height:6,borderRadius:"50%",background:B.teal}}),t.slice(0,8),E.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",style:{transform:a?"rotate(180deg)":"none",transition:Gt.fast},children:E.jsx("path",{d:"M3 4.5L6 7.5L9 4.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),a&&E.jsxs("div",{style:{position:"absolute",top:"100%",left:0,marginTop:4,width:320,background:B.surface,border:`1px solid ${B.border}`,borderRadius:12,boxShadow:ze.lg,zIndex:100,overflow:"hidden"},children:[E.jsxs("button",{onClick:()=>{o(!1),n()},style:{width:"100%",padding:"10px 14px",background:"none",border:"none",borderBottom:`1px solid ${B.borderLight}`,cursor:"pointer",fontSize:13,fontWeight:500,color:B.orange,textAlign:"left",display:"flex",alignItems:"center",gap:8,transition:Gt.fast},onMouseEnter:h=>{h.currentTarget.style.background=B.orangeLight},onMouseLeave:h=>{h.currentTarget.style.background="none"},children:[E.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:E.jsx("path",{d:"M7 2V12M2 7H12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),"Новая сессия"]}),E.jsxs("div",{style:{maxHeight:280,overflowY:"auto"},children:[l.map(h=>{const d=h.sessionId===t,g=i(h.sessionId);return E.jsxs("div",{style:{display:"flex",alignItems:"center",borderBottom:`1px solid ${B.borderLight}`,background:d?B.orangeLight:"none",transition:Gt.fast},onMouseEnter:p=>{d||(p.currentTarget.style.background=B.surfaceHover)},onMouseLeave:p=>{d||(p.currentTarget.style.background="none")},children:[E.jsxs("button",{onClick:()=>{d||e(h.sessionId),o(!1)},style:{flex:1,padding:"10px 14px",background:"none",border:"none",cursor:d?"default":"pointer",textAlign:"left"},children:[E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:2},children:[g&&E.jsx("span",{style:{width:6,height:6,borderRadius:"50%",background:B.orange,animation:"pulse 1.5s ease-in-out infinite"}}),E.jsx("span",{style:{fontSize:12,fontFamily:"Monaco, monospace",color:d?B.orange:B.textSecondary,fontWeight:d?600:400},children:h.sessionId.slice(0,8)}),E.jsx("span",{style:{fontSize:11,color:B.textTertiary},children:oat(h.createdAt)}),h.numTurns>0&&E.jsxs("span",{style:{fontSize:11,color:B.textTertiary,marginLeft:"auto"},children:[h.numTurns," ",h.numTurns===1?"turn":"turns"]})]}),h.lastMessagePreview&&E.jsx("div",{style:{fontSize:12,color:B.textTertiary,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:h.lastMessagePreview})]}),E.jsx("button",{title:"Удалить сессию",onClick:async p=>{p.stopPropagation(),await r(h.sessionId);try{const x=await(await fetch("/api/agent/sessions")).json();x.sort((_,b)=>new Date(b.createdAt).getTime()-new Date(_.createdAt).getTime()),s(x)}catch{}},style:{padding:"6px 10px",background:"none",border:"none",cursor:"pointer",color:B.textTertiary,fontSize:14,transition:Gt.fast,flexShrink:0},onMouseEnter:p=>{p.currentTarget.style.color=B.error},onMouseLeave:p=>{p.currentTarget.style.color=B.textTertiary},children:E.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:E.jsx("path",{d:"M2 4h10M5 4V3a1 1 0 011-1h2a1 1 0 011 1v1M11 4v7a1 1 0 01-1 1H4a1 1 0 01-1-1V4",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})})})]},h.sessionId)}),l.length===0&&E.jsx("div",{style:{padding:14,fontSize:13,color:B.textTertiary,textAlign:"center"},children:"Нет активных сессий"})]})]}),E.jsx("style",{children:`
188
+ @keyframes pulse {
189
+ 0%, 100% { opacity: 1; }
190
+ 50% { opacity: 0.3; }
191
+ }
192
+ `})]})}const sat=vt.forwardRef(function(e,n){const{messages:r,loading:i,sendMessage:a,stopSession:o,activeSessionId:l}=gw(),{openInTab:s}=os(),c=vt.useRef(null);vt.useEffect(()=>{var g;(g=c.current)==null||g.scrollIntoView({behavior:"smooth"})},[r]);const h=vt.useCallback(g=>{a(g)},[a]),d=vt.useCallback(()=>{o()},[o]);return vt.useImperativeHandle(n,()=>({sendProgrammatic:g=>{a(g)}}),[a]),E.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%",fontFamily:'system-ui, -apple-system, "Segoe UI", sans-serif'},children:[E.jsx(lat,{}),E.jsxs("div",{style:{flex:1,overflowY:"auto",border:`1px solid ${B.border}`,borderRadius:12,padding:16,marginBottom:12,background:B.surface},children:[r.length===0&&E.jsx("div",{style:{textAlign:"center",marginTop:40},children:E.jsx("p",{style:{color:B.textTertiary,fontSize:14,marginBottom:8},children:"Напиши что-нибудь, чтобы начать..."})}),r.map((g,p)=>g.role==="user"?E.jsx(VP,{message:g},`${l}-${p}`):E.jsx("div",{style:{marginBottom:16,textAlign:"left"},children:(g.segments??[]).map((m,x)=>{switch(m.type){case"thinking":return m.label===bx?E.jsx(yK,{},x):E.jsx(gK,{label:m.label},x);case"text":return E.jsx(qit,{content:m.content,streaming:m.streaming},x);case"tool":return E.jsx(u6,{meta:m.meta},m.meta.toolUseId??x);case"chart":return E.jsx(vK,{chart:m.data,onClick:()=>s(m.data.chartId)},x)}})},`${l}-${p}`)),E.jsx("div",{ref:c})]}),E.jsx(HP,{onSend:h,onStop:d,disabled:i})]})});function uat({onResize:t,minWidth:e=350,maxWidth:n=800}){const[r,i]=vt.useState(!1),[a,o]=vt.useState(!1),l=vt.useRef(0),s=vt.useRef(0);vt.useEffect(()=>{if(!r)return;const h=g=>{const p=l.current-g.clientX,m=Math.max(e,Math.min(n,s.current+p));t(m)},d=()=>{i(!1)};return document.addEventListener("mousemove",h),document.addEventListener("mouseup",d),()=>{document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",d)}},[r,e,n,t]);const c=h=>{h.preventDefault(),i(!0),l.current=h.clientX;const d=h.target.nextElementSibling;d&&(s.current=d.offsetWidth)};return E.jsx("div",{onMouseDown:c,onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),style:{width:16,cursor:"col-resize",position:"relative",background:a||r?"rgba(255, 140, 66, 0.1)":"transparent",transition:"background 150ms",userSelect:"none",display:"flex",alignItems:"center",justifyContent:"center"},children:E.jsx("div",{style:{width:4,height:40,background:a||r?B.orange:B.border,borderRadius:4,transition:"background 150ms, width 150ms"}})})}function cat({sidebar:t,sidebarCollapsed:e,onToggleSidebar:n,children:r,chat:i}){const[a,o]=vt.useState(420);return E.jsxs("div",{style:{display:"flex",height:"100vh",background:B.background,fontFamily:'system-ui, -apple-system, "Segoe UI", sans-serif'},children:[t&&E.jsxs("div",{style:{position:"relative",flexShrink:0},children:[E.jsx("div",{style:{width:e?64:240,height:"100%",background:B.surface,borderRight:`1px solid ${B.border}`,padding:e?"16px 8px":16,overflowY:e?"hidden":"auto",overflowX:"hidden",transition:Gt.slow,boxSizing:"border-box"},children:t}),n&&E.jsx("button",{onClick:n,title:e?"Развернуть":"Свернуть",style:{position:"absolute",top:12,right:-14,width:28,height:28,display:"flex",alignItems:"center",justifyContent:"center",background:B.surface,border:`1px solid ${B.border}`,borderRadius:"50%",cursor:"pointer",color:B.textTertiary,boxShadow:ze.sm,transition:Gt.normal,zIndex:10,padding:0},onMouseEnter:l=>{l.currentTarget.style.background=B.surfaceHover,l.currentTarget.style.color=B.textPrimary,l.currentTarget.style.boxShadow=ze.md},onMouseLeave:l=>{l.currentTarget.style.background=B.surface,l.currentTarget.style.color=B.textTertiary,l.currentTarget.style.boxShadow=ze.sm},children:E.jsx("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",style:{transition:Gt.normal,transform:e?"rotate(180deg)":"none"},children:E.jsx("path",{d:"M10 3L5 8L10 13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),E.jsx("div",{style:{flex:1,paddingBottom:20,paddingTop:24,paddingLeft:20,paddingRight:10,overflowY:"auto",minWidth:400,display:"flex",flexDirection:"column"},children:r}),E.jsx(uat,{onResize:o,minWidth:350,maxWidth:800}),E.jsx("div",{style:{width:a,flexShrink:0,background:B.surface,borderLeft:`1px solid ${B.border}`,padding:16,overflowY:"hidden"},children:i})]})}if(typeof document<"u"&&!document.getElementById("usage-panel-animation")){const t=document.createElement("style");t.id="usage-panel-animation",t.textContent=`
193
+ @keyframes slideDown {
194
+ from {
195
+ opacity: 0;
196
+ transform: translateY(10px);
197
+ }
198
+ to {
199
+ opacity: 1;
200
+ transform: translateY(0);
201
+ }
202
+ }
203
+ @keyframes spin {
204
+ from { transform: rotate(0deg); }
205
+ to { transform: rotate(360deg); }
206
+ }
207
+ `,document.head.appendChild(t)}function fat({sessionId:t,onClose:e}){const[n,r]=vt.useState(null),[i,a]=vt.useState(null),[o,l]=vt.useState(!1),s=async()=>{l(!0);try{const g=await fetch(`/api/agent/${t}/usage`);if(!g.ok)throw new Error("Failed to fetch usage");r(await g.json()),a(null)}catch(g){a(String(g))}finally{setTimeout(()=>l(!1),800)}};vt.useEffect(()=>{s()},[t]);const c=g=>g>=1e6?`${(g/1e6).toFixed(1)}M`:g>=1e3?`${(g/1e3).toFixed(1)}K`:String(g),h=g=>g===0?"$0.00":g<.01?`$${g.toFixed(4)}`:`$${g.toFixed(2)}`,d=g=>g<1e3?`${g}ms`:`${(g/1e3).toFixed(1)}s`;return E.jsxs("div",{style:{position:"relative",width:200},children:[E.jsx("div",{style:{position:"absolute",bottom:-8,left:"50%",transform:"translateX(-50%)",width:1,height:8,background:"linear-gradient(to bottom, rgba(255,140,66,0.3), transparent)"}}),E.jsxs("div",{style:{maxWidth:320,maxHeight:"calc(100vh - 120px)",overflowY:"auto",background:B.surface,border:`1px solid ${B.border}`,borderRadius:12,boxShadow:ze.lg,padding:16,animation:"slideDown 150ms ease-out"},children:[E.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:14},children:[E.jsx("span",{style:{fontWeight:600,fontSize:14,color:B.textPrimary},children:"Использование"}),E.jsx("button",{onClick:s,"aria-label":"Обновить",style:{width:20,height:20,padding:4,background:"none",border:"none",cursor:"pointer",color:B.teal,borderRadius:4,transition:Gt.fast,display:"flex",alignItems:"center",justifyContent:"center"},onMouseEnter:g=>{g.currentTarget.style.background=B.tealLight,g.currentTarget.style.color=B.tealDark},onMouseLeave:g=>{g.currentTarget.style.background="none",g.currentTarget.style.color=B.teal},children:E.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",style:{animation:o?"spin 800ms linear infinite":"none"},children:[E.jsx("path",{d:"M14 8A6 6 0 1 1 8 2"}),E.jsx("path",{d:"M8 2L8 5M8 2L5 2"})]})})]}),i&&E.jsx("div",{style:{color:B.error,fontSize:13,marginBottom:8},children:i}),n?E.jsxs("div",{style:{fontSize:13,lineHeight:1.8},children:[E.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[E.jsx("span",{style:{color:B.textPrimary,fontWeight:600},children:"Стоимость"}),E.jsx("span",{style:{fontWeight:600,color:B.textPrimary},children:h(n.totalCostUsd)})]}),E.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[E.jsx("span",{style:{color:B.textSecondary},children:"Input токены"}),E.jsx("span",{style:{color:B.textPrimary},children:c(n.inputTokens)})]}),E.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[E.jsx("span",{style:{color:B.textSecondary},children:"Output токены"}),E.jsx("span",{style:{color:B.textPrimary},children:c(n.outputTokens)})]}),n.cacheReadTokens>0&&E.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[E.jsx("span",{style:{color:B.textSecondary},children:"Из кеша"}),E.jsx("span",{style:{color:B.textPrimary},children:c(n.cacheReadTokens)})]}),E.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[E.jsx("span",{style:{color:B.textSecondary},children:"Запросов"}),E.jsx("span",{style:{color:B.textPrimary},children:n.numTurns})]}),E.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[E.jsx("span",{style:{color:B.textSecondary},children:"Время API"}),E.jsx("span",{style:{color:B.textPrimary},children:d(n.durationMs)})]}),Object.keys(n.modelUsage).length>0&&E.jsxs(E.Fragment,{children:[E.jsx("div",{style:{borderTop:`1px solid ${B.borderLight}`,margin:"8px 0"}}),E.jsx("div",{style:{fontWeight:600,marginBottom:4,color:B.textPrimary},children:"По моделям"}),Object.entries(n.modelUsage).map(([g,p])=>E.jsxs("div",{style:{marginBottom:6},children:[E.jsx("div",{style:{color:B.textPrimary,fontWeight:500},children:g}),E.jsxs("div",{style:{display:"flex",justifyContent:"space-between",paddingLeft:8},children:[E.jsx("span",{style:{color:B.textSecondary},children:"Токены"}),E.jsxs("span",{style:{color:B.textPrimary},children:[c(p.inputTokens)," / ",c(p.outputTokens)]})]}),E.jsxs("div",{style:{display:"flex",justifyContent:"space-between",paddingLeft:8},children:[E.jsx("span",{style:{color:B.textSecondary},children:"Стоимость"}),E.jsx("span",{style:{color:B.textPrimary},children:h(p.costUSD)})]})]},g))]})]}):E.jsx("div",{style:{color:B.textTertiary,fontSize:13},children:"Загрузка..."})]})]})}const d_=({size:t=14})=>E.jsxs("svg",{width:t,height:t,viewBox:"0 0 18 18",fill:"none",children:[E.jsx("rect",{x:"2",y:"2",width:"6",height:"6",rx:"1.5",stroke:"currentColor",strokeWidth:"1.5"}),E.jsx("rect",{x:"10",y:"2",width:"6",height:"6",rx:"1.5",stroke:"currentColor",strokeWidth:"1.5"}),E.jsx("rect",{x:"2",y:"10",width:"6",height:"6",rx:"1.5",stroke:"currentColor",strokeWidth:"1.5"}),E.jsx("rect",{x:"10",y:"10",width:"6",height:"6",rx:"1.5",stroke:"currentColor",strokeWidth:"1.5"})]}),hat=()=>E.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:[E.jsx("path",{d:"M5 2H3C2.44772 2 2 2.44772 2 3V11C2 11.5523 2.44772 12 3 12H11C11.5523 12 12 11.5523 12 11V9",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round"}),E.jsx("path",{d:"M8 2H12V6",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{d:"M12 2L7 7",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round"})]}),dat=()=>E.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:E.jsx("path",{d:"M2 4h10M5 4V3a1 1 0 011-1h2a1 1 0 011 1v1M11 4v7a1 1 0 01-1 1H4a1 1 0 01-1-1V4",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})}),vat=()=>E.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:E.jsx("path",{d:"M7 2V12M2 7H12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})});function vu({title:t,onClick:e,children:n,style:r}){return E.jsx("button",{onClick:e,title:t,style:{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"1px solid transparent",borderRadius:12,cursor:"pointer",color:B.textTertiary,fontSize:15,transition:Gt.fast,...r},onMouseEnter:i=>{i.currentTarget.style.background=B.surfaceHover,i.currentTarget.style.borderColor=B.border,i.currentTarget.style.color=B.textPrimary},onMouseLeave:i=>{i.currentTarget.style.background="none",i.currentTarget.style.borderColor="transparent",i.currentTarget.style.color=B.textTertiary},children:n})}const SR=()=>E.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[E.jsx("circle",{cx:"5",cy:"5",r:"2.5",stroke:"currentColor",strokeWidth:"1.5"}),E.jsx("circle",{cx:"13",cy:"13",r:"2.5",stroke:"currentColor",strokeWidth:"1.5"}),E.jsx("path",{d:"M7 7L11 11",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),wR=()=>E.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[E.jsx("path",{d:"M3 14V8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),E.jsx("path",{d:"M7 14V4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),E.jsx("path",{d:"M11 14V9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),E.jsx("path",{d:"M15 14V6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),TR=()=>E.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[E.jsx("path",{d:"M7 2H4C3 2 2 3 2 4V14C2 15 3 16 4 16H7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),E.jsx("path",{d:"M12 12L16 9L12 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{d:"M6 9H16",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),CR=()=>E.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[E.jsx("path",{d:"M8 10V2M8 10L5 7M8 10L11 7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{d:"M2 12V13C2 13.5523 2.44772 14 3 14H13C13.5523 14 14 13.5523 14 13V12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),MR=()=>E.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[E.jsx("path",{d:"M8 2V10M8 2L5 5M8 2L11 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{d:"M2 12V13C2 13.5523 2.44772 14 3 14H13C13.5523 14 14 13.5523 14 13V12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]});function pat({collapsed:t,showUsage:e,sessionId:n,onShowUsage:r,onShowConnections:i,onShowDashboard:a,onImport:o,onDisconnect:l}){const s=vt.useRef(null),c=async()=>{try{const g=await(await fetch("/api/connections/export")).json(),p=new Blob([JSON.stringify(g,null,2)],{type:"application/json"}),m=URL.createObjectURL(p),x=document.createElement("a");x.href=m,x.download=`analitoly-${new Date().toISOString().slice(0,10)}.analitoly`,x.click(),URL.revokeObjectURL(m)}catch{}},h=async d=>{var p;const g=(p=d.target.files)==null?void 0:p[0];if(g){try{const m=await g.text(),x=JSON.parse(m);await fetch("/api/connections/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(x)}),o()}catch{}d.target.value=""}};return t?E.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%",alignItems:"center",padding:"12px 0"},children:[E.jsx("img",{src:"/AnalitolyShort.png",alt:"Analitoly",style:{width:32,height:32,objectFit:"contain",marginBottom:16}}),E.jsx("div",{style:{height:1,background:B.divider,width:"80%",marginBottom:12}}),E.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4,alignItems:"center"},children:[E.jsx(vu,{title:"Обзор",onClick:a,style:{width:40,height:40,color:B.orange},children:E.jsx(d_,{size:18})}),E.jsx(vu,{title:"Источники",onClick:i,style:{width:40,height:40},children:E.jsx(SR,{})})]}),E.jsx("div",{style:{height:1,background:B.divider,width:"80%",margin:"12px 0"}}),E.jsxs("div",{style:{marginTop:"auto",display:"flex",flexDirection:"column",gap:4,alignItems:"center"},children:[E.jsx("div",{style:{position:"relative"},children:E.jsx(vu,{title:"Usage",onClick:r,style:{width:40,height:40,background:e?"rgba(255,140,66,0.15)":"none",borderColor:e?B.orange:"transparent"},children:E.jsx(wR,{})})}),E.jsx(vu,{title:"Импорт",onClick:()=>{var d;return(d=s.current)==null?void 0:d.click()},style:{width:40,height:40},children:E.jsx(CR,{})}),E.jsx(vu,{title:"Экспорт",onClick:c,style:{width:40,height:40},children:E.jsx(MR,{})}),E.jsx("div",{style:{height:1,background:B.divider,width:"80%",margin:"8px 0"}}),E.jsx(vu,{title:"Отключиться",onClick:l,style:{width:40,height:40,color:B.error},children:E.jsx(TR,{})})]}),E.jsx("input",{ref:s,type:"file",accept:".analitoly,.json",onChange:h,style:{display:"none"}})]}):E.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[E.jsxs("div",{style:{marginBottom:20},children:[E.jsx("img",{src:"/Analitoly.png",alt:"Analitoly",style:{height:36,objectFit:"contain"}}),E.jsx("input",{ref:s,type:"file",accept:".analitoly,.json",onChange:h,style:{display:"none"}})]}),E.jsxs("nav",{style:{display:"flex",flexDirection:"column",gap:4},children:[E.jsxs("a",{href:"#",onClick:d=>{d.preventDefault(),a()},style:{padding:"12px 16px",fontSize:14,fontWeight:500,color:B.orange,background:B.orangeLight,borderRadius:12,textDecoration:"none",transition:Gt.normal,display:"flex",alignItems:"center",gap:10},children:[E.jsx(d_,{size:18}),"Обзор"]}),E.jsxs("a",{href:"#",onClick:d=>{d.preventDefault(),i()},style:{padding:"12px 16px",fontSize:14,fontWeight:400,color:B.textSecondary,background:"transparent",borderRadius:12,textDecoration:"none",transition:Gt.normal,display:"flex",alignItems:"center",gap:10},onMouseEnter:d=>{d.currentTarget.style.background=B.surfaceHover,d.currentTarget.style.color=B.textPrimary},onMouseLeave:d=>{d.currentTarget.style.background="transparent",d.currentTarget.style.color=B.textSecondary},children:[E.jsx(SR,{}),"Источники"]})]}),E.jsx("div",{style:{height:1,background:B.divider,margin:"16px 0"}}),E.jsxs("div",{style:{marginTop:"auto",display:"flex",flexDirection:"column",gap:8},children:[E.jsxs("div",{style:{position:"relative"},children:[E.jsxs("button",{onClick:r,style:{fontSize:14,fontWeight:500,background:e?"rgba(255,140,66,0.15)":B.surface,border:e?`1px solid ${B.orange}`:`1px solid ${B.border}`,borderRadius:12,padding:"12px 16px",cursor:"pointer",color:B.textPrimary,transition:Gt.normal,textAlign:"left",width:"100%",display:"flex",alignItems:"center",gap:10},onMouseEnter:d=>{e||(d.currentTarget.style.background=B.surfaceHover,d.currentTarget.style.borderColor=B.neutral)},onMouseLeave:d=>{e||(d.currentTarget.style.background=B.surface,d.currentTarget.style.borderColor=B.border)},children:[E.jsx(wR,{}),"Usage"]}),!t&&e&&E.jsx("div",{style:{position:"absolute",left:0,bottom:"100%",marginBottom:8,zIndex:1e3},children:E.jsx(fat,{sessionId:n,onClose:r})})]}),E.jsxs("button",{onClick:()=>{var d;return(d=s.current)==null?void 0:d.click()},style:{fontSize:14,fontWeight:500,background:B.surface,border:`1px solid ${B.border}`,borderRadius:12,padding:"12px 16px",cursor:"pointer",color:B.textPrimary,transition:Gt.normal,textAlign:"left",width:"100%",display:"flex",alignItems:"center",gap:10},onMouseEnter:d=>{d.currentTarget.style.background=B.surfaceHover,d.currentTarget.style.borderColor=B.neutral},onMouseLeave:d=>{d.currentTarget.style.background=B.surface,d.currentTarget.style.borderColor=B.border},children:[E.jsx(CR,{}),"Импорт"]}),E.jsxs("button",{onClick:c,style:{fontSize:14,fontWeight:500,background:B.surface,border:`1px solid ${B.border}`,borderRadius:12,padding:"12px 16px",cursor:"pointer",color:B.textPrimary,transition:Gt.normal,textAlign:"left",width:"100%",display:"flex",alignItems:"center",gap:10},onMouseEnter:d=>{d.currentTarget.style.background=B.surfaceHover,d.currentTarget.style.borderColor=B.neutral},onMouseLeave:d=>{d.currentTarget.style.background=B.surface,d.currentTarget.style.borderColor=B.border},children:[E.jsx(MR,{}),"Экспорт"]}),E.jsx("div",{style:{height:1,background:B.divider,margin:"12px 0"}}),E.jsxs("button",{onClick:l,style:{fontSize:14,fontWeight:500,background:B.surface,border:`1px solid ${B.border}`,borderRadius:12,padding:"12px 16px",cursor:"pointer",color:B.error,transition:Gt.normal,textAlign:"left",width:"100%",display:"flex",alignItems:"center",gap:10},onMouseEnter:d=>{d.currentTarget.style.background="#FFEBEE",d.currentTarget.style.borderColor=B.error},onMouseLeave:d=>{d.currentTarget.style.background=B.surface,d.currentTarget.style.borderColor=B.border},children:[E.jsx(TR,{}),"Отключиться"]})]})]})}const gat={postgresql:"/PostgreSQL.png",mongodb:"/Mongodb.png",graylog:"/Graylog.png",grafana:"/Grafana.png",gitlab:"/Gitlab.png"};function mat(t){if(!t.active)return{color:B.textDisabled,label:"Неактивен",bg:B.surfaceHover};if(t.state){if(t.state.status==="ready")return{color:"#2e7d32",label:"Подключён",bg:"#e8f5e9"};if(t.state.status==="cloning")return{color:B.warning,label:"Клонирование...",bg:"#fff3e0"};if(t.state.status==="error")return{color:B.error,label:"Ошибка",bg:"#ffebee"}}return{color:"#2e7d32",label:"Активен",bg:"#e8f5e9"}}function AR({title:t,onClick:e,children:n,hoverColor:r}){return E.jsx("button",{onClick:i=>{i.stopPropagation(),e()},title:t,style:{width:30,height:30,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",borderRadius:6,cursor:"pointer",color:B.textTertiary,transition:Gt.fast,padding:0},onMouseEnter:i=>{i.currentTarget.style.background=B.surfaceHover,i.currentTarget.style.color=r||B.textPrimary},onMouseLeave:i=>{i.currentTarget.style.background="none",i.currentTarget.style.color=B.textTertiary},children:n})}function yat({connection:t,onEdit:e,onToggle:n,onDelete:r}){const i=mat(t),a=gat[t.type];return E.jsxs("div",{onClick:()=>e(t),style:{display:"flex",alignItems:"center",gap:10,padding:"10px 12px",background:B.surface,border:`1px solid ${B.borderLight}`,borderRadius:10,transition:Gt.normal,cursor:"pointer"},onMouseEnter:o=>{o.currentTarget.style.borderColor=B.border,o.currentTarget.style.boxShadow=ze.xs},onMouseLeave:o=>{o.currentTarget.style.borderColor=B.borderLight,o.currentTarget.style.boxShadow="none"},children:[E.jsx("div",{style:{width:32,height:32,borderRadius:8,background:B.surfaceHover,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:a?E.jsx("img",{src:a,alt:"",style:{width:20,height:20,objectFit:"contain"}}):E.jsx("span",{style:{fontSize:16},children:"📁"})}),E.jsx("div",{style:{flex:1,minWidth:0},children:E.jsx("div",{style:{fontSize:13,fontWeight:500,color:t.active?B.textPrimary:B.textTertiary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t.name})}),E.jsx("span",{style:{fontSize:11,fontWeight:500,color:i.color,background:i.bg,padding:"2px 8px",borderRadius:10,whiteSpace:"nowrap",flexShrink:0},children:i.label}),E.jsxs("div",{style:{display:"flex",gap:0,flexShrink:0},children:[E.jsx(AR,{title:t.active?"Деактивировать":"Активировать",onClick:()=>n(t),hoverColor:t.active?B.warning:B.teal,children:t.active?E.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 16 16",fill:"none",children:[E.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:"currentColor",strokeWidth:"1.5"}),E.jsx("line",{x1:"5",y1:"5",x2:"11",y2:"11",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}):E.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 16 16",fill:"none",children:[E.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:"currentColor",strokeWidth:"1.5"}),E.jsx("path",{d:"M6 8L7.5 9.5L10.5 6.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),E.jsx(AR,{title:"Удалить",onClick:()=>r(t),hoverColor:B.error,children:E.jsx("svg",{width:"15",height:"15",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{d:"M3 4.5H13M5.5 4.5V3.5C5.5 2.94772 5.94772 2.5 6.5 2.5H9.5C10.0523 2.5 10.5 2.94772 10.5 3.5V4.5M6.5 7V11.5M9.5 7V11.5M4.5 4.5L5 13C5 13.5523 5.44772 14 6 14H10C10.5523 14 11 13.5523 11 13L11.5 4.5",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]})}const xat=[{key:"database",title:"Базы данных",tiles:[{type:"postgresql",label:"PostgreSQL",icon:"/PostgreSQL.png",description:"Реляционная БД"},{type:"mongodb",label:"MongoDB",icon:"/Mongodb.png",description:"Документная БД"}]},{key:"analytics",title:"Аналитика",tiles:[{type:"graylog",label:"Graylog",icon:"/Graylog.png",description:"Поиск по логам"},{type:"grafana",label:"Grafana",icon:"/Grafana.png",description:"Метрики и дашборды"}]},{key:"repository",title:"Репозитории",tiles:[{type:"local",label:"Локальный",icon:"",description:"Папка на диске"},{type:"gitlab",label:"GitLab",icon:"/Gitlab.png",description:"Git-репозиторий"}]}];function bat({tile:t,count:e,onClick:n}){return E.jsxs("div",{onClick:n,style:{flex:"1 1 0",minWidth:140,padding:"18px 16px 14px",background:`linear-gradient(135deg, ${B.surface} 0%, ${B.surfaceHover} 100%)`,border:`1px solid ${B.border}`,borderRadius:14,cursor:"pointer",transition:Gt.normal,position:"relative",display:"flex",flexDirection:"column",alignItems:"center",gap:6},onMouseEnter:r=>{r.currentTarget.style.boxShadow=`${ze.md}, inset 0 0 0 1px ${B.orange}40`,r.currentTarget.style.borderColor=B.orange,r.currentTarget.style.transform="translateY(-2px)"},onMouseLeave:r=>{r.currentTarget.style.boxShadow="none",r.currentTarget.style.borderColor=B.border,r.currentTarget.style.transform="none"},children:[e>0&&E.jsx("span",{style:{position:"absolute",top:-6,right:-6,width:20,height:20,borderRadius:"50%",background:B.teal,color:"#fff",fontSize:10,fontWeight:700,display:"flex",alignItems:"center",justifyContent:"center",boxShadow:ze.sm,border:`2px solid ${B.surface}`},children:e}),E.jsx("div",{style:{width:65,height:65,borderRadius:12,background:B.surface,border:`1px solid ${B.borderLight}`,display:"flex",alignItems:"center",justifyContent:"center",boxShadow:ze.xs},children:t.icon?E.jsx("img",{src:t.icon,alt:t.label,style:{width:50,height:50,objectFit:"contain"}}):E.jsx("span",{style:{fontSize:30},children:"📁"})}),E.jsx("div",{style:{fontSize:15,fontWeight:600,color:B.textPrimary},children:t.label}),E.jsxs("div",{style:{marginTop:4,fontSize:13,color:B.orange,fontWeight:600,display:"flex",alignItems:"center",gap:3},children:[E.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[E.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:"currentColor",strokeWidth:"1.5"}),E.jsx("path",{d:"M8 5V11M5 8H11",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),"Добавить"]})]})}function _at({connections:t,onAddNew:e,onEdit:n,onToggle:r,onDelete:i}){const a=t.filter(l=>!l.deletedAt),o=l=>a.filter(s=>s.type===l).length;return E.jsxs("div",{style:{display:"flex",gap:32,minHeight:0},children:[E.jsx("div",{style:{flex:"1 1 55%",minWidth:0},children:xat.map((l,s)=>E.jsxs("div",{children:[s>0&&E.jsx("div",{style:{height:1,background:B.divider,margin:"20px 0"}}),E.jsx("h4",{style:{fontSize:11,fontWeight:700,color:B.textTertiary,textTransform:"uppercase",letterSpacing:1,marginBottom:12,marginTop:s===0?0:void 0},children:l.title}),E.jsx("div",{style:{display:"flex",gap:10,flexWrap:"wrap"},children:l.tiles.map(c=>E.jsx(bat,{tile:c,count:o(c.type),onClick:()=>e(c.type)},c.type))})]},l.key))}),E.jsxs("div",{style:{flex:"1 1 45%",minWidth:240,borderLeft:`1px solid ${B.divider}`,paddingLeft:24,display:"flex",flexDirection:"column"},children:[E.jsxs("h4",{style:{fontSize:11,fontWeight:700,color:B.textTertiary,textTransform:"uppercase",letterSpacing:1,marginBottom:12,marginTop:0},children:["Подключения (",a.length,")"]}),a.length===0?E.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",gap:8,color:B.textTertiary,fontSize:13},children:[E.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 16 16",fill:"none",style:{opacity:.3},children:[E.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:"currentColor",strokeWidth:"1"}),E.jsx("path",{d:"M5.5 8H10.5M8 5.5V10.5",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round"})]}),"Нет подключений"]}):E.jsx("div",{style:{display:"flex",flexDirection:"column",gap:6,overflowY:"auto",flex:1},children:a.map(l=>E.jsx(yat,{connection:l,onEdit:n,onToggle:r,onDelete:i},l.id))})]})]})}const Sat={postgresql:"PostgreSQL",mongodb:"MongoDB",graylog:"Graylog",grafana:"Grafana",local:"Локальный проект",gitlab:"GitLab"},DR={width:"100%",padding:"8px 12px",fontSize:13,border:`1px solid ${B.border}`,borderRadius:6,boxSizing:"border-box",outline:"none",transition:Gt.normal,background:B.surface,color:B.textPrimary},kR={fontSize:12,color:B.textSecondary,marginBottom:4,display:"block",fontWeight:500};function wat({type:t,editing:e,onSave:n,onCancel:r}){const[i,a]=vt.useState(""),[o,l]=vt.useState({}),[s,c]=vt.useState(!1),[h,d]=vt.useState(null),[g,p]=vt.useState(0),m=vt.useRef(null);vt.useEffect(()=>(s?(p(0),m.current=setInterval(()=>p(T=>T+1),1e3)):(m.current&&clearInterval(m.current),m.current=null),()=>{m.current&&clearInterval(m.current)}),[s]),vt.useEffect(()=>{if(e){a(e.name);const T=e.config,A={};for(const D of Object.keys(T))A[D]=T[D]==="***"?"":String(T[D]??"");l(A)}else a(""),l(Tat(t));d(null)},[t,e]);const x=()=>{const T={};for(const[A,D]of Object.entries(o))A==="port"?T[A]=Number(D)||0:T[A]=D;return T},_=async()=>{c(!0),d(null);try{const T=x();if(e){const z=e.config;for(const[L,O]of Object.entries(z))(!(L in T)||T[L]===""&&O!=="***")&&(T[L]=O)}const D=await(await fetch("/api/connections/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:(e==null?void 0:e.type)??t,config:T}),signal:AbortSignal.timeout(7e4)})).json();if(!D.connected){d(D.error||"Не удалось подключиться");return}const M=x();let k;if(e){const z={};for(const[L,O]of Object.entries(M))["password","serviceAccountToken","token"].includes(L)&&!O||(z[L]=O);k=await fetch(`/api/connections/${e.id}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:i,config:z}),signal:AbortSignal.timeout(7e4)})}else k=await fetch("/api/connections",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:t,name:i,config:M}),signal:AbortSignal.timeout(7e4)});if(!k.ok){const z=await k.json().catch(()=>({}));d(z.message||k.statusText);return}let I=await k.json();if(["gitlab","local"].includes(I.type??t)){const z=await fetch(`/api/connections/${I.id}/connect`,{method:"POST",signal:AbortSignal.timeout(12e4)});if(z.ok)I=await z.json();else{const L=await z.json().catch(()=>({}));e||await fetch(`/api/connections/${I.id}`,{method:"DELETE"}).catch(()=>{}),d(L.message||"Не удалось подключить проект");return}}n(I)}catch(T){T instanceof DOMException&&T.name==="TimeoutError"?d("Превышено время ожидания подключения (70 сек)"):d(String(T))}finally{c(!1)}},b=(T,A,D,M)=>E.jsxs("div",{children:[E.jsx("label",{style:kR,children:A}),E.jsx("input",{value:o[T]||"",onChange:k=>l({...o,[T]:k.target.value}),placeholder:D,type:(M==null?void 0:M.type)||"text",style:DR,onFocus:k=>{k.currentTarget.style.borderColor=B.orange,k.currentTarget.style.boxShadow=ze.focusOrange},onBlur:k=>{k.currentTarget.style.borderColor=B.border,k.currentTarget.style.boxShadow="none"}})]},T),S=()=>{switch(t){case"postgresql":case"mongodb":return E.jsxs(E.Fragment,{children:[E.jsxs("div",{style:{display:"flex",gap:8},children:[E.jsx("div",{style:{flex:1},children:b("host","Host","localhost")}),E.jsx("div",{style:{width:100},children:b("port","Port",t==="postgresql"?"5432":"27017")})]}),b("database","Database","mydb"),b("username","Username","user"),b("password","Password",e?"(без изменений)":"",{type:"password"})]});case"graylog":return E.jsxs(E.Fragment,{children:[b("baseUrl","Base URL","https://graylog.example.com"),b("username","Username","admin"),b("password","Password",e?"(без изменений)":"",{type:"password"})]});case"grafana":return E.jsxs(E.Fragment,{children:[b("url","URL","https://grafana.example.com"),b("serviceAccountToken","Service Account Token",e?"(без изменений)":"glsa_...",{type:"password"})]});case"local":return b("path","Путь к проекту","/home/user/project");case"gitlab":return E.jsxs(E.Fragment,{children:[b("url","URL репозитория","https://gitlab.com/group/project"),b("token","Access Token",e?"(без изменений)":"",{type:"password"}),b("branch","Branch (опционально)","main")]});default:return null}};return E.jsx("div",{children:E.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:12,maxWidth:480},children:[E.jsxs("div",{children:[E.jsx("label",{style:kR,children:"Название"}),E.jsx("input",{value:i,onChange:T=>a(T.target.value),placeholder:Sat[t]||t,style:DR,onFocus:T=>{T.currentTarget.style.borderColor=B.orange,T.currentTarget.style.boxShadow=ze.focusOrange},onBlur:T=>{T.currentTarget.style.borderColor=B.border,T.currentTarget.style.boxShadow="none"}})]}),S(),h&&E.jsxs("div",{style:{fontSize:12,color:B.error,padding:"6px 0"},children:["Ошибка: ",h]}),E.jsxs("div",{style:{display:"flex",gap:8,marginTop:8},children:[E.jsx("button",{onClick:_,disabled:s||!i.trim(),style:{padding:"8px 20px",fontSize:13,border:"none",borderRadius:8,background:s||!i.trim()?B.border:B.orange,color:"#fff",cursor:s||!i.trim()?"default":"pointer",fontWeight:500,transition:Gt.normal,opacity:s||!i.trim()?.6:1},children:s?`Подключение... ${g}с`:"Подключить"}),E.jsx("button",{onClick:r,style:{padding:"8px 16px",fontSize:13,border:`1px solid ${B.border}`,borderRadius:8,background:B.surface,cursor:"pointer",color:B.textSecondary,transition:Gt.normal},children:"Отмена"})]})]})})}function Tat(t){switch(t){case"postgresql":return{host:"",port:"5432",database:"",username:"",password:""};case"mongodb":return{host:"",port:"27017",database:"",username:"",password:""};case"graylog":return{baseUrl:"",username:"",password:""};case"grafana":return{url:"",serviceAccountToken:""};case"local":return{path:""};case"gitlab":return{url:"",token:"",branch:""};default:return{}}}function Cat({onClose:t}){const[e,n]=vt.useState("categories"),[r,i]=vt.useState(""),[a,o]=vt.useState(null),[l,s]=vt.useState([]),c=async()=>{try{const x=await fetch("/api/connections");x.ok&&s(await x.json())}catch{}};vt.useEffect(()=>{c()},[]);const h=x=>{i(x),o(null),n("form")},d=x=>{i(x.type),o(x),n("form")},g=async x=>{const _=x.active?"deactivate":"activate";await fetch(`/api/connections/${x.id}/${_}`,{method:"POST"}),c()},p=async x=>{await fetch(`/api/connections/${x.id}`,{method:"DELETE"}),c()},m=()=>{n("categories"),o(null),c()};return E.jsx("div",{onClick:t,style:{position:"fixed",top:0,left:0,right:0,bottom:0,background:"rgba(0, 0, 0, 0.35)",backdropFilter:"blur(4px)",zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center"},children:E.jsxs("div",{onClick:x=>x.stopPropagation(),style:{width:"85vw",maxWidth:1040,maxHeight:"85vh",background:B.surface,borderRadius:20,boxShadow:"0 24px 48px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08)",display:"flex",flexDirection:"column",overflow:"hidden"},children:[E.jsxs("div",{style:{padding:"18px 28px",borderBottom:`1px solid ${B.border}`,display:"flex",justifyContent:"space-between",alignItems:"center",background:`linear-gradient(135deg, ${B.surface} 0%, ${B.surfaceHover} 100%)`},children:[E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[e==="form"&&E.jsx("button",{onClick:()=>{n("categories"),o(null)},style:{background:"none",border:"none",cursor:"pointer",fontSize:18,color:B.textSecondary,padding:"4px 8px",borderRadius:6,transition:Gt.fast,display:"flex",alignItems:"center"},onMouseEnter:x=>{x.currentTarget.style.background=B.surfaceHover},onMouseLeave:x=>{x.currentTarget.style.background="none"},children:E.jsx("svg",{width:"18",height:"18",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{d:"M10 3L5 8L10 13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),E.jsx("h2",{style:{margin:0,fontSize:17,fontWeight:600,color:B.textPrimary},children:e==="categories"?"Источники данных":a?"Редактирование":"Новое подключение"})]}),E.jsx("button",{onClick:t,style:{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"1px solid transparent",borderRadius:8,cursor:"pointer",color:B.textTertiary,fontSize:16,transition:Gt.fast},onMouseEnter:x=>{x.currentTarget.style.background=B.surfaceHover,x.currentTarget.style.borderColor=B.border,x.currentTarget.style.color=B.textPrimary},onMouseLeave:x=>{x.currentTarget.style.background="none",x.currentTarget.style.borderColor="transparent",x.currentTarget.style.color=B.textTertiary},children:"✕"})]}),E.jsx("div",{style:{flex:1,padding:28,overflowY:"auto"},children:e==="categories"?E.jsx(_at,{connections:l,onAddNew:h,onEdit:d,onToggle:g,onDelete:p}):E.jsx(wat,{type:r,editing:a,onSave:m,onCancel:()=>{n("categories"),o(null)}})})]})})}const Mat=200;function LR(t,e){let n,r;return t?(n=B.orange,r="#fff"):e?(n=B.orangeLight,r=B.orange):(n=B.surfaceHover,r=B.textSecondary),{display:"flex",alignItems:"center",gap:6,padding:"12px 14px",fontSize:15,fontWeight:t?600:500,color:r,background:n,border:"none",borderRadius:8,cursor:"pointer",transition:Gt.fast,whiteSpace:"nowrap",flexShrink:0}}const ER={display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,borderRadius:6,border:`1px solid ${B.border}`,background:B.surface,color:B.textSecondary,transition:Gt.fast,flexShrink:0,padding:0},Aat=()=>E.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:E.jsx("path",{d:"M8.5 3L4.5 7L8.5 11",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Dat=()=>E.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:E.jsx("path",{d:"M5.5 3L9.5 7L5.5 11",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});function kat({onCloseTab:t}){const{state:e,setActiveTab:n,getChart:r}=os(),{tabs:i,activeTabId:a}=e,o=i.filter(x=>x.type!=="dashboard"),l=vt.useRef(null),[s,c]=vt.useState(!1),[h,d]=vt.useState(!1),g=vt.useCallback(()=>{const x=l.current;if(!x){c(!1),d(!1);return}c(x.scrollLeft>1),d(x.scrollLeft+x.clientWidth<x.scrollWidth-1)},[]);vt.useEffect(()=>{const x=l.current;if(!x)return;x.addEventListener("scroll",g);const _=new ResizeObserver(g);return _.observe(x),g(),()=>{x.removeEventListener("scroll",g),_.disconnect()}},[g,o.length]);const p=x=>{const _=l.current;if(!_)return;const b=Array.from(_.children);if(b.length===0)return;const S=_.getBoundingClientRect();if(x===-1){for(let T=b.length-1;T>=0;T--){const A=b[T].getBoundingClientRect();if(A.left<S.left-1){_.scrollTo({left:_.scrollLeft+(A.left-S.left),behavior:"smooth"});return}}_.scrollTo({left:0,behavior:"smooth"})}else for(const T of b){const A=T.getBoundingClientRect();if(A.right>S.right+1){_.scrollTo({left:_.scrollLeft+(A.right-S.right),behavior:"smooth"});return}}};vt.useEffect(()=>{const x=l.current;if(!x)return;const _=o.findIndex(D=>D.id===a);if(_<0)return;const S=Array.from(x.children)[_];if(!S)return;const T=x.getBoundingClientRect(),A=S.getBoundingClientRect();A.left<T.left?x.scrollTo({left:x.scrollLeft+(A.left-T.left),behavior:"smooth"}):A.right>T.right&&x.scrollTo({left:x.scrollLeft+(A.right-T.right),behavior:"smooth"})},[a,o]);const m=o.length>0;return E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,flexShrink:0,paddingBottom:12,marginBottom:12,borderBottom:`1px solid ${B.border}`},children:[E.jsxs("div",{style:LR(a==="dashboard",!0),onClick:()=>n("dashboard"),children:[E.jsx(d_,{size:18}),E.jsx("span",{children:"Дашборд"})]}),m&&E.jsx("div",{ref:l,className:"analitoly-tab-scroll",style:{display:"flex",gap:6,overflowX:"scroll",flex:1,minWidth:0,scrollbarWidth:"none"},children:o.map(x=>{var S;const _=x.id===a,b=x.type==="chart"?((S=r(x.chartId))==null?void 0:S.title)??"График":"";return E.jsxs("div",{style:LR(_,!1),onClick:()=>n(x.id),children:[E.jsx("span",{style:{maxWidth:Mat,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"inline-block"},children:b}),x.type==="chart"&&E.jsx("span",{onClick:T=>{T.stopPropagation(),t(x.id,x.chartId)},style:{fontSize:10,color:_?"rgba(255,255,255,0.7)":B.textTertiary,cursor:"pointer",padding:"2px 3px",borderRadius:4,lineHeight:1,marginLeft:2},onMouseEnter:T=>{T.currentTarget.style.color=_?"#fff":B.error},onMouseLeave:T=>{T.currentTarget.style.color=_?"rgba(255,255,255,0.7)":B.textTertiary},children:"✕"})]},x.id)})}),m&&E.jsxs("div",{style:{display:"flex",gap:4,flexShrink:0},children:[E.jsx("button",{disabled:!s,style:{...ER,opacity:s?1:.25,cursor:s?"pointer":"default"},onClick:()=>s&&p(-1),onMouseEnter:x=>{s&&(x.currentTarget.style.borderColor=B.orange)},onMouseLeave:x=>{x.currentTarget.style.borderColor=B.border},children:E.jsx(Aat,{})}),E.jsx("button",{disabled:!h,style:{...ER,opacity:h?1:.25,cursor:h?"pointer":"default"},onClick:()=>h&&p(1),onMouseEnter:x=>{h&&(x.currentTarget.style.borderColor=B.orange)},onMouseLeave:x=>{x.currentTarget.style.borderColor=B.border},children:E.jsx(Dat,{})})]}),E.jsx("style",{children:".analitoly-tab-scroll::-webkit-scrollbar { display: none; }"})]})}const RR={display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,borderRadius:6,border:"none",background:"rgba(255,255,255,0.9)",cursor:"pointer",color:B.textTertiary,transition:Gt.fast,boxShadow:ze.sm};function Lat({chart:t,onOpen:e,onRemove:n}){const[r,i]=vt.useState(!1);return E.jsxs("div",{style:{background:B.surface,border:`1px solid ${r?B.orange:B.border}`,borderRadius:12,overflow:"hidden",transition:Gt.normal,boxShadow:r?ze.md:ze.sm,position:"relative"},onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:[E.jsx("div",{style:{height:250,pointerEvents:"none",padding:8},children:E.jsx(QS,{chartId:t.chartId,option:t.echartsOption,height:230,interactive:!1})}),E.jsxs("div",{style:{padding:"8px 12px 12px",borderTop:`1px solid ${B.borderLight}`},children:[E.jsx("div",{style:{fontSize:13,fontWeight:600,color:B.textPrimary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t.title}),t.description&&E.jsx("div",{style:{fontSize:11,color:B.textTertiary,marginTop:2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t.description})]}),r&&E.jsxs("div",{style:{position:"absolute",top:8,right:8,display:"flex",gap:4},children:[E.jsx("button",{title:"Открыть в новой вкладке",style:RR,onClick:e,onMouseEnter:a=>{a.currentTarget.style.color=B.teal},onMouseLeave:a=>{a.currentTarget.style.color=B.textTertiary},children:E.jsx(hat,{})}),E.jsx("button",{title:"Удалить с дашборда",style:RR,onClick:()=>{confirm("Удалить график с дашборда?")&&n()},onMouseEnter:a=>{a.currentTarget.style.color=B.error},onMouseLeave:a=>{a.currentTarget.style.color=B.textTertiary},children:E.jsx(dat,{})})]})]})}function Eat(){const{state:t,openInTab:e,removeFromDashboard:n}=os(),{dashboardCharts:r}=t;return r.length===0?E.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",color:B.textTertiary,gap:12},children:[E.jsx("div",{style:{fontSize:40,opacity:.3},children:"📊"}),E.jsx("p",{style:{fontSize:14,margin:0},children:"Дашборд пуст"}),E.jsx("p",{style:{fontSize:12,margin:0,maxWidth:280,textAlign:"center",lineHeight:1.5},children:"Добавляйте графики из вкладок с помощью кнопки «Добавить на дашборд»"})]}):E.jsxs("div",{className:"analitoly-dash-scroll",style:{flex:1,overflowY:"auto",padding:"16px 0 16px 0",direction:"rtl"},children:[E.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:16,direction:"ltr"},children:r.map(i=>E.jsx(Lat,{chart:i,onOpen:()=>e(i.chartId),onRemove:()=>n(i.chartId)},i.chartId))}),E.jsx("style",{children:`
208
+ .analitoly-dash-scroll {
209
+ scrollbar-width: thin;
210
+ scrollbar-color: ${B.border} transparent;
211
+ }
212
+ .analitoly-dash-scroll::-webkit-scrollbar {
213
+ width: 4px;
214
+ }
215
+ .analitoly-dash-scroll::-webkit-scrollbar-track {
216
+ background: transparent;
217
+ }
218
+ .analitoly-dash-scroll::-webkit-scrollbar-thumb {
219
+ background: ${B.border};
220
+ border-radius: 4px;
221
+ }
222
+ `})]})}function IR(t){return String(typeof t=="number"?Math.round(t*100)/100:t)}function Rat({selection:t,chartTitle:e,onExplain:n,onClear:r}){const i=`${IR(t.xRange[0])} – ${IR(t.xRange[1])}`,a=()=>{const o=`Проанализируй данные на графике «${e}» в диапазоне ${i}. Что здесь произошло?`;n(o)};return E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"6px 12px",background:B.surfaceHover,borderRadius:6,border:`1px solid ${B.border}`,fontSize:13},children:[E.jsxs("span",{style:{color:B.textSecondary,fontSize:12},children:["Выделено: ",E.jsx("strong",{style:{color:B.textPrimary},children:i})]}),E.jsx("button",{onClick:a,style:{marginLeft:"auto",padding:"4px 12px",borderRadius:5,border:"none",background:B.teal,color:B.surface,fontSize:12,fontWeight:500,cursor:"pointer",transition:Gt.normal},onMouseEnter:o=>{o.currentTarget.style.background=B.tealHover},onMouseLeave:o=>{o.currentTarget.style.background=B.teal},children:"Что здесь произошло?"}),E.jsx("button",{onClick:r,style:{padding:"4px 8px",borderRadius:5,border:`1px solid ${B.border}`,background:B.surface,color:B.textSecondary,fontSize:12,cursor:"pointer",transition:Gt.normal},onMouseEnter:o=>{o.currentTarget.style.borderColor=B.error,o.currentTarget.style.color=B.error},onMouseLeave:o=>{o.currentTarget.style.borderColor=B.border,o.currentTarget.style.color=B.textSecondary},children:"✕"})]})}const Iat=[{label:"15m",ms:15*6e4},{label:"1h",ms:60*6e4},{label:"6h",ms:360*6e4},{label:"24h",ms:1440*6e4},{label:"7d",ms:10080*6e4},{label:"30d",ms:720*60*6e4}];function OR(t){const e=n=>String(n).padStart(2,"0");return`${t.getFullYear()}-${e(t.getMonth()+1)}-${e(t.getDate())}T${e(t.getHours())}:${e(t.getMinutes())}`}function Oat({onApply:t,onReset:e}){const[n,r]=vt.useState(""),[i,a]=vt.useState(""),[o,l]=vt.useState(!1),s=p=>{const m=new Date,x=new Date(m.getTime()-p),_=OR(x),b=OR(m);r(_),a(b),t({from:_,to:b})},c=()=>{!n||!i||t({from:n,to:i})},h=()=>{r(""),a(""),e()},d={fontSize:12,padding:"3px 6px",borderRadius:4,border:`1px solid ${B.border}`,outline:"none",color:B.textPrimary,background:B.surface,fontFamily:"inherit",transition:Gt.fast},g={fontSize:12,padding:"4px 10px",borderRadius:4,border:`1px solid ${B.border}`,background:B.surface,color:B.textSecondary,cursor:"pointer",transition:Gt.fast,fontWeight:500};return E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,flexWrap:"wrap"},children:[Iat.map(p=>E.jsx("button",{style:g,onClick:()=>s(p.ms),onMouseEnter:m=>{m.currentTarget.style.borderColor=B.orange,m.currentTarget.style.color=B.orange},onMouseLeave:m=>{m.currentTarget.style.borderColor=B.border,m.currentTarget.style.color=B.textSecondary},children:p.label},p.label)),E.jsx("div",{style:{width:1,height:16,background:B.border,margin:"0 2px"}}),E.jsx("button",{style:{...g,color:o?B.teal:B.textSecondary,borderColor:o?B.teal:B.border},onClick:()=>l(!o),children:"Диапазон"}),o&&E.jsxs(E.Fragment,{children:[E.jsx("input",{type:"datetime-local",value:n,onChange:p=>r(p.target.value),style:d,onFocus:p=>{p.currentTarget.style.borderColor=B.orange},onBlur:p=>{p.currentTarget.style.borderColor=B.border}}),E.jsx("span",{style:{fontSize:11,color:B.textTertiary},children:"—"}),E.jsx("input",{type:"datetime-local",value:i,onChange:p=>a(p.target.value),style:d,onFocus:p=>{p.currentTarget.style.borderColor=B.orange},onBlur:p=>{p.currentTarget.style.borderColor=B.border}}),E.jsx("button",{onClick:c,disabled:!n||!i,style:{...g,background:n&&i?B.teal:B.border,color:B.surface,border:"none",opacity:n&&i?1:.5,cursor:n&&i?"pointer":"not-allowed"},children:"OK"})]}),(n||i)&&E.jsx("button",{style:{...g,color:B.error,fontSize:10},onClick:h,onMouseEnter:p=>{p.currentTarget.style.borderColor=B.error},onMouseLeave:p=>{p.currentTarget.style.borderColor=B.border},children:"Сбросить"})]})}function zat({chart:t,isOnDashboard:e,onSendMessage:n}){const{setBrushSelection:r,addToDashboard:i,state:a}=os(),{brushSelection:o}=a,[l,s]=vt.useState(null);return E.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",minHeight:0,paddingTop:12},children:[E.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center",marginBottom:8,flexShrink:0,flexWrap:"wrap"},children:[!e&&E.jsxs("button",{onClick:()=>i(t.chartId),style:{display:"flex",alignItems:"center",gap:6,fontSize:12,fontWeight:500,padding:"5px 12px",borderRadius:6,border:`1px solid ${B.teal}`,background:B.surface,color:B.teal,cursor:"pointer",transition:Gt.fast},onMouseEnter:c=>{c.currentTarget.style.background=B.teal,c.currentTarget.style.color="#fff"},onMouseLeave:c=>{c.currentTarget.style.background=B.surface,c.currentTarget.style.color=B.teal},children:[E.jsx(vat,{}),"Добавить на дашборд"]}),e&&E.jsx("span",{style:{fontSize:11,color:B.textTertiary,padding:"5px 0"},children:"На дашборде"}),"xAxis"in t.echartsOption&&E.jsxs(E.Fragment,{children:[E.jsx("div",{style:{width:1,height:16,background:B.border}}),E.jsx(Oat,{onApply:c=>s(c),onReset:()=>s(null)})]})]}),E.jsxs("div",{style:{marginBottom:8,flexShrink:0},children:[E.jsx("h3",{style:{fontSize:16,fontWeight:600,color:B.textPrimary,margin:0},children:t.title}),t.description&&E.jsx("p",{style:{fontSize:12,color:B.textSecondary,margin:"4px 0 0 0",lineHeight:1.4},children:t.description})]}),E.jsxs("div",{style:{flex:1,background:B.surface,borderRadius:8,border:`1px solid ${B.border}`,boxShadow:ze.sm,padding:12,minHeight:350,position:"relative"},children:[E.jsx(QS,{chartId:t.chartId,option:t.echartsOption,height:400,interactive:!0,timeRange:l,onBrushSelect:c=>r(c)}),o&&o.chartId===t.chartId&&E.jsx("div",{style:{position:"absolute",bottom:48,left:"50%",transform:"translateX(-50%)",zIndex:5,boxShadow:ze.lg,borderRadius:8},children:E.jsx(Rat,{selection:o,chartTitle:t.title,onExplain:c=>{n(c),r(null)},onClear:()=>r(null)})})]}),t.sourceQuery&&E.jsx("div",{style:{marginTop:8,padding:"6px 10px",background:B.surfaceHover,borderRadius:4,fontSize:11,color:B.textTertiary,fontFamily:'Monaco, "Courier New", monospace',overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flexShrink:0},children:t.sourceQuery})]})}function Bat({onSendMessage:t}){const{state:e,closeTab:n,getChart:r,isOnDashboard:i}=os(),{tabs:a,activeTabId:o}=e,l=a.find(d=>d.id===o)??a[0],s=l.type==="chart"?r(l.chartId):null,c=s?i(s.chartId):!1,h=(d,g)=>{(i(g)||confirm("Закрыть? График не сохранён на дашборде"))&&n(d)};return E.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[E.jsx(kat,{onCloseTab:h}),l.type==="dashboard"&&E.jsx(Eat,{}),l.type==="chart"&&s&&E.jsx(zat,{chart:s,isOnDashboard:c,onSendMessage:t}),l.type==="chart"&&!s&&E.jsx("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",color:B.textTertiary,fontSize:14},children:"График не найден"})]})}const Mf="analitoly_auth_method",pu="analitoly_api_key",ip="analitoly_current_session";function Nat(){const[t,e]=vt.useState(null),[n,r]=vt.useState(!1),i=vt.useCallback(async s=>{const c=await fetch("/api/agent/connect",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({apiKey:s})}),h=await c.text();if(!h)throw new Error("Пустой ответ от сервера");const d=JSON.parse(h);if(!c.ok)throw new Error(d.message||"Ошибка подключения");return localStorage.setItem(ip,d.sessionId),d.sessionId},[]),a=vt.useCallback(async s=>{try{const c=await fetch("/api/agent/sessions");if(c.ok){const h=await c.json();if(h.length>0){h.sort((g,p)=>new Date(p.createdAt).getTime()-new Date(g.createdAt).getTime());const d=h[0].sessionId;return localStorage.setItem(ip,d),d}}}catch{}return i(s)},[i]);vt.useEffect(()=>{(async()=>{try{const s=localStorage.getItem(Mf);if(!s)return;const c=localStorage.getItem(ip);if(c){try{const g=await fetch(`/api/agent/${c}/exists`),{exists:p}=await g.json();if(p){e(c);return}}catch{}localStorage.removeItem(ip)}const h=s==="apikey"?localStorage.getItem(pu)??void 0:void 0,d=await a(h);e(d)}catch{localStorage.removeItem(Mf),localStorage.removeItem(pu)}finally{r(!0)}})()},[a]);const o=vt.useCallback(async(s,c)=>{const h=await a(c);localStorage.setItem(Mf,s),s==="apikey"&&c?localStorage.setItem(pu,c):localStorage.removeItem(pu),e(h)},[a]),l=vt.useCallback(()=>{localStorage.removeItem(Mf),localStorage.removeItem(pu),e(null)},[]);return n?t?E.jsx(rat,{children:E.jsx(aat,{initialSessionId:t,onConnect:()=>{const c=localStorage.getItem(Mf)==="apikey"?localStorage.getItem(pu)??void 0:void 0;return i(c)},onLogout:l,children:E.jsx(Pat,{})})}):E.jsx(PP,{onConnect:o}):E.jsx("div",{style:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"system-ui, sans-serif",color:"#999"},children:"Загрузка..."})}function Pat(){const[t,e]=vt.useState(!1),[n,r]=vt.useState(!1),[i,a]=vt.useState(!1),o=vt.useRef(null),{activeSessionId:l,logout:s}=gw(),{setActiveTab:c,reloadDashboard:h}=os(),d=g=>{var p;(p=o.current)==null||p.sendProgrammatic(g)};return E.jsxs("div",{style:{position:"relative"},children:[E.jsx(cat,{sidebarCollapsed:i,onToggleSidebar:()=>a(!i),sidebar:E.jsx(pat,{collapsed:i,showUsage:t,sessionId:l,onShowUsage:()=>e(!t),onShowConnections:()=>r(!0),onShowDashboard:()=>c("dashboard"),onImport:h,onDisconnect:s}),chat:E.jsx(sat,{ref:o}),children:E.jsx("div",{style:{flex:1,minHeight:0},children:E.jsx(Bat,{onSendMessage:d})})}),n&&E.jsx(Cat,{onClose:()=>r(!1)})]})}zP.createRoot(document.getElementById("root")).render(E.jsx(vt.StrictMode,{children:E.jsx(Nat,{})}));