create-ssnode-cli 0.1.0 → 0.2.2

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 (107) hide show
  1. package/README.md +1 -2
  2. package/index.js +10 -4
  3. package/package.json +2 -2
  4. package/secrets.js +10 -7
  5. package/templates/backend/Dockerfile +4 -0
  6. package/templates/backend/config/config.develop.yaml +10 -0
  7. package/templates/backend/config/config.prod.yaml +10 -0
  8. package/templates/backend/dist/config/configuration.js +1 -1
  9. package/templates/backend/dist/config/configuration.js.map +1 -1
  10. package/templates/backend/dist/modules/auth/auth.service.js +1 -1
  11. package/templates/backend/dist/modules/auth/auth.service.js.map +1 -1
  12. package/templates/backend/dist/modules/page-data/page-data.controller.js +1 -1
  13. package/templates/backend/dist/modules/page-data/page-data.controller.js.map +1 -1
  14. package/templates/backend/dist/modules/screen-config/screen-config.controller.js +1 -1
  15. package/templates/backend/dist/modules/screen-config/screen-config.controller.js.map +1 -1
  16. package/templates/backend/dist/tsconfig.build.tsbuildinfo +1 -1
  17. package/templates/backend/node_modules/.bin/js-yaml +2 -2
  18. package/templates/backend/node_modules/.bin/typeorm +2 -2
  19. package/templates/backend/node_modules/.bin/typeorm-ts-node-commonjs +2 -2
  20. package/templates/backend/node_modules/.bin/typeorm-ts-node-esm +2 -2
  21. package/templates/backend/ops/docker/.env.example +4 -0
  22. package/templates/backend/ops/docker/config.sh +2 -0
  23. package/templates/backend/ops/docker/install.sh +35 -0
  24. package/templates/backend/ops/install.sh +17 -3
  25. package/templates/backend/ops/pm2/config.sh +2 -0
  26. package/templates/backend/ops/systemd/config.sh +2 -0
  27. package/templates/backend/package.json +13 -6
  28. package/templates/backend/scripts/build.cjs +67 -1
  29. package/templates/backend/src/config/config.interface.ts +9 -0
  30. package/templates/backend/src/config/configuration.ts +11 -0
  31. package/templates/backend/src/modules/auth/auth.service.ts +57 -12
  32. package/templates/backend/src/modules/page-data/page-data.controller.ts +33 -10
  33. package/templates/backend/src/modules/screen-config/screen-config.controller.ts +33 -5
  34. package/templates/root/AGENTS.md +1 -1
  35. package/templates/root/README.md +9 -6
  36. package/templates/root/package.json +9 -1
  37. package/templates/web/dist/assets/{404-f80ef771.js → 404-e6edada0.js} +1 -1
  38. package/templates/web/dist/assets/{404-legacy-3002ee98.js → 404-legacy-f6ca5b91.js} +1 -1
  39. package/templates/web/dist/assets/AuthLayout-bcf98efb.js +1 -0
  40. package/templates/web/dist/assets/AuthLayout-legacy-6e7a8ae1.js +1 -0
  41. package/templates/web/dist/assets/Background-90a49ee7.css +1 -0
  42. package/templates/web/dist/assets/Background-eb77ef54.js +1 -0
  43. package/templates/web/dist/assets/Background-legacy-50457007.js +1 -0
  44. package/templates/web/dist/assets/{Screen-2126fd8d.js → Screen-318c3fc2.js} +1 -1
  45. package/templates/web/dist/assets/{Screen-legacy-e1974f1b.js → Screen-legacy-af123b0f.js} +1 -1
  46. package/templates/web/dist/assets/{ScreenChartOption-cc9d0192.js → ScreenChartOption-953b9157.js} +1 -1
  47. package/templates/web/dist/assets/{ScreenChartOption-legacy-b1b2d49d.js → ScreenChartOption-legacy-2e8fcfd8.js} +1 -1
  48. package/templates/web/dist/assets/api-beff4a3e.js +1 -0
  49. package/templates/web/dist/assets/api-legacy-9fe41d4b.js +1 -0
  50. package/templates/web/dist/assets/{base-8cbac341.js → base-a14309c8.js} +1 -1
  51. package/templates/web/dist/assets/{base-legacy-ee9fb316.js → base-legacy-2bc6e427.js} +1 -1
  52. package/templates/web/dist/assets/{child-10cea360.js → child-2a48ca65.js} +1 -1
  53. package/templates/web/dist/assets/{child-legacy-5af47aba.js → child-legacy-7665b5f8.js} +1 -1
  54. package/templates/web/dist/assets/{component-ae0df581.js → component-89b5253e.js} +1 -1
  55. package/templates/web/dist/assets/{component-legacy-7824b5dc.js → component-legacy-8c5a28ef.js} +1 -1
  56. package/templates/web/dist/assets/{demo-1b5e36be.js → demo-d7272cf4.js} +1 -1
  57. package/templates/web/dist/assets/{demo-legacy-e12d2ac9.js → demo-legacy-f7bbfe55.js} +1 -1
  58. package/templates/web/dist/assets/echarts-vendor-50090982.js +9 -0
  59. package/templates/web/dist/assets/echarts-vendor-legacy-50b58722.js +10 -0
  60. package/templates/web/dist/assets/{grandson-d5883b90.js → grandson-05f8bb58.js} +1 -1
  61. package/templates/web/dist/assets/{grandson-legacy-10cd2476.js → grandson-legacy-3e10990b.js} +1 -1
  62. package/templates/web/dist/assets/{index-9fbd51da.js → index-466a1ec1.js} +1 -1
  63. package/templates/web/dist/assets/{index-5dbae75a.js → index-5b5a8146.js} +1 -1
  64. package/templates/web/dist/assets/{index-6faaa6d8.js → index-7277cbfb.js} +1 -1
  65. package/templates/web/dist/assets/{index-8f6fba9f.js → index-777ef781.js} +1 -1
  66. package/templates/web/dist/assets/{index-2e42b180.js → index-86214b19.js} +1 -1
  67. package/templates/web/dist/assets/{index-463d9205.js → index-9cd5622a.js} +1 -1
  68. package/templates/web/dist/assets/{index-16f6b85c.js → index-a79e448b.js} +1 -1
  69. package/templates/web/dist/assets/{index-3a9a0a97.js → index-b60badf7.js} +1 -1
  70. package/templates/web/dist/assets/{index-fbf4ee3f.js → index-bd4ed808.js} +1 -1
  71. package/templates/web/dist/assets/{index-687d6cfe.js → index-cba19800.js} +1 -1
  72. package/templates/web/dist/assets/{index-5dbcad00.js → index-d70eb540.js} +1 -1
  73. package/templates/web/dist/assets/{index-25ea283a.js → index-e6071630.js} +1 -1
  74. package/templates/web/dist/assets/{index-legacy-ced5a7f1.js → index-legacy-028ed5d5.js} +1 -1
  75. package/templates/web/dist/assets/{index-legacy-8c7d1ee7.js → index-legacy-06483318.js} +1 -1
  76. package/templates/web/dist/assets/{index-legacy-ba034322.js → index-legacy-0da8de82.js} +1 -1
  77. package/templates/web/dist/assets/{index-legacy-3d221bb6.js → index-legacy-3965dcaf.js} +1 -1
  78. package/templates/web/dist/assets/{index-legacy-f3e49a4e.js → index-legacy-4a13dddc.js} +1 -1
  79. package/templates/web/dist/assets/{index-legacy-e9af81d8.js → index-legacy-783129a7.js} +1 -1
  80. package/templates/web/dist/assets/{index-legacy-07d00151.js → index-legacy-8a2cfb9d.js} +1 -1
  81. package/templates/web/dist/assets/{index-legacy-dd62c9e7.js → index-legacy-993ef005.js} +1 -1
  82. package/templates/web/dist/assets/{index-legacy-38c170dc.js → index-legacy-b075295d.js} +1 -1
  83. package/templates/web/dist/assets/{index-legacy-95da3338.js → index-legacy-b3bd40c1.js} +1 -1
  84. package/templates/web/dist/assets/{index-legacy-9be704da.js → index-legacy-d510e318.js} +1 -1
  85. package/templates/web/dist/assets/{index-legacy-0f01787c.js → index-legacy-feb54578.js} +1 -1
  86. package/templates/web/dist/assets/{parent-e7114c1b.js → parent-bba709aa.js} +1 -1
  87. package/templates/web/dist/assets/{parent-legacy-9e493d04.js → parent-legacy-48111978.js} +1 -1
  88. package/templates/web/dist/assets/vendor-affac96c.js +124 -0
  89. package/templates/web/dist/assets/vendor-legacy-55fa76eb.js +122 -0
  90. package/templates/web/dist/index.html +3 -3
  91. package/templates/web/package.json +7 -7
  92. package/templates/web/src/js/xlsl.ts +110 -59
  93. package/templates/web/src/layouts/AuthLayout.tsx +16 -11
  94. package/templates/web/src/layouts/Background.module.less +5 -3
  95. package/templates/web/src/services/api/admin/user.ts +9 -2
  96. package/templates/web/dist/assets/AuthLayout-f07f2dff.js +0 -1
  97. package/templates/web/dist/assets/AuthLayout-legacy-635887dd.js +0 -1
  98. package/templates/web/dist/assets/Background-63ce83a2.js +0 -1
  99. package/templates/web/dist/assets/Background-b264d337.css +0 -1
  100. package/templates/web/dist/assets/Background-legacy-a34b521f.js +0 -1
  101. package/templates/web/dist/assets/api-21ca288f.js +0 -1
  102. package/templates/web/dist/assets/api-legacy-b464070b.js +0 -1
  103. package/templates/web/dist/assets/echarts-vendor-fdb2c14f.js +0 -9
  104. package/templates/web/dist/assets/echarts-vendor-legacy-e99e5121.js +0 -10
  105. package/templates/web/dist/assets/vendor-e7ea3a11.js +0 -96
  106. package/templates/web/dist/assets/vendor-legacy-a62a28c9.js +0 -87
  107. package/templates/web/node_modules/.bin/xlsx +0 -17
@@ -0,0 +1,9 @@
1
+ import{_ as N}from"./vendor-affac96c.js";var Gb=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Hb=function(){function e(){this.browser=new Gb,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 e}(),Fr=new Hb;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Fr.wxa=!0,Fr.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Fr.worker=!0:!Fr.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Fr.node=!0,Fr.svgSupported=!0):Ub(navigator.userAgent,Fr);function Ub(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}}const ut=Fr;var pv=12,Wb="sans-serif",Kr=pv+"px "+Wb,Yb=20,$b=100,Xb="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Zb(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),i=(e.charCodeAt(r)-Yb)/$b;t[n]=i}return t}var qb=Zb(Xb),ce={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var i=ce.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||Kr),e.measureText(r);r=r||"",n=n||Kr;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||pv,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=qb[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n},getTime:function(){return Date.now?Date.now():+new Date}},Sy=_r(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),by=_r(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),ho=Object.prototype.toString,Ml=Array.prototype,Kb=Ml.forEach,Qb=Ml.filter,gv=Ml.slice,Jb=Ml.map,Kc=(function(){}).constructor,To=Kc?Kc.prototype:null,mv="__proto__",su=2311,jb=Math.pow(2,53)-1;function wy(){return su>=jb&&(su=0),su++}function yv(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function it(e){if(e==null||typeof e!="object")return e;var t=e,r=ho.call(e);if(r==="[object Array]"){if(!La(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=it(e[n])}}else if(by[r]){if(!La(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}}}else if(!Sy[r]&&!La(e)&&!$a(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==mv&&(t[o]=it(e[o]))}return t}function vt(e,t,r){if(!q(t)||!q(e))return r?it(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==mv){var i=e[n],a=t[n];q(a)&&q(i)&&!z(a)&&!z(i)&&!$a(a)&&!$a(i)&&!Qc(a)&&!Qc(i)&&!La(a)&&!La(i)?vt(i,a,r):(r||!(n in e))&&(e[n]=it(t[n]))}return e}function O(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==mv&&(e[r]=t[r]);return e}function tw(e,t,r){e=e||{};for(var n=0;n<r.length;n++){var i=r[n];e[i]=t[i]}return e}function mt(e,t,r){for(var n=pt(t),i=0,a=n.length;i<a;i++){var o=n[i];(r?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}function ot(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function ew(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(e.prototype[i]=r[i]);e.prototype.constructor=e,e.superClass=t}function Ge(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else mt(e,t,r)}function ne(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function M(e,t,r){if(e&&t)if(e.forEach&&e.forEach===Kb)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function X(e,t,r){if(!e)return[];if(!t)return _v(e);if(e.map&&e.map===Jb)return e.map(t,r);for(var n=[],i=0,a=e.length;i<a;i++)n.push(t.call(r,e[i],i,e));return n}function _r(e,t,r,n){if(e&&t){for(var i=0,a=e.length;i<a;i++)r=t.call(n,r,e[i],i,e);return r}}function Ot(e,t,r){if(!e)return[];if(!t)return _v(e);if(e.filter&&e.filter===Qb)return e.filter(t,r);for(var n=[],i=0,a=e.length;i<a;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function rw(e,t,r){if(e&&t){for(var n=0,i=e.length;n<i;n++)if(t.call(r,e[n],n,e))return e[n]}}function pt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function nw(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(gv.call(arguments)))}}var _t=To&&j(To.bind)?To.call.bind(To.bind):nw;function xt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(gv.call(arguments)))}}function z(e){return Array.isArray?Array.isArray(e):ho.call(e)==="[object Array]"}function j(e){return typeof e=="function"}function Z(e){return typeof e=="string"}function Wf(e){return ho.call(e)==="[object String]"}function St(e){return typeof e=="number"}function q(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function Qc(e){return!!Sy[ho.call(e)]}function ue(e){return!!by[ho.call(e)]}function $a(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function Ll(e){return e.colorStops!=null}function iw(e){return e.image!=null}function Xa(e){return e!==e}function Za(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function Y(e,t){return e!=null?e:t}function Bn(e,t,r){return e!=null?e:t!=null?t:r}function _v(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return gv.apply(e,t)}function Sv(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function Sr(e,t){if(!e)throw new Error(t)}function tr(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Ty="__ec_primitive__";function Gs(e){e[Ty]=!0}function La(e){return e[Ty]}var aw=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return pt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),xy=typeof Map=="function";function ow(){return xy?new Map:new aw}var sw=function(){function e(t){var r=z(t);this.data=ow();var n=this;t instanceof e?t.each(i):t&&M(t,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,i){t.call(r,n,i)})},e.prototype.keys=function(){var t=this.data.keys();return xy?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function Q(e){return new sw(e)}function lw(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var i=e.length,n=0;n<t.length;n++)r[n+i]=t[n];return r}function Il(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&O(r,t),r}function Cy(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function J(e,t){return e.hasOwnProperty(t)}function Kt(){}var uw=180/Math.PI;function $i(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function fw(e){return[e[0],e[1]]}function lu(e,t,r){return e[0]=t,e[1]=r,e}function Jc(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function Dy(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function hw(e){return Math.sqrt(vw(e))}function vw(e){return e[0]*e[0]+e[1]*e[1]}function uu(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function bv(e,t){var r=hw(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Yf(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var $f=Yf;function cw(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Li=cw;function fu(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function Ie(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e}function Ti(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function xi(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var ai=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),dw=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new ai(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,t),this.handler.dispatchToElement(new ai(r,t),"drag",t.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new ai(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new ai(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new ai(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new ai(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}();const pw=dw;var gw=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[t].length-1,f=a[t][u];return f&&f.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==r&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e}();const sr=gw;var mw=Math.log(2);function Xf(e,t,r,n,i,a){var o=n+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/mw);return e[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var h=0,v=0,c=0;v<s;v++){var d=1<<v;d&i||(h+=(c%2?-1:1)*e[r][v]*Xf(e,t-1,f,u,i|d,a),c++)}return a[o]=h,h}function jc(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},i=Xf(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Xf(r,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(l,u,f){var h=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/h,l[1]=(u*a[3]+f*a[4]+a[5])/h}}}var Hs="___zrEVENTSAVED",hu=[];function yw(e,t,r,n,i){return Zf(hu,t,n,i,!0)&&Zf(e,r,hu[0],hu[1])}function _w(e,t){e&&r(e),t&&r(t);function r(n){var i=n[Hs];i&&(i.clearMarkers&&i.clearMarkers(),delete n[Hs])}}function Zf(e,t,r,n,i){if(t.getBoundingClientRect&&ut.domSupported&&!Ay(t)){var a=t[Hs]||(t[Hs]={}),o=Sw(t,a),s=bw(o,a,i);if(s)return s(e,r,n),!0}return!1}function Sw(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return t.clearMarkers=function(){M(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function bw(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=e[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&a&&v===a[h]&&c===a[h+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?jc(s,o):jc(o,s))}function Ay(e){return e.nodeName.toUpperCase()==="CANVAS"}var ww=/([&<>"'])/g,Tw={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ae(e){return e==null?"":(e+"").replace(ww,function(t,r){return Tw[r]})}var xw=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,vu=[],Cw=ut.browser.firefox&&+ut.browser.version.split(".")[0]<39;function qf(e,t,r,n){return r=r||{},n?td(e,t,r):Cw&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):td(e,t,r),r}function td(e,t,r){if(ut.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(Ay(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Zf(vu,e,n,i)){r.zrX=vu[0],r.zrY=vu[1];return}}r.zrX=r.zrY=0}function wv(e){return e||window.event}function _e(e,t,r){if(t=wv(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&qf(e,o,t,r)}else{qf(e,t,t,r);var a=Dw(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&xw.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Dw(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function Aw(e,t,r,n){e.addEventListener(t,r,n)}function Mw(e,t,r,n){e.removeEventListener(t,r,n)}var My=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},Lw=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o<s;o++){var l=i[o],u=qf(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in cu)if(cu.hasOwnProperty(r)){var n=cu[r](this._track,t);if(n)return n}},e}();function ed(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function Iw(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var cu={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,i=(e[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=ed(n)/ed(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Iw(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function rr(){return[1,0,0,1,0,0]}function vo(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Tv(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Ia(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function Kf(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function xv(e,t,r,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(r),h=Math.cos(r);return e[0]=i*h+s*f,e[1]=-i*f+s*h,e[2]=a*h+l*f,e[3]=-a*f+h*l,e[4]=h*(o-n[0])+f*(u-n[1])+n[0],e[5]=h*(u-n[1])-f*(o-n[0])+n[1],e}function Pw(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function co(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}var Rw=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}();const rt=Rw;var Pn=Math.min,Ci=Math.max,Qf=Math.abs,rd=["x","y"],Ew=["width","height"],an=new rt,on=new rt,sn=new rt,ln=new rt,ve=Ly(),Sa=ve.minTv,Jf=ve.maxTv,Pa=[0,0],Ar=function(){function e(t,r,n,i){du(this,t,r,n,i)}return e.set=function(t,r,n,i,a){return i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),t.x=r,t.y=n,t.width=i,t.height=a,t},e.prototype.union=function(t){var r=Pn(t.x,this.x),n=Pn(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ci(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ci(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){return kw(rr(),this,t)},e.prototype.intersect=function(t,r,n){return e.intersect(this,t,r,n)},e.intersect=function(t,r,n,i){n&&rt.set(n,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!r)return!1;t instanceof e||(t=du(Ow,t.x,t.y,t.width,t.height)),r instanceof e||(r=du(Bw,r.x,r.y,r.width,r.height));var s=!!n;ve.reset(i,s);var l=ve.touchThreshold,u=t.x+l,f=t.x+t.width-l,h=t.y+l,v=t.y+t.height-l,c=r.x+l,d=r.x+r.width-l,p=r.y+l,g=r.y+r.height-l;if(u>f||h>v||c>d||p>g)return!1;var m=!(f<c||d<u||v<p||g<h);return(s||a)&&(Pa[0]=1/0,Pa[1]=0,id(u,f,c,d,0,s,a,o),id(h,v,p,g,1,s,a,o),s&&rt.copy(n,m?ve.useDir?ve.dirMinTv:Sa:Jf)),m},e.contain=function(t,r,n){return r>=t.x&&r<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},e.prototype.contain=function(t,r){return e.contain(this,t,r)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){nd(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(t,r){return t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height,t},e.applyTransform=function(t,r,n){if(!n){t!==r&&nd(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}an.x=sn.x=r.x,an.y=ln.y=r.y,on.x=ln.x=r.x+r.width,on.y=sn.y=r.y+r.height,an.transform(n),ln.transform(n),on.transform(n),sn.transform(n),t.x=Pn(an.x,on.x,sn.x,ln.x),t.y=Pn(an.y,on.y,sn.y,ln.y);var l=Ci(an.x,on.x,sn.x,ln.x),u=Ci(an.y,on.y,sn.y,ln.y);t.width=l-t.x,t.height=u-t.y},e.calculateTransform=function(t,r,n){var i=n.width/r.width,a=n.height/r.height;return t=vo(t||[]),Kf(t,t,lu(pu,-r.x,-r.y)),Pw(t,t,lu(pu,i,a)),Kf(t,t,lu(pu,n.x,n.y)),t},e}();Ar.create;var du=Ar.set,nd=Ar.copy,kw=Ar.calculateTransform;Ar.applyTransform;Ar.contain;var Ow=new Ar(0,0,0,0),Bw=new Ar(0,0,0,0),pu=[];function id(e,t,r,n,i,a,o,s){var l=Qf(t-r),u=Qf(n-e),f=Pn(l,u),h=rd[i],v=rd[1-i],c=Ew[i];t<r||n<e?l<u?(a&&(Jf[h]=-l),s&&(o[h]=t,o[c]=0)):(a&&(Jf[h]=u),s&&(o[h]=e,o[c]=0)):(o&&(o[h]=Ci(e,r),o[c]=Pn(t,n)-o[h]),a&&(f<Pa[0]||ve.useDir)&&(Pa[0]=Pn(f,Pa[0]),(l<u||!ve.bidirectional)&&(Sa[h]=l,Sa[v]=0,ve.useDir&&ve.calcDirMTV()),(l>=u||!ve.bidirectional)&&(Sa[h]=-u,Sa[v]=0,ve.useDir&&ve.calcDirMTV())))}function Ly(){var e=0,t=new rt,r=new rt,n={minTv:new rt,maxTv:new rt,useDir:!1,dirMinTv:new rt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=Ci(0,a.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,a&&a.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),e=a.direction,n.bidirectional=a.bidirectional==null||!!a.bidirectional,n.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(e),u=Math.cos(e),f=l*a.y+u*a.x;if(i(f)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,i(r.x)&&i(r.y)){o.set(0,0);return}(n.bidirectional||t.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function i(a){return Qf(a)<1e-10}return n}const nt=Ar;var Iy="silent";function Nw(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:Fw}}function Fw(){My(this.event)}var zw=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(sr),ea=function(){function e(t,r){this.x=t,this.y=r}return e}(),Vw=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],gu=new nt(0,0,0,0),Py=function(e){N(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new ea(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new zw,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new pw(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(M(Vw,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=Ry(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new ea(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new ea(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=Nw(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new ea(r,n);if(ad(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new nt(r-u,n-u,l,l),h=a.length-1;h>=0;h--){var v=a[h];v!==i&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(gu.copy(v.getBoundingRect()),v.transform&&gu.applyTransform(v.transform),gu.intersect(f)&&s.push(v))}if(s.length)for(var c=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=c)for(var m=0;m<p;m+=d){var y=r+g*Math.cos(m),_=n+g*Math.sin(m);if(ad(s,o,y,_,i),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new Lw);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new ea;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(sr);M(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){Py.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=Ry(this,r,n),a,o;if((e!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||$f(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Gw(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return i?Iy:!0}return!1}function ad(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=Gw(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==Iy)){t.target=o;break}}}function Ry(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const Hw=Py;var Ey=32,ra=7;function Uw(e){for(var t=0;e>=Ey;)t|=e&1,e>>=1;return e+t}function od(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i<r&&n(e[i],e[i-1])<0;)i++;Ww(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function Ww(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function sd(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var a=e[n],o=t,s=n,l;o<s;)l=o+s>>>1,i(a,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=a}}function mu(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l<s&&a(e,t[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(e,t[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(e,t[r+f])>0?o=f+1:l=f}return l}function yu(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;l<s&&a(e,t[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(e,t[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(e,t[r+f])<0?l=f:o=f+1}return l}function Yw(e,t){var r=ra,n,i,a=0,o=[];n=[],i=[];function s(c,d){n[a]=c,i[a]=d,a+=1}function l(){for(;a>1;){var c=a-2;if(c>=1&&i[c-1]<=i[c]+i[c+1]||c>=2&&i[c-2]<=i[c]+i[c-1])i[c-1]<i[c+1]&&c--;else if(i[c]>i[c+1])break;f(c)}}function u(){for(;a>1;){var c=a-2;c>0&&i[c-1]<i[c+1]&&c--,f(c)}}function f(c){var d=n[c],p=i[c],g=n[c+1],m=i[c+1];i[c]=p+m,c===a-3&&(n[c+1]=n[c+2],i[c+1]=i[c+2]),a--;var y=yu(e[g],e,d,p,0,t);d+=y,p-=y,p!==0&&(m=mu(e[d+p-1],e,g,m,m-1,t),m!==0&&(p<=m?h(d,p,g,m):v(d,p,g,m)))}function h(c,d,p,g){var m=0;for(m=0;m<d;m++)o[m]=e[c+m];var y=0,_=p,S=c;if(e[S++]=e[_++],--g===0){for(m=0;m<d;m++)e[S+m]=o[y+m];return}if(d===1){for(m=0;m<g;m++)e[S+m]=e[_+m];e[S+g]=o[y];return}for(var b=r,w,T,C;;){w=0,T=0,C=!1;do if(t(e[_],o[y])<0){if(e[S++]=e[_++],T++,w=0,--g===0){C=!0;break}}else if(e[S++]=o[y++],w++,T=0,--d===1){C=!0;break}while((w|T)<b);if(C)break;do{if(w=yu(e[_],o,y,d,0,t),w!==0){for(m=0;m<w;m++)e[S+m]=o[y+m];if(S+=w,y+=w,d-=w,d<=1){C=!0;break}}if(e[S++]=e[_++],--g===0){C=!0;break}if(T=mu(o[y],e,_,g,0,t),T!==0){for(m=0;m<T;m++)e[S+m]=e[_+m];if(S+=T,_+=T,g-=T,g===0){C=!0;break}}if(e[S++]=o[y++],--d===1){C=!0;break}b--}while(w>=ra||T>=ra);if(C)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),d===1){for(m=0;m<g;m++)e[S+m]=e[_+m];e[S+g]=o[y]}else{if(d===0)throw new Error;for(m=0;m<d;m++)e[S+m]=o[y+m]}}function v(c,d,p,g){var m=0;for(m=0;m<g;m++)o[m]=e[p+m];var y=c+d-1,_=g-1,S=p+g-1,b=0,w=0;if(e[S--]=e[y--],--d===0){for(b=S-(g-1),m=0;m<g;m++)e[b+m]=o[m];return}if(g===1){for(S-=d,y-=d,w=S+1,b=y+1,m=d-1;m>=0;m--)e[w+m]=e[b+m];e[S]=o[_];return}for(var T=r;;){var C=0,x=0,A=!1;do if(t(o[_],e[y])<0){if(e[S--]=e[y--],C++,x=0,--d===0){A=!0;break}}else if(e[S--]=o[_--],x++,C=0,--g===1){A=!0;break}while((C|x)<T);if(A)break;do{if(C=d-yu(o[_],e,c,d,d-1,t),C!==0){for(S-=C,y-=C,d-=C,w=S+1,b=y+1,m=C-1;m>=0;m--)e[w+m]=e[b+m];if(d===0){A=!0;break}}if(e[S--]=o[_--],--g===1){A=!0;break}if(x=g-mu(e[y],o,0,g,g-1,t),x!==0){for(S-=x,_-=x,g-=x,w=S+1,b=_+1,m=0;m<x;m++)e[w+m]=o[b+m];if(g<=1){A=!0;break}}if(e[S--]=e[y--],--d===0){A=!0;break}T--}while(C>=ra||x>=ra);if(A)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),g===1){for(S-=d,y-=d,w=S+1,b=y+1,m=d-1;m>=0;m--)e[w+m]=e[b+m];e[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),m=0;m<g;m++)e[b+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Ts(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var a=0;if(i<Ey){a=od(e,r,n,t),sd(e,r,n,r+a,t);return}var o=Yw(e,t),s=Uw(i);do{if(a=od(e,r,n,t),a<s){var l=i;l>s&&(l=s),sd(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var se=1,ba=2,bi=4,ld=!1;function _u(){ld||(ld=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function ud(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var $w=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ud}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,t);n.length=this._displayListLen,Ts(n,ud)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath(),a=r&&r.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(a||i)){if(s||(s=t.__clipPaths=[]),a)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=i,f=t;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var h=t.childrenRef(),v=0;v<h.length;v++){var c=h[v];t.__dirty&&(c.__dirty|=se),this._updateAndAddDisplayable(c,s,n)}t.__dirty=0}else{var d=t;isNaN(d.z)&&(_u(),d.z=0),isNaN(d.z2)&&(_u(),d.z2=0),isNaN(d.zlevel)&&(_u(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,s,n);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,n);var m=t.getTextContent();m&&this._updateAndAddDisplayable(m,s,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var i=ot(this._roots,t);i>=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const Xw=$w;var ky;ky=ut.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const jf=ky;var xs={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-xs.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?xs.bounceIn(e*2)*.5:xs.bounceOut(e*2-1)*.5+.5}};const Oy=xs;var xo=Math.pow,$r=Math.sqrt,Us=1e-8,By=1e-4,fd=$r(3),Co=1/3,Je=$i(),Te=$i(),Ii=$i();function Hr(e){return e>-Us&&e<Us}function Ny(e){return e>Us||e<-Us}function kt(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function hd(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function Ws(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(Hr(f)&&Hr(h))if(Hr(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[c++]=d)}else{var p=h*h-4*f*v;if(Hr(p)){var g=h/f,d=-s/o+g,m=-g/2;d>=0&&d<=1&&(a[c++]=d),m>=0&&m<=1&&(a[c++]=m)}else if(p>0){var y=$r(p),_=f*s+1.5*o*(-h+y),S=f*s+1.5*o*(-h-y);_<0?_=-xo(-_,Co):_=xo(_,Co),S<0?S=-xo(-S,Co):S=xo(S,Co);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[c++]=d)}else{var b=(2*f*s-3*o*h)/(2*$r(f*f*f)),w=Math.acos(b)/3,T=$r(f),C=Math.cos(w),d=(-s-2*T*C)/(3*o),m=(-s+T*(C+fd*Math.sin(w)))/(3*o),x=(-s+T*(C-fd*Math.sin(w)))/(3*o);d>=0&&d<=1&&(a[c++]=d),m>=0&&m<=1&&(a[c++]=m),x>=0&&x<=1&&(a[c++]=x)}}return c}function Fy(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(Hr(o)){if(Ny(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Hr(f))i[0]=-a/(2*o);else if(f>0){var h=$r(f),u=(-a+h)/(2*o),v=(-a-h)/(2*o);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function Ys(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,f=(l-s)*i+s,h=(f-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=f,a[6]=l,a[7]=n}function Zw(e,t,r,n,i,a,o,s,l,u,f){var h,v=.005,c=1/0,d,p,g,m;Je[0]=l,Je[1]=u;for(var y=0;y<1;y+=.05)Te[0]=kt(e,r,i,o,y),Te[1]=kt(t,n,a,s,y),g=Li(Je,Te),g<c&&(h=y,c=g);c=1/0;for(var _=0;_<32&&!(v<By);_++)d=h-v,p=h+v,Te[0]=kt(e,r,i,o,d),Te[1]=kt(t,n,a,s,d),g=Li(Te,Je),d>=0&&g<c?(h=d,c=g):(Ii[0]=kt(e,r,i,o,p),Ii[1]=kt(t,n,a,s,p),m=Li(Ii,Je),p<=1&&m<c?(h=p,c=m):v*=.5);return f&&(f[0]=kt(e,r,i,o,h),f[1]=kt(t,n,a,s,h)),$r(c)}function qw(e,t,r,n,i,a,o,s,l){for(var u=e,f=t,h=0,v=1/l,c=1;c<=l;c++){var d=c*v,p=kt(e,r,i,o,d),g=kt(t,n,a,s,d),m=p-u,y=g-f;h+=Math.sqrt(m*m+y*y),u=p,f=g}return h}function Zt(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function vd(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function Kw(e,t,r,n,i){var a=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(Hr(a)){if(Ny(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Hr(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var h=$r(f),u=(-o+h)/(2*a),v=(-o-h)/(2*a);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function zy(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function $s(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function Qw(e,t,r,n,i,a,o,s,l){var u,f=.005,h=1/0;Je[0]=o,Je[1]=s;for(var v=0;v<1;v+=.05){Te[0]=Zt(e,r,i,v),Te[1]=Zt(t,n,a,v);var c=Li(Je,Te);c<h&&(u=v,h=c)}h=1/0;for(var d=0;d<32&&!(f<By);d++){var p=u-f,g=u+f;Te[0]=Zt(e,r,i,p),Te[1]=Zt(t,n,a,p);var c=Li(Te,Je);if(p>=0&&c<h)u=p,h=c;else{Ii[0]=Zt(e,r,i,g),Ii[1]=Zt(t,n,a,g);var m=Li(Ii,Je);g<=1&&m<h?(u=g,h=m):f*=.5}}return l&&(l[0]=Zt(e,r,i,u),l[1]=Zt(t,n,a,u)),$r(h)}function Jw(e,t,r,n,i,a,o){for(var s=e,l=t,u=0,f=1/o,h=1;h<=o;h++){var v=h*f,c=Zt(e,r,i,v),d=Zt(t,n,a,v),p=c-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=c,l=d}return u}var jw=/cubic-bezier\(([0-9,\.e ]+)\)/;function Vy(e){var t=e&&jw.exec(e);if(t){var r=t[1].split(","),n=+tr(r[0]),i=+tr(r[1]),a=+tr(r[2]),o=+tr(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Ws(0,n,a,1,l,s)&&kt(0,i,o,1,s[0])}}}var tT=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Kt,this.ondestroy=t.ondestroy||Kt,this.onrestart=t.onrestart||Kt,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=j(t)?t:Oy[t]||Vy(t)},e}();const eT=tT;var Gy=function(){function e(t){this.value=t}return e}(),rT=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new Gy(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),nT=function(){function e(t){this._list=new rT,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new Gy(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const Ni=nT;var cd={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 Xr(e){return e=Math.round(e),e<0?0:e>255?255:e}function iT(e){return e=Math.round(e),e<0?0:e>360?360:e}function th(e){return e<0?0:e>1?1:e}function Su(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Xr(parseFloat(t)/100*255):Xr(parseInt(t,10))}function Nn(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?th(parseFloat(t)/100):th(parseFloat(t))}function bu(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Do(e,t,r){return e+(t-e)*r}function me(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function eh(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Hy=new Ni(20),Ao=null;function oi(e,t){Ao&&eh(Ao,t),Ao=Hy.put(e,Ao||t.slice())}function nr(e,t){if(e){t=t||[];var r=Hy.get(e);if(r)return eh(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in cd)return eh(t,cd[n]),oi(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){me(t,0,0,0,1);return}return me(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),oi(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){me(t,0,0,0,1);return}return me(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),oi(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?me(t,+u[0],+u[1],+u[2],1):me(t,0,0,0,1);f=Nn(u.pop());case"rgb":if(u.length>=3)return me(t,Su(u[0]),Su(u[1]),Su(u[2]),u.length===3?f:Nn(u[3])),oi(e,t),t;me(t,0,0,0,1);return;case"hsla":if(u.length!==4){me(t,0,0,0,1);return}return u[3]=Nn(u[3]),rh(u,t),oi(e,t),t;case"hsl":if(u.length!==3){me(t,0,0,0,1);return}return rh(u,t),oi(e,t),t;default:return}}me(t,0,0,0,1)}}function rh(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Nn(e[1]),i=Nn(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],me(t,Xr(bu(o,a,r+1/3)*255),Xr(bu(o,a,r)*255),Xr(bu(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function aT(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-t)/6+o/2)/o,h=((a-r)/6+o/2)/o,v=((a-n)/6+o/2)/o;t===a?l=v-h:r===a?l=1/3+f-v:n===a&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return e[3]!=null&&c.push(e[3]),c}}function dd(e,t){var r=nr(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return po(r,r.length===4?"rgba":"rgb")}}function oT(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=nr(t[i]),s=nr(t[a]),l=n-i,u=po([Xr(Do(o[0],s[0],l)),Xr(Do(o[1],s[1],l)),Xr(Do(o[2],s[2],l)),th(Do(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function nh(e,t,r,n){var i=nr(e);if(e)return i=aT(i),t!=null&&(i[0]=iT(j(t)?t(i[0]):t)),r!=null&&(i[1]=Nn(j(r)?r(i[1]):r)),n!=null&&(i[2]=Nn(j(n)?n(i[2]):n)),po(rh(i),"rgba")}function po(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function Xs(e,t){var r=nr(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var pd=new Ni(100);function gd(e){if(Z(e)){var t=pd.get(e);return t||(t=dd(e,-.1),pd.put(e,t)),t}else if(Ll(e)){var r=O({},e);return r.colorStops=X(e.colorStops,function(n){return{offset:n.offset,color:dd(n.color,-.1)}}),r}return e}function sT(e){return e.type==="linear"}function lT(e){return e.type==="radial"}(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(e){return Buffer.from(e).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}})();var ih=Array.prototype.slice;function dr(e,t,r){return(t-e)*r+e}function wu(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=dr(t[a],r[a],n);return e}function uT(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=dr(t[o][s],r[o][s],n)}return e}function Mo(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function md(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function fT(e,t){for(var r=e.length,n=t.length,i=r>n?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function hT(e,t,r){var n=e,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:ih.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function Ra(e){if(ne(e)){var t=e.length;if(ne(e[0])){for(var r=[],n=0;n<t;n++)r.push(ih.call(e[n]));return r}return ih.call(e)}return e}function Cs(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function vT(e){return ne(e&&e[0])?2:1}var Lo=0,Ds=1,Uy=2,wa=3,ah=4,oh=5,yd=6;function _d(e){return e===ah||e===oh}function Io(e){return e===Ds||e===Uy}var na=[0,0,0,0],cT=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=yd,l=r;if(ne(r)){var u=vT(r);s=u,(u===1&&!St(r[0])||u===2&&!St(r[0][0]))&&(o=!0)}else if(St(r)&&!Xa(r))s=Lo;else if(Z(r))if(!isNaN(+r))s=Lo;else{var f=nr(r);f&&(l=f,s=wa)}else if(Ll(r)){var h=O({},l);h.colorStops=X(r.colorStops,function(c){return{offset:c.offset,color:nr(c.color)}}),sT(r)?s=ah:lT(r)&&(s=oh),l=h}a===0?this.valType=s:(s!==this.valType||s===yd)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:l,rawValue:r,percent:0};return n&&(v.easing=n,v.easingFunc=j(n)?n:Oy[n]||Vy(n)),i.push(v),v},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Io(i),u=_d(i),f=0;f<a;f++){var h=n[f],v=h.value,c=o.value;h.percent=h.time/t,s||(l&&f!==a-1?hT(v,c,i):u&&fT(v.colorStops,c.colorStops))}if(!s&&i!==oh&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<a;f++)i===Lo?n[f].additiveValue=n[f].value-d:i===wa?n[f].additiveValue=Mo([],n[f].value,d,-1):Io(i)&&(n[f].additiveValue=i===Ds?Mo([],n[f].value,d,-1):md([],n[f].value,d,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===wa,f,h=this._lastFr,v=Math.min,c,d;if(s===1)c=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var p=v(h+1,s-1);for(f=p;f>=0&&!(o[f].percent<=r);f--);f=v(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>r);f++);f=v(f-1,s-2)}d=o[f+1],c=o[f]}if(c&&d){this._lastFr=f,this._lastFrP=r;var g=d.percent-c.percent,m=g===0?1:v((r-c.percent)/g,1);d.easingFunc&&(m=d.easingFunc(m));var y=n?this._additiveValue:u?na:t[l];if((Io(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?c.rawValue:d.rawValue;else if(Io(a))a===Ds?wu(y,c[i],d[i],m):uT(y,c[i],d[i],m);else if(_d(a)){var _=c[i],S=d[i],b=a===ah;t[l]={type:b?"linear":"radial",x:dr(_.x,S.x,m),y:dr(_.y,S.y,m),colorStops:X(_.colorStops,function(T,C){var x=S.colorStops[C];return{offset:dr(T.offset,x.offset,m),color:Cs(wu([],T.color,x.color,m))}}),global:S.global},b?(t[l].x2=dr(_.x2,S.x2,m),t[l].y2=dr(_.y2,S.y2,m)):t[l].r=dr(_.r,S.r,m)}else if(u)wu(y,c[i],d[i],m),n||(t[l]=Cs(y));else{var w=dr(c[i],d[i],m);n?this._additiveValue=w:t[l]=w}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===Lo?t[n]=t[n]+i:r===wa?(nr(t[n],na),Mo(na,na,i,1),t[n]=Cs(na)):r===Ds?Mo(t[n],t[n],i,1):r===Uy&&md(t[n],t[n],i,1)},e}(),dT=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){yv("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,pt(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new cT(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,v=h[h.length-1];u=v&&v.value,f.valType===wa&&u&&(u=Cs(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Ra(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Ra(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(r._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var v=new eT({life:i,loop:this._loop,delay:this._delay||0,onframe:function(c){r._started=2;var d=r._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,c);var m=r._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](r._target,c)},ondestroy:function(){r._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),t&&v.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return X(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[a]=Ra(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||pt(t);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();const Cv=dT;function Di(){return new Date().getTime()}var pT=function(e){N(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=Di()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(jf(n),!r._paused&&r.update())}jf(n)},t.prototype.start=function(){this._running||(this._time=Di(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Di(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Di()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new Cv(r,n.loop);return this.addAnimator(i),i},t}(sr);const gT=pT;var mT=300,Tu=ut.domSupported,xu=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=X(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),Sd={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},bd=!1;function sh(e){var t=e.pointerType;return t==="pen"||t==="touch"}function yT(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function Cu(e){e&&(e.zrByTouch=!0)}function _T(e,t){return _e(e.dom,new ST(e,t),!0)}function Wy(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var ST=function(){function e(t,r){this.stopPropagation=Kt,this.stopImmediatePropagation=Kt,this.preventDefault=Kt,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Ne={mousedown:function(e){e=_e(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=_e(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=_e(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=_e(this.dom,e);var t=e.toElement||e.relatedTarget;Wy(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){bd=!0,e=_e(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){bd||(e=_e(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=_e(this.dom,e),Cu(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Ne.mousemove.call(this,e),Ne.mousedown.call(this,e)},touchmove:function(e){e=_e(this.dom,e),Cu(e),this.handler.processGesture(e,"change"),Ne.mousemove.call(this,e)},touchend:function(e){e=_e(this.dom,e),Cu(e),this.handler.processGesture(e,"end"),Ne.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<mT&&Ne.click.call(this,e)},pointerdown:function(e){Ne.mousedown.call(this,e)},pointermove:function(e){sh(e)||Ne.mousemove.call(this,e)},pointerup:function(e){Ne.mouseup.call(this,e)},pointerout:function(e){sh(e)||Ne.mouseout.call(this,e)}};M(["click","dblclick","contextmenu"],function(e){Ne[e]=function(t){t=_e(this.dom,t),this.trigger(e,t)}});var lh={pointermove:function(e){sh(e)||lh.mousemove.call(this,e)},pointerup:function(e){lh.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function bT(e,t){var r=t.domHandlers;ut.pointerEventsSupported?M(xu.pointer,function(n){As(t,n,function(i){r[n].call(e,i)})}):(ut.touchEventsSupported&&M(xu.touch,function(n){As(t,n,function(i){r[n].call(e,i),yT(t)})}),M(xu.mouse,function(n){As(t,n,function(i){i=wv(i),t.touching||r[n].call(e,i)})}))}function wT(e,t){ut.pointerEventsSupported?M(Sd.pointer,r):ut.touchEventsSupported||M(Sd.mouse,r);function r(n){function i(a){a=wv(a),Wy(e,a.target)||(a=_T(e,a),t.domHandlers[n].call(e,a))}As(t,n,i,{capture:!0})}}function As(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,Aw(e.domTarget,t,r,n)}function Du(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&Mw(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var wd=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),TT=function(e){N(t,e);function t(r,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new wd(r,Ne),Tu&&(i._globalHandlerScope=new wd(document,lh)),bT(i,i._localHandlerScope),i}return t.prototype.dispose=function(){Du(this._localHandlerScope),Tu&&Du(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Tu&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?wT(this,n):Du(n)}},t}(sr);const xT=TT;var Yy=1;ut.hasGlobalWindow&&(Yy=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Zs=Yy,uh=.4,fh="#333",hh="#ccc",CT="#eee",Td=vo,xd=5e-5;function un(e){return e>xd||e<-xd}var fn=[],si=[],Au=rr(),Mu=Math.abs,$y=function(){function e(){}return e.prototype.getLocalTransform=function(t){return DT(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return un(this.rotation)||un(this.x)||un(this.y)||un(this.scaleX-1)||un(this.scaleY-1)||un(this.skewX)||un(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(Td(n),this.invTransform=null);return}n=n||rr(),r?this.getLocalTransform(n):Td(n),t&&(r?Ia(n,t,n):Tv(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||rr(),co(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(fn);var n=fn[0]<0?-1:1,i=fn[1]<0?-1:1,a=((fn[0]-n)*r+n)/fn[0]||0,o=((fn[1]-i)*r+i)/fn[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||rr(),Ia(si,t.invTransform,r),r=si);var n=this.originX,i=this.originY;(n||i)&&(Au[4]=n,Au[5]=i,Ia(si,r,Au),si[4]-=n,si[5]-=i,r=si),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&Ie(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&Ie(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&Mu(t[0]-1)>1e-10&&Mu(t[3]-1)>1e-10?Math.sqrt(Mu(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){qs(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,h=t.y,v=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var d=n+s,p=i+l;r[4]=-d*a-v*p*o,r[5]=-p*o-c*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=c*a,r[2]=v*o,u&&xv(r,r,u),r[4]+=n+f,r[5]+=i+h,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),DT=$y.getLocalTransform,br=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function qs(e,t){return tw(e,t,br)}const Pl=$y;function ir(e){Po||(Po=new Ni(100)),e=e||Kr;var t=Po.get(e);return t||(t={font:e,strWidthCache:new Ni(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:ce.measureText("国",e).width,asciiCharWidth:ce.measureText("a",e).width},Po.put(e,t)),t}var Po;function AT(e){if(!(Lu>=Cd)){e=e||Kr;for(var t=[],r=+new Date,n=0;n<=127;n++)t[n]=ce.measureText(String.fromCharCode(n),e).width;var i=+new Date-r;return i>16?Lu=Cd:i>2&&Lu++,t}}var Lu=0,Cd=5;function Xy(e,t){return e.asciiWidthMapTried||(e.asciiWidthMap=AT(e.font),e.asciiWidthMapTried=!0),0<=t&&t<=127?e.asciiWidthMap!=null?e.asciiWidthMap[t]:e.asciiCharWidth:e.stWideCharWidth}function ar(e,t){var r=e.strWidthCache,n=r.get(t);return n==null&&(n=ce.measureText(t,e.font).width,r.put(t,n)),n}function Dd(e,t,r,n){var i=ar(ir(t),e),a=Rl(t),o=Fi(0,i,r),s=Fn(0,a,n),l=new nt(o,s,i,a);return l}function Zy(e,t,r,n){var i=((e||"")+"").split("\n"),a=i.length;if(a===1)return Dd(i[0],t,r,n);for(var o=new nt(0,0,0,0),s=0;s<i.length;s++){var l=Dd(i[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function Fi(e,t,r,n){return r==="right"?n?e+=t:e-=t:r==="center"&&(n?e+=t/2:e-=t/2),e}function Fn(e,t,r,n){return r==="middle"?n?e+=t/2:e-=t/2:r==="bottom"&&(n?e+=t:e-=t),e}function Rl(e){return ir(e).stWideCharWidth}function Un(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Ks(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",h="top";if(n instanceof Array)l+=Un(n[0],r.width),u+=Un(n[1],r.height),f=null,h=null;else switch(n){case"left":l-=i,u+=s,f="right",h="middle";break;case"right":l+=i+o,u+=s,h="middle";break;case"top":l+=o/2,u-=i,f="center",h="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=o-i,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,h="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",h="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=f,e.verticalAlign=h,e}var Iu="__zr_normal__",Pu=br.concat(["ignore"]),MT=_r(br,function(e,t){return e[t]=!0,e},{ignore:!1}),li={},LT=new nt(0,0,0,0),Ro=[],Ms=0,El=1,kl=function(){function e(t){this.id=wy(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;a.copyTransform(r);var f=n.position!=null,h=n.autoOverflowArea,v=void 0;if((h||f)&&(v=LT,n.layoutRect?v.copy(n.layoutRect):v.copy(this.getBoundingRect()),i||v.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(li,n,v):Ks(li,n,v),a.x=li.x,a.y=li.y,o=li.align,s=li.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var d=void 0,p=void 0;c==="center"?(d=v.width*.5,p=v.height*.5):(d=Un(c[0],v.width),p=Un(c[1],v.height)),u=!0,a.originX=-a.x+d+(i?0:v.x),a.originY=-a.y+p+(i?0:v.y)}}n.rotation!=null&&(a.rotation=n.rotation);var g=n.offset;g&&(a.x+=g[0],a.y+=g[1],u||(a.originX=-g[0],a.originY=-g[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(h){var y=m.overflowRect=m.overflowRect||new nt(0,0,0,0);a.getLocalTransform(Ro),co(Ro,Ro),nt.copy(y,v),y.applyTransform(Ro)}else m.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,S=void 0,b=void 0,w=void 0;_&&this.canBeInsideText()?(S=n.insideFill,b=n.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(S),w=!0)):(S=n.outsideFill,b=n.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(S),w=!0)),S=S||"#000",(S!==m.fill||b!==m.stroke||w!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=S,m.stroke=b,m.autoStroke=w,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=se,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?hh:fh},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&nr(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,po(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},O(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(q(t))for(var n=t,i=pt(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==Iu)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,Pu)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(Iu,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===Iu,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ot(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){yv("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=this._textContent,h=Ad(this,f,u,i);h&&!this.__inHover&&(this.__inHover=h),this._applyStateObj(t,u,this._normalState,r,Ld(this,n,l),l);var v=this._textGuide;return f&&f.useState(t,r,n,!!h),v&&v.useState(t,r,n,!!h),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=Ms,this.__dirty&=~se),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&i.push(f)}var h=i[o-1],v=this._textContent,c=Ad(this,v,h,n);c&&!this.__inHover&&(this.__inHover=c);var d=this._mergeStates(i),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,Ld(this,r,p),p);var g=this._textGuide;v&&v.useStates(t,r,!!c),g&&g.useStates(t,r,!!c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=Ms,this.__dirty&=~se)}},e.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var r=t.__hostTarget;t=r?t.ignoreHostSilent?null:r:t.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=ot(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=ot(i,t),o=ot(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i<t.length;i++){var a=t[i];O(r,a),a.textConfig&&(n=n||{},O(n,a.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,i,a,o){if(this.__inHover!==El){var s=!(r&&i);r&&r.textConfig?(this.textConfig=O({},i?this.textConfig:n.textConfig),O(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Pu.length;f++){var h=Pu[f],v=a&&MT[h];r&&r[h]!=null?v?(u=!0,l[h]=r[h]):this[h]=r[h]:s&&n[h]!=null&&(v?(u=!0,l[h]=n[h]):this[h]=n[h])}if(!a)for(var f=0;f<this.animators.length;f++){var c=this.animators[f],d=c.targetName;c.getLoop()||c.__changeFinalValue(d?(r||n)[d]:r||n)}u&&this._transitionState(t,l,o)}},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new Pl,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),O(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=se;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var i=t?this[t]:this,a=new Cv(i,r,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=ot(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,n){Ru(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){Ru(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var a=Ru(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=Ms,t.__dirty=se;function r(n,i,a,o){Object.defineProperty(t,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(f){l[a]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();Ge(kl,sr);Ge(kl,Pl);function Ru(e,t,r,n,i){r=r||{};var a=[];qy(e,"",e,t,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(d,p){r.during(p)});for(var v=0;v<a.length;v++){var c=a[v];f&&c.done(f),h&&c.aborted(h),r.force&&c.duration(r.duration),c.start(r.easing)}return a}function Eu(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function IT(e){return ne(e[0])}function PT(e,t,r){if(ne(t[r]))if(ne(e[r])||(e[r]=[]),ue(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),Eu(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if(IT(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?Eu(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else Eu(a,i,o);a.length=i.length}else e[r]=t[r]}function RT(e,t){return e===t||ne(e)&&ne(t)&&ET(e,t)}function ET(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function qy(e,t,r,n,i,a,o,s){for(var l=pt(n),u=i.duration,f=i.delay,h=i.additive,v=i.setToFinal,c=!q(a),d=e.animators,p=[],g=0;g<l.length;g++){var m=l[g],y=n[m];if(y!=null&&r[m]!=null&&(c||a[m]))if(q(y)&&!ne(y)&&!Ll(y)){if(t){s||(r[m]=y,e.updateDuringAnimation(t));continue}qy(e,m,r[m],y,i,a&&a[m],o,s)}else p.push(m);else s||(r[m]=y,e.updateDuringAnimation(t),p.push(m))}var _=p.length;if(!h&&_)for(var S=0;S<d.length;S++){var b=d[S];if(b.targetName===t){var w=b.stopTracks(p);if(w){var T=ot(d,b);d.splice(T,1)}}}if(i.force||(p=Ot(p,function(D){return!RT(n[D],r[D])}),_=p.length),_>0||i.force&&!o.length){var C=void 0,x=void 0,A=void 0;if(s){x={},v&&(C={});for(var S=0;S<_;S++){var m=p[S];x[m]=r[m],v?C[m]=n[m]:r[m]=n[m]}}else if(v){A={};for(var S=0;S<_;S++){var m=p[S];A[m]=Ra(r[m]),PT(r,n,m)}}var b=new Cv(r,!1,!1,h?Ot(d,function(I){return I.targetName===t}):null);b.targetName=t,i.scope&&(b.scope=i.scope),v&&C&&b.whenWithKeys(0,C,p),A&&b.whenWithKeys(0,A,p),b.whenWithKeys(u==null?500:u,s?x:n,p).delay(f||0),e.addAnimator(b,t),o.push(b)}}function Ad(e,t,r,n){return!(r&&r.hoverLayer||n)||Md(e)||t&&Md(t)?Ms:El}function Md(e){return e.type==="text"||e.type==="tspan"}function Ld(e,t,r){return!t&&!e.__inHover&&r&&r.duration>0}var Ky=function(e){N(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=ot(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=ot(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},t.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new nt(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(nt.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(kl);Ky.prototype.type="group";const It=Ky;/*!
2
+ * ZRender, a high performance 2d drawing library.
3
+ *
4
+ * Copyright (c) 2013, Baidu Inc.
5
+ * All rights reserved.
6
+ *
7
+ * LICENSE
8
+ * https://github.com/ecomfe/zrender/blob/master/LICENSE
9
+ */var Ls={},Qy={};function kT(e){delete Qy[e]}function OT(e){if(!e)return!1;if(typeof e=="string")return Xs(e,1)<uh;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=Xs(t[i].color,1);return r/=n,r<uh}return!1}var BT=function(){function e(t,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var a=new Xw,o=n.renderer||"canvas";Ls[o]||(o=pt(Ls)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Ls[o](r,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!ut.node&&!ut.worker&&!l?new xT(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,h=f==null||f==="auto"?ut.touchEventsSupported:!!f,v=44,c;h&&(c=Y(n.pointerSize,v)),this.handler=new Hw(a,s,u,s.root,c),this.animation=new gT({stage:{update:l?null:function(){return i._flush(!1)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=OT(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||this._refresh({animUpdate:!t,refresh:!0,refreshHover:!1})},e.prototype._refresh=function(t){t.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:t.refresh,refreshHover:t.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!0)},e.prototype._flush=function(t){var r,n=Di(),i=this._needsRefresh,a=this._needsRefreshHover;(i||a)&&(r=!0,this._refresh({animUpdate:t,refresh:i,refreshHover:a}));var o=Di();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this._disposed||this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof It&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,kT(this.id))},e}();function Id(e,t){var r=new BT(wy(),e,t);return Qy[r.id]=r,r}function NT(e,t){Ls[e]=t}var Pd=1e-4,Jy=20;function FT(e){return e.replace(/^\s+|\s+$/g,"")}var Qt=Math.min,ct=Math.max,Et=Math.abs,wr=Math.round,Wn=Math.floor,go=Math.ceil,Qn=Math.pow,qa=Math.log,vh=Math.LN10,zT=Math.PI,VT=Math.random;function ch(e,t,r,n){var i=t[0],a=t[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}var bt=GT;function GT(e,t,r){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return dh(e,t,r)}function dh(e,t,r){return Z(e)?HT(e)?parseFloat(e)/100*t+(r||0):parseFloat(e):e==null?NaN:+e}function HT(e){return!!FT(e).match(/%$/)}function ht(e,t,r){return isNaN(t)?r?""+e:+e:(t=Qt(ct(0,t),Jy),e=(+e).toFixed(t),r?e:+e)}function Dv(e){return e.sort(function(t,r){return t-r}),e}function pr(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(wr(e*t)/t===e)return r}return UT(e)}function UT(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return ct(0,o-n)}function WT(e,t,r){var n=Et(e[1]-e[0]);if(!isFinite(n)||n===0)return NaN;var i=qa(2*Et(r||1)*Et(n))/vh,a=qa(Et(t))/vh,o=ct(0,go(-i+a));return isFinite(o)||(o=NaN),o}function YT(e,t){var r=_r(e,function(c,d){return c+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Qn(10,t),i=X(e,function(c){return(isNaN(c)?0:c)/r*n*100}),a=n*100,o=X(i,function(c){return Wn(c)}),s=_r(o,function(c,d){return c+d},0),l=X(i,function(c,d){return c-o[d]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,h=0,v=l.length;h<v;++h)l[h]>u&&(u=l[h],f=h);++o[f],l[f]=0,++s}return X(o,function(c){return c/n})}function $T(e,t){var r=ct(pr(e),pr(t)),n=e+t;return r>Jy?n:ht(n,r)}var Rd=Qn(2,53)-1;function jy(e){var t=zT*2;return(e%t+t)%t}function Qs(e){return e>-Pd&&e<Pd}var XT=/^(?:(\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 Xi(e){if(e instanceof Date)return e;if(Z(e)){var t=XT.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(wr(e))}function t0(e){return Qn(10,Av(e))}function Av(e){if(e===0)return 0;var t=Wn(qa(e)/vh);return e/Qn(10,t)>=10&&t++,t}var e0=2;function Mv(e,t){var r=Av(e),n=Qn(10,r),i=e/n,a;return t===e0?a=1:t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,e=a*n,ht(e,-r)}function Js(e){var t=parseFloat(e);return t==e&&(t!==0||!Z(e)||e.indexOf("x")<=0)?t:NaN}function ZT(e){return!isNaN(Js(e))}function Lv(){return wr(VT()*9)}function r0(e,t){return t===0?e:r0(t,e%t)}function Ed(e,t){return e==null?t:t==null?e:e*t/r0(e,t)}function Re(e){return e!=null&&isFinite(e)}var qT="[ECharts] ",kd={},KT=typeof console<"u"&&console.warn&&console.log;function QT(e,t,r){if(KT){if(r){if(kd[t])return;kd[t]=!0}console[e](qT+t)}}function n0(e,t){QT("error",e,t)}function oe(e){throw new Error(e)}function Od(e,t,r){return(t-e)*r+e}var i0="series\0",JT="\0_ec_\0";function Gt(e){return e instanceof Array?e:e==null?[]:[e]}function js(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var Bd=["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 mo(e){return q(e)&&!z(e)&&!(e instanceof Date)?e.value:e}function jT(e){return q(e)&&!(e instanceof Array)}function a0(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=Q();M(t,function(l,u){if(!q(l)){t[u]=null;return}});var s=tx(e,o,r);return(n||i)&&ex(s,e,o,t),n&&rx(s,t),n||i?nx(s,t,i):a&&ix(s,t),ax(s),s}function tx(e,t,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:r==="replaceMerge"||Ka(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function ex(e,t,r,n){M(n,function(i,a){if(!(!i||i.id==null)){var o=Ea(i.id),s=r.get(o);if(s!=null){var l=e[s];Sr(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function rx(e,t){M(t,function(r,n){if(!(!r||r.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||r.id==null)&&!Ka(r)&&!Ka(a)&&o0("name",a,r)){e[i].newOption=r,t[n]=null;return}}})}function nx(e,t,r){M(t,function(n){if(n){for(var i,a=0;(i=e[a])&&(i.newOption||Ka(i.existing)||i.existing&&n.id!=null&&!o0("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function ix(e,t){M(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function ax(e){var t=Q();M(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),M(e,function(r){var n=r.newOption;Sr(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),M(e,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(q(a)){if(o.name=a.name!=null?Ea(a.name):i?i.name:i0+n,i)o.id=Ea(i.id);else if(a.id!=null)o.id=Ea(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function o0(e,t,r){var n=le(t[e],null),i=le(r[e],null);return n!=null&&i!=null&&n===i}function Ea(e){return le(e,"")}function le(e,t){return e==null?t:Z(e)?e:St(e)||Wf(e)?e+"":t}function Iv(e){var t=e.name;return!!(t&&t.indexOf(i0))}function Ka(e){return e&&e.id!=null&&Ea(e.id).indexOf(JT)===0}function ox(e,t,r){M(e,function(n){var i=n.newOption;q(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=sx(t,i,n.existing,r))})}function sx(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function Yn(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return z(t.dataIndex)?X(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return z(t.name)?X(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function ft(){var e="__ec_inner_"+lx++;return function(t){return t[e]||(t[e]={})}}var lx=Lv();function ku(e,t,r){var n=Pv(t,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var h=yo(e,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function Pv(e,t){var r;if(Z(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=Q(),a={},o=!1;return M(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&ot(t.includeMainTypes,f)<0)){o=o||!!f;var v=i.get(f)||i.set(f,{});v[h]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Ae={useDefault:!0,enableAll:!1,enableNone:!1};function yo(e,t,r,n){n=n||Ae;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}if(i==="none"||i===!1){if(n.enableNone)return s.models=[],s;i=-1}return i==="all"&&(n.enableAll?i=a=o=null:i=-1),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function ux(e,t,r){var n={};n[t+"Id"]=e[t+"Id"],n[t+"Index"]=e[t+"Index"],n[t+"Name"]=e[t+"Name"];var i={mainType:t,query:n};return r&&(i.subType=r),i}function s0(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function fx(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function hx(e){return e==="auto"?ut.domSupported?"html":"richText":e||"html"}function vx(e,t,r,n,i){var a=t==null||t==="auto";if(n==null)return n;if(St(n)){var o=Od(r||0,n,i);return ht(o,a?Math.max(pr(r||0),pr(n)):t)}else{if(Z(n))return i<1?r:n;for(var s=[],l=r,u=n,f=Math.max(l?l.length:0,u.length),h=0;h<f;++h){var v=e.getDimensionInfo(h);if(v&&v.type==="ordinal")s[h]=(i<1&&l?l:u)[h];else{var c=l&&l[h]?l[h]:0,d=u[h],o=Od(c,d,i);s[h]=ht(o,a?Math.max(pr(c),pr(d)):t)}}return s}}function xe(){return[1/0,-1/0]}function ph(e,t){Tr(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function l0(e,t){Tr(t)&&t<e[0]&&(e[0]=t)}function u0(e,t){Tr(t)&&t>e[1]&&(e[1]=t)}function cx(e,t){zi(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function Tr(e){return e!=null&&isFinite(e)}function zi(e,t){return Tr(e)&&Tr(t)&&e<=t}function dx(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function px(e){zi(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function f0(){var e="__ec_once_"+gx++;return function(t,r){J(t,e)||(t[e]=1,r())}}var gx=Lv();function Rv(e,t,r){var n=Q(),i=0;M(e,function(a){var o=t(a),s=n.get(o)||0;r&&r(a,s),!s&&!r&&(e[i++]=a),n.set(o,s+1)}),r||(e.length=i)}function mx(e){return e.value+""}function yx(e){return e+""}function h0(e,t){return Y(t,!0)?e.seriesIndex+2:0}function v0(e,t,r){var n=e.getData().count();return{progressiveRender:r.progressiveEnabled&&t.incrementalPrepareRender&&n>=r.threshold,large:e.get("large")&&n>=e.get("largeThreshold"),modDataCount:e.get("progressiveChunkMode")==="mod"?e.getData().count():null}}function _x(e,t){return{seriesType:e,overallReset:t}}function Ev(e){return{overallReset:e}}var Sx=".",hn="___EC__COMPONENT__CONTAINER___",c0="___EC__EXTENDED_CLASS___";function er(e){var t={main:"",sub:""};if(e){var r=e.split(Sx);t.main=r[0]||"",t.sub=r[1]||""}return t}function bx(e){Sr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function Tx(e){return!!(e&&e[c0])}function kv(e,t){e.$constructor=e,e.extend=function(r){var n=this,i;return xx(n)?i=function(a){N(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},ew(i,this)),O(i.prototype,r),i[c0]=!0,i.extend=this.extend,i.superCall=Ax,i.superApply=Mx,i.superClass=n,i}}function xx(e){return j(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function d0(e,t){e.extend=t.extend}var Cx=Math.round(Math.random()*10);function Dx(e){var t=["__\0is_clz",Cx++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function Ax(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function Mx(e,t,r){return this.superClass.prototype[t].apply(e,r)}function Ol(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){bx(i),n.prototype.type=i;var a=er(i);if(!a.sub)t[a.main]=n;else if(a.sub!==hn){var o=r(a);o[a.sub]=n}}return n},e.getClass=function(n,i,a){var o=t[n];if(o&&o[hn]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var i=er(n),a=[],o=t[i.main];return o&&o[hn]?M(o,function(s,l){l!==hn&&a.push(s)}):a.push(o),a},e.hasClass=function(n){var i=er(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return M(t,function(i,a){n.push(a)}),n},e.hasSubTypes=function(n){var i=er(n),a=t[i.main];return a&&a[hn]};function r(n){var i=t[n.main];return(!i||!i[hn])&&(i=t[n.main]={},i[hn]=!0),i}}function Qa(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&ot(i,l)>=0||a&&ot(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var Lx=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Ix=Qa(Lx),Px=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return Ix(this,t,r)},e}(),gh=new Ni(50);function Rx(e){if(typeof e=="string"){var t=gh.get(e);return t&&t.image}else return e}function p0(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=gh.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!Bl(t)&&a.pending.push(o)):(t=ce.loadImage(e,Nd,Nd),t.__zrImageSrc=e,gh.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function Nd(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function Bl(e){return e&&e.width&&e.height}var Ou=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Ex(e,t,r,n,i,a){if(!r){e.text="",e.isTruncated=!1;return}var o=(t+"").split("\n");a=g0(r,n,i,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)m0(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;e.text=o.join("\n"),e.isTruncated=s}function g0(e,t,r,n){n=n||{};var i=O({},n);r=Y(r,"..."),i.maxIterations=Y(n.maxIterations,2);var a=i.minChar=Y(n.minChar,0),o=i.fontMeasureInfo=ir(t),s=o.asciiCharWidth;i.placeholder=Y(n.placeholder,"");for(var l=e=Math.max(0,e-1),u=0;u<a&&l>=s;u++)l-=s;var f=ar(o,r);return f>l&&(r="",f=0),l=e-f,i.ellipsis=r,i.ellipsisWidth=f,i.contentWidth=l,i.containerWidth=e,i}function m0(e,t,r){var n=r.containerWidth,i=r.contentWidth,a=r.fontMeasureInfo;if(!n){e.textLine="",e.isTruncated=!1;return}var o=ar(a,t);if(o<=n){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=r.maxIterations){t+=r.ellipsis;break}var l=s===0?kx(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,l),o=ar(a,t)}t===""&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function kx(e,t,r){for(var n=0,i=0,a=e.length;i<a&&n<t;i++)n+=Xy(r,e.charCodeAt(i));return i}function Ox(e,t,r,n){var i=Ov(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=t.font,f=a==="truncate",h=Rl(u),v=Y(t.lineHeight,h),c=t.lineOverflow==="truncate",d=!1,p=t.width;p==null&&r!=null&&(p=r-s);var g=t.height;g==null&&n!=null&&(g=n-l);var m;p!=null&&(a==="break"||a==="breakAll")?m=i?y0(i,t.font,p,a==="breakAll",0).lines:[]:m=i?i.split("\n"):[];var y=m.length*v;if(g==null&&(g=y),y>g&&c){var _=Math.floor(g/v);d=d||m.length>_,m=m.slice(0,_),y=m.length*v}if(i&&f&&p!=null)for(var S=g0(p,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),b={},w=0;w<m.length;w++)m0(b,m[w],S),m[w]=b.textLine,d=d||b.isTruncated;for(var T=g,C=0,x=ir(u),w=0;w<m.length;w++)C=Math.max(ar(x,m[w]),C);p==null&&(p=C);var A=p;return T+=l,A+=s,{lines:m,height:g,outerWidth:A,outerHeight:T,lineHeight:v,calculatedLineHeight:h,contentWidth:C,contentHeight:y,width:p,isTruncated:d}}var Bx=function(){function e(){}return e}(),Fd=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),Nx=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function Fx(e,t,r,n,i){var a=new Nx,o=Ov(e);if(!o)return a;var s=t.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=t.width;f==null&&r!=null&&(f=r-l);var h=t.height;h==null&&n!=null&&(h=n-u);for(var v=t.overflow,c=(v==="break"||v==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:v==="breakAll"}:null,d=Ou.lastIndex=0,p;(p=Ou.exec(o))!=null;){var g=p.index;g>d&&Bu(a,o.substring(d,g),t,c),Bu(a,p[2],t,c,p[1]),d=Ou.lastIndex}d<o.length&&Bu(a,o.substring(d,o.length),t,c);var m=[],y=0,_=0,S=v==="truncate",b=t.lineOverflow==="truncate",w={};function T(st,Pt,Nt){st.width=Pt,st.lineHeight=Nt,y+=Nt,_=Math.max(_,Pt)}t:for(var C=0;C<a.lines.length;C++){for(var x=a.lines[C],A=0,D=0,I=0;I<x.tokens.length;I++){var L=x.tokens[I],P=L.styleName&&t.rich[L.styleName]||{},R=L.textPadding=P.padding,E=R?R[1]+R[3]:0,B=L.font=P.font||t.font;L.contentHeight=Rl(B);var k=Y(P.height,L.contentHeight);if(L.innerHeight=k,R&&(k+=R[0]+R[2]),L.height=k,L.lineHeight=Bn(P.lineHeight,t.lineHeight,k),L.align=P&&P.align||i,L.verticalAlign=P&&P.verticalAlign||"middle",b&&h!=null&&y+L.lineHeight>h){var F=a.lines.length;I>0?(x.tokens=x.tokens.slice(0,I),T(x,D,A),a.lines=a.lines.slice(0,C+1)):a.lines=a.lines.slice(0,C),a.isTruncated=a.isTruncated||a.lines.length<F;break t}var G=P.width,H=G==null||G==="auto";if(typeof G=="string"&&G.charAt(G.length-1)==="%")L.percentWidth=G,m.push(L),L.contentWidth=ar(ir(B),L.text);else{if(H){var W=P.backgroundColor,$=W&&W.image;$&&($=Rx($),Bl($)&&(L.width=Math.max(L.width,$.width*k/$.height)))}var U=S&&f!=null?f-D:null;U!=null&&U<L.width?!H||U<E?(L.text="",L.width=L.contentWidth=0):(Ex(w,L.text,U-E,B,t.ellipsis,{minChar:t.truncateMinChar}),L.text=w.text,a.isTruncated=a.isTruncated||w.isTruncated,L.width=L.contentWidth=ar(ir(B),L.text)):L.contentWidth=ar(ir(B),L.text)}L.width+=E,D+=L.width,P&&(A=Math.max(A,L.lineHeight))}T(x,D,A)}a.outerWidth=a.width=Y(f,_),a.outerHeight=a.height=Y(h,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var C=0;C<m.length;C++){var L=m[C],et=L.percentWidth;L.width=parseInt(et,10)/100*a.width}return a}function Bu(e,t,r,n,i){var a=t==="",o=i&&r.rich[i]||{},s=e.lines,l=o.font||r.font,u=!1,f,h;if(n){var v=o.padding,c=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Un(o.width,n.width)+c;s.length>0&&d+n.accumWidth>n.width&&(f=t.split("\n"),u=!0),n.accumWidth=d}else{var p=y0(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+c,h=p.linesWidths,f=p.lines}}f||(f=t.split("\n"));for(var g=ir(l),m=0;m<f.length;m++){var y=f[m],_=new Bx;if(_.styleName=i,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=h?h[m]:ar(g,y),!m&&!u){var S=(s[s.length-1]||(s[0]=new Fd)).tokens,b=S.length;b===1&&S[0].isLineHolder?S[0]=_:(y||!b||a)&&S.push(_)}else s.push(new Fd([_]))}}function zx(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Vx=_r(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Gx(e){return zx(e)?!!Vx[e]:!0}function y0(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,h=ir(t),v=0;v<e.length;v++){var c=e.charAt(v);if(c==="\n"){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=Xy(h,c.charCodeAt(0)),p=n?!1:!Gx(c);if(a.length?f+d>r:i+f+d>r){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=c,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=c,f=d)):p?(a.push(l),o.push(u),l=c,u=d):(a.push(c),o.push(d));continue}f+=d,p?(l+=c,u+=d):(l&&(s+=l,l="",u=0),s+=c)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}function zd(e,t,r,n,i,a){if(e.baseX=r,e.baseY=n,e.outerWidth=e.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;nt.set(Vd,Fi(r,o,i),Fn(n,s,a),o,s),nt.intersect(t,Vd,null,Gd);var l=Gd.outIntersectRect;e.outerWidth=l.width,e.outerHeight=l.height,e.baseX=Fi(l.x,l.width,i,!0),e.baseY=Fn(l.y,l.height,a,!0)}}var Vd=new nt(0,0,0,0),Gd={outIntersectRect:{},clamp:!0};function Ov(e){return e!=null?e+="":e=""}function Hx(e){var t=Ov(e.text),r=e.font,n=ar(ir(r),t),i=Rl(r);return mh(e,n,i,null)}function mh(e,t,r,n){var i=new nt(Fi(e.x||0,t,e.textAlign),Fn(e.y||0,r,e.textBaseline),t,r),a=n!=null?n:_0(e)?e.lineWidth:0;return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function _0(e){var t=e.stroke;return t!=null&&t!=="none"&&e.lineWidth>0}var yh="__zr_style_"+Math.round(Math.random()*10),zn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Nl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};zn[yh]=!0;var Hd=["z","z2","invisible"],Ux=["invisible"],Wx=function(e){N(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=pt(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(r){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Yx(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new nt(0,0,0,0)),n?nt.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new nt(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:O(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=ba,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&ba)},t.prototype.styleUpdated=function(){this.__dirty&=~ba},t.prototype.createStyle=function(r){return Il(zn,r)},t.prototype.useStyle=function(r){r[yh]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},t.prototype._useHoverStyle=function(r){this.__hoverStyle=r},t.prototype.isStyleObject=function(r){return r[yh]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,Hd)},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u=this.__inHover===El,f;if(n&&n.style?o?a?f=n.style:(f=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(f,n.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(f,n.style)):l&&(f=i.style),f)if(o){var h=this.style;if(this.style=this.createStyle(l?{}:h),l)for(var v=pt(h),c=0;c<v.length;c++){var d=v[c];d in f&&(f[d]=f[d],this.style[d]=h[d])}for(var p=pt(f),c=0;c<p.length;c++){var d=p[c];this.style[d]=this.style[d]}this._transitionState(r,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var g=this.__inHover?Ux:Hd,c=0;c<g.length;c++){var d=g[c];n&&n[d]!=null?this[d]=n[d]:l&&i[d]!=null&&(this[d]=i[d])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(r,n){return O(r,n),r},t.prototype.getAnimationStyleProps=function(){return Nl},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=0,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=se|ba}(),t}(kl),Nu=new nt(0,0,0,0),Fu=new nt(0,0,0,0);function Yx(e,t,r){return Nu.copy(e.getBoundingRect()),e.transform&&Nu.applyTransform(e.transform),Fu.width=t,Fu.height=r,!Nu.intersect(Fu)}const Jn=Wx;var Ce=Math.min,De=Math.max,zu=Math.sin,Vu=Math.cos,vn=Math.PI*2,Eo=$i(),ko=$i(),Oo=$i();function Ud(e,t,r,n,i,a){i[0]=Ce(e,r),i[1]=Ce(t,n),a[0]=De(e,r),a[1]=De(t,n)}var Wd=[],Yd=[];function $x(e,t,r,n,i,a,o,s,l,u){var f=Fy,h=kt,v=f(e,r,i,o,Wd);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var c=0;c<v;c++){var d=h(e,r,i,o,Wd[c]);l[0]=Ce(d,l[0]),u[0]=De(d,u[0])}v=f(t,n,a,s,Yd);for(var c=0;c<v;c++){var p=h(t,n,a,s,Yd[c]);l[1]=Ce(p,l[1]),u[1]=De(p,u[1])}l[0]=Ce(e,l[0]),u[0]=De(e,u[0]),l[0]=Ce(o,l[0]),u[0]=De(o,u[0]),l[1]=Ce(t,l[1]),u[1]=De(t,u[1]),l[1]=Ce(s,l[1]),u[1]=De(s,u[1])}function Xx(e,t,r,n,i,a,o,s){var l=zy,u=Zt,f=De(Ce(l(e,r,i),1),0),h=De(Ce(l(t,n,a),1),0),v=u(e,r,i,f),c=u(t,n,a,h);o[0]=Ce(e,i,v),o[1]=Ce(t,a,c),s[0]=De(e,i,v),s[1]=De(t,a,c)}function Zx(e,t,r,n,i,a,o,s,l){var u=Ti,f=xi,h=Math.abs(i-a);if(h%vn<1e-4&&h>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Eo[0]=Vu(i)*r+e,Eo[1]=zu(i)*n+t,ko[0]=Vu(a)*r+e,ko[1]=zu(a)*n+t,u(s,Eo,ko),f(l,Eo,ko),i=i%vn,i<0&&(i=i+vn),a=a%vn,a<0&&(a=a+vn),i>a&&!o?a+=vn:i<a&&o&&(i+=vn),o){var v=a;a=i,i=v}for(var c=0;c<a;c+=Math.PI/2)c>i&&(Oo[0]=Vu(c)*r+e,Oo[1]=zu(c)*n+t,u(s,Oo,s),f(l,Oo,l))}var gt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},cn=[],dn=[],$e=[],Ir=[],Xe=[],Ze=[],Gu=Math.min,Hu=Math.max,pn=Math.cos,gn=Math.sin,fr=Math.abs,_h=Math.PI,zr=_h*2,Uu=typeof Float32Array<"u",ia=[];function Wu(e){var t=Math.round(e/_h*1e8)/1e8;return t%2*_h}function S0(e,t){var r=Wu(e[0]);r<0&&(r+=zr);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=zr?i=r+zr:t&&r-i>=zr?i=r-zr:!t&&r>i?i=r+(zr-Wu(r-i)):t&&r<i&&(i=r-(zr-Wu(i-r))),e[0]=r,e[1]=i}var qx=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=fr(n/Zs/t)||0,this._uy=fr(n/Zs/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(gt.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=fr(t-this._xi),i=fr(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(gt.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(gt.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(gt.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),ia[0]=i,ia[1]=a,S0(ia,o),i=ia[0],a=ia[1];var s=a-i;return this.addData(gt.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=pn(a)*n+t,this._yi=gn(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(gt.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(gt.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){if(this._saveData){var r=t.length;!(this.data&&this.data.length===r)&&Uu&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r}},e.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var r=t.length,n=0,i=this._len,a=0;a<r;a++)n+=t[a].len();var o=this.data;if(Uu&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var s=0;s<i;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var l=t[a].data,s=0;s<l.length;s++)this.data[i++]=l[s];this._len=i}},e.prototype.addData=function(t,r,n,i,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Uu&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){$e[0]=$e[1]=Xe[0]=Xe[1]=Number.MAX_VALUE,Ir[0]=Ir[1]=Ze[0]=Ze[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(r=t[o],n=t[o+1],i=r,a=n),s){case gt.M:r=i=t[o++],n=a=t[o++],Xe[0]=i,Xe[1]=a,Ze[0]=i,Ze[1]=a;break;case gt.L:Ud(r,n,t[o],t[o+1],Xe,Ze),r=t[o++],n=t[o++];break;case gt.C:$x(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Xe,Ze),r=t[o++],n=t[o++];break;case gt.Q:Xx(r,n,t[o++],t[o++],t[o],t[o+1],Xe,Ze),r=t[o++],n=t[o++];break;case gt.A:var u=t[o++],f=t[o++],h=t[o++],v=t[o++],c=t[o++],d=t[o++]+c;o+=1;var p=!t[o++];l&&(i=pn(c)*h+u,a=gn(c)*v+f),Zx(u,f,h,v,c,d,p,Xe,Ze),r=pn(d)*h+u,n=gn(d)*v+f;break;case gt.R:i=r=t[o++],a=n=t[o++];var g=t[o++],m=t[o++];Ud(i,a,i+g,a+m,Xe,Ze);break;case gt.Z:r=i,n=a;break}Ti($e,$e,Xe),xi(Ir,Ir,Ze)}return o===0&&($e[0]=$e[1]=Ir[0]=Ir[1]=0),new nt($e[0],$e[1],Ir[0]-$e[0],Ir[1]-$e[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,h=0,v=0;v<r;){var c=t[v++],d=v===1;d&&(a=t[v],o=t[v+1],s=a,l=o);var p=-1;switch(c){case gt.M:a=s=t[v++],o=l=t[v++];break;case gt.L:{var g=t[v++],m=t[v++],y=g-a,_=m-o;(fr(y)>n||fr(_)>i||v===r-1)&&(p=Math.sqrt(y*y+_*_),a=g,o=m);break}case gt.C:{var S=t[v++],b=t[v++],g=t[v++],m=t[v++],w=t[v++],T=t[v++];p=qw(a,o,S,b,g,m,w,T,10),a=w,o=T;break}case gt.Q:{var S=t[v++],b=t[v++],g=t[v++],m=t[v++];p=Jw(a,o,S,b,g,m,10),a=g,o=m;break}case gt.A:var C=t[v++],x=t[v++],A=t[v++],D=t[v++],I=t[v++],L=t[v++],P=L+I;v+=1,d&&(s=pn(I)*A+C,l=gn(I)*D+x),p=Hu(A,D)*Gu(zr,Math.abs(L)),a=pn(P)*A+C,o=gn(P)*D+x;break;case gt.R:{s=a=t[v++],l=o=t[v++];var R=t[v++],E=t[v++];p=R*2+E*2;break}case gt.Z:{var y=s-a,_=l-o;p=Math.sqrt(y*y+_*_),a=s,o=l;break}}p>=0&&(u[h++]=p,f+=p)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,h,v,c=r<1,d,p,g=0,m=0,y,_=0,S,b;if(!(c&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,y=r*p,!y)))t:for(var w=0;w<o;){var T=n[w++],C=w===1;switch(C&&(u=n[w],f=n[w+1],s=u,l=f),T!==gt.L&&_>0&&(t.lineTo(S,b),_=0),T){case gt.M:s=u=n[w++],l=f=n[w++],t.moveTo(u,f);break;case gt.L:{h=n[w++],v=n[w++];var x=fr(h-u),A=fr(v-f);if(x>i||A>a){if(c){var D=d[m++];if(g+D>y){var I=(y-g)/D;t.lineTo(u*(1-I)+h*I,f*(1-I)+v*I);break t}g+=D}t.lineTo(h,v),u=h,f=v,_=0}else{var L=x*x+A*A;L>_&&(S=h,b=v,_=L)}break}case gt.C:{var P=n[w++],R=n[w++],E=n[w++],B=n[w++],k=n[w++],F=n[w++];if(c){var D=d[m++];if(g+D>y){var I=(y-g)/D;Ys(u,P,E,k,I,cn),Ys(f,R,B,F,I,dn),t.bezierCurveTo(cn[1],dn[1],cn[2],dn[2],cn[3],dn[3]);break t}g+=D}t.bezierCurveTo(P,R,E,B,k,F),u=k,f=F;break}case gt.Q:{var P=n[w++],R=n[w++],E=n[w++],B=n[w++];if(c){var D=d[m++];if(g+D>y){var I=(y-g)/D;$s(u,P,E,I,cn),$s(f,R,B,I,dn),t.quadraticCurveTo(cn[1],dn[1],cn[2],dn[2]);break t}g+=D}t.quadraticCurveTo(P,R,E,B),u=E,f=B;break}case gt.A:var G=n[w++],H=n[w++],W=n[w++],$=n[w++],U=n[w++],et=n[w++],st=n[w++],Pt=!n[w++],Nt=W>$?W:$,yt=fr(W-$)>.001,Ct=U+et,tt=!1;if(c){var D=d[m++];g+D>y&&(Ct=U+et*(y-g)/D,tt=!0),g+=D}if(yt&&t.ellipse?t.ellipse(G,H,W,$,st,U,Ct,Pt):t.arc(G,H,Nt,U,Ct,Pt),tt)break t;C&&(s=pn(U)*W+G,l=gn(U)*$+H),u=pn(Ct)*W+G,f=gn(Ct)*$+H;break;case gt.R:s=u=n[w],l=f=n[w+1],h=n[w++],v=n[w++];var lt=n[w++],Ye=n[w++];if(c){var D=d[m++];if(g+D>y){var Ft=y-g;t.moveTo(h,v),t.lineTo(h+Gu(Ft,lt),v),Ft-=lt,Ft>0&&t.lineTo(h+lt,v+Gu(Ft,Ye)),Ft-=Ye,Ft>0&&t.lineTo(h+Hu(lt-Ft,0),v+Ye),Ft-=lt,Ft>0&&t.lineTo(h,v+Hu(Ye-Ft,0));break t}g+=D}t.rect(h,v,lt,Ye);break;case gt.Z:if(c){var D=d[m++];if(g+D>y){var I=(y-g)/D;t.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break t}g+=D}t.closePath(),u=s,f=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=gt,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const Qr=qx;function ui(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var f=l*a-o+u,h=f*f/(l*l+1);return h<=s/2*s/2}function Kx(e,t,r,n,i,a,o,s,l,u,f){if(l===0)return!1;var h=l;if(f>t+h&&f>n+h&&f>a+h&&f>s+h||f<t-h&&f<n-h&&f<a-h&&f<s-h||u>e+h&&u>r+h&&u>i+h&&u>o+h||u<e-h&&u<r-h&&u<i-h&&u<o-h)return!1;var v=Zw(e,t,r,n,i,a,o,s,u,f,null);return v<=h/2}function Qx(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>a+u||l<t-u&&l<n-u&&l<a-u||s>e+u&&s>r+u&&s>i+u||s<e-u&&s<r-u&&s<i-u)return!1;var f=Qw(e,t,r,n,i,a,s,l,null);return f<=u/2}var $d=Math.PI*2;function Bo(e){return e%=$d,e<0&&(e+=$d),e}var aa=Math.PI*2;function Jx(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-i)%aa<1e-4)return!0;if(a){var h=n;n=Bo(i),i=Bo(h)}else n=Bo(n),i=Bo(i);n>i&&(i+=aa);var v=Math.atan2(l,s);return v<0&&(v+=aa),v>=n&&v<=i||v+aa>=n&&v+aa<=i}function mn(e,t,r,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(r-e)+e;return l===i?1/0:l>i?s:0}var Pr=Qr.CMD,yn=Math.PI*2,jx=1e-4;function tC(e,t){return Math.abs(e-t)<jx}var jt=[-1,-1,-1],be=[-1,-1];function eC(){var e=be[0];be[0]=be[1],be[1]=e}function rC(e,t,r,n,i,a,o,s,l,u){if(u>t&&u>n&&u>a&&u>s||u<t&&u<n&&u<a&&u<s)return 0;var f=Ws(t,n,a,s,u,jt);if(f===0)return 0;for(var h=0,v=-1,c=void 0,d=void 0,p=0;p<f;p++){var g=jt[p],m=g===0||g===1?.5:1,y=kt(e,r,i,o,g);y<l||(v<0&&(v=Fy(t,n,a,s,be),be[1]<be[0]&&v>1&&eC(),c=kt(t,n,a,s,be[0]),v>1&&(d=kt(t,n,a,s,be[1]))),v===2?g<be[0]?h+=c<t?m:-m:g<be[1]?h+=d<c?m:-m:h+=s<d?m:-m:g<be[0]?h+=c<t?m:-m:h+=s<c?m:-m)}return h}function nC(e,t,r,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var l=Kw(t,n,a,s,jt);if(l===0)return 0;var u=zy(t,n,a);if(u>=0&&u<=1){for(var f=0,h=Zt(t,n,a,u),v=0;v<l;v++){var c=jt[v]===0||jt[v]===1?.5:1,d=Zt(e,r,i,jt[v]);d<o||(jt[v]<u?f+=h<t?c:-c:f+=a<h?c:-c)}return f}else{var c=jt[0]===0||jt[0]===1?.5:1,d=Zt(e,r,i,jt[0]);return d<o?0:a<t?c:-c}}function iC(e,t,r,n,i,a,o,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);jt[0]=-l,jt[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=yn-1e-4){n=0,i=yn;var f=a?1:-1;return o>=jt[0]+e&&o<=jt[1]+e?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=yn,i+=yn);for(var v=0,c=0;c<2;c++){var d=jt[c];if(d+e>o){var p=Math.atan2(s,d),f=a?1:-1;p<0&&(p=yn+p),(p>=n&&p<=i||p+yn>=n&&p+yn<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),v+=f)}}return v}function b0(e,t,r,n,i){for(var a=e.data,o=e.len(),s=0,l=0,u=0,f=0,h=0,v,c,d=0;d<o;){var p=a[d++],g=d===1;switch(p===Pr.M&&d>1&&(r||(s+=mn(l,u,f,h,n,i))),g&&(l=a[d],u=a[d+1],f=l,h=u),p){case Pr.M:f=a[d++],h=a[d++],l=f,u=h;break;case Pr.L:if(r){if(ui(l,u,a[d],a[d+1],t,n,i))return!0}else s+=mn(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Pr.C:if(r){if(Kx(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=rC(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Pr.Q:if(r){if(Qx(l,u,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=nC(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Pr.A:var m=a[d++],y=a[d++],_=a[d++],S=a[d++],b=a[d++],w=a[d++];d+=1;var T=!!(1-a[d++]);v=Math.cos(b)*_+m,c=Math.sin(b)*S+y,g?(f=v,h=c):s+=mn(l,u,v,c,n,i);var C=(n-m)*S/_+m;if(r){if(Jx(m,y,S,b,b+w,T,t,C,i))return!0}else s+=iC(m,y,S,b,b+w,T,C,i);l=Math.cos(b+w)*_+m,u=Math.sin(b+w)*S+y;break;case Pr.R:f=l=a[d++],h=u=a[d++];var x=a[d++],A=a[d++];if(v=f+x,c=h+A,r){if(ui(f,h,v,h,t,n,i)||ui(v,h,v,c,t,n,i)||ui(v,c,f,c,t,n,i)||ui(f,c,f,h,t,n,i))return!0}else s+=mn(v,h,v,c,n,i),s+=mn(f,c,f,h,n,i);break;case Pr.Z:if(r){if(ui(l,u,f,h,t,n,i))return!0}else s+=mn(l,u,f,h,n,i);l=f,u=h;break}}return!r&&!tC(u,h)&&(s+=mn(l,u,f,h,n,i)||0),s!==0}function aC(e,t,r){return b0(e,0,!1,t,r)}function oC(e,t,r,n){return b0(e,t,!0,r,n)}var w0=mt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},zn),sC={style:mt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Nl.style)},Yu=br.concat(["invisible","culling","z","z2","zlevel","parent"]),lC=function(e){N(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<Yu.length;++s)i[Yu[s]]=this[Yu[s]];i.__dirty|=se}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=pt(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?O(this.style,s):this.useStyle(s):o==="shape"?O(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(Z(r)){var n=Xs(r,0);return n>.5?fh:n>.2?CT:hh}else if(r)return hh}return fh},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Z(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Xs(r,0)<uh;if(a===o)return n}},t.prototype.buildPath=function(r,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~bi},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new Qr(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&bi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f==null?4:f)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),oC(s,l/u,r,n)))return!0}if(this.hasFill())return aC(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=bi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:O(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&bi)},t.prototype.createStyle=function(r){return Il(w0,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=O({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){if(e.prototype._applyStateObj.call(this,r,n,i,a,o,s),this.__inHover!==El){var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=O({},i.shape),O(u,n.shape)):(u=O({},a?this.shape:i.shape),O(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=O({},this.shape);for(var f={},h=pt(u),v=0;v<h.length;v++){var c=h[v];typeof u[c]=="object"?this.shape[c]=u[c]:f[c]=u[c]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return sC},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(a){N(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return it(r.style)},o.prototype.getDefaultShape=function(){return it(r.shape)},o}(t);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=se|ba|bi}(),t}(Jn);const dt=lC;var uC=mt({strokeFirst:!0,font:Kr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},w0),T0=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return _0(this.style)},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return Il(uC,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=Hx(this.style)),this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(Jn);T0.prototype.type="tspan";const Sh=T0;var fC=mt({x:0,y:0},zn),hC={style:mt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Nl.style)};function vC(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var x0=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return Il(fC,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=vC(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return hC},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new nt(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Jn);x0.prototype.type="image";const rn=x0;function cC(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>i&&(h=s+l,s*=i/h,l*=i/h),u+f>i&&(h=u+f,u*=i/h,f*=i/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+f,n+a),f!==0&&e.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5),e.closePath()}var Ai=Math.round;function C0(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Ai(n*2)===Ai(i*2)&&(e.x1=e.x2=Rn(n,s,!0)),Ai(a*2)===Ai(o*2)&&(e.y1=e.y2=Rn(a,s,!0))),e}}function D0(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Rn(n,s,!0),e.y=Rn(i,s,!0),e.width=Math.max(Rn(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Rn(i+o,s,!1)-e.y,o===0?0:1)),e}}function Rn(e,t,r){if(!t)return e;var n=Ai(e*2);return(n+Ai(t))%2===0?n/2:(n+(r?1:-1))/2}var dC=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),pC={},A0=function(e){N(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new dC},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=D0(pC,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?cC(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(dt);A0.prototype.type="rect";const Lt=A0;var Xd={fill:"#000"},Zd=2,qe={},gC={style:mt({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},Nl.style)},M0=function(e){N(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Xd,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,bC(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new nt(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||Xd},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return O(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,n){for(var i=pt(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},O(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return gC},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Kr,i=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||a.align||"left",u=r.verticalAlign||a.verticalAlign||"top";zd(qe,a.overflowRect,o,s,l,u),o=qe.baseX,s=qe.baseY;var f=ep(r),h=Ox(f,r,qe.outerWidth,qe.outerHeight),v=$u(r),c=!!r.backgroundColor,d=h.outerHeight,p=h.outerWidth,g=h.lines,m=h.lineHeight;this.isTruncated=!!h.isTruncated;var y=o,_=Fn(s,h.contentHeight,u);if(v||i){var S=Fi(o,p,l),b=Fn(s,d,u);v&&this._renderBackground(r,r,S,b,p,d)}_+=m/2,i&&(y=tp(o,l,i),u==="top"?_+=i[0]:u==="bottom"&&(_-=i[2]));for(var w=0,T=!1,C=!1,x=jd("fill"in r?r.fill:(C=!0,a.fill)),A=Jd("stroke"in r?r.stroke:!c&&(!a.autoStroke||C)?(w=Zd,T=!0,a.stroke):null),D=r.textShadowBlur>0,I=0;I<g.length;I++){var L=this._getOrCreateChild(Sh),P=L.createStyle();L.useStyle(P),P.text=g[I],P.x=y,P.y=_,l&&(P.textAlign=l),P.textBaseline="middle",P.opacity=r.opacity,P.strokeFirst=!0,D&&(P.shadowBlur=r.textShadowBlur||0,P.shadowColor=r.textShadowColor||"transparent",P.shadowOffsetX=r.textShadowOffsetX||0,P.shadowOffsetY=r.textShadowOffsetY||0),P.stroke=A,P.fill=x,A&&(P.lineWidth=r.lineWidth||w,P.lineDash=r.lineDash,P.lineDashOffset=r.lineDashOffset||0),P.font=n,Kd(P,r),_+=m,L.setBoundingRect(mh(P,h.contentWidth,h.calculatedLineHeight,T?0:null))}},t.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,i=r.align||n.align,a=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;zd(qe,n.overflowRect,o,s,i,a),o=qe.baseX,s=qe.baseY;var l=ep(r),u=Fx(l,r,qe.outerWidth,qe.outerHeight,i),f=u.width,h=u.outerWidth,v=u.outerHeight,c=r.padding;this.isTruncated=!!u.isTruncated;var d=Fi(o,h,i),p=Fn(s,v,a),g=d,m=p;c&&(g+=c[3],m+=c[0]);var y=g+f;$u(r)&&this._renderBackground(r,r,d,p,h,v);for(var _=!!r.backgroundColor,S=0;S<u.lines.length;S++){for(var b=u.lines[S],w=b.tokens,T=w.length,C=b.lineHeight,x=b.width,A=0,D=g,I=y,L=T-1,P=void 0;A<T&&(P=w[A],!P.align||P.align==="left");)this._placeToken(P,r,C,m,D,"left",_),x-=P.width,D+=P.width,A++;for(;L>=0&&(P=w[L],P.align==="right");)this._placeToken(P,r,C,m,I,"right",_),x-=P.width,I-=P.width,L--;for(D+=(f-(D-g)-(y-I)-x)/2;A<=L;)P=w[A],this._placeToken(P,r,C,m,D+P.width/2,"center",_),D+=P.width,A++;m+=C}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,h=a+i/2;f==="top"?h=a+r.height/2:f==="bottom"&&(h=a+i-r.height/2);var v=!r.isLineHolder&&$u(u);v&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,h-r.height/2,r.width,r.height);var c=!!u.backgroundColor,d=r.textPadding;d&&(o=tp(o,s,d),h-=r.height/2-d[0]-r.innerHeight/2);var p=this._getOrCreateChild(Sh),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,_=0,S=!1,b=jd("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),w=Jd("stroke"in u?u.stroke:"stroke"in n?n.stroke:!c&&!l&&(!m.autoStroke||y)?(_=Zd,S=!0,m.stroke):null),T=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=h,T&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||Kr,g.opacity=Bn(u.opacity,n.opacity,1),Kd(g,u),w&&(g.lineWidth=Bn(u.lineWidth,n.lineWidth,_),g.lineDash=Y(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=w),b&&(g.fill=b),p.setBoundingRect(mh(g,r.contentWidth,r.contentHeight,S?0:null))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,h=l&&l.image,v=l&&!h,c=r.borderRadius,d=this,p,g;if(v||r.lineHeight||u&&f){p=this._getOrCreateChild(Lt),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=c,p.dirtyShape()}if(v){var y=p.style;y.fill=l||null,y.fillOpacity=Y(r.fillOpacity,1)}else if(h){g=this._getOrCreateChild(rn),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var y=p.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=Y(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=Bn(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return SC(r)&&(n=[r.fontStyle,r.fontWeight,_C(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&tr(n)||r.textFont||r.font},t}(Jn),mC={left:!0,right:1,center:1},yC={top:1,bottom:1,middle:1},qd=["fontStyle","fontWeight","fontSize","fontFamily"];function _C(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?pv+"px":e+"px"}function Kd(e,t){for(var r=0;r<qd.length;r++){var n=qd[r],i=t[n];i!=null&&(e[n]=i)}}function SC(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function bC(e){return Qd(e),M(e.rich,Qd),e}function Qd(e){if(e){e.font=M0.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||mC[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||yC[r]?r:"top";var n=e.padding;n&&(e.padding=Sv(e.padding))}}function Jd(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function jd(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function tp(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function ep(e){var t=e.text;return t!=null&&(t+=""),t}function $u(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const Bt=M0;var at=ft(),wC=function(e,t,r,n){if(n){var i=at(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=at(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},Zi="undefined",L0="series",I0=Q(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),pe="original",Jt="arrayRows",ke="objectRows",He="keyedColumns",Zr="typedArray",P0="unknown",Fe="column",jn="row",TC=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],xC=function(){function e(t){M(TC,function(r){this[r]=_t(t[r],t)},this)}return e}();function CC(e,t){return t.mainType===L0?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}const R0=xC;var rp=1,np={},E0=ft(),Bv=ft(),Nv=0,Fl=1,zl=2,fe=["emphasis","blur","select"],tl=["normal","emphasis","blur","select"],DC=10,AC=9,Vn="highlight",Is="downplay",el="select",bh="unselect",rl="toggleSelect",Fv="selectchanged";function fi(e){return e!=null&&e!=="none"}function Vl(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function k0(e){Vl(e,"emphasis",zl)}function O0(e){e.hoverState===zl&&Vl(e,"normal",Nv)}function zv(e){Vl(e,"blur",Fl)}function B0(e){e.hoverState===Fl&&Vl(e,"normal",Nv)}function MC(e){e.selected=!0}function LC(e){e.selected=!1}function ip(e,t,r){t(e,r)}function Mr(e,t,r){ip(e,t,r),e.isGroup&&e.traverse(function(n){ip(n,t,r)})}function ap(e,t){switch(t){case"emphasis":e.hoverState=zl;break;case"normal":e.hoverState=Nv;break;case"blur":e.hoverState=Fl;break;case"select":e.selected=!0}}function IC(e,t,r,n){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=l==null?n&&n[s]:l}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function PC(e,t,r,n){var i=r&&ot(r,"select")>=0,a=!1;if(e instanceof dt){var o=E0(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(fi(s)||fi(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=O({},n),u=O({},u),u.fill=s):!fi(u.fill)&&fi(s)?(a=!0,n=O({},n),u=O({},u),u.fill=gd(s)):!fi(u.stroke)&&fi(l)&&(a||(n=O({},n),u=O({},u)),u.stroke=gd(l)),n.style=u}}if(n&&n.z2==null){a||(n=O({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f!=null?f:DC)}return n}function RC(e,t,r){if(r&&r.z2==null){r=O({},r);var n=e.z2SelectLift;r.z2=e.z2+(n!=null?n:AC)}return r}function EC(e,t,r){var n=ot(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:IC(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=O({},r),o=O({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Xu(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return PC(this,e,t,r);if(e==="blur")return EC(this,e,r);if(e==="select")return RC(this,e,r)}return r}function kC(e){e.stateProxy=Xu;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Xu),r&&(r.stateProxy=Xu)}function op(e,t){!V0(e,t)&&!e.__highByOuter&&Mr(e,k0)}function sp(e,t){!V0(e,t)&&!e.__highByOuter&&Mr(e,O0)}function Ja(e,t){e.__highByOuter|=1<<(t||0),Mr(e,k0)}function ja(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Mr(e,O0)}function N0(e){Mr(e,zv)}function Vv(e){Mr(e,B0)}function F0(e){Mr(e,MC)}function z0(e){Mr(e,LC)}function V0(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function G0(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=Bv(a),s=CC(e,a),l=i==="series";!l&&n.push(s),o.isBlured&&(s.group.traverse(function(u){B0(u)}),l&&r.push(a)),o.isBlured=!1}),M(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function wh(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var h=0;h<f.length;h++){var v=u.getItemGraphicEl(f[h]);v&&Vv(v)}}if(e!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var v=h&&s?h===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!v||t==="series"&&f)){var c=n.getViewOfSeriesModel(u);if(c.group.traverse(function(g){g.__highByOuter&&f&&t==="self"||zv(g)}),ne(t))a(u.getData(),t);else if(q(t))for(var d=pt(t),p=0;p<d.length;p++)a(u.getData(d[p]),t[d[p]]);l.push(u),Bv(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var h=n.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,i)}})}}function Th(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){Bv(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){zv(a)})}}}function OC(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=Yn(i,t);a=(z(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=at(o);wh(n,u.focus,u.blurScope,r)}else{var f=e.get(["emphasis","focus"]),h=e.get(["emphasis","blurScope"]);f!=null&&wh(n,f,h,r)}}}function Gv(e,t,r,n){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return i;var a=n.getModel().getComponent(e,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(at(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function BC(e,t,r){var n=at(e),i=Gv(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&Th(n.componentMainType,n.componentIndex,r),M(a,function(s){return op(s,t)})):(wh(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Th(n.componentMainType,n.componentIndex,r),op(e,t))}function NC(e,t,r){G0(r);var n=at(e),i=Gv(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?M(i,function(a){return sp(a,t)}):sp(e,t)}function FC(e,t,r){if(Dh(t)){var n=t.dataType,i=e.getData(n),a=Yn(i,t);z(a)||(a=[a]),e[t.type===rl?"toggleSelect":t.type===el?"select":"unselect"](a,n)}}function lp(e){var t=e.getAllData();M(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){e.isSelected(o,i)?F0(a):z0(a)})})}function zC(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();M(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function xh(e,t,r){H0(e,!0),Mr(e,kC),GC(e,t,r)}function VC(e){H0(e,!1)}function Vi(e,t,r,n){n?VC(e):xh(e,t,r)}function GC(e,t,r){var n=at(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var up=["emphasis","blur","select"],HC={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function nl(e,t,r,n){r=r||"itemStyle";for(var i=0;i<up.length;i++){var a=up[i],o=t.getModel([a,r]),s=e.ensureState(a);s.style=n?n(o):o[HC[r]]()}}function H0(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Ch(e){return!!(e&&e.__highDownDispatcher)}function UC(e){var t=np[e];return t==null&&rp<=32&&(t=np[e]=rp++),t}function Dh(e){var t=e.type;return t===el||t===bh||t===rl}function fp(e){var t=e.type;return t===Vn||t===Is}function WC(e){var t=E0(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var hi=Qr.CMD,YC=[[],[],[]],hp=Math.sqrt,$C=Math.atan2;function XC(e,t){if(t){var r=e.data,n=e.len(),i,a,o,s,l,u,f=hi.M,h=hi.C,v=hi.L,c=hi.R,d=hi.A,p=hi.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case v:a=1;break;case h:a=3;break;case p:a=2;break;case d:var g=t[4],m=t[5],y=hp(t[0]*t[0]+t[1]*t[1]),_=hp(t[2]*t[2]+t[3]*t[3]),S=$C(-t[1]/_,t[0]/y);r[o]*=y,r[o++]+=g,r[o]*=_,r[o++]+=m,r[o++]*=y,r[o++]*=_,r[o++]+=S,r[o++]+=S,o+=2,s=o;break;case c:u[0]=r[o++],u[1]=r[o++],Ie(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],Ie(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var b=YC[l];b[0]=r[o++],b[1]=r[o++],Ie(b,b,t),r[s++]=b[0],r[s++]=b[1]}}e.increaseVersion()}}var Zu=Math.sqrt,No=Math.sin,Fo=Math.cos,oa=Math.PI;function vp(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Ah(e,t){return(e[0]*t[0]+e[1]*t[1])/(vp(e)*vp(t))}function cp(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Ah(e,t))}function dp(e,t,r,n,i,a,o,s,l,u,f){var h=l*(oa/180),v=Fo(h)*(e-r)/2+No(h)*(t-n)/2,c=-1*No(h)*(e-r)/2+Fo(h)*(t-n)/2,d=v*v/(o*o)+c*c/(s*s);d>1&&(o*=Zu(d),s*=Zu(d));var p=(i===a?-1:1)*Zu((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,g=p*o*c/s,m=p*-s*v/o,y=(e+r)/2+Fo(h)*g-No(h)*m,_=(t+n)/2+No(h)*g+Fo(h)*m,S=cp([1,0],[(v-g)/o,(c-m)/s]),b=[(v-g)/o,(c-m)/s],w=[(-1*v-g)/o,(-1*c-m)/s],T=cp(b,w);if(Ah(b,w)<=-1&&(T=oa),Ah(b,w)>=1&&(T=0),T<0){var C=Math.round(T/oa*1e6)/1e6;T=oa*2+C%2*oa}f.addData(u,y,_,o,s,S,T,h,a)}var ZC=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,qC=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function KC(e){var t=new Qr;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=Qr.CMD,l=e.match(ZC);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],h=f.charAt(0),v=void 0,c=f.match(qC)||[],d=c.length,p=0;p<d;p++)c[p]=parseFloat(c[p]);for(var g=0;g<d;){var m=void 0,y=void 0,_=void 0,S=void 0,b=void 0,w=void 0,T=void 0,C=r,x=n,A=void 0,D=void 0;switch(h){case"l":r+=c[g++],n+=c[g++],v=s.L,t.addData(v,r,n);break;case"L":r=c[g++],n=c[g++],v=s.L,t.addData(v,r,n);break;case"m":r+=c[g++],n+=c[g++],v=s.M,t.addData(v,r,n),i=r,a=n,h="l";break;case"M":r=c[g++],n=c[g++],v=s.M,t.addData(v,r,n),i=r,a=n,h="L";break;case"h":r+=c[g++],v=s.L,t.addData(v,r,n);break;case"H":r=c[g++],v=s.L,t.addData(v,r,n);break;case"v":n+=c[g++],v=s.L,t.addData(v,r,n);break;case"V":n=c[g++],v=s.L,t.addData(v,r,n);break;case"C":v=s.C,t.addData(v,c[g++],c[g++],c[g++],c[g++],c[g++],c[g++]),r=c[g-2],n=c[g-1];break;case"c":v=s.C,t.addData(v,c[g++]+r,c[g++]+n,c[g++]+r,c[g++]+n,c[g++]+r,c[g++]+n),r+=c[g-2],n+=c[g-1];break;case"S":m=r,y=n,A=t.len(),D=t.data,o===s.C&&(m+=r-D[A-4],y+=n-D[A-3]),v=s.C,C=c[g++],x=c[g++],r=c[g++],n=c[g++],t.addData(v,m,y,C,x,r,n);break;case"s":m=r,y=n,A=t.len(),D=t.data,o===s.C&&(m+=r-D[A-4],y+=n-D[A-3]),v=s.C,C=r+c[g++],x=n+c[g++],r+=c[g++],n+=c[g++],t.addData(v,m,y,C,x,r,n);break;case"Q":C=c[g++],x=c[g++],r=c[g++],n=c[g++],v=s.Q,t.addData(v,C,x,r,n);break;case"q":C=c[g++]+r,x=c[g++]+n,r+=c[g++],n+=c[g++],v=s.Q,t.addData(v,C,x,r,n);break;case"T":m=r,y=n,A=t.len(),D=t.data,o===s.Q&&(m+=r-D[A-4],y+=n-D[A-3]),r=c[g++],n=c[g++],v=s.Q,t.addData(v,m,y,r,n);break;case"t":m=r,y=n,A=t.len(),D=t.data,o===s.Q&&(m+=r-D[A-4],y+=n-D[A-3]),r+=c[g++],n+=c[g++],v=s.Q,t.addData(v,m,y,r,n);break;case"A":_=c[g++],S=c[g++],b=c[g++],w=c[g++],T=c[g++],C=r,x=n,r=c[g++],n=c[g++],v=s.A,dp(C,x,r,n,w,T,_,S,b,v,t);break;case"a":_=c[g++],S=c[g++],b=c[g++],w=c[g++],T=c[g++],C=r,x=n,r+=c[g++],n+=c[g++],v=s.A,dp(C,x,r,n,w,T,_,S,b,v,t);break}}(h==="z"||h==="Z")&&(v=s.Z,t.addData(v),r=i,n=a),o=v}return t.toStatic(),t}var U0=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(dt);function W0(e){return e.setData!=null}function Y0(e,t){var r=KC(e),n=O({},t);return n.buildPath=function(i){var a=W0(i);if(a&&i.canSave()){i.appendPath(r);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=a?i.getContext():i;o&&r.rebuildPath(o,1)}},n.applyTransform=function(i){XC(r,i),this.dirtyShape()},n}function QC(e,t){return new U0(Y0(e,t))}function JC(e,t){var r=Y0(e,t),n=function(i){N(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(U0);return n}function jC(e,t){for(var r=[],n=e.length,i=0;i<n;i++){var a=e[i];r.push(a.getUpdatedPathProxy(!0))}var o=new dt(t);return o.createPathProxy(),o.buildPath=function(s){if(W0(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var tD=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),$0=function(e){N(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new tD},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(dt);$0.prototype.type="circle";const Hv=$0;var eD=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),X0=function(e){N(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new eD},t.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},t}(dt);X0.prototype.type="ellipse";const Z0=X0;var q0=Math.PI,qu=q0*2,_n=Math.sin,vi=Math.cos,rD=Math.acos,$t=Math.atan2,pp=Math.abs,ka=Math.sqrt,Ta=Math.max,Ke=Math.min,Be=1e-4;function nD(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,f=o-i,h=s-a,v=h*l-f*u;if(!(v*v<Be))return v=(f*(t-a)-h*(e-i))/v,[e+v*l,t+v*u]}function zo(e,t,r,n,i,a,o){var s=e-r,l=t-n,u=(o?a:-a)/ka(s*s+l*l),f=u*l,h=-u*s,v=e+f,c=t+h,d=r+f,p=n+h,g=(v+d)/2,m=(c+p)/2,y=d-v,_=p-c,S=y*y+_*_,b=i-a,w=v*p-d*c,T=(_<0?-1:1)*ka(Ta(0,b*b*S-w*w)),C=(w*_-y*T)/S,x=(-w*y-_*T)/S,A=(w*_+y*T)/S,D=(-w*y+_*T)/S,I=C-g,L=x-m,P=A-g,R=D-m;return I*I+L*L>P*P+R*R&&(C=A,x=D),{cx:C,cy:x,x0:-f,y0:-h,x1:C*(i/b-1),y1:x*(i/b-1)}}function iD(e){var t;if(z(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function aD(e,t){var r,n=Ta(t.r,0),i=Ta(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,h=t.cy,v=!!t.clockwise,c=pp(u-l),d=c>qu&&c%qu;if(d>Be&&(c=d),!(n>Be))e.moveTo(f,h);else if(c>qu-Be)e.moveTo(f+n*vi(l),h+n*_n(l)),e.arc(f,h,n,l,u,!v),i>Be&&(e.moveTo(f+i*vi(u),h+i*_n(u)),e.arc(f,h,i,u,l,v));else{var p=void 0,g=void 0,m=void 0,y=void 0,_=void 0,S=void 0,b=void 0,w=void 0,T=void 0,C=void 0,x=void 0,A=void 0,D=void 0,I=void 0,L=void 0,P=void 0,R=n*vi(l),E=n*_n(l),B=i*vi(u),k=i*_n(u),F=c>Be;if(F){var G=t.cornerRadius;G&&(r=iD(G),p=r[0],g=r[1],m=r[2],y=r[3]);var H=pp(n-i)/2;if(_=Ke(H,m),S=Ke(H,y),b=Ke(H,p),w=Ke(H,g),x=T=Ta(_,S),A=C=Ta(b,w),(T>Be||C>Be)&&(D=n*vi(u),I=n*_n(u),L=i*vi(l),P=i*_n(l),c<q0)){var W=nD(R,E,L,P,D,I,B,k);if(W){var $=R-W[0],U=E-W[1],et=D-W[0],st=I-W[1],Pt=1/_n(rD(($*et+U*st)/(ka($*$+U*U)*ka(et*et+st*st)))/2),Nt=ka(W[0]*W[0]+W[1]*W[1]);x=Ke(T,(n-Nt)/(Pt+1)),A=Ke(C,(i-Nt)/(Pt-1))}}}if(!F)e.moveTo(f+R,h+E);else if(x>Be){var yt=Ke(m,x),Ct=Ke(y,x),tt=zo(L,P,R,E,n,yt,v),lt=zo(D,I,B,k,n,Ct,v);e.moveTo(f+tt.cx+tt.x0,h+tt.cy+tt.y0),x<T&&yt===Ct?e.arc(f+tt.cx,h+tt.cy,x,$t(tt.y0,tt.x0),$t(lt.y0,lt.x0),!v):(yt>0&&e.arc(f+tt.cx,h+tt.cy,yt,$t(tt.y0,tt.x0),$t(tt.y1,tt.x1),!v),e.arc(f,h,n,$t(tt.cy+tt.y1,tt.cx+tt.x1),$t(lt.cy+lt.y1,lt.cx+lt.x1),!v),Ct>0&&e.arc(f+lt.cx,h+lt.cy,Ct,$t(lt.y1,lt.x1),$t(lt.y0,lt.x0),!v))}else e.moveTo(f+R,h+E),e.arc(f,h,n,l,u,!v);if(!(i>Be)||!F)e.lineTo(f+B,h+k);else if(A>Be){var yt=Ke(p,A),Ct=Ke(g,A),tt=zo(B,k,D,I,i,-Ct,v),lt=zo(R,E,L,P,i,-yt,v);e.lineTo(f+tt.cx+tt.x0,h+tt.cy+tt.y0),A<C&&yt===Ct?e.arc(f+tt.cx,h+tt.cy,A,$t(tt.y0,tt.x0),$t(lt.y0,lt.x0),!v):(Ct>0&&e.arc(f+tt.cx,h+tt.cy,Ct,$t(tt.y0,tt.x0),$t(tt.y1,tt.x1),!v),e.arc(f,h,i,$t(tt.cy+tt.y1,tt.cx+tt.x1),$t(lt.cy+lt.y1,lt.cx+lt.x1),v),yt>0&&e.arc(f+lt.cx,h+lt.cy,yt,$t(lt.y1,lt.x1),$t(lt.y0,lt.x0),!v))}else e.lineTo(f+B,h+k),e.arc(f,h,i,u,l,v)}e.closePath()}}}var oD=function(){function e(){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 e}(),K0=function(e){N(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new oD},t.prototype.buildPath=function(r,n){aD(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(dt);K0.prototype.type="sector";const ti=K0;var sD=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Q0=function(e){N(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new sD},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}(dt);Q0.prototype.type="ring";const J0=Q0;function lD(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var v=0,c=e.length;v<c;v++)Ti(f,f,e[v]),xi(h,h,e[v]);Ti(f,f,n[0]),xi(h,h,n[1])}for(var v=0,c=e.length;v<c;v++){var d=e[v];if(r)l=e[v?v-1:c-1],u=e[(v+1)%c];else if(v===0||v===c-1){i.push(fw(e[v]));continue}else l=e[v-1],u=e[v+1];Dy(a,u,l),uu(a,a,t);var p=Yf(d,l),g=Yf(d,u),m=p+g;m!==0&&(p/=m,g/=m),uu(o,a,-p),uu(s,a,g);var y=Jc([],d,o),_=Jc([],d,s);n&&(xi(y,y,f),Ti(y,y,h),xi(_,_,f),Ti(_,_,h)),i.push(y),i.push(_)}return r&&i.push(i.shift()),i}function j0(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=lD(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;s<h;s++)e.lineTo(i[s][0],i[s][1])}r&&e.closePath()}}var uD=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),t_=function(e){N(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new uD},t.prototype.buildPath=function(r,n){j0(r,n,!0)},t}(dt);t_.prototype.type="polygon";const e_=t_;var fD=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),r_=function(e){N(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new fD},t.prototype.buildPath=function(r,n){j0(r,n,!1)},t}(dt);r_.prototype.type="polyline";const Gl=r_;var hD={},vD=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),n_=function(e){N(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new vD},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=C0(hD,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(dt);n_.prototype.type="line";const Jr=n_;var ie=[],cD=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function gp(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?hd:kt)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?hd:kt)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?vd:Zt)(e.x1,e.cpx1,e.x2,t),(r?vd:Zt)(e.y1,e.cpy1,e.y2,t)]}var i_=function(e){N(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new cD},t.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,h=n.cpy2,v=n.percent;v!==0&&(r.moveTo(i,a),f==null||h==null?(v<1&&($s(i,l,o,v,ie),l=ie[1],o=ie[2],$s(a,u,s,v,ie),u=ie[1],s=ie[2]),r.quadraticCurveTo(l,u,o,s)):(v<1&&(Ys(i,l,f,o,v,ie),l=ie[1],f=ie[2],o=ie[3],Ys(a,u,h,s,v,ie),u=ie[1],h=ie[2],s=ie[3]),r.bezierCurveTo(l,u,f,h,o,s)))},t.prototype.pointAt=function(r){return gp(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=gp(this.shape,r,!0);return bv(n,n)},t}(dt);i_.prototype.type="bezier-curve";const Uv=i_;var dD=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),a_=function(e){N(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new dD},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),h=Math.sin(s);r.moveTo(f*o+i,h*o+a),r.arc(i,a,o,s,l,!u)},t}(dt);a_.prototype.type="arc";const Wv=a_;var pD=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),dt.prototype.getBoundingRect.call(this)},t}(dt);const gD=pD;var mD=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}();const o_=mD;var yD=function(e){N(t,e);function t(r,n,i,a,o,s){var l=e.call(this,o)||this;return l.x=r==null?0:r,l.y=n==null?0:n,l.x2=i==null?1:i,l.y2=a==null?0:a,l.type="linear",l.global=s||!1,l}return t}(o_);const s_=yD;var _D=function(e){N(t,e);function t(r,n,i,a,o){var s=e.call(this,a)||this;return s.x=r==null?.5:r,s.y=n==null?.5:n,s.r=i==null?.5:i,s.type="radial",s.global=o||!1,s}return t}(o_);const SD=_D;var Ku=Math.min,bD=Math.max,Vo=Math.abs,Sn=[0,0],bn=[0,0],Vt=Ly(),Go=Vt.minTv,Ho=Vt.maxTv,wD=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new rt;for(var n=0;n<2;n++)this._axes[n]=new rt;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);rt.sub(i[0],n[1],n[0]),rt.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},e.prototype.intersect=function(t,r,n){var i=!0,a=!r;return r&&rt.set(r,0,0),Vt.reset(n,!a),!this._intersectCheckOneSide(this,t,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(t,this,a,-1)&&(i=!1,a)||!a&&!Vt.negativeSize&&rt.copy(r,i?Vt.useDir?Vt.dirMinTv:Go:Ho),i},e.prototype._intersectCheckOneSide=function(t,r,n,i){for(var a=!0,o=0;o<2;o++){var s=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,Sn),t._getProjMinMaxOnAxis(o,r._corners,bn),Vt.negativeSize||Sn[1]<bn[0]||Sn[0]>bn[1]){if(a=!1,Vt.negativeSize||n)return a;var l=Vo(bn[0]-Sn[1]),u=Vo(Sn[0]-bn[1]);Ku(l,u)>Ho.len()&&(l<u?rt.scale(Ho,s,-l*i):rt.scale(Ho,s,u*i))}else if(!n){var l=Vo(bn[0]-Sn[1]),u=Vo(Sn[0]-bn[1]);(Vt.useDir||Ku(l,u)<Go.len())&&((l<u||!Vt.bidirectional)&&(rt.scale(Go,s,l*i),Vt.useDir&&Vt.calcDirMTV()),(l>=u||!Vt.bidirectional)&&(rt.scale(Go,s,-u*i),Vt.useDir&&Vt.calcDirMTV()))}}return a},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var i=this._axes[t],a=this._origin,o=r[0].dot(i)+a[t],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(i)+a[t];s=Ku(f,s),l=bD(f,l)}n[0]=s+Vt.touchThreshold,n[1]=l-Vt.touchThreshold,Vt.negativeSize=n[1]<n[0]},e}();const l_=wD;var u_=0,TD=1,xD=2,CD=1,Ps=0,DD=[],AD=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=TD,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype._useHoverStyle=function(){this.__hoverStyle=null},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new nt(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(DD)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t}(Jn);const MD=AD;var LD=ft();function Yv(e,t,r,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,f=void 0,h=void 0;n?(u=Y(n.duration,200),f=Y(n.easing,"cubicOut"),h=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),h=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),j(h)&&(h=h(r,i)),j(u)&&(u=u(r));var v={duration:u||0,delay:h,easing:f};return v}else return null}function $v(e,t,r,n,i,a,o){var s=!1,l;j(i)?(o=a,a=i,i=null):q(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var f=Yv(e,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(f&&f.duration>0){var h=f.duration,v=f.delay,c=f.easing,d={duration:h,delay:v||0,easing:c,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,d):t.animateTo(r,d)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function Yt(e,t,r,n,i,a){$v("update",e,t,r,n,i,a)}function de(e,t,r,n,i,a){$v("enter",e,t,r,n,i,a)}function Oa(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function il(e,t,r,n,i,a){Oa(e)||$v("leave",e,t,r,n,i,a)}function mp(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),il(e,{style:{opacity:0}},t,r,n)}function Ba(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||mp(i,t,r,n)}):mp(e,t,r,n)}function Xv(e){LD(e).oldStyle=e.style}var Mh={},Gr=["x","y"],Gi=["width","height"],f_=0,h_=1,Hl=2;function ID(e){return dt.extend(e)}var PD=JC;function RD(e,t){return PD(e,t)}function Ue(e,t){Mh[e]=t}function v_(e){if(Mh.hasOwnProperty(e))return Mh[e]}function Zv(e,t,r,n){var i=QC(e,t);return r&&(n==="center"&&(r=d_(r,i.getBoundingRect())),p_(i,r)),i}function c_(e,t,r){var n=new rn({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(d_(t,a))}}});return n}function d_(e,t){var r=t.width/t.height,n=e.height*r,i;n<=e.width?i=e.height:(n=e.width,i=n/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var ED=jC;function p_(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function to(e,t){return C0(e,e,{lineWidth:t}),e}function kD(e,t){return D0(e,e,t),e}var OD=Rn;function BD(e,t){for(var r=vo([]);e&&e!==t;)Ia(r,e.getLocalTransform(),r),e=e.parent;return r}function qv(e,t,r){return t&&!ne(t)&&(t=Pl.getLocalTransform(t)),r&&(t=co([],t)),Ie([],e,t)}function ND(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Et(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Et(2*t[4]/t[2]),a=[e==="left"?-n:e==="right"?n:0,e==="top"?-i:e==="bottom"?i:0];return a=qv(a,t,r),Et(a[0])>Et(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function yp(e){return!e.isGroup}function FD(e){return e.shape!=null}function g_(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){yp(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return FD(o)&&(s.shape=it(o.shape)),s}var a=n(e);t.traverse(function(o){if(yp(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Yt(o,l,r,at(o).dataIndex)}}})}function zD(e,t){return X(e,function(r){var n=r[0];n=ct(n,t.x),n=Qt(n,t.x+t.width);var i=r[1];return i=ct(i,t.y),i=Qt(i,t.y+t.height),[n,i]})}function VD(e,t){var r=ct(e.x,t.x),n=Qt(e.x+e.width,t.x+t.width),i=ct(e.y,t.y),a=Qt(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function Kv(e,t,r){var n=O({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),mt(i,r),new rn(n)):Zv(e.replace("path://",""),n,r,"center")}function GD(e,t,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(m_(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function m_(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,f=o-i,h=s-a,v=Qu(f,h,l,u);if(HD(v))return!1;var c=e-i,d=t-a,p=Qu(c,d,l,u)/v;if(p<0||p>1)return!1;var g=Qu(c,d,f,h)/v;return!(g<0||g>1)}function Qu(e,t,r,n){return e*n-r*t}function HD(e){return e<=1e-6&&e>=-1e-6}function al(e,t,r,n,i){return t==null||(St(t)?Tt[0]=Tt[1]=Tt[2]=Tt[3]=t:(Tt[0]=t[0],Tt[1]=t[1],Tt[2]=t[2],Tt[3]=t[3]),n&&(Tt[0]=ct(0,Tt[0]),Tt[1]=ct(0,Tt[1]),Tt[2]=ct(0,Tt[2]),Tt[3]=ct(0,Tt[3])),r&&(Tt[0]=-Tt[0],Tt[1]=-Tt[1],Tt[2]=-Tt[2],Tt[3]=-Tt[3]),_p(e,Tt,"x","width",3,1,i&&i[0]||0),_p(e,Tt,"y","height",0,2,i&&i[1]||0)),e}var Tt=[0,0,0,0];function _p(e,t,r,n,i,a,o){var s=t[a]+t[i],l=e[n];e[n]+=s,o=ct(0,Qt(o,l)),e[n]<o?(e[n]=o,e[r]+=t[i]>=0?-t[i]:t[a]>=0?l+t[a]:Et(s)>1e-8?(l-o)*t[i]/s:0):e[r]-=t[i]}function _o(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=Z(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&M(pt(l),function(f){J(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=at(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:mt({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function Lh(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function So(e,t){if(e)if(z(e))for(var r=0;r<e.length;r++)Lh(e[r],t);else Lh(e,t)}function Qv(e){return!e||Et(e[1])<Uo&&Et(e[2])<Uo||Et(e[0])<Uo&&Et(e[3])<Uo}var Uo=1e-5;function eo(e,t){return e?nt.copy(e,t):t.clone()}function Jv(e,t){return t?Tv(e||rr(),t):void 0}function jv(e){return{z:e.get("z")||0,zlevel:e.get("zlevel")||0}}function UD(e){var t=-1/0,r=1/0;Lh(e,function(a){n(a),n(a.getTextContent()),n(a.getTextGuideLine())});function n(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)i(a.states[o[s]]);i(a)}}function i(a){if(a){var o=a.z2;o>t&&(t=o),o<r&&(r=o)}}return r>t&&(r=t=0),{min:r,max:t}}function tc(e,t,r){y_(e,t,r,-1/0)}function y_(e,t,r,n){if(e.ignoreModelZ)return n;var i=e.getTextContent(),a=e.getTextGuideLine(),o=e.isGroup;if(o)for(var s=e.childrenRef(),l=0;l<s.length;l++)n=ct(y_(s[l],t,r,n),n);else e.z=t,e.zlevel=r,n=ct(e.z2||0,n);if(i&&(i.z=t,i.zlevel=r,isFinite(n)&&(i.z2=n+2)),a){var u=e.textGuideLineConfig;a.z=t,a.zlevel=r,isFinite(n)&&(a.z2=n+(u&&u.showAbove?1:-1))}return n}function WD(e){return e.animation={duration:0},e}function YD(e,t){return t?Tv(xa.transform,t):vo(xa.transform),xa.decomposeTransform(),qs(e,xa),e}var xa=new Pl;xa.transform=rr();function $D(e){var t=e.getZr().painter;return t.getType()==="canvas"?t:null}Ue("circle",Hv);Ue("ellipse",Z0);Ue("sector",ti);Ue("ring",J0);Ue("polygon",e_);Ue("polyline",Gl);Ue("rect",Lt);Ue("line",Jr);Ue("bezierCurve",Uv);Ue("arc",Wv);const XD=Object.freeze(Object.defineProperty({__proto__:null,Arc:Wv,BezierCurve:Uv,BoundingRect:nt,Circle:Hv,CompoundPath:gD,Ellipse:Z0,Group:It,HOVER_LAYER_FOR_INCREMENTAL:Hl,HOVER_LAYER_FROM_THRESHOLD:h_,HOVER_LAYER_NO:f_,Image:rn,IncrementalDisplayable:MD,Line:Jr,LinearGradient:s_,OrientedBoundingRect:l_,Path:dt,Point:rt,Polygon:e_,Polyline:Gl,RadialGradient:SD,Rect:Lt,Ring:J0,Sector:ti,Text:Bt,WH:Gi,XY:Gr,applyTransform:qv,calcZ2Range:UD,clipPointsByRect:zD,clipRectByRect:VD,createIcon:Kv,decomposeTransform:YD,ensureCopyRect:eo,ensureCopyTransform:Jv,expandOrShrinkRect:al,extendPath:RD,extendShape:ID,getCurrentCanvasPainter:$D,getShapeClass:v_,getTransform:BD,groupTransition:g_,initProps:de,isBoundingRectAxisAligned:Qv,isElementRemoved:Oa,lineLineIntersect:m_,linePolygonIntersect:GD,makeImage:c_,makePath:Zv,mergePath:ED,payloadDisableAnimation:WD,registerShape:Ue,removeElement:il,removeElementWithFadeOut:Ba,resizePath:p_,retrieveZInfo:jv,setTooltipConfig:_o,subPixelOptimize:OD,subPixelOptimizeLine:to,subPixelOptimizeRect:kD,transformDirection:ND,traverseElements:So,traverseUpdateZ:tc,updateProps:Yt},Symbol.toStringTag,{value:"Module"}));var Ul={};function ZD(e,t){for(var r=0;r<fe.length;r++){var n=fe[r],i=t[n],a=e.ensureState(n);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function Sp(e,t,r){var n=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=j(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var l={normal:s},u=0;u<fe.length;u++){var f=fe[u],h=t[f];l[f]=Y(n?n.getFormattedLabel(i,f,null,a,h&&h.get("formatter")):null,s)}return l}function qi(e,t,r,n){r=r||Ul;for(var i=e instanceof Bt,a=!1,o=0;o<tl.length;o++){var s=t[tl[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?e:e.getTextContent();if(a){i||(l||(l=new Bt,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=Sp(r,t),f=t.normal,h=!!f.getShallow("show"),v=jr(f,n&&n.normal,r,!1,!i);v.text=u.normal,i||e.setTextConfig(bp(f,r,!1));for(var o=0;o<fe.length;o++){var c=fe[o],s=t[c];if(s){var d=l.ensureState(c),p=!!Y(s.getShallow("show"),h);if(p!==h&&(d.ignore=!p),d.style=jr(s,n&&n[c],r,!0,!i),d.style.text=u[c],!i){var g=e.ensureState(c);g.textConfig=bp(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!h,l.useStyle(v),l.dirty(),r.enableTextSetter&&(Wl(l).setLabelText=function(m){var y=Sp(r,t,m);ZD(l,y)})}else l&&(l.ignore=!0);e.dirty()}function ei(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<fe.length;n++){var i=fe[n];r[i]=e.getModel([i,t])}return r}function jr(e,t,r,n,i){var a={};return qD(a,e,r,n,i),t&&O(a,t),a}function bp(e,t,r){t=t||{};var n={},i,a=e.getShallow("rotate"),o=Y(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(n.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(n.layoutRect=t.layoutRect),n}function qD(e,t,r,n,i){r=r||Ul;var a=t.ecModel,o=a&&a.option.textStyle,s=KD(t),l;if(s){l={};var u="richInheritPlainLabel",f=Y(t.get(u),a?a.get(u):void 0);for(var h in s)if(s.hasOwnProperty(h)){var v=t.getModel(["rich",h]);Cp(l[h]={},v,o,t,f,r,n,i,!1,!0)}}l&&(e.rich=l);var c=t.get("overflow");c&&(e.overflow=c);var d=t.get("lineOverflow");d&&(e.lineOverflow=d);var p=e,g=t.get("minMargin");if(g!=null)g=St(g)?g/2:0,p.margin=[g,g,g,g],p.__marginType=Mi.minMargin;else{var m=t.get("textMargin");m!=null&&(p.margin=Sv(m),p.__marginType=Mi.textMargin)}Cp(e,t,o,null,null,r,n,i,!0,!1)}function KD(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||Ul).rich;if(r){t=t||{};for(var n=pt(r),i=0;i<n.length;i++){var a=n[i];t[a]=1}}e=e.parentModel}return t}var wp=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Tp=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],xp=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Cp(e,t,r,n,i,a,o,s,l,u){r=!o&&r||Ul;var f=a&&a.inheritColor,h=t.getShallow("color"),v=t.getShallow("textBorderColor"),c=Y(t.getShallow("opacity"),r.opacity);(h==="inherit"||h==="auto")&&(f?h=f:h=null),(v==="inherit"||v==="auto")&&(f?v=f:v=null),s||(h=h||r.color,v=v||r.textBorderColor),h!=null&&(e.fill=h),v!=null&&(e.stroke=v);var d=Y(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var p=Y(t.getShallow("textBorderType"),r.textBorderType);p!=null&&(e.lineDash=p);var g=Y(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&c==null&&!u&&(c=a&&a.defaultOpacity),c!=null&&(e.opacity=c),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var m=0;m<wp.length;m++){var y=wp[m],_=i!==!1&&n?Bn(t.getShallow(y),n.getShallow(y),r[y]):Y(t.getShallow(y),r[y]);_!=null&&(e[y]=_)}for(var m=0;m<Tp.length;m++){var y=Tp[m],_=t.getShallow(y);_!=null&&(e[y]=_)}if(e.verticalAlign==null){var S=t.getShallow("baseline");S!=null&&(e.verticalAlign=S)}if(!l||!a.disableBox){for(var m=0;m<xp.length;m++){var y=xp[m],_=t.getShallow(y);_!=null&&(e[y]=_)}var b=t.getShallow("borderType");b!=null&&(e.borderDash=b),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&f&&(e.backgroundColor=f),(e.borderColor==="auto"||e.borderColor==="inherit")&&f&&(e.borderColor=f)}}function QD(e,t){var r=t&&t.getModel("textStyle");return tr([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var Wl=ft();function JD(e,t,r,n){if(e){var i=Wl(e);i.prevValue=i.value,i.value=r;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}var Mi={minMargin:1,textMargin:2},jD=["textStyle","color"],Ju=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],ju=new Bt,tA=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(jD):null)},e.prototype.getFont=function(){return QD({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Ju.length;n++)r[Ju[n]]=this.getShallow(Ju[n]);return ju.useStyle(r),ju.update(),ju.getBoundingRect()},e}();const eA=tA;var __=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],rA=Qa(__),nA=function(){function e(){}return e.prototype.getLineStyle=function(t){return rA(this,t)},e}(),S_=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],iA=Qa(S_),aA=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return iA(this,t,r)},e}(),ri=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){vt(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,i=n==null?n:n[t];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},e.prototype.getModel=function(t,r){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(it(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!ut.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();kv(ri);Dx(ri);Ge(ri,nA);Ge(ri,aA);Ge(ri,Px);Ge(ri,eA);const Wt=ri;var oA=Math.round(Math.random()*10);function Yl(e){return[e||"",oA++].join("_")}function sA(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=er(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var a=er(r).main;e.hasSubTypes(r)&&t[a]&&(i=t[a](n))}return i}}function lA(e,t){e.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,h=u.noEntryList,v={};for(M(a,function(y){v[y]=!0});h.length;){var c=h.pop(),d=f[c],p=!!v[c];p&&(s.call(l,c,d.originalDeps.slice()),delete v[c]),M(d.successor,p?m:g)}M(v,function(){var y="";throw new Error(y)});function g(y){f[y].entryCount--,f[y].entryCount===0&&h.push(y)}function m(y){v[y]=!0,g(y)}};function r(a){var o={},s=[];return M(a,function(l){var u=n(o,l),f=u.originalDeps=t(l),h=i(f,a);u.entryCount=h.length,u.entryCount===0&&s.push(l),M(h,function(v){ot(u.predecessor,v)<0&&u.predecessor.push(v);var c=n(o,v);ot(c.successor,v)<0&&c.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return M(a,function(l){ot(o,l)>=0&&s.push(l)}),s}}function b_(e,t){return vt(vt({},e,!0),t,!0)}const uA={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:". "}}}},fA={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 ol="ZH",ec="EN",Pi=ec,Rs={},rc={},w_=ut.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Pi).toUpperCase();return e.indexOf(ol)>-1?ol:Pi}():Pi;function T_(e,t){e=e.toUpperCase(),rc[e]=new Wt(t),Rs[e]=t}function hA(e){if(Z(e)){var t=Rs[e.toUpperCase()]||{};return e===ol||e===ec?it(t):vt(it(t),it(Rs[Pi]),!1)}else return vt(it(e),it(Rs[Pi]),!1)}function vA(e){return rc[e]}function cA(){return rc[Pi]}T_(ec,uA);T_(ol,fA);var dA=null;function re(){return dA}function x_(e,t){var r=re(),n=t.breakOption,i=t.breakParsed;return!i&&r&&(i=r.parseAxisBreakOption(n,e)),i}function sl(e){var t=e.brk;return t?t.breaks:[]}function ll(e){var t=e.brk;return t?t.hasBreaks():!1}var nc=1e3,ic=nc*60,Na=ic*60,Me=Na*24,Dp=Me*365,pA={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})/},Es={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},gA="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Wo="{yyyy}-{MM}-{dd}",Ap={year:"{yyyy}",month:"{yyyy}-{MM}",day:Wo,hour:Wo+" "+Es.hour,minute:Wo+" "+Es.minute,second:Wo+" "+Es.second,millisecond:gA},he=["year","month","day","hour","minute","second","millisecond"],mA=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function yA(e){return!Z(e)&&!j(e)?_A(e):e}function _A(e){e=e||{};var t={},r=!0;return M(he,function(n){r&&(r=e[n]==null)}),M(he,function(n,i){var a=e[n];t[n]={};for(var o=null,s=i;s>=0;s--){var l=he[s],u=q(a)&&!z(a)?a[l]:a,f=void 0;z(u)?(f=u.slice(),o=f[0]||""):Z(u)?(o=u,f=[o]):(o==null?o=Es[n]:pA[l].test(o)||(o=t[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),t[n][l]=f}}),t}function Rr(e,t){return e+="","0000".substr(0,t-e.length)+e}function Fa(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function SA(e){return e===Fa(e)}function bA(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function $l(e,t,r,n){var i=Xi(e),a=i[C_(r)](),o=i[ac(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[oc(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[sc(r)](),h=(f-1)%12+1,v=i[lc(r)](),c=i[uc(r)](),d=i[fc(r)](),p=f>=12?"pm":"am",g=p.toUpperCase(),m=n instanceof Wt?n:vA(n||w_)||cA(),y=m.getModel("time"),_=y.get("month"),S=y.get("monthAbbr"),b=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Rr(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Rr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Rr(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Rr(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Rr(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Rr(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Rr(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,Rr(d,3)).replace(/{S}/g,d+"")}function wA(e,t,r,n,i){var a=null;if(Z(r))a=r;else if(j(r)){var o={time:e.time,level:e.time?e.time.level:0},s=re();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=r(e.value,t,o)}else{var l=e.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var f=Ri(e.value,i);a=r[f][f][0]}}return $l(new Date(e.value),a,i,n)}function Ri(e,t){var r=Xi(e),n=r[ac(t)]()+1,i=r[oc(t)](),a=r[sc(t)](),o=r[lc(t)](),s=r[uc(t)](),l=r[fc(t)](),u=l===0,f=u&&s===0,h=f&&o===0,v=h&&a===0,c=v&&i===1,d=c&&n===1;return d?"year":c?"month":v?"day":h?"hour":f?"minute":u?"second":"millisecond"}function Ih(e,t,r){switch(t){case"year":e[D_(r)](0);case"month":e[A_(r)](1);case"day":e[M_(r)](0);case"hour":e[L_(r)](0);case"minute":e[I_(r)](0);case"second":e[P_(r)](0)}return e}function C_(e){return e?"getUTCFullYear":"getFullYear"}function ac(e){return e?"getUTCMonth":"getMonth"}function oc(e){return e?"getUTCDate":"getDate"}function sc(e){return e?"getUTCHours":"getHours"}function lc(e){return e?"getUTCMinutes":"getMinutes"}function uc(e){return e?"getUTCSeconds":"getSeconds"}function fc(e){return e?"getUTCMilliseconds":"getMilliseconds"}function TA(e){return e?"setUTCFullYear":"setFullYear"}function D_(e){return e?"setUTCMonth":"setMonth"}function A_(e){return e?"setUTCDate":"setDate"}function M_(e){return e?"setUTCHours":"setHours"}function L_(e){return e?"setUTCMinutes":"setMinutes"}function I_(e){return e?"setUTCSeconds":"setSeconds"}function P_(e){return e?"setUTCMilliseconds":"setMilliseconds"}function R_(e){if(!ZT(e))return Z(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function E_(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Xl=Sv;function Ph(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&tr(f)?f:"-"}function a(f){return Re(f)}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Xi(e):e;if(isNaN(+l)){if(s)return"-"}else return $l(l,n,r)}if(t==="ordinal")return Wf(e)?i(e):St(e)&&a(e)?e+"":"-";var u=Js(e);return a(u)?R_(u):Wf(e)?i(e):typeof e=="boolean"?e+"":"-"}var Mp=["a","b","c","d","e","f","g"],tf=function(e,t){return"{"+e+(t==null?"":t)+"}"};function k_(e,t,r){z(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=Mp[a];e=e.replace(tf(o),tf(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(tf(Mp[l],s),r?ae(u):u)}return e}function xA(e,t){var r=Z(e)?{color:e,extraCssText:t}:e||{},n=r.color,i=r.type;t=r.extraCssText;var a=r.renderMode||"html";if(!n)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:'+ae(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ae(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function $n(e,t){return t=t||"transparent",Z(e)?e:q(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Lp(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var ks={},ef={},CA=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(t,r){this._nonSeriesBoxMasterList=n(ks),this._normalMasterList=n(ef);function n(i,a){var o=[];return M(i,function(s,l){var u=s.create(t,r);o=o.concat(u||[])}),o}},e.prototype.update=function(t,r){M(this._normalMasterList,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(t,r){if(t==="matrix"||t==="calendar"){ks[t]=r;return}ef[t]=r},e.get=function(t){return ef[t]||ks[t]},e}();function DA(e){return!!ks[e]}var AA=1,O_=2;function MA(e){B_.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var B_=Q();function N_(e){var t=e.getShallow("coord",!0),r=AA;if(t==null){var n=B_.get(e.type);n&&n.getCoord2&&(r=O_,t=n.getCoord2(e))}return{coord:t,from:r}}var Ei=0,Os=1,LA=2;function IA(e,t){var r=e.getShallow("coordinateSystem"),n=e.getShallow("coordinateSystemUsage",!0),i=Ei;if(r){var a=e.mainType==="series";n==null&&(n=a?"data":"box"),n==="data"?(i=Os,a||(i=Ei)):n==="box"&&(i=LA,!a&&!DA(r)&&(i=Ei))}return{coordSysType:r,kind:i}}function PA(e){var t=e.targetModel,r=e.coordSysType,n=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=IA(t),o=a.kind,s=a.coordSysType;if(i&&o!==Os&&(o=Os,s=r),o===Ei||s!==r)return Ei;var l=n(r,t);return l?(o===Os?t.coordinateSystem=l:t.boxCoordinateSystem=l,o):Ei}const hc=CA;var Bs=M,F_=["left","right","top","bottom","width","height"],Yo=[["width","left","right"],["height","top","bottom"]];function vc(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),h=t.childAt(u+1),v=h&&h.getBoundingRect(),c,d;if(e==="horizontal"){var p=f.width+(v?-v.x+f.x:0);c=a+p,c>n||l.newline?(a=0,c=p,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);d=o+g,d>i||l.newline?(a+=s+r,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=c+r:o=d+r)})}var za=vc;xt(vc,"vertical");xt(vc,"horizontal");function RA(e,t){return{left:e.getShallow("left",t),top:e.getShallow("top",t),right:e.getShallow("right",t),bottom:e.getShallow("bottom",t),width:e.getShallow("width",t),height:e.getShallow("height",t)}}function EA(e,t){var r=Zl(e,t,{enableLayoutOnlyByCenter:!0}),n=e.getBoxLayoutParams(),i,a;if(r.type===Ca.point)a=r.refPoint,i=xr(n,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get("center"),s=z(o)?o:[o,o];i=xr(n,r.refContainer),a=r.boxCoordFrom===O_?r.refPoint:[bt(s[0],i.width)+i.x,bt(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function kA(e,t){var r=EA(e,t),n=r.viewRect,i=r.center,a=e.get("radius");z(a)||(a=[0,a]);var o=bt(n.width,t.getWidth()),s=bt(n.height,t.getHeight()),l=Math.min(o,s),u=bt(a[0],l/2),f=bt(a[1],l/2);return{cx:i[0],cy:i[1],r0:u,r:f,viewRect:n}}function xr(e,t,r){r=Xl(r||0);var n=t.width,i=t.height,a=bt(e.left,n),o=bt(e.top,i),s=bt(e.right,n),l=bt(e.bottom,i),u=bt(e.width,n),f=bt(e.height,i),h=r[2]+r[0],v=r[1]+r[3],c=e.aspect;switch(isNaN(u)&&(u=n-s-v-a),isNaN(f)&&(f=i-l-h-o),c!=null&&(isNaN(u)&&isNaN(f)&&(c>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=c*f),isNaN(f)&&(f=u/c)),isNaN(a)&&(a=n-s-u-v),isNaN(o)&&(o=i-l-f-h),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-v;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(u)&&(u=n-v-a-(s||0)),isNaN(f)&&(f=i-h-o-(l||0));var d=new nt((t.x||0)+a+r[3],(t.y||0)+o+r[0],u,f);return d.margin=r,d}var Ca={rect:1,point:2};function Zl(e,t,r){var n,i,a,o=e.boxCoordinateSystem,s;if(o){var l=N_(e),u=l.coord,f=l.from;if(o.dataToLayout){a=Ca.rect,s=f;var h=o.dataToLayout(u);n=h.contentRect||h.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Ca.point,s=f,i=o.dataToPoint(u))}return a==null&&(a=Ca.rect),a===Ca.rect&&(n||(n={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),i=[n.x+n.width/2,n.y+n.height/2]),{type:a,refContainer:n,refPoint:i,boxCoordFrom:s}}function OA(e,t,r,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new nt(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var f=e.getLocalTransform();u=u.clone(),u.applyTransform(f)}var h=xr(mt({width:u.width,height:u.height},t),r,n),v=o?h.x-u.x:0,c=s?h.y-u.y:0;return l==="raw"?(a.x=v,a.y=c):(a.x+=v,a.y+=c),a===e&&e.markRedraw(),!0}function ro(e){var t=e.layoutMode||e.constructor.layoutMode;return q(t)?t:t?{type:t}:null}function Cr(e,t,r){var n=r&&r.ignoreSize;!z(n)&&(n=[n,n]);var i=o(Yo[0],0),a=o(Yo[1],1);l(Yo[0],e,i),l(Yo[1],e,a);function o(u,f){var h={},v=0,c={},d=0,p=2;if(Bs(u,function(y){c[y]=e[y]}),Bs(u,function(y){J(t,y)&&(h[y]=c[y]=t[y]),s(h,y)&&v++,s(c,y)&&d++}),n[f])return s(t,u[1])?c[u[2]]=null:s(t,u[2])&&(c[u[1]]=null),c;if(d===p||!v)return c;if(v>=p)return h;for(var g=0;g<u.length;g++){var m=u[g];if(!J(h,m)&&J(e,m)){h[m]=e[m];break}}return h}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,h){Bs(u,function(v){f[v]=h[v]})}}function bo(e){return z_({},e)}function z_(e,t){return t&&e&&Bs(F_,function(r){J(t,r)&&(e[r]=t[r])}),e}var BA=ft(),Ki=function(e){N(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.uid=Yl("ec_cpt_model"),a}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=ro(this),a=i?bo(r):{},o=n.getTheme();vt(r,o.get(this.mainType)),vt(r,this.getDefaultOption()),i&&Cr(r,a,i)},t.prototype.mergeOption=function(r,n){vt(this.option,r,!0);var i=ro(this);i&&Cr(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!Tx(r))return r.defaultOption;var n=BA(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=vt(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return yo(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){return RA(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(Wt);d0(Ki,Wt);Ol(Ki);sA(Ki);lA(Ki,NA);function NA(e){var t=[];return M(Ki.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=X(t,function(r){return er(r).main}),e!=="dataset"&&ot(t,"dataset")<=0&&t.unshift("dataset"),t}const wt=Ki;var En={color:{},darkColor:{},size:{}},Dt=En.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)"};O(Dt,{primary:Dt.neutral80,secondary:Dt.neutral70,tertiary:Dt.neutral60,quaternary:Dt.neutral50,disabled:Dt.neutral20,border:Dt.neutral30,borderTint:Dt.neutral20,borderShade:Dt.neutral40,background:Dt.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Dt.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Dt.neutral70,axisLineTint:Dt.neutral40,axisTick:Dt.neutral70,axisTickMinor:Dt.neutral60,axisLabel:Dt.neutral70,axisSplitLine:Dt.neutral15,axisMinorSplitLine:Dt.neutral05});for(var wn in Dt)if(Dt.hasOwnProperty(wn)){var Ip=Dt[wn];wn==="theme"?En.darkColor.theme=Dt.theme.slice():wn==="highlight"?En.darkColor.highlight="rgba(255,231,130,0.4)":wn.indexOf("accent")===0?En.darkColor[wn]=nh(Ip,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):En.darkColor[wn]=nh(Ip,null,function(e){return e*.9},function(e){return 1-Math.pow(e,1.5)})}En.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};const K=En;var V_="";typeof navigator<"u"&&(V_=navigator.platform||"");var ci="rgba(0, 0, 0, 0.2)",G_=K.color.theme[0],FA=nh(G_,null,null,.9);const H_={darkMode:"auto",colorBy:"series",color:K.color.theme,gradientColor:[FA,G_],aria:{decal:{decals:[{color:ci,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ci,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ci,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ci,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ci,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ci,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:V_.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 Ht={Must:1,Might:2,Not:3},U_=ft();function zA(e){U_(e).datasetMap=Q()}function VA(e,t,r){var n={},i=cc(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=U_(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,h;e=e.slice(),M(e,function(p,g){var m=q(p)?p:e[g]={name:p};m.type==="ordinal"&&f==null&&(f=g,h=d(m)),n[m.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});M(e,function(p,g){var m=p.name,y=d(p);if(f==null){var _=v.valueWayDim;c(n[m],_,y),c(o,_,y),v.valueWayDim+=y}else if(f===g)c(n[m],0,y),c(a,0,y);else{var _=v.categoryWayDim;c(n[m],_,y),c(o,_,y),v.categoryWayDim+=y}});function c(p,g,m){for(var y=0;y<m;y++)p.push(g+y)}function d(p){var g=p.dimsDef;return g?g.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function GA(e,t,r){var n={},i=cc(e);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===ke||a===He)&&M(o,function(f,h){(q(f)?f.name:f)==="name"&&(s=h)});var l=function(){for(var f={},h={},v=[],c=0,d=Math.min(5,r);c<d;c++){var p=Y_(t.data,a,t.seriesLayoutBy,o,t.startIndex,c);v.push(p);var g=p===Ht.Not;if(g&&f.v==null&&c!==s&&(f.v=c),(f.n==null||f.n===f.v||!g&&v[f.n]===Ht.Not)&&(f.n=c),m(f)&&v[f.n]!==Ht.Not)return f;g||(p===Ht.Might&&h.v==null&&c!==s&&(h.v=c),(h.n==null||h.n===h.v)&&(h.n=c))}function m(y){return y.v!=null&&y.n!=null}return m(f)?f:m(h)?h:null}();if(l){n.value=[l.v];var u=s!=null?s:l.n;n.itemName=[u],n.seriesName=[u]}return n}function cc(e){var t=e.get("data",!0);if(!t)return yo(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Ae).models[0]}function HA(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:yo(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Ae).models}function W_(e,t){return Y_(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Y_(e,t,r,n,i,a){var o,s=5;if(ue(e))return Ht.Not;var l,u;if(n){var f=n[a];q(f)?(l=f.name,u=f.type):Z(f)&&(l=f)}if(u!=null)return u==="ordinal"?Ht.Must:Ht.Not;if(t===Jt){var h=e;if(r===jn){for(var v=h[a],c=0;c<(v||[]).length&&c<s;c++)if((o=S(v[i+c]))!=null)return o}else for(var c=0;c<h.length&&c<s;c++){var d=h[i+c];if(d&&(o=S(d[a]))!=null)return o}}else if(t===ke){var p=e;if(!l)return Ht.Not;for(var c=0;c<p.length&&c<s;c++){var g=p[c];if(g&&(o=S(g[l]))!=null)return o}}else if(t===He){var m=e;if(!l)return Ht.Not;var v=m[l];if(!v||ue(v))return Ht.Not;for(var c=0;c<v.length&&c<s;c++)if((o=S(v[c]))!=null)return o}else if(t===pe)for(var y=e,c=0;c<y.length&&c<s;c++){var g=y[c],_=mo(g);if(!z(_))return Ht.Not;if((o=S(_[a]))!=null)return o}function S(b){var w=Z(b);if(b!=null&&isFinite(Number(b))&&b!=="")return w?Ht.Might:Ht.Not;if(w&&b!=="-")return Ht.Must}return Ht.Not}var UA=Q();function WA(e,t,r){var n=UA.get(t);if(!n)return r;var i=n(e);return i?r.concat(i):r}var Pp=ft();ft();var dc=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=Gt(this.get("color",!0)),a=this.get("colorLayer",!0);return $A(this,Pp,i,a,t,r,n)},e.prototype.clearColorPalette=function(){XA(this,Pp)},e}();function YA(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function $A(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?r:YA(n,o);if(f=f||r,!(!f||!f.length)){var h=f[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%f.length,h}}function XA(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var $o,sa,Rp,Ep="\0_ec_inner",ZA=1,$_=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Wt(a),this._locale=new Wt(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=Bp(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,Bp(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?Rp(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&M(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=Q(),u=n&&n.replaceMergeMainTypeMap;zA(this),M(r,function(h,v){h!=null&&(wt.hasClass(v)?v&&(s.push(v),l.set(v,!0)):i[v]=i[v]==null?it(h):vt(i[v],h,!0))}),u&&u.each(function(h,v){wt.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),wt.topologicalTravel(s,wt.getAllClassMainTypes(),f,this);function f(h){var v=WA(this,h,Gt(r[h])),c=a.get(h),d=c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",p=a0(c,v,d);ox(p,h,wt),i[h]=null,a.set(h,null),o.set(h,0);var g=[],m=[],y=0,_;M(p,function(S,b){var w=S.existing,T=S.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=h==="series",x=wt.getClass(h,S.keyInfo.subType,!C);if(!x)return;if(h==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===x)w.name=S.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var A=O({componentIndex:b},S.keyInfo);w=new x(T,this,this,A),O(w,A),S.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(g.push(w.option),m.push(w),y++):(g.push(void 0),m.push(void 0))},this),i[h]=g,a.set(h,m),o.set(h,y),h==="series"&&$o(this)}this._seriesIndices||$o(this)},t.prototype.getOption=function(){var r=it(this.option);return M(r,function(n,i){if(wt.hasClass(i)){for(var a=Gt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Ka(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[Ep],r},t.prototype.setTheme=function(r){this._theme=new Wt(r),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],M(Gt(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=kp("id",a,s):o!=null?l=kp("name",o,s):l=Ot(s,function(u){return!!u}),Op(l,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):Ot(this._componentsMap.get(i),function(u){return!!u});return l(Op(o,r));function s(u){var f=i+"Index",h=i+"Id",v=i+"Name";return u&&(u[f]!=null||u[h]!=null||u[v]!=null)?{mainType:i,index:u[f],id:u[h],name:u[v]}:null}function l(u){return r.filter?Ot(u,r.filter):u}},t.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(j(r)){var o=n,s=r;a.each(function(h,v){for(var c=0;h&&c<h.length;c++){var d=h[c];d&&s.call(o,v,d,d.componentIndex)}})}else for(var l=Z(r)?a.get(r):q(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=le(r,null);return Ot(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return Ot(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return Ot(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){sa(this),M(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},t.prototype.eachRawSeries=function(r,n){M(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){sa(this),M(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,n,i){return M(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return sa(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){sa(this);var i=[];M(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=Q(i)},t.prototype.restoreData=function(r){$o(this);var n=this._componentsMap,i=[];n.each(function(a,o){wt.hasClass(o)&&i.push(o)}),wt.topologicalTravel(i,wt.getAllClassMainTypes(),function(a){M(n.get(a),function(o){o&&(a!=="series"||!qA(o,r))&&o.restoreData()})})},t.internalField=function(){$o=function(r){var n=r._seriesIndices=[];M(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=Q(n)},sa=function(r){},Rp=function(r,n){r.option={},r.option[Ep]=ZA,r._componentsMap=Q({series:[]}),r._componentsCount=Q();var i=n.aria;q(i)&&i.enabled==null&&(i.enabled=!0),KA(n,r._theme.option),vt(n,H_,!1),r._mergeOption(n,null)}}(),t}(Wt);function qA(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,i=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||i!=null&&e.name!==i}}function KA(e,t){var r=e.color&&!e.colorLayer;M(t,function(n,i){i==="colorLayer"&&r||i==="color"&&e.color||wt.hasClass(i)||(typeof n=="object"?e[i]=e[i]?vt(e[i],n,!1):it(n):e[i]==null&&(e[i]=n))})}function kp(e,t,r){if(z(t)){var n=Q();return M(t,function(a){if(a!=null){var o=le(a,null);o!=null&&n.set(a,!0)}}),Ot(r,function(a){return a&&n.get(a[e])})}else{var i=le(t,null);return Ot(r,function(a){return a&&i!=null&&a[e]===i})}}function Op(e,t){return t.hasOwnProperty("subType")?Ot(e,function(r){return r&&r.subType===t.subType}):e}function Bp(e){var t=Q();return e&&M(Gt(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Ge($_,dc);const X_=$_;var QA=/^(min|max)?(.+)$/,JA=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(M(Gt(t.series),function(o){o&&o.data&&ue(o.data)&&Gs(o.data)}),M(Gt(t.dataset),function(o){o&&o.source&&ue(o.source)&&Gs(o.source)})),t=it(t);var i=this._optionBackup,a=jA(t,r,!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},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],it(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(r=it(n[i.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)tM(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!rM(o,this._currentMediaIndices)&&(s=X(o,function(f){return it(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},e}();function jA(e,t,r){var n=[],i,a,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,f=!!e.media,h=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(e.options=e.media=null),a=e),f&&z(u)&&M(u,function(c){c&&c.option&&(c.query?n.push(c):i||(i=c))}),v(a),M(l,function(c){return v(c)}),M(n,function(c){return v(c.option)});function v(c){M(t,function(d){d(c,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function tM(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return M(e,function(a,o){var s=o.match(QA);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();eM(n[u],a,l)||(i=!1)}}),i}function eM(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function rM(e,t){return e.join(",")===t.join(",")}const nM=JA;var Oe=M,no=q,Np=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function rf(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=Np.length;r<n;r++){var i=Np[r],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?vt(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?vt(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function qt(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,i=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,mt(e[t],n)):e[t]=n),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function Da(e){qt(e,"itemStyle"),qt(e,"lineStyle"),qt(e,"areaStyle"),qt(e,"label"),qt(e,"labelLine"),qt(e,"upperLabel"),qt(e,"edgeLabel")}function Mt(e,t){var r=no(e)&&e[t],n=no(r)&&r.textStyle;if(n)for(var i=0,a=Bd.length;i<a;i++){var o=Bd[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Se(e){e&&(Da(e),Mt(e,"label"),e.emphasis&&Mt(e.emphasis,"label"))}function iM(e){if(no(e)){rf(e),Da(e),Mt(e,"label"),Mt(e,"upperLabel"),Mt(e,"edgeLabel"),e.emphasis&&(Mt(e.emphasis,"label"),Mt(e.emphasis,"upperLabel"),Mt(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(rf(t),Se(t));var r=e.markLine;r&&(rf(r),Se(r));var n=e.markArea;n&&Se(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var a=e.links||e.edges;if(a&&!ue(a))for(var o=0;o<a.length;o++)Se(a[o]);M(e.categories,function(u){Da(u)})}if(i&&!ue(i))for(var o=0;o<i.length;o++)Se(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Se(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)z(l[o])?(Se(l[o][0]),Se(l[o][1])):Se(l[o]);e.type==="gauge"?(Mt(e,"axisLabel"),Mt(e,"title"),Mt(e,"detail")):e.type==="treemap"?(qt(e.breadcrumb,"itemStyle"),M(e.levels,function(u){Da(u)})):e.type==="tree"&&Da(e.leaves)}}function hr(e){return z(e)?e:e?[e]:[]}function Fp(e){return(z(e)?e[0]:e)||{}}function aM(e,t){Oe(hr(e.series),function(n){no(n)&&iM(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Oe(r,function(n){Oe(hr(e[n]),function(i){i&&(Mt(i,"axisLabel"),Mt(i.axisPointer,"label"))})}),Oe(hr(e.parallel),function(n){var i=n&&n.parallelAxisDefault;Mt(i,"axisLabel"),Mt(i&&i.axisPointer,"label")}),Oe(hr(e.calendar),function(n){qt(n,"itemStyle"),Mt(n,"dayLabel"),Mt(n,"monthLabel"),Mt(n,"yearLabel")}),Oe(hr(e.radar),function(n){Mt(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),Oe(hr(e.geo),function(n){no(n)&&(Se(n),Oe(hr(n.regions),function(i){Se(i)}))}),Oe(hr(e.timeline),function(n){Se(n),qt(n,"label"),qt(n,"itemStyle"),qt(n,"controlStyle",!0);var i=n.data;z(i)&&M(i,function(a){q(a)&&(qt(a,"label"),qt(a,"itemStyle"))})}),Oe(hr(e.toolbox),function(n){qt(n,"iconStyle"),Oe(n.feature,function(i){qt(i,"iconStyle")})}),Mt(Fp(e.axisPointer),"label"),Mt(Fp(e.tooltip).axisPointer,"label")}function oM(e,t){for(var r=t.split(","),n=e,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function sM(e,t,r,n){for(var i=t.split(","),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];(n||a[i[s]]==null)&&(a[i[s]]=r)}function zp(e){e&&M(lM,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var lM=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],uM=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],nf=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function la(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<nf.length;r++){var n=nf[r][1],i=nf[r][0];t[n]!=null&&(t[i]=t[n])}}function Vp(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function Gp(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function fM(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function Z_(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&Z_(e[r].children,t)}function q_(e,t){aM(e,t),e.series=Gt(e.series),M(e.series,function(r){if(q(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),Vp(r.label);var i=r.data;if(i&&!ue(i))for(var a=0;a<i.length;a++)Vp(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=oM(r,"pointer.color");o!=null&&sM(r,"itemStyle.color",o)}else if(n==="bar"){la(r),la(r.backgroundStyle),la(r.emphasis);var i=r.data;if(i&&!ue(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(la(i[a]),la(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),Gp(r),Z_(r.data,Gp)}else n==="graph"||n==="sankey"?fM(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&mt(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),zp(r)}}),e.dataRange&&(e.visualMap=e.dataRange),M(uM,function(r){var n=e[r];n&&(z(n)||(n=[n]),M(n,function(i){zp(i)}))})}var hM=Ev(vM);function vM(e){var t=Q();e.eachSeries(function(r){var n=r.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=r.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:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.push(o)}}),t.each(function(r){if(r.length!==0){var n=r[0].seriesModel,i=n.get("stackOrder")||"seriesAsc";i==="seriesDesc"&&r.reverse(),M(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),cM(r)}})}function cM(e){M(e,function(t,r){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,h){var v=o.get(t.stackedDimension,h);if(isNaN(v))return i;var c,d;s?d=o.getRawIndex(h):c=o.get(t.stackedByDimension,h);for(var p=NaN,g=r-1;g>=0;g--){var m=e[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,c)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&v>=0&&y>0||l==="samesign"&&v<=0&&y<0){v=$T(v,y),p=y;break}}}return n[0]=v,n[1]=p,n})})}var ql=function(){function e(t){this.data=t.data||(t.sourceFormat===He?{}:[]),this.sourceFormat=t.sourceFormat||P0,this.seriesLayoutBy=t.seriesLayoutBy||Fe,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&W_(this,n)===Ht.Must&&(i.type="ordinal")}}return e}();function pc(e){return e instanceof ql}function Rh(e,t,r){r=r||K_(e);var n=t.seriesLayoutBy,i=pM(e,r,n,t.sourceHeader,t.dimensions),a=new ql({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:it(t)});return a}function gc(e){return new ql({data:e,sourceFormat:ue(e)?Zr:pe})}function dM(e){return new ql({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:it(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function K_(e){var t=P0;if(ue(e))t=Zr;else if(z(e)){e.length===0&&(t=Jt);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(z(i)||ue(i)){t=Jt;break}else if(q(i)){t=ke;break}}}}else if(q(e)){for(var a in e)if(J(e,a)&&ne(e[a])){t=He;break}}return t}function pM(e,t,r,n,i){var a,o;if(!e)return{dimensionsDefine:Hp(i),startIndex:o,dimensionsDetectedCount:a};if(t===Jt){var s=e;n==="auto"||n==null?Up(function(u){u!=null&&u!=="-"&&(Z(u)?o==null&&(o=1):o=0)},r,s,10):o=St(n)?n:n?1:0,!i&&o===1&&(i=[],Up(function(u,f){i[f]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===jn?s.length:s[0]?s[0].length:null}else if(t===ke)i||(i=gM(e));else if(t===He)i||(i=[],M(e,function(u,f){i.push(f)}));else if(t===pe){var l=mo(e[0]);a=z(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Hp(i),dimensionsDetectedCount:a}}function gM(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return pt(r)}function Hp(e){if(e){var t=Q();return X(e,function(r,n){r=q(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function Up(e,t,r,n){if(t===jn)for(var i=0;i<r.length&&i<n;i++)e(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)e(a[i],i)}function Q_(e){var t=e.sourceFormat;return t===ke||t===He}var Tn,xn,Cn,Dn,Wp,Yp,J_=function(){function e(t,r){var n=pc(t)?t:gc(t);this._source=n;var i=this._data=n.data,a=n.sourceFormat;n.seriesLayoutBy,a===Zr&&(this._offset=0,this._dimSize=r,this._data=i),Yp(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;Yp=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,v=l.dimensionsDefine,c=Wp[mc(u,f)];if(O(o,c),u===Zr)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=j_(u,f);o.getItem=_t(d,null,s,h,v);var p=tS(u,f);o.count=_t(p,null,s,h,v)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,h=0;h<u;h++)s[h]=l[f+h];return s},n=function(o,s,l,u){for(var f=this._data,h=this._dimSize,v=0;v<h;v++){for(var c=u[v],d=c[0]==null?1/0:c[0],p=c[1]==null?-1/0:c[1],g=s-o,m=l[v],y=0;y<g;y++){var _=f[y*h+v];m[o+y]=_,_<d&&(d=_),_>p&&(p=_)}c[0]=d,c[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};Wp=(t={},t[Jt+"_"+Fe]={pure:!0,appendData:a},t[Jt+"_"+jn]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[ke]={pure:!0,appendData:a},t[He]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},t[pe]={appendData:a},t[Zr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),e}(),Xo=function(e){z(e)||n0("series.data or dataset.source must be an array.")};Tn={},Tn[Jt+"_"+Fe]=Xo,Tn[Jt+"_"+jn]=Xo,Tn[ke]=Xo,Tn[He]=function(e,t){for(var r=0;r<t.length;r++){var n=t[r].name;n==null&&n0("dimension name must not be null/undefined.")}},Tn[pe]=Xo;var $p=function(e,t,r,n){return e[n]},mM=(xn={},xn[Jt+"_"+Fe]=function(e,t,r,n){return e[n+t]},xn[Jt+"_"+jn]=function(e,t,r,n,i){n+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},xn[ke]=$p,xn[He]=function(e,t,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?e[s]:null;a[o]=l?l[n]:null}return a},xn[pe]=$p,xn);function j_(e,t){var r=mM[mc(e,t)];return r}var Xp=function(e,t,r){return e.length},yM=(Cn={},Cn[Jt+"_"+Fe]=function(e,t,r){return Math.max(0,e.length-t)},Cn[Jt+"_"+jn]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},Cn[ke]=Xp,Cn[He]=function(e,t,r){var n=r[0].name,i=n!=null?e[n]:null;return i?i.length:0},Cn[pe]=Xp,Cn);function tS(e,t){var r=yM[mc(e,t)];return r}var af=function(e,t,r){return e[t]},_M=(Dn={},Dn[Jt]=af,Dn[ke]=function(e,t,r){return e[r]},Dn[He]=af,Dn[pe]=function(e,t,r){var n=mo(e);return n instanceof Array?n[t]:n},Dn[Zr]=af,Dn);function eS(e){var t=_M[e];return t}function mc(e,t){return e===Jt?e+"_"+t:e}function Hi(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=i.getDimensionProperty(o);return eS(a)(n,o,s)}else{var l=n;return a===pe&&(l=mo(n)),l}}}}var SM=/\{@(.+?)\}/g,yc=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),i=this.getRawValue(t,r),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,h=this.mainType,v=h==="series",c=n.userOutput&&n.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:f,dimensionNames:c?c.fullDimensions:null,encode:c?c.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),i!=null&&z(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(j(a))return l.status=r,l.dimensionIndex=i,a(l);if(Z(a)){var f=k_(a,l);return f.replace(SM,function(h,v){var c=v.length,d=v;d.charAt(0)==="["&&d.charAt(c-1)==="]"&&(d=+d.slice(1,c-1));var p=Hi(s,t,d);if(o&&z(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,r){return Hi(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function Zp(e){var t,r;return q(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Va(e){return new bM(e)}var bM=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=l,this._modDataCount=u;var v=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(h||c<d)){var p=this._progress;if(z(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],c,d,l,u);else this._doProgress(p,c,d,l,u)}this._dueIndex=d;var m=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,i,a){qp.reset(r,n,i,a),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:qp.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),z(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),qp=function(){var e,t,r,n,i,a={reset:function(l,u,f,h){t=l,e=u,r=f,n=h,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var l=t%i*r+Math.ceil(t/i),u=t>=e?null:l<n?l:t;return t++,u}}();function ki(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!St(e)&&e!=null&&e!=="-"&&(e=+Xi(e)),e==null||e===""?NaN:Number(e))}Q({number:function(e){return parseFloat(e)},time:function(e){return+Xi(e)},trim:function(e){return Z(e)?tr(e):e}});var wM=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=St(t)?t:Js(t),i=St(r)?r:Js(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=Z(t),l=Z(r);s&&(n=l?t:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}();function rS(e){var t="",r=-1/0,n=-1/0,i=1/0,a=1/0;return e&&(e.g!=null&&(t+="G"+e.g,r=e.g),e.ge!=null&&(t+="GE"+e.ge,n=e.ge),e.l!=null&&(t+="L"+e.l,i=e.l),e.le!=null&&(t+="LE"+e.le,a=e.le)),{key:t,g:r,ge:n,l:i,le:a}}function nS(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var TM=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return ki(t,r)},e}();function xM(e,t){var r=new TM,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==Fe&&oe(o);var s=[],l={},u=e.dimensionsDefine;if(u)M(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";J(l,m)&&oe(_),l[m]=y}});else for(var f=0;f<e.dimensionsDetectedCount;f++)s.push({index:f});var h=j_(i,Fe);t.__isBuiltIn&&(r.getRawDataItem=function(p){return h(n,a,s,p)},r.getRawData=_t(CM,null,e)),r.cloneRawData=_t(DM,null,e);var v=tS(i,Fe);r.count=_t(v,null,n,a,s);var c=eS(i);r.retrieveValue=function(p,g){var m=h(n,a,s,p);return d(m,g)};var d=r.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return c(p,g,m.name)}};return r.getDimensionInfo=_t(AM,null,s,l),r.cloneAllDimensionInfo=_t(MM,null,s),r}function CM(e){var t=e.sourceFormat;if(!_c(t)){var r="";oe(r)}return e.data}function DM(e){var t=e.sourceFormat,r=e.data;if(!_c(t)){var n="";oe(n)}if(t===Jt){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(t===ke){for(var i=[],a=0,o=r.length;a<o;a++)i.push(O({},r[a]));return i}}function AM(e,t,r){if(r!=null){if(St(r)||!isNaN(r)&&!J(t,r))return e[r];if(J(t,r))return t[r]}}function MM(e){return it(e)}var iS=Q();function LM(e){e=it(e);var t=e.type,r="";t||oe(r);var n=t.split(":");n.length!==2&&oe(r);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,iS.set(t,e)}function IM(e,t,r){var n=Gt(e),i=n.length,a="";i||oe(a);for(var o=0,s=i;o<s;o++){var l=n[o];t=PM(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function PM(e,t,r,n){var i="";t.length||oe(i),q(e)||oe(i);var a=e.type,o=iS.get(a);o||oe(i);var s=X(t,function(u){return xM(u,o)}),l=Gt(o.transform({upstream:s[0],upstreamList:s,config:it(e.config)}));return X(l,function(u,f){var h="";q(u)||oe(h),u.data||oe(h);var v=K_(u.data);_c(v)||oe(h);var c,d=t[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),c={seriesLayoutBy:Fe,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else c={seriesLayoutBy:Fe,sourceHeader:0,dimensions:u.dimensions};return Rh(u.data,c,null)})}function _c(e){return e===Jt||e===ke}var RM=typeof Uint32Array===Zi?Array:Uint32Array,EM=typeof Uint16Array===Zi?Array:Uint16Array,aS=typeof Int32Array===Zi?Array:Int32Array,Kp=typeof Float64Array===Zi?Array:Float64Array,oS={float:Kp,int:aS,ordinal:Array,number:Array,time:Kp},of;function di(e){return e>65535?RM:EM}function kM(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Qp(e,t,r,n,i){var a=oS[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new a(n)}var Eh=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Q()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=of[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],Q_(i),this._dimensions=X(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(t,a),this._chunks[a]=new oS[r||"float"](this._rawCount),this._rawExtent[a]=xe(),a},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=xe());for(var l=a[t],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,n=this.count();r.appendData(t);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<a;u++){var f=i[u];Qp(n,u,f.type,l,!0)}for(var h=[],v=s;v<l;v++)for(var c=v-s,d=0;d<a;d++){var f=i[d],p=of.arrayRows.call(this,t[c]||h,f.property,c,d);n[d][v]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=X(o,function(y){return y.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=xe()),Qp(a,f,h.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,a,l);else for(var v=[],c=t;c<r;c++){v=i.getItem(c,v);for(var d=0;d<s;d++){var p=a[d],g=this._dimValueGetter(v,u[d],c,d);p[c]=g;var m=l[d];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],i=[];if(r==null){r=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(i){isNaN(i)||r.push(i)}),Dv(r);var n=this.count();return n===0?0:n%2===1?r[(n-1)/2]:(r[n/2]+r[n/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<t)i=o+1;else if(r[o]>t)a=o-1;else return o}return-1},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=r[a]}else t=new n(r.buffer,0,i)}else{var n=di(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=di(n._rawCount),o=new a(i),s=[],l=t.length,u=0,f=t[0],h=n._chunks,v=0;v<i;v++){var c=void 0,d=n.getRawIndex(v);if(l===0)c=r(v);else if(l===1){var p=h[f][d];c=r(p,v)}else{for(var g=0;g<l;g++)s[g]=h[t[g]][d];s[g]=v,c=r.apply(null,s)}c&&(o[u++]=d)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var i=pt(t),a=i.length;if(!a)return this;var o=r.count(),s=di(r._rawCount),l=new s(o),u=0,f=i[0],h=t[f][0],v=t[f][1],c=r._chunks,d=!1;if(!r._indices){var p=0;if(a===1){for(var g=c[i[0]],m=0;m<n;m++){var y=g[m];(y>=h&&y<=v||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(a===2){for(var g=c[i[0]],_=c[i[1]],S=t[i[1]][0],b=t[i[1]][1],m=0;m<n;m++){var y=g[m],w=_[m];(y>=h&&y<=v||isNaN(y))&&(w>=S&&w<=b||isNaN(w))&&(l[u++]=p),p++}d=!0}}if(!d)if(a===1)for(var m=0;m<o;m++){var T=r.getRawIndex(m),y=c[i[0]][T];(y>=h&&y<=v||isNaN(y))&&(l[u++]=T)}else for(var m=0;m<o;m++){for(var C=!0,T=r.getRawIndex(m),x=0;x<a;x++){var A=i[x],y=c[A][T];(y<t[A][0]||y>t[A][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(m))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var i=t._chunks,a=[],o=r.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<r.length;f++)u[r[f]]=xe();for(var h=0;h<s;h++){for(var v=t.getRawIndex(h),c=0;c<o;c++)l[c]=i[r[c]][v];l[o]=h;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var p=r[f],g=d[f],m=u[p],y=i[p];y&&(y[v]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,h,v,c=new(di(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),m=(g+p)/2,y=0,_=p;_<g;_++){var S=this.getRawIndex(_),b=a[S];isNaN(b)||(y+=b)}y/=g-p;var w=d,T=Math.min(d+l,o),C=d-1,x=a[u];f=-1,v=w;for(var A=-1,D=0,_=w;_<T;_++){var S=this.getRawIndex(_),b=a[S];if(isNaN(b)){D++,A<0&&(A=S);continue}h=Math.abs((C-m)*(b-x)-(C-_)*(y-x)),h>f&&(f=h,v=S)}D>0&&D<T-w&&(c[s++]=Math.min(A,v),v=Math.max(A,v)),c[s++]=v,u=v}return c[s++]=this.getRawIndex(o-1),n._count=s,n._indices=c,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(t,r){for(var n=this.clone([t],!0),i=n._chunks,a=Math.floor(1/r),o=i[t],s=this.count(),l=new(di(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var h=f,v=o[this.getRawIndex(h)],c=f,d=o[this.getRawIndex(c)],p=a;f+a>s&&(p=s-f);for(var g=0;g<p;g++){var m=this.getRawIndex(f+g),y=o[m];y<v&&(v=y,h=f+g),y>d&&(d=y,c=f+g)}var _=this.getRawIndex(h),S=this.getRawIndex(c);h<c?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},e.prototype.downSample=function(t,r,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[t],f=this.count(),h=a._rawExtent[t]=xe(),v=new(di(this._rawCount))(Math.ceil(f/l)),c=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var m=n(s),y=this.getRawIndex(Math.min(d+i(s,m)||0,f-1));u[y]=m,m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m),v[c++]=y}return a._count=c,a._indices=v,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[t[0]][s],a);break;case 2:r(i[t[0]][s],i[t[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[t[l]][s];u[l]=a,r.apply(null,u)}}},e.prototype.getDataExtent=function(t,r){var n=this._chunks[t],i=xe();if(!n)return i;var a=this.count(),o=!this._indices&&!r;if(o)return this._rawExtent[t].slice();var s=this._extent,l=s[t]||(s[t]={}),u=rS(r),f=u.key,h=l[f];if(h)return h.slice();for(var v=i[0],c=i[1],d=0;d<a;d++){var p=this.getRawIndex(d),g=n[p];(!r||nS(u,g))&&(g<v&&(v=g),g>c&&(c=g))}return l[f]=[v,c]},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},e.prototype.clone=function(t,r){var n=new e,i=this._chunks,a=t&&_r(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?kM(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=it(this._extent),t._rawExtent=it(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return ki(r[a],this._dimensions[a])}of={arrayRows:t,objectRows:function(r,n,i,a){return ki(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return ki(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),sS=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Zo(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=ue(s)?Zr:pe,a=[];var h=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},c=Y(h.seriesLayoutBy,v.seriesLayoutBy)||null,d=Y(h.sourceHeader,v.sourceHeader),p=Y(h.dimensions,v.dimensions),g=c!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;i=g?[Rh(s,{seriesLayoutBy:c,sourceHeader:d,dimensions:p},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);i=[Rh(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&jp(a)}var o,s=[],l=[];return M(t,function(u){u.prepareSource();var f=u.getSource(i||0),h="";i!=null&&!f&&jp(h),s.push(f),l.push(u._getVersionSign())}),n?o=IM(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[dM(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Zo(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new Eh,s.initData(new J_(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Zo(t)){var r=cc(t);return r?[r.getSourceManager()]:[]}else return X(HA(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(Zo(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},e}();function Jp(e){var t=e.option.transform;t&&Gs(e.option.transform)}function Zo(e){return e.mainType==="series"}function jp(e){throw new Error(e)}var OM="line-height:1";function lS(e){var t=e.lineHeight;return t==null?OM:"line-height:"+ae(t+"")+"px"}function uS(e,t){var r=e.color||K.color.tertiary,n=e.fontSize||12,i=e.fontWeight||"400",a=e.color||K.color.secondary,o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+ae(n+"")+"px;color:"+ae(r)+";font-weight:"+ae(i+""),valueStyle:"font-size:"+ae(o+"")+"px;color:"+ae(a)+";font-weight:"+ae(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var BM=[0,10,20,30],NM=["","\n","\n\n","\n\n\n"];function Xn(e,t){return t.type=e,t}function kh(e){return e.type==="section"}function fS(e){return kh(e)?FM:zM}function hS(e){if(kh(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return M(e.blocks,function(i){var a=hS(i);a>=t&&(t=a+ +(n&&(!a||kh(i)&&!i.noHeader)))}),t}return 0}function FM(e,t,r,n){var i=t.noHeader,a=VM(hS(t)),o=[],s=t.blocks||[];Sr(!s||z(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(J(u,l)){var f=new wM(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(p,g){var m=t.valueFormatter,y=fS(p)(m?O(O({},e),{valueFormatter:m}):e,p,g>0?a.html:0,n);y!=null&&o.push(y)});var h=e.renderMode==="richText"?o.join(a.richText):Oh(n,o.join(""),i?r:a.html);if(i)return h;var v=Ph(t.header,"ordinal",e.useUTC),c=uS(n,e.renderMode).nameStyle,d=lS(n);return e.renderMode==="richText"?vS(e,v,c)+a.richText+h:Oh(n,'<div style="'+c+";"+d+';">'+ae(v)+"</div>"+h,r)}function zM(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(S){return S=z(S)?S:[S],X(S,function(b,w){return Ph(b,z(c)?c[w]:c,u)})};if(!(a&&o)){var h=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||K.color.secondary,i),v=a?"":Ph(l,"ordinal",u),c=t.valueType,d=o?[]:f(t.value,t.rawDataIndex),p=!s||!a,g=!s&&a,m=uS(n,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":h)+(a?"":vS(e,v,y))+(o?"":UM(e,d,p,g,_)):Oh(n,(s?"":h)+(a?"":GM(v,!s,y))+(o?"":HM(d,p,g,_)),r)}}function tg(e,t,r,n,i,a){if(e){var o=fS(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function VM(e){return{html:BM[e],richText:NM[e]}}function Oh(e,t,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=lS(e);return'<div style="'+i+";"+a+';">'+t+n+"</div>"}function GM(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+ae(e)+"</span>"}function HM(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=z(e)?e:[e],'<span style="'+a+";"+n+'">'+X(e,function(o){return ae(o)}).join("&nbsp;&nbsp;")+"</span>"}function vS(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function UM(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(z(t)?t.join(" "):t,a)}function WM(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return $n(n)}function cS(e,t){var r=e.get("padding");return r!=null?r:t==="richText"?[8,10]:10}var sf=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Lv()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=xA({color:r,type:t,renderMode:n,markerId:i});return Z(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};z(r)?M(r,function(a){return O(n,a)}):O(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function YM(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=z(s),u=WM(t,r),f,h,v,c;if(o>1||l&&!o){var d=$M(s,t,r,a,u);f=d.inlineValues,h=d.inlineValueTypes,v=d.blocks,c=d.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);c=f=Hi(i,r,a[0]),h=p.type}else c=f=l?s[0]:s;var g=Iv(t),m=g&&t.name||"",y=i.getName(r),_=n?m:y;return Xn("section",{header:m,noHeader:n||!g,sortParam:c,blocks:[Xn("nameValue",{markerType:"item",markerColor:u,name:_,noName:!tr(_),value:f,valueType:h,rawDataIndex:i.getRawIndex(r)})].concat(v||[])})}function $M(e,t,r,n,i){var a=t.getData(),o=_r(e,function(h,v,c){var d=a.getDimensionInfo(c);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?M(n,function(h){f(Hi(a,r,h),h)}):M(e,f);function f(h,v){var c=a.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(Xn("nameValue",{markerType:"subItem",markerColor:i,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Er=ft();function qo(e,t){return e.getName(t)||e.getId(t)}var XM="__universalTransitionEnabled",Kl=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Va({count:qM,reset:KM}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Er(this).sourceManager=new sS(this);a.prepareSource();var o=this.getInitialData(r,i);rg(o,this),this.dataTask.context.data=o,Er(this).dataBeforeProcessed=o,eg(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=ro(this),a=i?bo(r):{},o=this.subType;wt.hasClass(o)&&(o+="Series"),vt(r,n.getTheme().get(this.subType)),vt(r,this.getDefaultOption()),js(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Cr(r,a,i)},t.prototype.mergeOption=function(r,n){r=vt(this.option,r,!0),this.fillDataTextStyle(r.data);var i=ro(this);i&&Cr(this.option,r,i);var a=Er(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);rg(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Er(this).dataBeforeProcessed=o,eg(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!ue(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&js(r[i],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=Bh(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return Er(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=Bh(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}Er(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return Q(r)},t.prototype.getSourceManager=function(){return Er(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Er(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.indicesOfNearest=function(r,n,i,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(i);a==null&&(a=1/0);for(var f=[],h=1/0,v=-1,c=0,d=o.getDimensionIndex(n),p=o.getStore(),g=0,m=p.count();g<m;g++){var y=p.get(d,g),_=l.dataToCoord(y),S=u-_,b=Math.abs(S);b<=a&&((b<h||b===h&&S>=0&&v<0)&&(h=b,v=S,c=0),S===v&&(f[c++]=g))}return f.length=c,f},t.prototype.formatTooltip=function(r,n,i){return YM({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(ut.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=dc.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=qo(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=pt(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[qo(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[XM])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){q(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var h=n[f],v=qo(r,h);u[v]=!0,this._selectedDataIndicesMap[v]=r.getRawIndex(h)}}else if(s==="single"||s===!0){var c=n[l-1],v=qo(r,c);o.selectedMap=(i={},i[v]=!0,i),this._selectedDataIndicesMap=(a={},a[v]=r.getRawIndex(c),a)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return wt.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(wt);Ge(Kl,yc);Ge(Kl,dc);d0(Kl,wt);function eg(e){var t=e.name;Iv(e)||(e.name=ZM(e)||t)}function ZM(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return M(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function qM(e){return e.model.getRawData().count()}function KM(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),QM}function QM(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function rg(e,t){M(lw(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,xt(JM,t))})}function JM(e,t){var r=Bh(e);return r&&r.setOutputEnd((t||this).count()),t}function Bh(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}const Dr=Kl;var Sc=function(){function e(){this.group=new It,this.uid=Yl("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();kv(Sc);Ol(Sc);const Ee=Sc;function bc(){var e=ft();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var dS=ft(),jM=bc(),wc=function(){function e(){this.group=new It,this.uid=Yl("viewChart"),this.renderTask=Va({plan:tL,reset:eL}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&ig(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&ig(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){So(this.group,t)},e.markUpdateMethod=function(t,r){dS(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function ng(e,t,r){e&&Ch(e)&&(t==="emphasis"?Ja:ja)(e,r)}function ig(e,t,r){var n=Yn(e,t),i=t&&t.highlightKey!=null?UC(t.highlightKey):null;n!=null?M(Gt(n),function(a){ng(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){ng(a,r,i)})}kv(wc);Ol(wc);function tL(e){return jM(e.model)}function eL(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&dS(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),rL[l]}var rL={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const ze=wc;var ul="\0__throttleOriginMethod",ag="\0__throttleRate",og="\0__throttleType";function Tc(e,t,r){var n,i=0,a=0,o=null,s,l,u,f;t=t||0;function h(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var v=function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];n=new Date().getTime(),l=this,u=c;var p=f||t,g=f||r;f=null,s=n-(g?i:a)-p,clearTimeout(o),g?o=setTimeout(h,p):s>=0?h():o=setTimeout(h,-s),i=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){f=c},v}function pS(e,t,r,n){var i=e[t];if(i){var a=i[ul]||i,o=i[og],s=i[ag];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=Tc(a,r,n==="debounce"),i[ul]=a,i[og]=n,i[ag]=r}return i}}function Nh(e,t){var r=e[t];r&&r[ul]&&(r.clear&&r.clear(),e[t]=r[ul])}var sg=ft(),lg={itemStyle:Qa(S_,!0),lineStyle:Qa(__,!0)},nL={lineStyle:"stroke",itemStyle:"fill"};function gS(e,t){var r=e.visualStyleMapper||lg[t];return r||(console.warn("Unknown style type '"+t+"'."),lg.itemStyle)}function mS(e,t){var r=e.visualDrawType||nL[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var iL={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=gS(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=mS(e,n),u=o[l],f=j(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var v=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=v,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||j(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||j(o.stroke)?v:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(c,d){var p=e.getDataParams(d),g=O({},o);g[l]=f(p),c.setItemVisual(d,"style",g)}}}},ua=new Wt,aL={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=gS(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){ua.option=l[n];var u=i(ua),f=o.ensureUniqueItemVisual(s,"style");O(f,u),ua.option.decal&&(o.setItemVisual(s,"decal",ua.option.decal),ua.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},oL={performRawSeries:!0,overallReset:function(e){var t=Q();e.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.type+"-"+r.getColorBy();sg(r).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.getRawData(),i={},a=r.getData(),o=sg(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=mS(r,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],h=a.getItemVisual(f,"colorFromPalette");if(h){var v=a.ensureUniqueItemVisual(f,"style"),c=n.getName(u)||u+"",d=n.count();v[l]=r.getColorFromPalette(c,o,d)}})}})}},Ko=Math.PI;function sL(e,t){t=t||{},mt(t,{text:"loading",textColor:K.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:K.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new It,n=new Lt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new Bt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Lt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new Wv({shape:{startAngle:-Ko/2,endAngle:-Ko/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Ko*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Ko*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var lL=function(){function e(t,r,n,i){this._stageTaskMap=Q(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.__preparePipelineContext?t.__preparePipelineContext(r,n):v0(t,r,n);t.pipelineContext=n.context=i},e.prototype.restorePipelines=function(t,r){var n=this,i=n._pipelineMap=Q();r.eachSeries(function(a){var o=t.painter.type==="canvas"&&a.getProgressive(),s=a.uid;i.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(a,a.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;M(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";Sr(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;M(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,v=f.overallTask;if(v){var c,d=v.agentStubMap;d.each(function(g){s(i,g)&&(g.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,n);var p=o.getPerformArgs(v,i.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(a=!0)}else h&&h.each(function(g,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=Q(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(h){var v=h.uid,c=s.set(v,o&&o.get(v)||Va({plan:cL,reset:dL,count:gL}));c.context={model:h,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,c)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||Va({reset:uL});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Q(),u=t.seriesType,f=t.getTargetSeries,h=t.dirtyOnOverallProgress,v=!1,c="";Sr(!t.createOnAllSeries,c),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):M(n.getSeries(),d);function d(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(v=!0,Va({reset:fL,onDirty:vL})));m.context={model:p,dirtyOnOverallProgress:h},m.agent=o,m.__block=h,a._pipe(p,m)}v&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return j(t)&&(t={overallReset:t,seriesType:mL(t)}),t.uid=Yl("stageHandler"),r&&(t.visualType=r),t},e}();function uL(e){e.overallReset(e.ecModel,e.api,e.payload)}function fL(e){return e.dirtyOnOverallProgress&&hL}function hL(){this.agent.dirty(),this.getDownstream().dirty()}function vL(){this.agent&&this.agent.dirty()}function cL(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function dL(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Gt(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?X(t,function(r,n){return yS(n)}):pL}var pL=yS(0);function yS(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function gL(e){return e.data.count()}function mL(e){fl=null;try{e(io,_S)}catch(t){}return fl}var io={},_S={},fl;SS(io,X_);SS(_S,R0);io.eachSeriesByType=io.eachRawSeriesByType=function(e){fl=e};io.eachComponent=function(e){e.mainType==="series"&&e.subType&&(fl=e.subType)};function SS(e,t){for(var r in t.prototype)e[r]=Kt}const bS=lL;var V=K.darkColor,ug=V.background,fa=function(){return{axisLine:{lineStyle:{color:V.axisLine}},splitLine:{lineStyle:{color:V.axisSplitLine}},splitArea:{areaStyle:{color:[V.backgroundTint,V.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:V.axisMinorSplitLine}},axisLabel:{color:V.axisLabel},axisName:{}}},fg={label:{color:V.secondary},itemStyle:{borderColor:V.borderTint},dividerLineStyle:{color:V.border}},wS={darkMode:!0,color:V.theme,backgroundColor:ug,axisPointer:{lineStyle:{color:V.border},crossStyle:{color:V.borderShade},label:{color:V.tertiary}},legend:{textStyle:{color:V.secondary},pageTextStyle:{color:V.tertiary}},textStyle:{color:V.secondary},title:{textStyle:{color:V.primary},subtextStyle:{color:V.quaternary}},toolbox:{iconStyle:{borderColor:V.accent50},feature:{dataView:{backgroundColor:ug,textColor:V.primary,textareaColor:V.background,textareaBorderColor:V.border,buttonColor:V.accent50,buttonTextColor:V.neutral00}}},tooltip:{backgroundColor:V.neutral20,defaultBorderColor:V.border,textStyle:{color:V.tertiary}},dataZoom:{borderColor:V.accent10,textStyle:{color:V.tertiary},brushStyle:{color:V.backgroundTint},handleStyle:{color:V.neutral00,borderColor:V.accent20},moveHandleStyle:{color:V.accent40},emphasis:{handleStyle:{borderColor:V.accent50}},dataBackground:{lineStyle:{color:V.accent30},areaStyle:{color:V.accent20}},selectedDataBackground:{lineStyle:{color:V.accent50},areaStyle:{color:V.accent30}}},visualMap:{textStyle:{color:V.secondary},handleStyle:{borderColor:V.neutral30}},timeline:{lineStyle:{color:V.accent10},label:{color:V.tertiary},controlStyle:{color:V.accent30,borderColor:V.accent30}},calendar:{itemStyle:{color:V.neutral00,borderColor:V.neutral20},dayLabel:{color:V.tertiary},monthLabel:{color:V.secondary},yearLabel:{color:V.secondary}},matrix:{x:fg,y:fg,backgroundColor:{borderColor:V.axisLine},body:{itemStyle:{borderColor:V.borderTint}}},timeAxis:fa(),logAxis:fa(),valueAxis:fa(),categoryAxis:fa(),line:{symbol:"circle"},graph:{color:V.theme},gauge:{title:{color:V.secondary},axisLine:{lineStyle:{color:[[1,V.neutral05]]}},axisLabel:{color:V.axisLabel},detail:{color:V.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:V.background}},radar:function(){var e=fa();return e.axisName={color:V.axisLabel},e.axisLine.lineStyle.color=V.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:V.neutral20,textStyle:{color:V.secondary}},emphasis:{itemStyle:{color:V.neutral30}}}},sunburst:{itemStyle:{borderColor:V.background}},map:{itemStyle:{borderColor:V.border,areaColor:V.neutral10},label:{color:V.tertiary},emphasis:{label:{color:V.primary},itemStyle:{areaColor:V.highlight}},select:{label:{color:V.primary},itemStyle:{areaColor:V.highlight}}},geo:{itemStyle:{borderColor:V.border,areaColor:V.neutral10},emphasis:{label:{color:V.primary},itemStyle:{areaColor:V.highlight}},select:{label:{color:V.primary},itemStyle:{color:V.highlight}}}};wS.categoryAxis.splitLine.show=!1;const yL=wS;var _L=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if(Z(t)){var a=er(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};M(t,function(l,u){for(var f=!1,h=0;h<o.length;h++){var v=o[h],c=u.lastIndexOf(v);if(c>0&&c===u.length-v.length){var d=u.slice(0,c);d!=="data"&&(r.mainType=d,r[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function f(h,v,c,d){return h[c]==null||v[d||c]===h[c]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Fh=["symbol","symbolSize","symbolRotate","symbolOffset"],hg=Fh.concat(["symbolKeepAspect"]),SL={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<Fh.length;o++){var s=Fh[o],l=e.get(s);j(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(O({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=pt(i);function f(h,v){for(var c=e.getRawValue(v),d=e.getDataParams(v),p=0;p<u.length;p++){var g=u[p];h.setItemVisual(v,g,i[g](c,d))}}return{dataEach:a?f:null}}},bL={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<hg.length;s++){var l=hg[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function wL(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function TS(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function TL(e,t){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:e,query:i},function(o){a.push(o.seriesIndex)}),a}M([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=O({},i),o.dispatchAction(O(i,{type:n[1],seriesIndex:r(a,i)}))})})}function pi(e,t,r,n,i){var a=e+t;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var h=o.getData(),v=Yn(h,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:z(v)?h.getName(v[0]):h.getName(v),selected:Z(l)?l:O({},l)})}})}function xL(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(pi("map","selectchanged",t,i,n),pi("pie","selectchanged",t,i,n)):n.fromAction==="select"?(pi("map","selected",t,i,n),pi("pie","selected",t,i,n)):n.fromAction==="unselect"&&(pi("map","unselected",t,i,n),pi("pie","unselected",t,i,n))})}function Aa(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var CL=new sr;const ye=CL;var xS={};function DL(e,t){xS[e]=t}function AL(e){return xS[e]}var ML={};function LL(e,t){ML[e]=t}var Ql=ft();function IL(e){Ql(e).prepare={}}function PL(e){Ql(e).fullUpdate={}}function RL(e){return Ql(e).prepare}function Qi(e){return Ql(e).fullUpdate}var EL=Math.round(Math.random()*9),kL=typeof Object.defineProperty=="function",OL=function(){function e(){this._id="__ec_inner_"+EL++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return kL?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}();const BL=OL;var NL=dt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n+a),e.lineTo(r-i,n+a),e.closePath()}}),FL=dt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n),e.lineTo(r,n+a),e.lineTo(r-i,n),e.closePath()}}),zL=dt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,h=Math.sin(u),v=Math.cos(u),c=o*.6,d=o*.7;e.moveTo(r-f,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+f-h*c,l+s+v*c,r,n-d,r,n),e.bezierCurveTo(r,n-d,r-f+h*c,l+s+v*c,r-f,l+s),e.closePath()}}),VL=dt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;e.moveTo(i,a),e.lineTo(i+o,a+r),e.lineTo(i,a+r/4*3),e.lineTo(i-o,a+r),e.lineTo(i,a),e.closePath()}}),GL={line:Jr,rect:Lt,roundRect:Lt,square:Lt,circle:Hv,diamond:FL,pin:zL,arrow:VL,triangle:NL},HL={line:function(e,t,r,n,i){i.x1=e,i.y1=t+n/2,i.x2=e+r,i.y2=t+n/2},rect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n},roundRect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(e,t,r,n,i){var a=Math.min(r,n);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.r=Math.min(r,n)/2},diamond:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n},pin:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},arrow:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},triangle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n}},zh={};M(GL,function(e,t){zh[t]=new e});var UL=dt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=Ks(e,t,r),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var i=zh[n];i||(n="rect",i=zh[n]),HL[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function WL(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||K.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function tn(e,t,r,n,i,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=c_(e.slice(8),new nt(t,r,n,i),o?"center":"cover"):e.indexOf("path://")===0?l=Zv(e.slice(7),{},new nt(t,r,n,i),o?"center":"cover"):l=new UL({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=WL,a&&l.setColor(a),l}function xc(e){return z(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Jl(e,t){if(e!=null)return z(e)||(e=[e,e]),[bt(e[0],t[0])||0,bt(Y(e[1],e[0]),t[1])||0]}function kn(e){return isFinite(e)}function YL(e,t,r){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=kn(n)?n:0,i=kn(i)?i:1,a=kn(a)?a:0,o=kn(o)?o:0;var s=e.createLinearGradient(n,a,i,o);return s}function $L(e,t,r){var n=r.width,i=r.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=kn(o)?o:.5,s=kn(s)?s:.5,l=l>=0&&kn(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function Vh(e,t,r){for(var n=t.type==="radial"?$L(e,t,r):YL(e,t,r),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function XL(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function Qo(e){return parseInt(e,10)}function Jo(e,t,r){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[i]||Qo(s[n])||Qo(e.style[n]))-(Qo(s[a])||0)-(Qo(s[o])||0)||0}function ZL(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:St(e)?[e]:z(e)?e:null}function CS(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&ZL(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=X(r,function(a){return a/i}),n/=i)}return[r,n]}var qL=new Qr(!0);function hl(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function vg(e){return typeof e=="string"&&e!=="none"}function vl(e){var t=e.fill;return t!=null&&t!=="none"}function cg(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function dg(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function Gh(e,t,r){var n=p0(t.image,t.__image,r);if(Bl(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*uw),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function KL(e,t,r,n,i){var a,o=hl(r),s=vl(r),l=r.strokePercent,u=l<1,f=!t.path;(!t.silent||u)&&f&&t.createPathProxy();var h=t.path||qL,v=t.__dirty;if(!n){var c=r.fill,d=r.stroke,p=s&&!!c.colorStops,g=o&&!!d.colorStops,m=s&&!!c.image,y=o&&!!d.image,_=void 0,S=void 0,b=void 0,w=void 0,T=void 0;(p||g)&&(T=t.getBoundingRect()),p&&(_=v?Vh(e,c,T):t.__canvasFillGradient,t.__canvasFillGradient=_),g&&(S=v?Vh(e,d,T):t.__canvasStrokeGradient,t.__canvasStrokeGradient=S),m&&(b=v||!t.__canvasFillPattern?Gh(e,c,t):t.__canvasFillPattern,t.__canvasFillPattern=b),y&&(w=v||!t.__canvasStrokePattern?Gh(e,d,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),p?e.fillStyle=_:m&&(b?e.fillStyle=b:s=!1),g?e.strokeStyle=S:y&&(w?e.strokeStyle=w:o=!1)}var C=t.getGlobalScale();h.setScale(C[0],C[1],t.segmentIgnoreThreshold);var x,A;e.setLineDash&&r.lineDash&&(a=CS(t),x=a[0],A=a[1]);var D=!0;(f||v&bi)&&(h.setDPR(e.dpr),u?h.setContext(null):(h.setContext(e),D=!1),h.reset(),t.buildPath(h,t.shape,n),h.toStatic(),t.pathUpdated()),D&&h.rebuildPath(e,u?l:1),x&&(e.setLineDash(x),e.lineDashOffset=A),n?(i.batchFill=s,i.batchStroke=o):r.strokeFirst?(o&&dg(e,r),s&&cg(e,r)):(s&&cg(e,r),o&&dg(e,r)),x&&e.setLineDash([])}function QL(e,t,r){var n=t.__image=p0(r.image,t.__image,t,t.onload);if(!(!n||!Bl(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;e.drawImage(n,u,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,h=o-u,v=s-f;e.drawImage(n,u,f,h,v,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function JL(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Kr,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=CS(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(hl(r)&&e.strokeText(i,r.x,r.y),vl(r)&&e.fillText(i,r.x,r.y)):(vl(r)&&e.fillText(i,r.x,r.y),hl(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var pg=["shadowBlur","shadowOffsetX","shadowOffsetY"],gg=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function DS(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){ee(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?zn.opacity:o}(n||t.blend!==r.blend)&&(a||(ee(e,i),a=!0),e.globalCompositeOperation=t.blend||zn.blend);for(var s=0;s<pg.length;s++){var l=pg[s];(n||t[l]!==r[l])&&(a||(ee(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(a||(ee(e,i),a=!0),e.shadowColor=t.shadowColor||zn.shadowColor),a}function mg(e,t,r,n,i){var a=t.style,o=n?null:r&&r.style||{};if(a===o)return!1;var s=DS(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(ee(e,i),s=!0),vg(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(ee(e,i),s=!0),vg(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(ee(e,i),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(ee(e,i),s=!0),e.lineWidth=u)}for(var f=0;f<gg.length;f++){var h=gg[f],v=h[0];(n||a[v]!==o[v])&&(s||(ee(e,i),s=!0),e[v]=a[v]||h[1])}return s}function jL(e,t,r,n,i){return DS(e,t.style,r&&r.style,n,i)}function AS(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function tI(e,t,r){for(var n=!1,i=0;i<e.length;i++){var a=e[i];n=n||a.isZeroArea(),AS(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=n}function eI(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var yg=1,_g=2,Sg=3,bg=4;function rI(e){var t=vl(e),r=hl(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function ee(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function MS(e,t){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};On(e,t,r),Oi(e,r)}function On(e,t,r){var n=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~se,t.__isRendered=!1;return}var i=t.__clipPaths,a=r.prevElClipPaths,o=t.style,s=!1,l=!1;if((!a||XL(i,a))&&(a&&(ee(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(ee(e,r),e.save(),tI(i,e,r),s=!0,r.prevElClipPaths=i)),r.allClipped){t.__dirty&=~se,t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(r.beforeBrushParam),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=t instanceof dt&&t.autoBatch&&rI(o);s||eI(n,u.transform)?(ee(e,r),AS(e,t)):f||ee(e,r),t instanceof dt?(r.lastDrawType!==yg&&(l=!0,r.lastDrawType=yg),mg(e,t,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&e.beginPath(),KL(e,t,o,f,r)):t instanceof Sh?(r.lastDrawType!==Sg&&(l=!0,r.lastDrawType=Sg),mg(e,t,u,l,r),JL(e,t,o)):t instanceof rn?(r.lastDrawType!==_g&&(l=!0,r.lastDrawType=_g),jL(e,t,u,l,r),QL(e,t,o)):t.getTemporalDisplayables&&(r.lastDrawType!==bg&&(l=!0,r.lastDrawType=bg),nI(e,t,r)),t.innerAfterBrush(),t.afterBrush&&(f&&ee(e,r),t.afterBrush()),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Oi(e,t){ee(e,t),t.prevElClipPaths&&e.restore()}function nI(e,t,r){var n=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),On(e,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}Oi(e,a);for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),On(e,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}Oi(e,a),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var lf=new BL,wg=new Ni(100),Tg=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Hh(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&lf.delete(e);var a=lf.get(e);if(a)return a;var o=mt(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,lf.set(e,s),e.dirty=!1,s;function l(u){for(var f=[r],h=!0,v=0;v<Tg.length;++v){var c=o[Tg[v]];if(c!=null&&!z(c)&&!Z(c)&&!St(c)&&typeof c!="boolean"){h=!1;break}f.push(c)}var d;if(h){d=f.join(",")+(i?"-svg":"");var p=wg.get(d);p&&(i?u.svgElement=p:u.image=p)}var g=IS(o.dashArrayX),m=iI(o.dashArrayY),y=LS(o.symbol),_=aI(g),S=PS(m),b=!i&&ce.createCanvas(),w=i&&{tag:"g",attrs:{},key:"dcl",children:[]},T=x(),C;b&&(b.width=T.width*r,b.height=T.height*r,C=b.getContext("2d")),A(),h&&wg.put(d,b||w),u.image=b,u.svgElement=w,u.svgWidth=T.width,u.svgHeight=T.height;function x(){for(var D=1,I=0,L=_.length;I<L;++I)D=Ed(D,_[I]);for(var P=1,I=0,L=y.length;I<L;++I)P=Ed(P,y[I].length);D*=P;var R=S*_.length*y.length;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function A(){C&&(C.clearRect(0,0,b.width,b.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,b.width,b.height)));for(var D=0,I=0;I<m.length;++I)D+=m[I];if(D<=0)return;for(var L=-S,P=0,R=0,E=0;L<T.height;){if(P%2===0){for(var B=R/2%y.length,k=0,F=0,G=0;k<T.width*2;){for(var H=0,I=0;I<g[E].length;++I)H+=g[E][I];if(H<=0)break;if(F%2===0){var W=(1-o.symbolSize)*.5,$=k+g[E][F]*W,U=L+m[P]*W,et=g[E][F]*o.symbolSize,st=m[P]*o.symbolSize,Pt=G/2%y[B].length;Nt($,U,et,st,y[B][Pt])}k+=g[E][F],++G,++F,F===g[E].length&&(F=0)}++E,E===g.length&&(E=0)}L+=m[P],++R,++P,P===m.length&&(P=0)}function Nt(yt,Ct,tt,lt,Ye){var Ft=i?1:r,Lr=tn(Ye,yt*Ft,Ct*Ft,tt*Ft,lt*Ft,o.color,o.symbolKeepAspect);if(i){var ur=n.painter.renderOneToVNode(Lr);ur&&w.children.push(ur)}else MS(C,Lr)}}}}function LS(e){if(!e||e.length===0)return[["rect"]];if(Z(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!Z(e[r])){t=!1;break}if(t)return LS([e]);for(var n=[],r=0;r<e.length;++r)Z(e[r])?n.push([e[r]]):n.push(e[r]);return n}function IS(e){if(!e||e.length===0)return[[0,0]];if(St(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!St(e[n])){r=!1;break}if(r)return IS([e]);for(var i=[],n=0;n<e.length;++n)if(St(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=X(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function iI(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(St(e)){var t=Math.ceil(e);return[t,t]}var r=X(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function aI(e){return X(e,function(t){return PS(t)})}function PS(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}var oI=Ev(sI);function sI(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=Hh(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Hh(i,t)}}})}var lI=1,uI=800,fI=900,hI=920,vI=1e3,cI=2e3,xg=5e3,RS=1e3,dI=1100,Cc=2e3,ES=3e3,pI=4e3,jl=4500,gI=4600,mI=5e3,yI=6e3,kS=7e3,_I={PROCESSOR:{SERIES_FILTER:uI,AXIS_STATISTICS:hI,FILTER:vI,STATISTIC:xg,STATISTICS:xg},VISUAL:{LAYOUT:RS,PROGRESSIVE_LAYOUT:dI,GLOBAL:Cc,CHART:ES,POST_CHART_LAYOUT:gI,COMPONENT:pI,BRUSH:mI,CHART_ITEM:jl,ARIA:yI,DECAL:kS}},Rt="__flagInMainProcess",jo="__mainProcessVersion",zt="__pendingUpdate",uf="__needsUpdateStatus",Cg=/^[a-zA-Z0-9_]+$/,ff="__connectUpdateStatus",Dg=0,SI=1,bI=2;function OS(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return NS(this,e,t)}}function BS(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return NS(this,e,t)}}function NS(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),sr.prototype[t].apply(e,r)}var FS=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(sr),zS=FS.prototype;zS.on=BS("on");zS.off=BS("off");var An,hf,ts,vr,es,vf,cf,gi,mi,Ag,Mg,df,Lg,rs,Ig,VS,ge,Pg,yi,GS=function(e){N(t,e);function t(r,n,i){var a=e.call(this,new _L)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},a.__v_skip=!0,a._dom=r;var o="canvas",s="auto",l=!1;a[jo]=1,i.ssr;var u=a._zr=Id(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Y(i.useDirtyRect,l),useCoarsePointer:Y(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Tc(_t(u.flush,u),17),a._updateTheme(n),a._locale=hA(i.locale||w_),a._coordSysMgr=new hc;var f=a._api=Ig(a);function h(v,c){return v.__prio-c.__prio}return Ts(dl,h),Ts(Yh,h),a._scheduler=new bS(a,f,Yh,dl),a._messageCenter=new FS,a._initEvents(),a.resize=_t(a.resize,a),u.animation.on("frame",a._onframe,a),Ag(u,a),Mg(u,a),Gs(a),a}return t.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,n=this._model,i=this._api;if(Pg(this),this[zt]){var a=this[zt].silent;this[Rt]=!0,yi(this);try{An(this),vr.update.call(this,null,this[zt].updateParams)}catch(l){throw this[Rt]=!1,this[zt]=null,l}this._zr.flush(),this[Rt]=!1,this[zt]=null,gi.call(this,a),mi.call(this,a)}else if(r.unfinished){var o=lI;do{r.unfinished=!1;var s=ce.getTime();r.performSeriesTasks(n),r.performDataProcessorTasks(n),vf(this,n),r.performVisualTasks(n),rs(this,this._model,i,"remain",{}),o-=ce.getTime()-s}while(o>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(!this[Rt]){if(this._disposed){this.id;return}var a,o,s;if(q(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Rt]=!0,yi(this),!this._model||n){var l=new nM(this._api),u=this._theme,f=this._model=new X_;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},$h);var h={seriesTransition:s,optionChanged:!0};if(i)this[zt]={silent:a,updateParams:h},this[Rt]=!1,this.getZr().wakeUp();else{try{An(this),vr.update.call(this,null,h)}catch(v){throw this[zt]=null,this[Rt]=!1,v}this._ssr||this._zr.flush(),this[zt]=null,this[Rt]=!1,gi.call(this,a),mi.call(this,a)}}},t.prototype.setTheme=function(r,n){if(!this[Rt]){if(this._disposed){this.id;return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[zt]&&(a==null&&(a=this[zt].silent),o=this[zt].updateParams,this[zt]=null),this[Rt]=!0,yi(this);try{this._updateTheme(r),i.setTheme(this._theme),An(this),vr.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Rt]=!1,s}this[Rt]=!1,gi.call(this,a),mi.call(this,a)}}},t.prototype._updateTheme=function(r){Z(r)&&(r=HS[r]),r&&(r=it(r),r&&q_(r,!0),this._theme=r)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ut.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return M(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;M(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return M(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Rg[i]){var l=s,u=s,f=-s,h=-s,v=[],c=r&&r.pixelRatio||this.getDevicePixelRatio();M(Ga,function(_,S){if(_.group===i){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(it(r)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),f=o(w.right,f),h=o(w.bottom,h),v.push({dom:b,left:w.left,top:w.top})}}),l*=c,u*=c,f*=c,h*=c;var d=f-l,p=h-u,g=ce.createCanvas(),m=Id(g,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:p}),n){var y="";return M(v,function(_){var S=_.left-l,b=_.top-u;y+='<g transform="translate('+S+","+b+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Lt({shape:{x:0,y:0,width:d,height:p},style:{fill:r.connectedBackgroundColor}})),M(v,function(_){var S=new rn({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});m.add(S)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n,i){return es(this,"convertToPixel",r,n,i)},t.prototype.convertToLayout=function(r,n,i){return es(this,"convertToLayout",r,n,i)},t.prototype.convertFromPixel=function(r,n,i){return es(this,"convertFromPixel",r,n,i)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=ku(i,r);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(a=a||h.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=ku(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?wL(s,l,n):TS(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;M(wI,function(i){var a=function(o){var s=r.getModel(),l=o.target,u,f=i==="globalout";if(f?u={}:l&&Aa(l,function(p){var g=at(p);if(g&&g.dataIndex!=null){var m=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=m&&m.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=O({},g.eventData),!0},!0),u){var h=u.componentType,v=u.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",v=u.seriesIndex);var c=h&&v!=null&&s.getComponent(h,v),d=c&&r[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];u.event=o,u.type=i,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:c,view:d},r.trigger(i,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(i,a,r)});var n=this._messageCenter;M(Wh,function(i,a){n.on(a,function(o){r.trigger(a,o)})}),xL(n,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&s0(this.getDom(),Ac,"");var n=this,i=n._api,a=n._model;M(n._componentsViews,function(o){o.dispose(a,i)}),M(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Ga[n.id]},t.prototype.resize=function(r){if(!this[Rt]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[zt]&&(a==null&&(a=this[zt].silent),i=!0,this[zt]=null),this[Rt]=!0,yi(this);try{i&&An(this),vr.update.call(this,{type:"resize",animation:O({duration:0},r&&r.animation)})}catch(o){throw this[Rt]=!1,o}this[Rt]=!1,gi.call(this,a),mi.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(q(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!Xh[r]){var i=Xh[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=O({},r);return n.type=Uh[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(q(n)||(n={silent:!!n}),!!cl[r.type]&&this._model){if(this[Rt]){this._pendingActions.push(r);return}var i=n.silent;cf.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&ut.browser.weChat&&this._throttledZrFlush(),gi.call(this,i),mi.call(this,i)}},t.prototype.updateLabelLayout=function(){ye.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){An=function(h){IL(h._model);var v=h._scheduler;v.restorePipelines(h._zr,h._model),v.prepareStageTasks(),hf(h,!0),hf(h,!1),v.plan()},hf=function(h,v){for(var c=h._model,d=h._scheduler,p=v?h._componentsViews:h._chartsViews,g=v?h._componentsMap:h._chartsMap,m=h._zr,y=h._api,_=0;_<p.length;_++)p[_].__alive=!1;v?c.eachComponent(function(w,T){w!=="series"&&S(T)}):c.eachSeries(S);function S(w){var T=w.__requireNewView;w.__requireNewView=!1;var C="_ec_"+w.id+"_"+w.type,x=!T&&g[C];if(!x){var A=er(w.type),D=v?Ee.getClass(A.main,A.sub):ze.getClass(A.sub);x=new D,x.init(c,y),g[C]=x,p.push(x),m.add(x.group)}w.__viewId=x.__id=C,x.__alive=!0,x.__model=w,x.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!v&&d.prepareView(x,w,c,y)}for(var _=0;_<p.length;){var b=p[_];b.__alive?_++:(!v&&b.renderTask.dispose(),m.remove(b.group),b.dispose(c,y),p.splice(_,1),g[b.__id]===b&&delete g[b.__id],b.__id=b.group.__ecComponentInfo=null)}},ts=function(h,v,c,d,p){var g=h._model;if(g.setUpdatePayload(c),!d){M([].concat(h._componentsViews).concat(h._chartsViews),S);return}var m=ux(c,d,p),y=c.excludeSeriesId,_;y!=null&&(_=Q(),M(Gt(y),function(b){var w=le(b,null);w!=null&&_.set(w,!0)})),g&&g.eachComponent(m,function(b){var w=_&&_.get(b.id)!=null;if(!w)if(fp(c))if(b instanceof Dr)c.type===Vn&&!c.notBlur&&!b.get(["emphasis","disabled"])&&OC(b,c,h._api);else{var T=Gv(b.mainType,b.componentIndex,c.name,h._api),C=T.focusSelf,x=T.dispatchers;c.type===Vn&&C&&!c.notBlur&&Th(b.mainType,b.componentIndex,h._api),x&&M(x,function(A){c.type===Vn?Ja(A):ja(A)})}else Dh(c)&&b instanceof Dr&&(FC(b,c,h._api),lp(b),ge(h))},h),g&&g.eachComponent(m,function(b){var w=_&&_.get(b.id)!=null;w||S(h[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},h);function S(b){b&&b.__alive&&b[v]&&b[v](b.__model,g,h._api,c)}},vr={prepareAndUpdate:function(h){An(this),vr.update.call(this,h,h&&{optionChanged:h.newOption!=null})},update:function(h,v){var c=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(c){PL(c),c.setUpdatePayload(h),m.restoreData(c,h),m.performSeriesTasks(c),g.create(c,d),ye.trigger("coordsys:aftercreate",c,d),m.performDataProcessorTasks(c,h),vf(this,c),g.update(c,d),n(c),m.performVisualTasks(c,h);var y=c.get("backgroundColor")||"transparent";p.setBackgroundColor(y);var _=c.get("darkMode");_!=null&&_!=="auto"&&p.setDarkMode(_),df(this,c,d,h,v),ye.trigger("afterupdate",c,d)}},updateTransform:function(h){var v=this,c=v._model,d=v._api;if(c){c.setUpdatePayload(h);var p=[];c.eachComponent(function(m,y){if(m!==L0){var _=v.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(y,c,d,h);S&&S.update&&p.push(_)}else p.push(_)}});var g=Q();c.eachSeries(function(m){var y=v._chartsMap[m.__viewId],_=m.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var S=y.updateTransform(m,c,d,h);S&&S.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),v._scheduler.performVisualTasks(c,h,{setDirty:!0,dirtyMap:g}),rs(v,c,d,h,{},g),ye.trigger("afterupdate",c,d)}},updateView:function(h){var v=this._model;v&&(v.setUpdatePayload(h),ze.markUpdateMethod(h,"updateView"),n(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0}),df(this,v,this._api,h,{}),ye.trigger("afterupdate",v,this._api))},updateVisual:function(h){var v=this,c=this._model;c&&(c.setUpdatePayload(h),c.eachSeries(function(d){d.getData().clearAllVisual()}),ze.markUpdateMethod(h,"updateVisual"),n(c),this._scheduler.performVisualTasks(c,h,{visualType:"visual",setDirty:!0}),c.eachComponent(function(d,p){if(d!=="series"){var g=v.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,c,v._api,h)}}),c.eachSeries(function(d){var p=v._chartsMap[d.__viewId];p.updateVisual(d,c,v._api,h)}),ye.trigger("afterupdate",c,this._api))},updateLayout:function(h){vr.update.call(this,h)}};function r(h,v,c,d,p){if(h._disposed){h.id;return}for(var g=h._model,m=h._coordSysMgr.getCoordinateSystems(),y,_=ku(g,c),S=0;S<m.length;S++){var b=m[S];if(b[v]&&(y=b[v](g,_,d,p))!=null)return y}}es=r,vf=function(h,v){var c=h._chartsMap,d=h._scheduler;v.eachSeries(function(p){d.updateStreamModes(p,c[p.__viewId])})},cf=function(h,v){var c=this,d=this.getModel(),p=h.type,g=h.escapeConnect,m=cl[p],y=(m.update||"update").split(":"),_=y.pop(),S=y[0]!=null&&er(y[0]);this[Rt]=!0,yi(this);var b=[h],w=!1;h.batch&&(w=!0,b=X(h.batch,function(E){return E=mt(O({},E),h),E.batch=null,E}));var T=[],C,x=[],A=m.nonRefinedEventType,D=Dh(h),I=fp(h);if(I&&G0(this._api),M(b,function(E){var B=m.action(E,d,c._api);if(m.refineEvent?x.push(B):C=B,C=C||O({},E),C.type=A,T.push(C),I){var k=Pv(h),F=k.queryOptionMap,G=k.mainTypeSpecified,H=G?F.keys()[0]:"series";ts(c,_,E,H),ge(c)}else D?(ts(c,_,E,"series"),ge(c)):S&&ts(c,_,E,S.main,S.sub)}),_!=="none"&&!I&&!D&&!S)try{this[zt]?(An(this),vr.update.call(this,h),this[zt]=null):vr[_].call(this,h)}catch(E){throw this[Rt]=!1,E}if(w?C={type:A,escapeConnect:g,batch:T}:C=T[0],this[Rt]=!1,!v){var L=void 0;if(m.refineEvent){var P=m.refineEvent(x,h,d,this._api).eventContent;Sr(q(P)),L=mt({type:m.refinedEventType},P),L.fromAction=h.type,L.fromActionPayload=h,L.escapeConnect=!0}var R=this._messageCenter;R.trigger(C.type,C),L&&R.trigger(L.type,L)}},gi=function(h){for(var v=this._pendingActions;v.length;){var c=v.shift();cf.call(this,c,h)}},mi=function(h){!h&&this.trigger("updated")},Ag=function(h,v){h.on("rendered",function(c){v.trigger("rendered",c),h.animation.isFinished()&&!v[zt]&&!v._scheduler.unfinished&&!v._pendingActions.length?v.trigger("finished"):h.refresh()})},Mg=function(h,v){h.on("mouseover",function(c){var d=c.target,p=Aa(d,Ch);p&&(BC(p,c,v._api),ge(v))}).on("mouseout",function(c){var d=c.target,p=Aa(d,Ch);p&&(NC(p,c,v._api),ge(v))}).on("click",function(c){var d=c.target,p=Aa(d,function(y){return at(y).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=at(p);v._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function n(h){h.clearColorPalette(),h.eachSeries(function(v){v.clearColorPalette()})}function i(h){var v=[],c=[],d=!1;if(h.eachComponent(function(y,_){var S=_.get("zlevel")||0,b=_.get("z")||0,w=_.getZLevelKey();d=d||!!w,(y==="series"?c:v).push({zlevel:S,z:b,idx:_.componentIndex,type:y,key:w})}),d){var p=v.concat(c),g,m;Ts(p,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),M(p,function(y){var _=h.getComponent(y.type,y.idx),S=y.zlevel,b=y.key;g!=null&&(S=Math.max(g,S)),b?(S===g&&b!==m&&S++,m=b):m&&(S===g&&S++,m=""),g=S,_.setZLevel(S)})}}df=function(h,v,c,d,p){i(v),Lg(h,v,c,d,p),M(h._chartsViews,function(g){g.__alive=!1}),rs(h,v,c,d,p),M(h._chartsViews,function(g){g.__alive||g.remove(v,c)})},Lg=function(h,v,c,d,p,g){M(g||h._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,v,c,d),l(y,m),f(y,m)})},rs=function(h,v,c,d,p,g){var m=h._scheduler;p=O(p||{},{updatedSeries:v.getSeries()}),ye.trigger("series:beforeupdate",v,c,p);var y=!1;v.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;m.updatePayload(b,d),u(_,S),g&&g.get(_.uid)&&b.dirty(),b.perform(m.getPerformArgs(b))&&(y=!0),S.group.silent=!!_.get("silent"),s(_,S),lp(_)}),m.unfinished=y||m.unfinished,ye.trigger("series:layoutlabels",v,c,p),ye.trigger("series:transition",v,c,p),v.eachSeries(function(_){var S=h._chartsMap[_.__viewId];l(_,S),f(_,S)}),o(h,v),ye.trigger("series:afterupdate",v,c,p)},ge=function(h){h[uf]=!0,h.getZr().wakeUp()},yi=function(h){h[jo]=(h[jo]+1)%1e6},Pg=function(h){h[uf]&&(h.getZr().storage.traverse(function(v){Oa(v)||a(v)}),h[uf]=!1)};function a(h){for(var v=[],c=h.currentStates,d=0;d<c.length;d++){var p=c[d];p==="emphasis"||p==="blur"||p==="select"||v.push(p)}h.selected&&h.states.select&&v.push("select"),h.hoverState===zl&&h.states.emphasis?v.push("emphasis"):h.hoverState===Fl&&h.states.blur&&v.push("blur"),h.useStates(v)}function o(h,v){var c=h._zr;if(c.painter.type==="canvas"){var d=c.storage,p=0;d.traverse(function(m){m.isGroup||p++});var g=p>Y(v.get("hoverLayerThreshold"),H_.hoverLayerThreshold)&&!ut.node&&!ut.worker;(h._usingTHL||g)&&(v.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=h._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(_){var S=_.states.emphasis;S&&S.hoverLayer!==Hl&&(S.hoverLayer=g?h_:f_)})}}),h._usingTHL=g)}}function s(h,v){var c=h.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=c)})}function l(h,v){if(!h.preventAutoZ){var c=jv(h);v.eachRendered(function(d){return tc(d,c.z,c.zlevel),!0})}}function u(h,v){v.eachRendered(function(c){if(!Oa(c)){var d=c.getTextContent(),p=c.getTextGuideLine();c.stateTransition&&(c.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),c.hasState()?(c.prevStates=c.currentStates,c.clearStates()):c.prevStates&&(c.prevStates=null)}})}function f(h,v){var c=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),p=c.get("duration"),g=p>0?{duration:p,delay:c.get("delay"),easing:c.get("easing")}:null;v.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Oa(m))return;if(m instanceof dt&&WC(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=g;var _=m.getTextContent(),S=m.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}m.__dirty&&a(m)}})}Ig=function(h){return new(function(v){N(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return h._model.getComponent(p.mainType,p.index);d=d.parent}},c.prototype.enterEmphasis=function(d,p){Ja(d,p),ge(h)},c.prototype.leaveEmphasis=function(d,p){ja(d,p),ge(h)},c.prototype.enterBlur=function(d){N0(d),ge(h)},c.prototype.leaveBlur=function(d){Vv(d),ge(h)},c.prototype.enterSelect=function(d){F0(d),ge(h)},c.prototype.leaveSelect=function(d){z0(d),ge(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},c.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},c.prototype.getECUpdateCycleVersion=function(){return h[jo]},c.prototype.usingTHL=function(){return h._usingTHL},c}(R0))(h)},VS=function(h){function v(c,d){for(var p=0;p<c.length;p++){var g=c[p];g[ff]=d}}M(Uh,function(c,d){h._messageCenter.on(d,function(p){if(Rg[h.group]&&h[ff]!==Dg){if(p&&p.escapeConnect)return;var g=h.makeActionFromEvent(p),m=[];M(Ga,function(y){y!==h&&y.group===h.group&&m.push(y)}),v(m,Dg),M(m,function(y){y[ff]!==SI&&y.dispatchAction(g)}),v(m,bI)}})})}}(),t}(sr),Dc=GS.prototype;Dc.on=OS("on");Dc.off=OS("off");Dc.one=function(e,t,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(e,i)}this.on.call(this,e,i,r)};var wI=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var cl={},Uh={},Wh={},Yh=[],$h=[],dl=[],HS={},Xh={},Ga={},Rg={},TI=+new Date-0,Ac="_echarts_instance_";function IB(e,t,r){var n=!(r&&r.ssr);if(n){var i=xI(e);if(i)return i}var a=new GS(e,t,r);return a.id="ec_"+TI++,Ga[a.id]=a,n&&s0(e,Ac,a.id),VS(a),ye.trigger("afterinit",a),a}function xI(e){return Ga[fx(e,Ac)]}function US(e,t){HS[e]=t}function WS(e){ot($h,e)<0&&$h.push(e)}function YS(e,t){Lc(Yh,e,t,cI)}function CI(e){Mc("afterinit",e)}function DI(e){Mc("afterupdate",e)}function Mc(e,t){ye.on(e,t)}function Ji(e,t,r){var n,i,a,o,s;j(t)&&(r=t,t=""),q(e)?(n=e.type,i=e.event,o=e.update,s=e.publishNonRefinedEvent,r||(r=e.action),a=e.refineEvent):(n=e,i=t);function l(f){return f.toLowerCase()}i=l(i||n);var u=a?l(n):i;cl[n]||(Sr(Cg.test(n)&&Cg.test(i)),a&&Sr(i!==n),cl[n]={actionType:n,refinedEventType:i,nonRefinedEventType:u,update:o,action:r,refineEvent:a},Wh[i]=1,a&&s&&(Wh[u]=1),Uh[u]=n)}function AI(e,t){hc.register(e,t)}function MI(e,t){Lc(dl,e,t,RS,"layout")}function ni(e,t){Lc(dl,e,t,ES,"visual")}var Eg=[];function Lc(e,t,r,n,i,a){if((j(t)||q(t))&&(r=t,t=n),!(ot(Eg,r)>=0)){Eg.push(r);var o=bS.wrapStageHandler(r,i);o.__prio=t,o.__raw=r,e.push(o)}}function $S(e,t){Xh[e]=t}function LI(e,t,r){var n=AL("registerMap");n&&n(e,t,r)}var II=LM;ni(Cc,iL);ni(jl,aL);ni(jl,oL);ni(Cc,SL);ni(jl,bL);ni(kS,oI);WS(q_);YS(fI,hM);$S("default",sL);Ji({type:Vn,event:Vn,update:Vn},Kt);Ji({type:Is,event:Is,update:Is},Kt);Ji({type:el,event:Fv,update:el,action:Kt,refineEvent:Ic,publishNonRefinedEvent:!0});Ji({type:bh,event:Fv,update:bh,action:Kt,refineEvent:Ic,publishNonRefinedEvent:!0});Ji({type:rl,event:Fv,update:rl,action:Kt,refineEvent:Ic,publishNonRefinedEvent:!0});function Ic(e,t,r,n){return{eventContent:{selected:zC(r),isFromClick:t.isFromClick||!1}}}US("default",{});US("dark",yL);function ha(e){return e==null?0:e.length||1}function kg(e){return e}var PI=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||kg,this._newKeyGetter=i||kg,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],l=n[s],u=ha(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],h=ha(u),v=ha(f);if(h>1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(h===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(h===1&&v===1)this._update&&this._update(f,u),i[l]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(h>1)for(var c=0;c<h;c++)this._remove&&this._remove(u[c]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var i=t[n],a=r[i],o=ha(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},e.prototype._initIndexMap=function(t,r,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=ha(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}();const RI=PI;var EI=function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function kI(e,t){var r={},n=r.encode={},i=Q(),a=[],o=[],s={};M(e.dimensions,function(v){var c=e.getDimensionInfo(v),d=c.coordDim;if(d){var p=c.coordDimIndex;pf(n,d)[p]=v,c.isExtraCoord||(i.set(d,1),BI(c.type)&&(a[0]=v),pf(s,d)[p]=e.getDimensionIndex(c.name)),c.defaultTooltip&&o.push(v)}I0.each(function(g,m){var y=pf(n,m),_=c.otherDims[m];_!=null&&_!==!1&&(y[_]=c.name)})});var l=[],u={};i.each(function(v,c){var d=n[c];u[c]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=X(l,function(v){return e.getDimensionInfo(v).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var h=n.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new EI(s,t),r}function pf(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function OI(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function BI(e){return!(e==="ordinal"||e==="time")}var NI=function(){function e(t){this.otherDims={},t!=null&&O(this,t)}return e}();const Ns=NI;var FI=ft(),zI={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},XS=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=qS(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return Y(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=Q_(this.source),n=!KS(t),i="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=r?h.name:null,u=h.type,f=h.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=r?v.name:null,u=v.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!h||!h.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=zI[u]||"f",f&&(i+=f.uid),i+="$"}var c=this.source,d=[c.seriesLayoutBy,c.startIndex,i].join("$$");return{dimensions:a,hash:d}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function ZS(e){return e instanceof XS}function Pc(e){for(var t=Q(),r=0;r<(e||[]).length;r++){var n=e[r],i=q(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function qS(e){var t=FI(e);return t.dimNameMap||(t.dimNameMap=Pc(e.dimensionsDefine))}function KS(e){return e>30}var va=q,kr=X,VI=typeof Int32Array>"u"?Array:Int32Array,GI="e\0\0",Og=-1,HI=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],UI=["_approximateExtent"],Bg,ns,ca,da,gf,pa,mf,WI=function(){function e(t,r){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 n,i=!1;ZS(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var h=n[f],v=Z(h)?new Ns({name:h}):h instanceof Ns?h:new Ns(h),c=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=c,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(c),a[c]=v,u[c]!=null&&(l=!0),v.createInvertedIndices&&(s[c]=[]),i&&(v.storeDimIndex=f),d.itemName===0&&(this._nameDimIdx=v.storeDimIndex),d.itemId===0&&(this._idDimIdx=v.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=Q();M(o,function(g){p.set(a[g].storeDimIndex,g)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(St(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var i=this,a;if(t instanceof Eh&&(a=t),!a){var o=this.dimensions,s=pc(t)||ne(t)?new J_(t,o.length):t;a=new Eh;var l=kr(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=kI(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r&&r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&mf(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Zr&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===pe;if(l&&!i.pure)for(var u=[],f=t;f<r;f++){var h=i.getItem(f,u);if(!this.hasItemOption&&jT(h)&&(this.hasItemOption=!0),h){var v=h.name;a[f]==null&&v!=null&&(a[f]=le(v,null));var c=h.id;o[f]==null&&c!=null&&(o[f]=le(c,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<r;f++)mf(this,f);Bg(this)}},e.prototype.getApproximateExtent=function(t,r){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t),r)},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){va(t)?O(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=ca(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},e.prototype.getId=function(t){return ns(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t),null)},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,i=this._store;return z(t)?i.getValues(kr(t,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t],i=n&&n[r];return i==null||isNaN(i)?Og:i},e.prototype.each=function(t,r,n){j(t)&&(n=r,r=t,t=[]);var i=n||this,a=kr(da(t),this._getStoreDimIndex,this);this._store.each(a,i?_t(r,i):r)},e.prototype.filterSelf=function(t,r,n){j(t)&&(n=r,r=t,t=[]);var i=n||this,a=kr(da(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?_t(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=pt(t);return M(i,function(a){var o=r._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){j(t)&&(n=r,r=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(r&&r.apply(this,arguments))},n),i},e.prototype.map=function(t,r,n,i){var a=n||i||this,o=kr(da(t),this._getStoreDimIndex,this),s=pa(this);return s._store=this._store.map(o,a?_t(r,a):r),s},e.prototype.modify=function(t,r,n,i){var a=n||i||this,o=kr(da(t),this._getStoreDimIndex,this);this._store.modify(o,a?_t(r,a):r)},e.prototype.downSample=function(t,r,n,i){var a=pa(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),a},e.prototype.minmaxDownSample=function(t,r){var n=pa(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),r),n},e.prototype.lttbDownSample=function(t,r){var n=pa(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new Wt(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new RI(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return ns(t,n)},function(n){return ns(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},va(t)?O(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],i=n&&n[r];return i==null?this.getVisual(r):i},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),z(a)?a=a.slice():va(a)&&(a=O({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,va(r)?O(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){va(t)?O(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?O(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;wC(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){M(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:kr(this.dimensions,this._getDimInfo,this),this.hostModel)),gf(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];j(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(_v(arguments)))})},e.internalField=function(){Bg=function(t){var r=t._invertedIndicesMap;M(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new VI(o.categories.length);for(var l=0;l<n.length;l++)n[l]=Og;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},ca=function(t,r,n){return le(t._getCategory(r,n),null)},ns=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=ca(t,t._idDimIdx,r)),n==null&&(n=GI+r),n},da=function(t){return z(t)||(t=t!=null?[t]:[]),t},pa=function(t){var r=new e(t._schema?t._schema:kr(t.dimensions,t._getDimInfo,t),t.hostModel);return gf(r,t),r},gf=function(t,r){M(HI.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,M(UI,function(n){t[n]=it(r[n])}),t._calculationInfo=O({},r._calculationInfo)},mf=function(t,r){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=ca(t,a,r)),l==null&&o!=null&&(i[r]=l=ca(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[r]=l}}}(),e}();const Ha=WI;function QS(e,t){pc(e)||(e=gc(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=Q(),a=[],o=YI(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&KS(o),l=n===e.dimensionsDefine,u=l?qS(e):Pc(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var h=Q(f),v=new aS(o),c=0;c<v.length;c++)v[c]=-1;function d(x){var A=v[x];if(A<0){var D=n[x],I=q(D)?D:{name:D},L=new Ns,P=I.name;P!=null&&u.get(P)!=null&&(L.name=L.displayName=P),I.type!=null&&(L.type=I.type),I.displayName!=null&&(L.displayName=I.displayName);var R=a.length;return v[x]=R,L.storeDimIndex=x,a.push(L),L}return a[A]}if(!s)for(var c=0;c<o;c++)d(c);h.each(function(x,A){var D=Gt(x).slice();if(D.length===1&&!Z(D[0])&&D[0]<0){h.set(A,!1);return}var I=h.set(A,[]);M(D,function(L,P){var R=Z(L)?u.get(L):L;R!=null&&R<o&&(I[P]=R,g(d(R),A,P))})});var p=0;M(r,function(x){var A,D,I,L;if(Z(x))A=x,L={};else{L=x,A=L.name;var P=L.ordinalMeta;L.ordinalMeta=null,L=O({},L),L.ordinalMeta=P,D=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var R=h.get(A);if(R!==!1){if(R=Gt(R),!R.length)for(var E=0;E<(D&&D.length||1);E++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&R.push(p++)}M(R,function(B,k){var F=d(B);if(l&&L.type!=null&&(F.type=L.type),g(mt(F,L),A,k),F.name==null&&D){var G=D[k];!q(G)&&(G={name:G}),F.name=F.displayName=G.name,F.defaultTooltip=G.defaultTooltip}I&&mt(F.otherDims,I)})}});function g(x,A,D){I0.get(A)!=null?x.otherDims[A]=D:(x.coordDim=A,x.coordDimIndex=D,i.set(A,!0))}var m=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=m?y||1:0;var S=m||"value";function b(x){x.name==null&&(x.name=x.coordDim)}if(s)M(a,function(x){b(x)}),a.sort(function(x,A){return x.storeDimIndex-A.storeDimIndex});else for(var w=0;w<o;w++){var T=d(w),C=T.coordDim;C==null&&(T.coordDim=$I(S,i,_),T.coordDimIndex=0,(!m||y<=0)&&(T.isExtraCoord=!0),y--),b(T),T.type==null&&(W_(e,w)===Ht.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return Rv(a,function(x){return x.name},function(x,A){A>0&&(x.name=x.name+(A-1))}),new XS({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function YI(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return M(t,function(a){var o;q(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function $I(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var XI=function(){function e(t){this.coordSysDims=[],this.axisMap=Q(),this.categoryAxisMap=Q(),this.coordSysName=t}return e}();function ZI(e){var t=e.get("coordinateSystem"),r=new XI(t),n=qI[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var qI={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",Ae).models[0],a=e.getReferringComponents("yAxis",Ae).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),_i(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),_i(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",Ae).models[0];t.coordSysDims=["single"],r.set("single",i),_i(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",Ae).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),_i(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),_i(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();M(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),_i(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(e,t,r,n){var i=e.getReferringComponents("matrix",Ae).models[0];t.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");r.set("x",a),r.set("y",o),n.set("x",a),n.set("y",o)}};function _i(e){return e.get("type")==="category"}function KI(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;QI(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,f,h,v,c=!0;function d(S){return S.type!=="ordinal"&&S.type!=="time"}if(M(a,function(S,b){Z(S)&&(a[b]=S={name:S}),d(S)||(c=!1)}),M(a,function(S,b){l&&!S.isExtraCoord&&(!n&&!u&&S.ordinalMeta&&(u=S),!f&&d(S)&&(!c||S.coordDim!=="x"&&S.coordDim!=="angle")&&(!i||i===S.coordDim)&&(f=S))}),f&&!n&&!u&&(n=!0),f){h="__\0ecstackresult_"+e.id,v="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var p=f.coordDim,g=f.type,m=0;M(a,function(S){S.coordDim===p&&m++});var y={name:h,coordDim:p,coordDimIndex:m,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:v,coordDim:v,coordDimIndex:m+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(v,g),_.storeDimIndex=s.ensureCalculationDimension(h,g)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(a.push(y),a.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:h}}function QI(e){return!ZS(e.schema)}function Zn(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function JS(e,t){return Zn(e,t)?e.getCalculationInfo("stackResultDimension"):t}function JI(e,t){var r=e.get("coordinateSystem"),n=hc.get(r),i;return t&&t.coordSysDims&&(i=X(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=OI(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function jI(e,t,r){var n,i;return r&&M(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function tu(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=gc(e)):(i=n.getSource(),a=i.sourceFormat===pe);var o=ZI(t),s=JI(t,o),l=r.useEncodeDefaulter,u=j(l)?l:l?xt(VA,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=QS(i,f),v=jI(h.dimensions,r.createInvertedIndices,o),c=a?null:n.getSharedDataStore(h),d=KI(t,{schema:h,store:c}),p=new Ha(h,t);p.setCalculationInfo(d);var g=v!=null&&tP(i)?function(m,y,_,S){return S===v?_:this.defaultDimValueGetter(m,y,_,S)}:null;return p.hasItemOption=!1,p.initData(a?i:c,null,g),p}function tP(e){if(e.sourceFormat===pe){var t=eP(e.data||[]);return!z(mo(t))}}function eP(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var jS=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();Ol(jS);const lr=jS;var rP=0,nP=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++rP,this._onCollect=t.onCollect}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&X(n,iP);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!Z(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,this._onCollect&&this._onCollect(t,r),r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r),this._onCollect&&this._onCollect(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Q(this.categories))},e}();function iP(e){return q(e)&&e.value!=null?e.value:e+""}const Zh=nP;var Le=0,ao=1,aP={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},t1=pt(aP),pl=2,e1=3;function Rc(e,t,r){var n;e=e||{};var i=re();if(i){var a=i.createBreakScaleMapper(t,r);a.hasBreaks()&&(M(t1,function(o){a[o]&&(e[o]=_t(a[o],a))}),n=a)}return n==null&&sP(e,r),{brk:n,mapper:e}}function r1(e,t){M(t1,function(r){e[r]=t[r]})}function n1(e,t){e.freeze=Kt}function oo(e){return e.getExtentUnsafe(Le,pl)}function so(e,t){return e.getExtentUnsafe(ao,t)||e.getExtentUnsafe(Le,t)}function oP(e){var t=so(e,e1);return t[1]-t[0]}function eu(e){var t=e.getExtentUnsafe(Le,e1);return t[1]-t[0]}function sP(e,t){var r=e||{},n=[];return r._extents=n,n[Le]=t?t.slice():xe(),O(r,lP),r}var lP={needTransform:function(){return!1},normalize:function(e){var t=this._extents[ao]||this._extents[Le];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[ao]||this._extents[Le];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=so(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[Le].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){Ng(this._extents,Le,e,t)},setExtent2:function(e,t,r){var n=this._extents;n[e]||(n[e]=n[Le].slice()),Ng(n,e,t,r)},freeze:function(){}};function Ng(e,t,r,n){zi(r,n)&&(e[t][0]=r,e[t][1]=n)}function i1(e){return gl(e)||Ui(e)}function gl(e){return e.type==="interval"}function Ec(e){return e.type==="time"}function Ui(e){return e.type==="log"}function We(e){return e.type==="ordinal"}function uP(e){var t=Av(e),r=Qn(10,t),n=wr(e/r);return n?n===2?n=3:n===3?n=5:n*=2:n=1,ht(n*r,-t)}function qn(e){return pr(e)+2}function is(e,t){return qa(e)/qa(t)}function yf(e,t,r){var n=r&&r.lookup;if(n){for(var i=0;i<n.from.length;i++)if(e===n.from[i])return n.to[i]}return Qn(t,e)}function a1(e,t,r){var n=e.slice();if(n[0]===n[1]){var i=r&&r.ctnShp;if(n[0]!==0){var a=Et(n[0]);t[1]||(n[1]+=a/2),n[0]-=a/2}else i&&(n[0]=-1),n[1]=1}return(!Tr(n[0])||!Tr(n[1]))&&(n[0]=0,n[1]=1),n[1]<n[0]&&n.reverse(),n}function fP(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function kc(e,t){return e=e||t,wr(ct(e,1))}function o1(e,t,r){var n=oo(e),i=n[0],a=e.count(),o=Math.max((t||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==n[0]&&l(n[0],!0,!0);for(var s=i;s<=n[1];s+=o)l(s,!1,s===n[0]||s===n[1]);s-o!==n[1]&&l(n[1],!0,!0);function l(u,f,h){r({value:u,offInterval:f},h)}}var s1=function(e){N(t,e);function t(r){var n=e.call(this)||this;n.type="ordinal",n.parse=t.parse,r1(n,t.decoratedMethods);var i=r.ordinalMeta;i||(i=new Zh({})),z(i)&&(i=new Zh({categories:X(i,function(o){return q(o)?o.value:o})})),n._ordinalMeta=i;var a=Rc(null,null,r.extent||[0,i.categories.length-1]);return n._mapper=a.mapper,n1(n),n}return t.parse=function(r){return r==null?r=NaN:Z(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=wr(r),r},t.prototype.getTicks=function(){var r=[];return o1(this,0,function(n){r.push(n)}),r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Qt(s,n.length);o<l;++o){var u=i[o]=n[o];a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i[o]=f,a[f]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){var r=oo(this._mapper);return r[1]-r[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type="ordinal",t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(r){return this._mapper.contain(this._getTickNumber(r))&&r>=0&&r<this._ordinalMeta.categories.length},normalize:function(r){return this._mapper.normalize(this._getTickNumber(r))},scale:function(r){return this.getRawOrdinalNumber(wr(this._mapper.scale(r)))},transformIn:function(r,n){return this._mapper.transformIn(this._getTickNumber(r),n)},transformOut:function(r,n){return this.getRawOrdinalNumber(this._mapper.transformOut(r,n))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,n){return this._mapper.getExtentUnsafe(r,n)},setExtent:function(r,n){return this._mapper.setExtent(r,n)},setExtent2:function(r,n,i){return this._mapper.setExtent2(r,n,i)}},t}(lr);lr.registerClass(s1);const hP=s1;function Oc(e,t,r,n){for(var i=e.getTicks({expandToNicedExtent:!0}),a=[],o=e.getExtent(),s=1;s<i.length;s++){var l=i[s],u=i[s-1];if(!(u.break||l.break)){for(var f=0,h=[],v=l.value-u.value,c=v/t,d=qn(c);f<t-1;){var p=ht(u.value+(f+1)*c,d);p>o[0]&&p<o[1]&&h.push(p),f++}var g=re();g&&g.pruneTicksByBreak("auto",h,r,function(m){return m},n,o),a.push(h)}}return a}var l1=function(e){N(t,e);function t(r){var n=e.call(this)||this;n.type="interval",n.parse=t.parse,r=r||{};var i=x_(n,r),a=Rc(n,i,null);return n.brk=a.brk,n._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},n}return t.parse=function(r){return r==null||r===""?NaN:Number(r)},t.prototype.getConfig=function(){return it(this._cfg)},t.prototype.setConfig=function(r){var n=oo(this);this._cfg=r=it(r),r.niceExtent==null&&(r.niceExtent=n.slice()),r.intervalPrecision==null&&(r.intervalPrecision=qn(r.interval))},t.prototype.getTicks=function(r){r=r||{};var n=this._cfg,i=n.interval,a=oo(this),o=n.niceExtent,s=n.intervalPrecision,l=re(),u=this.brk,f=l&&u,h=[];if(!i)return h;if(r.breakTicks==="only_break"&&f)return l.addBreaksToTicks(h,u.breaks,a),h;var v=3e3;a[0]<o[0]&&h.push({value:r.expandToNicedExtent?ht(o[0]-i,s):a[0]});for(var c=function(_,S){return wr((S-_)/i)},d=n.intervalCount,p=o[0],g=0;;g++){if(d==null){if(p>o[1]||!isFinite(p)||!isFinite(o[1]))break}else{if(g>d)break;p=Qt(p,o[1]),g===d&&(p=o[1])}if(h.push({value:p}),p=ht(p+i,s),u){var m=u.calcNiceTickMultiple(p,c);m>=0&&(p=ht(p+m*i,s))}if(h.length>0&&p===h[h.length-1].value)break;if(h.length>v)return[]}var y=h.length?h[h.length-1].value:o[1];return a[1]>y&&h.push({value:r.expandToNicedExtent?ht(y+i,s):a[1]}),f&&l.pruneTicksByBreak(r.pruneByBreak,h,u.breaks,function(_){return _.value},n.interval,a),f&&r.breakTicks!=="none"&&l.addBreaksToTicks(h,u.breaks,a),h},t.prototype.getMinorTicks=function(r){return Oc(this,r,sl(this),this._cfg.interval)},t.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=pr(r.value)||0:i==="auto"&&(i=this._cfg.intervalPrecision);var a=ht(r.value,i,!0);return R_(a)},t.type="interval",t}(lr);lr.registerClass(l1);const Ua=l1;var vP=function(e,t,r,n){for(;r<n;){var i=r+n>>>1;e[i][1]<t?r=i+1:n=i}return r},u1=function(e){N(t,e);function t(r){var n=e.call(this)||this;n.type="time",n.parse=t.parse,n._locale=r.locale,n._useUTC=r.useUTC,n._interval=0;var i=x_(n,r),a=Rc(n,i,null);return n.brk=a.brk,n}return t.prototype.getLabel=function(r){return $l(r.value,Ap[bA(Fa(this._minLevelUnit))]||Ap.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(r,n,i){return wA(r,n,i,this._locale,this._useUTC)},t.prototype.getTicks=function(r){r=r||{};var n=this._interval,i=oo(this),a=re(),o=this.brk,s=a&&o,l=[];if(!n)return l;var u=this._useUTC;if(s&&r.breakTicks==="only_break")return re().addBreaksToTicks(l,o.breaks,i),l;l=_P(this._minLevelUnit,this._approxInterval,u,i,eu(this),o);var f=he.length-1,h=0;return M(l,function(v){v.time&&(f=Math.min(f,ot(he,v.time.upperTimeUnit)),h=Math.max(h,v.time.level))}),s&&re().pruneTicksByBreak(r.pruneByBreak,l,o.breaks,function(v){return v.value},this._approxInterval,i),s&&r.breakTicks!=="none"&&re().addBreaksToTicks(l,o.breaks,i,function(v){for(var c=Math.max(ot(he,Ri(v.vmin,u)),ot(he,Ri(v.vmax,u))),d=0,p=0;p<he.length;p++)if(!f1(he[p],v.vmin,v.vmax,u)){d=p;break}var g=Math.min(d,f),m=Math.max(g,c);return{level:h,lowerTimeUnit:he[m],upperTimeUnit:he[g]}}),l},t.prototype.getMinorTicks=function(r){return Oc(this,r,sl(this),this._interval)},t.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},t.parse=function(r){return St(r)?Math.round(r):+Xi(r)},t.type="time",t}(lr),as=[["second",nc],["minute",ic],["hour",Na],["quarter-day",Na*6],["half-day",Na*12],["day",Me*1.2],["half-week",Me*3.5],["week",Me*7],["month",Me*31],["quarter",Me*95],["half-year",Dp/2],["year",Dp]];function f1(e,t,r,n){return Ih(new Date(t),e,n).getTime()===Ih(new Date(r),e,n).getTime()}function cP(e,t){return e/=Me,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function dP(e){var t=30*Me;return e/=t,e>6?6:e>3?3:e>2?2:1}function pP(e){return e/=Na,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Fg(e,t){return e/=t?ic:nc,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function gP(e){return ct(Mv(e,!0),1)}function mP(e,t,r){var n=Math.max(0,ot(he,t)-1);return Ih(new Date(e),he[n],r).getTime()}function yP(e,t){var r=new Date(0);r[e](1);var n=r.getTime();r[e](1+t);var i=r.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}function _P(e,t,r,n,i,a){var o=3e3,s=mA,l=0;function u(E,B,k,F,G,H,W){for(var $=yP(G,E),U=B,et=new Date(U);U<k&&U<=n[1]&&(W.push({value:U}),!(l++>o));)if(et[G](et[F]()+E),U=et.getTime(),a){var st=a.calcNiceTickMultiple(U,$);st>0&&(et[G](et[F]()+st*E),U=et.getTime())}W.push({value:U,notAdd:U>n[1]})}function f(E,B,k){var F=[],G=!B.length;if(!f1(Fa(E),n[0],n[1],r)){G&&(B=[{value:mP(n[0],E,r)},{value:n[1]}]);for(var H=0;H<B.length-1;H++){var W=B[H].value,$=B[H+1].value;if(W!==$){var U=void 0,et=void 0,st=void 0,Pt=!1;switch(E){case"year":U=Math.max(1,Math.round(t/Me/365)),et=C_(r),st=TA(r);break;case"half-year":case"quarter":case"month":U=dP(t),et=ac(r),st=D_(r);break;case"week":case"half-week":case"day":U=cP(t),et=oc(r),st=A_(r),Pt=!0;break;case"half-day":case"quarter-day":case"hour":U=pP(t),et=sc(r),st=M_(r);break;case"minute":U=Fg(t,!0),et=lc(r),st=L_(r);break;case"second":U=Fg(t,!1),et=uc(r),st=I_(r);break;case"millisecond":U=gP(t),et=fc(r),st=P_(r);break}$>=n[0]&&W<=n[1]&&u(U,W,$,et,st,Pt,F),E==="year"&&k.length>1&&H===0&&k.unshift({value:k[0].value-U})}}for(var H=0;H<F.length;H++)k.push(F[H])}}for(var h=[],v=[],c=0,d=0,p=0;p<s.length;++p){var g=Fa(s[p]);if(SA(s[p])){f(s[p],h[h.length-1]||[],v);var m=s[p+1]?Fa(s[p+1]):null;if(g!==m){if(v.length){d=c,v.sort(function(E,B){return E.value-B.value});for(var y=[],_=0;_<v.length;++_){var S=v[_].value;(_===0||v[_-1].value!==S)&&(y.push(v[_]),S>=n[0]&&S<=n[1]&&c++)}var b=i/t;if(c>b*1.5&&d>b/1.5||(h.push(y),c>b||e===s[p]))break}v=[]}}}for(var w=Ot(X(h,function(E){return Ot(E,function(B){return B.value>=n[0]&&B.value<=n[1]&&!B.notAdd})}),function(E){return E.length>0}),T=w.length-1,C=[],p=0;p<w.length;++p)for(var x=w[p],A=0;A<x.length;++A){var D=Ri(x[A].value,r);C.push({value:x[A].value,time:{level:T-p,upperTimeUnit:D,lowerTimeUnit:D}})}Rv(C,mx,null),C.sort(function(E,B){return E.value-B.value});var I=C[0],L=C[C.length-1],P=Ri(n[0],r),R=Ri(n[1],r);return(!I||I.value>n[0])&&C.unshift({value:n[0],time:{level:0,upperTimeUnit:P,lowerTimeUnit:P},notNice:!0}),(!L||L.value<n[1])&&C.push({value:n[1],time:{level:0,upperTimeUnit:R,lowerTimeUnit:R},notNice:!0}),C}var SP=function(e,t){var r=e.getExtent();if(r[0]===r[1]&&(r[0]-=Me,r[1]+=Me),r[1]===-1/0&&r[0]===1/0){var n=new Date;r[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),r[0]=r[1]-Me}e.setExtent(r[0],r[1]);var i=kc(t.splitNumber,10),a=eu(e)/i,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var l=as.length,u=Math.min(vP(as,a,0,l),l-1),f=as[u][1],h=as[Math.max(u-1,0)][0];e.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:h})};lr.registerClass(u1);const bP=u1;var os=0,ss=1,wP=2,h1=function(e){N(t,e);function t(r){var n=e.call(this)||this;n.type="log",n.parse=Ua.parse,n.base=r.logBase||10;var i=[],a=[],o=n._lookup={from:i,to:a};i[os]=i[ss]=a[os]=a[ss]=NaN,r1(n,t.mapperMethods);var s=re(),l=r.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,n,{noNegative:!0},wP,u),n.powStub=new Ua({breakParsed:u.original}),n.intervalStub=new Ua({breakParsed:u.transformed}),n1(n,n.intervalStub),n}return t.prototype.getTicks=function(r){var n=this.base,i=this.powStub,a=re(),o=this.intervalStub,s=o.getExtent(),l=i.getExtent(),u={lookup:{from:s,to:l}};return X(o.getTicks(r||{}),function(f){var h=f.value,v=yf(h,n,u),c;if(a){var d=a.getTicksBreakOutwardTransform(this,f,sl(i),this._lookup);d&&(c=d.vBreak,v=d.tickVal)}return{value:v,break:c}},this)},t.prototype.getMinorTicks=function(r){return Oc(this,r,sl(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(r,n){return this.intervalStub.getLabel(r,n)},t.type="log",t.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(is(r,this.base))},scale:function(r){return yf(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,n){return r=is(r,this.base),n&&n.depth===pl?r:this.intervalStub.transformIn(r,n)},transformOut:function(r,n){var i=n?n.depth:null;return zg.depth=i,Vg.lookup=this._lookup,yf(i===pl?r:this.intervalStub.transformOut(r,zg),this.base,Vg)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,n){this.setExtent2(Le,r,n)},setExtent2:function(r,n,i){if(!(!zi(n,i)||n<=0||i<=0)){var a=Gg,o=Gg;if(r===Le){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(r,a[os]=n,a[ss]=i);var l=this.base;this.intervalStub.setExtent2(r,o[os]=is(n,l),o[ss]=is(i,l))}},getFilter:function(){return{g:0}},sanitize:function(r,n){return zi(n[0],n[1])&&Re(r)&&r<=0&&(r=n[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,n){return n===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,n)}},t}(lr);lr.registerClass(h1);var zg={},Vg={},Gg=[];const TP=h1;var v1={value:1,category:1,time:1,log:1},c1=ft();function xP(e){var t=e.get("type");return(t==null||!J(v1,t)&&!lr.getClass(t))&&(t="value"),t}function CP(e,t,r){var n=re(),i;switch(n&&(i=d1(e,t,r)),t){case"category":return new hP({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:xe()});case"time":return new bP({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC"),breakOption:i});case"log":return new TP({logBase:e.get("logBase"),breakOption:i});case"value":return new Ua({breakOption:i});default:return new(lr.getClass(t)||Ua)({})}}function DP(e,t,r){var n=r?so(e,null):e.getExtentUnsafe(Le,null),i=n[0],a=n[1];return zi(i,a)?i===t||a===t?MP:i<t&&a>t?AP:qh:qh}var AP=1,MP=2,qh=3;function LP(e){c1(e).noOnMyZero=!0}function IP(e){return c1(e).noOnMyZero}function ru(e){var t=e.getLabelModel().get("formatter");if(e.type==="time"){var r=yA(t);return function(i,a){return e.scale.getFormattedLabel(i,a,r)}}else{if(Z(t))return function(i){var a=e.scale.getLabel(i),o=t.replace("{value}",a!=null?a:"");return o};if(j(t)){if(e.type==="category")return function(i,a){return t(ml(e,i),i.value-e.scale.getExtent()[0],null)};var n=re();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),t(ml(e,i),a,o)}}else return function(i){return e.scale.getLabel(i)}}}function ml(e,t){var r=e.scale;return We(r)?r.getLabel(t):t.value}function Bc(e){var t=e.get("interval");return t==null?"auto":t}function PP(e){return e.type==="category"&&Bc(e.getLabelModel())===0}function RP(e,t){var r={};return M(e.mapDimensionsAll(t),function(n){r[JS(e,n)]=!0}),pt(r)}function Wi(e){return e==="middle"||e==="center"}function lo(e){return e.getShallow("show")}function d1(e,t,r){var n=e.get("breaks",!0);if(n!=null)return!re()||!r||!EP(t)?void 0:n}function EP(e){return e!=="category"}function p1(e,t,r,n,i,a){var o=Ui(e),s=o?e.intervalStub:e;if(s.setExtent(n[0],n[1]),o){var l=e.powStub,u={depth:pl},f=e.transformOut(n[0],u),h=e.transformOut(n[1],u),v=fP(r,n);t[0]&&!v[0]&&(f=i[0]),t[1]&&!v[1]&&(h=i[1]),l.setExtent(f,h)}s.setConfig(a)}function wo(e,t){return We(e)?e.getRawOrdinalNumber(t.value):t.value}function g1(e,t){return We(e)&&!!t.get("boundaryGap")}var kP=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),OP=f0(),Kh="|&",ji=ft(),m1=-2,BP=-1,NP=ft();function y1(e,t){var r=e.model,n=ji(Qi(r.ecModel)).keyed,i=n&&n.get(t);return i&&i.get(r.uid)}function FP(e,t){return S1(y1(e,t))}function zP(e,t){var r=[];return _1(e.model.ecModel,function(n){for(var i=0;i<t.length;i++)t[i]&&n.serByIdx[t[i].seriesIndex]&&r.push(S1(n))}),r}function _1(e,t){var r=ji(Qi(e)).keyed;r&&r.each(function(n,i){n.each(function(a,o){t(a,i,o)})})}function S1(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function VP(e,t){var r=e.model.ecModel,n=ji(Qi(r)).axSer;n&&Nc(r,n.get(e.model.uid),t)}function b1(e,t,r){var n=y1(e,t);n&&Nc(e.model.ecModel,n.sers,r)}function Nc(e,t,r){if(t)for(var n=0;n<t.length;n++){var i=t[n];e.isSeriesFiltered(i)||r(i)}}function GP(e,t,r){var n=ji(Qi(e)).keyed,i=n&&n.get(t);i&&i.each(function(a){r(a.axis)})}function w1(e,t){var r=e.model,n=ji(Qi(r.ecModel)).keys;n&&M(n.get(r.uid),function(i){t(i)})}function HP(e){var t=NP(RL(e)),r=t.keyed||(t.keyed=Q());_1(e,function(n,i,a){var o=r.get(i)||r.set(i,Q()),s=o.get(a)||o.set(a,{});n.metrics.liPosMinGap&&T1.liPosMinGap(e,n,s)})}function UP(e,t){T1[e]=t}var T1={};function Hg(e,t,r){if(e){var n=t.ecModel,i=ji(Qi(n)),a=e.model.uid,o=i.axSer||(i.axSer=Q()),s=o.get(a)||o.set(a,[]);s.push(t);var l=t.subType,u=t.getBaseAxis()===e,f=Jh.get(Qh(l,u,r))||Jh.get(Qh(l,u,null));if(f){var h=i.keyed||(i.keyed=Q()),v=i.keys||(i.keys=Q()),c=f.key,d=h.get(c)||h.set(c,Q()),p=d.get(a);p||(p=d.set(a,{axis:e,sers:[],serByIdx:[]}),p.metrics=f.getMetrics(e),(v.get(a)||v.set(a,[])).push(c)),p.sers.push(t),p.serByIdx[t.seriesIndex]=t}}}function Qh(e,t,r){return e+Kh+Y(t,!0)+Kh+(r||"")}function WP(e,t){var r=Qh(t.seriesType,t.baseAxis,t.coordSysType);Jh.set(r,t),OP(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:HP})})}var Jh=Q(),YP=ft(),$P=1,XP=3,x1=function(){function e(t,r,n,i,a){var o=We(t),s=o?r.getCategories().length:null,l;if(o){var u=r.getCategories(!0);l=u&&!u.length}var f=n.slice();(gl(t)||Ui(t)||Ec(t))&&(l0(f,ga(t,r.get("dataMin",!0))),u0(f,ga(t,r.get("dataMax",!0)))),dx(f)||(f[0]=f[1]=NaN);var h=[],v=[!1,!1],c=r.get("min",!0);c==="dataMin"?(h[0]=f[0],v[0]=!0):(h[0]=ga(t,j(c)?c({min:f[0],max:f[1]}):c),v[0]=h[0]!=null);var d=r.get("max",!0);d==="dataMax"?(h[1]=f[1],v[1]=!0):(h[1]=ga(t,j(d)?d({min:f[0],max:f[1]}):d),v[1]=h[1]!=null);var p=ZP(t,r),g=o?null:f[1]-f[0]||Math.abs(f[0]);h[0]==null&&(h[0]=o?l?f[0]:s?0:NaN:f[0]-p[0]*g),h[1]==null&&(h[1]=o?l?f[1]:s?s-1:NaN:f[1]+p[1]*g),!Tr(h[0])&&(h[0]=NaN),!Tr(h[1])&&(h[1]=NaN);var m=l||Xa(h[0])||Xa(h[1])||o&&!s,y=gl(t),_=y&&r.needIncludeZero&&r.needIncludeZero();_&&(h[0]>0&&h[1]>0&&!v[0]&&(h[0]=0),h[0]<0&&h[1]<0&&!v[1]&&(h[1]=0));var S=!1;h[0]>h[1]&&(h.reverse(),S=!0);var b=ga(t,r.get("startValue",!0)),w=b!=null;!Re(b)&&i&&(b=t.getDefaultStartValue?t.getDefaultStartValue():0),Re(b)&&(w||!y||_)&&(b<h[0]&&!v[0]?(h[0]=b,v[0]=!0):b>h[1]&&!v[1]&&(h[1]=b,v[1]=!0));var T=this._i={scale:t,dataMM:f,noZoomEffMM:h,zoomMM:[],fixMM:v,zoomFixMM:[!1,!1],startValue:b,isBlank:m,incl0:_,tggAxInv:S,ctnShp:a};Ug(T,h)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var t=this._i,r=t.zoomMM,n=t.noZoomEffMM,i=t.zoomFixMM,a=t.fixMM,o={fixMM:a,zoomFixMM:i,isBlank:t.isBlank,incl0:t.incl0,tggAxInv:t.tggAxInv,ctnShp:t.ctnShp,effMM:n.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],a[0]=i[0]=!0),r[1]!=null&&(s[1]=r[1],a[1]=i[1]=!0),Ug(t,s),o},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(t,r){this._i.zoomMM[t]=r},e}();function Ug(e,t){var r=e.scale,n=e.dataMM;r.sanitize&&(t[0]=r.sanitize(t[0],n),t[1]=r.sanitize(t[1],n),px(t))}function ga(e,t){return t==null?null:Xa(t)?NaN:e.parse(t)}function ZP(e,t){var r;if(We(e))r=[0,0];else{var n=t.get("boundaryGap");typeof n=="boolean"&&(n=null),r=z(n)?n:[n,n]}return[Wg(r[0]),Wg(r[1])]}function Wg(e){return Un(typeof e=="boolean"?0:e,1)||0}function C1(e){var t=YP(e.scale);return t.extent||(t.extent=xe()),t}function qP(e,t){C1(e).dimIdxInCoord=t.get(e.dim)}function KP(e,t){var r=e.scale,n=e.model,i=e.dim;r.rawExtentInfo||QP(r,e,i,n,t)}function QP(e,t,r,n,i){var a=C1(t),o=a.extent,s=!1;VP(t,function(f){if(f.boxCoordinateSystem){var h=N_(f).coord,v=a.dimIdxInCoord;if(v>=0){if(z(h)){var c=h[v];c!=null&&!z(c)&&ph(o,e.parse(c))}}}else if(f.coordinateSystem){var d=f.getData();if(d){var p=e.getFilter?e.getFilter():null;M(RP(d,r),function(g){cx(o,d.getApproximateExtent(g,p))})}f.__requireStartValue&&f.__requireStartValue(t)&&(s=!0)}});var l=t2(e,t,n),u=new x1(e,n,o,s,l);D1(e,u,i),a.extent=null}function JP(e,t){var r=e.scale;D1(r,new x1(r,e.model,t,!1,!1),XP)}function D1(e,t,r){e.rawExtentInfo=t,t.from=r}function jP(e,t){Fc.set(e,t)}var Fc=Q();function A1(e,t,r,n,i){e.rawExtentInfo||JP({scale:e,model:t},i||xe());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),n&&a.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(n.inverse=!n.inverse),a}function t2(e,t,r){var n=g1(e,r),i=r.get("containShape",!0);if(i==null&&!n&&(i=!0),!i)return!1;var a=!1;return w1(t,function(o){a=!!Fc.get(o)||a}),a}function e2(e,t,r,n){if(r.ctnShp){var i;if(w1(e,function(s){var l=Fc.get(s);if(l){var u=l(e,n);u&&(i=i||[0,0],l0(i,u[0]),u0(i,u[1]),LP(e))}}),!!i){var a=t.getExtent();if(We(t))e.onBand||t.setExtent2(ao,Qt(a[0],a[0]+i[0]),ct(a[1],a[1]+i[1]));else{var o=a.slice();r.zoomFixMM[0]||(o[0]=Qt(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),r.zoomFixMM[1]||(o[1]=ct(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&t.setExtent2(ao,o[0],o[1])}}}}function Yg(e,t){var r=Ui(e),n=r?e.intervalStub:e,i=t.fixMinMax||[],a=r?e.getExtent():null,o=n.getExtent(),s=a1(o,i,t.rawExtentResult);n.setExtent(s[0],s[1]),s=n.getExtent();var l=r?n2(n,t):r2(n,t),u=l.intervalPrecision,f=l.interval,h=t.userInterval;h!=null&&(l.interval=h,l.intervalPrecision=qn(h)),i[0]||(s[0]=ht(Wn(s[0]/f)*f,u)),i[1]||(s[1]=ht(go(s[1]/f)*f,u)),h!=null&&(l.niceExtent=s.slice()),p1(e,i,o,s,a,l)}function r2(e,t){var r=kc(t.splitNumber,5),n=eu(e),i=t.minInterval,a=t.maxInterval,o=Mv(n/r,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=qn(o),l=e.getExtent(),u=[ht(go(l[0]/o)*o,s),ht(Wn(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function n2(e,t){var r=kc(t.splitNumber,10),n=e.getExtent(),i=eu(e),a=ct(t0(i),1),o=r/i*a;o<=.5&&(a*=10);var s=qn(a),l=[ht(go(n[0]/a)*a,s),ht(Wn(n[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function $g(e){var t=e.scale,r=e.model,n=r.axis,i=r.ecModel;i2(t,r,n,i,null)}function i2(e,t,r,n,i){var a=A1(e,t,n,r,i),o=gl(e)||Ec(e);a2(e,{splitNumber:t.get("splitNumber"),fixMinMax:a.fixMM,userInterval:t.get("interval"),minInterval:o?t.get("minInterval"):null,maxInterval:o?t.get("maxInterval"):null,rawExtentResult:a}),r&&n&&e2(r,e,a,n)}function a2(e,t){o2[e.type](e,t)}var o2={interval:Yg,log:Yg,time:SP,ordinal:Kt},Xg=[],s2={registerPreprocessor:WS,registerProcessor:YS,registerPostInit:CI,registerPostUpdate:DI,registerUpdateLifecycle:Mc,registerAction:Ji,registerCoordinateSystem:AI,registerLayout:MI,registerVisual:ni,registerTransform:II,registerLoading:$S,registerMap:LI,registerImpl:DL,PRIORITY:_I,ComponentModel:wt,ComponentView:Ee,SeriesModel:Dr,ChartView:ze,registerComponentModel:function(e){wt.registerClass(e)},registerComponentView:function(e){Ee.registerClass(e)},registerSeriesModel:function(e){Dr.registerClass(e)},registerChartView:function(e){ze.registerClass(e)},registerCustomSeries:function(e,t){LL(e,t)},registerSubTypeDefaulter:function(e,t){wt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){NT(e,t)}};function en(e){if(z(e)){M(e,function(t){en(t)});return}ot(Xg,e)>=0||(Xg.push(e),j(e)&&(e={install:e}),e.install(s2))}var l2=ft(),Wa=ft(),Ve={estimate:1,determine:2};function yl(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function u2(e,t){var r=e.getLabelModel().get("customValues");if(r){var n=e.scale;return{labels:X(M1(r,n),function(i,a){return{formattedLabel:ru(e)(i,a),rawLabel:n.getLabel(i),tick:i}})}}return e.type==="category"?h2(e,t):c2(e)}function f2(e,t,r){var n=e.scale,i=e.getTickModel().get("customValues");return i?{ticks:M1(i,n)}:e.type==="category"?v2(e,t):{ticks:n.getTicks(r)}}function M1(e,t){var r=t.getExtent(),n=[];return M(e,function(i){i=t.parse(i),i>=r[0]&&i<=r[1]&&n.push(i)}),Rv(n,yx,null),Dv(n),X(n,function(i){return{value:i}})}function h2(e,t){var r=e.getLabelModel(),n=L1(e,r,t);return!r.get("show")||e.scale.isBlank()?{labels:[]}:n}function L1(e,t,r){var n=p2(e),i=Bc(t),a=r.kind===Ve.estimate;if(!a){var o=P1(n,i);if(o)return o}var s,l;j(i)?s=_l(e,i,!1):(l=i==="auto"?g2(e,r):i,s=_l(e,l,!1));var u={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return jh(n,i,u),!0}):jh(n,i,u),u}function v2(e,t){var r=d2(e),n=Bc(t),i=P1(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),j(n))a=_l(e,n,!0);else if(n==="auto"){var s=L1(e,e.getLabelModel(),yl(Ve.determine));o=s.labelCategoryInterval,a=X(s.labels,function(l){return l.tick})}else o=n,a=_l(e,o,!0);return jh(r,n,{ticks:a,tickCategoryInterval:o})}function c2(e){var t=e.scale.getTicks(),r=ru(e);return{labels:X(t,function(n,i){return{formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tick:n}})}}var d2=I1("axisTick"),p2=I1("axisLabel");function I1(e){return function(r){return Wa(r)[e]||(Wa(r)[e]={list:[]})}}function P1(e,t){for(var r=0;r<e.list.length;r++)if(e.list[r].key===t)return e.list[r].value}function jh(e,t,r){return e.list.push({key:t,value:r}),r}function g2(e,t){if(t.kind===Ve.estimate){var r=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return Wa(e).autoInterval=r,!0}),r}var n=Wa(e).autoInterval;return n!=null?n:Wa(e).autoInterval=e.calculateCategoryInterval(t)}function m2(e,t){var r=t.kind,n=_2(e),i=ru(e),a=(n.axisRotate-n.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var h=s[0],v=e.dataToCoord(h+1)-e.dataToCoord(h),c=Math.abs(v*Math.cos(a)),d=Math.abs(v*Math.sin(a)),p=0,g=0;h<=s[1];h+=u){var m=0,y=0,_=Zy(i({value:h}),n.font,"center","top");m=_.width*1.3,y=_.height*1.3,p=Math.max(p,m,7),g=Math.max(g,y,7)}var S=p/c,b=g/d;isNaN(S)&&(S=1/0),isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(Math.min(S,b)));if(r===Ve.estimate)return t.out.noPxChangeTryDetermine.push(_t(y2,null,e,w,l)),w;var T=R1(e,w,l);return T!=null?T:w}function y2(e,t,r){return R1(e,t,r)==null}function R1(e,t,r){var n=l2(e.model),i=e.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-r)<=1&&a>t&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=r,n.lastAutoInterval=t,n.axisExtent0=i[0],n.axisExtent1=i[1]}function _2(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function _l(e,t,r){var n=ru(e),i=e.scale,a=[],o=j(t);return o1(i,o?0:t,function(s,l){var u=i.getLabel(s);if(o){var f=!!t(s.value,u);if(s.offInterval=!f,!f&&!l)return}a.push(r?s:{formattedLabel:n(s),rawLabel:u,tick:s})}),a}var S2=.8;function ta(e,t){t=t||{};var r={w:NaN,w2:NaN},n=e.scale,i=t.fromStat,a=t.min,o=oP(n);Re(o)||(o=NaN);var s=e.getExtent(),l=Et(s[1]-s[0]);return We(n)?b2(r,e,o,l):i&&w2(r,e,o,l,i),a!=null&&(r.w=Re(r.w)?ct(a,r.w):a),r}function b2(e,t,r,n){var i=t.onBand,a=r+(i?1:0);a===0&&(a=1),e.w=n/a,!i&&r&&n&&(e.w2=e.w*r/n)}function w2(e,t,r,n,i){var a=!1,o=-1/0;M(i.key?[FP(t,i.key)]:zP(t,i.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),a=!1):l===m1&&(a=!0))}),Re(r)&&r>0&&Re(o)?(e.w=n/r*o,e.w2=o):a&&(e.w=n*S2,e.w2=e.w*r/n)}var Zg=[0,1],T2=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this.scale;return t=n.normalize(n.parse(t)),ch(t,Zg,qg(this),r)},e.prototype.coordToData=function(t,r){var n=ch(t,qg(this),Zg,r);return this.scale.scale(n)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=f2(this,r,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),i=X(n.ticks,function(s){return{coord:this.dataToCoord(wo(this.scale,s)),tick:s}},this),a=r.get("alignWithLabel"),o=x2(this,i,a);return X(i,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},e.prototype.getMinorTicksCoords=function(){if(We(this.scale))return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=X(n,function(a){return X(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(t){return t=t||yl(Ve.determine),u2(this,t).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){return ta(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(t){return t=t||yl(Ve.determine),m2(this,t)},e}();function qg(e){var t=e.getExtent();if(e.onBand){var r=t[1]-t[0],n=r/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function x2(e,t,r){var n=t.length;if(!e.onBand||r||!n)return!1;var i=ta(e).w;if(!i)return!1;M(t,function(s){s.coord-=i/2});var a=e.scale.getExtent(),o=t[n-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}const C2=T2;Qr.CMD;function E1(e,t,r,n,i,a,o,s){var l=i-e,u=a-t,f=r-e,h=n-t,v=Math.sqrt(f*f+h*h);f/=v,h/=v;var c=l*f+u*h,d=c/v;s&&(d=Math.min(Math.max(d,0),1)),d*=v;var p=o[0]=e+d*f,g=o[1]=t+d*h;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}var Ur=new rt,At=new rt,Ut=new rt,Wr=new rt,je=new rt,Sl=[],te=new rt;function D2(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Ur.fromArray(e[0]),At.fromArray(e[1]),Ut.fromArray(e[2]),rt.sub(Wr,Ur,At),rt.sub(je,Ut,At);var r=Wr.len(),n=je.len();if(!(r<.001||n<.001)){Wr.scale(1/r),je.scale(1/n);var i=Wr.dot(je),a=Math.cos(t);if(a<i){var o=E1(At.x,At.y,Ut.x,Ut.y,Ur.x,Ur.y,Sl,!1);te.fromArray(Sl),te.scaleAndAdd(je,o/Math.tan(Math.PI-t));var s=Ut.x!==At.x?(te.x-At.x)/(Ut.x-At.x):(te.y-At.y)/(Ut.y-At.y);if(isNaN(s))return;s<0?rt.copy(te,At):s>1&&rt.copy(te,Ut),te.toArray(e[1])}}}}function A2(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Ur.fromArray(e[0]),At.fromArray(e[1]),Ut.fromArray(e[2]),rt.sub(Wr,At,Ur),rt.sub(je,Ut,At);var n=Wr.len(),i=je.len();if(!(n<.001||i<.001)){Wr.scale(1/n),je.scale(1/i);var a=Wr.dot(t),o=Math.cos(r);if(a<o){var s=E1(At.x,At.y,Ut.x,Ut.y,Ur.x,Ur.y,Sl,!1);te.fromArray(Sl);var l=Math.PI/2,u=Math.acos(je.dot(t)),f=l+u-r;if(f>=l)rt.copy(te,Ut);else{te.scaleAndAdd(je,s/Math.tan(Math.PI/2-f));var h=Ut.x!==At.x?(te.x-At.x)/(Ut.x-At.x):(te.y-At.y)/(Ut.y-At.y);if(isNaN(h))return;h<0?rt.copy(te,At):h>1&&rt.copy(te,Ut)}te.toArray(e[1])}}}}function _f(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function M2(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=$f(n[0],n[1]),a=$f(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=fu([],n[1],n[0],o/i),l=fu([],n[1],n[2],o/a),u=fu([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)e.lineTo(n[f][0],n[f][1])}function L2(e,t,r){var n=e.getTextGuideLine(),i=e.getTextContent();if(!i){n&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,l=0;l<tl.length;l++){var u=tl[l],f=t[u],h=u==="normal";if(f){var v=f.get("show"),c=h?s:Y(i.states[u]&&i.states[u].ignore,s);if(c||!Y(v,o)){var d=h?n:n&&n.states[u];d&&(d.ignore=!0),n&&_f(n,!0,u,f);continue}n||(n=new Gl,e.setTextGuideLine(n),!h&&(s||!o)&&_f(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),_f(n,!1,u,f)}}if(n){mt(n.style,r),n.style.fill=null;var p=a.get("showAbove"),g=e.textGuideLineConfig=e.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=M2}}function I2(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<fe.length;n++){var i=fe[n];r[i]=e.getModel([i,t])}return r}var Kg=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],P2=1,bl=2,k1=P2|bl;function wl(e,t,r){r=r||k1,t?e.dirty|=r:e.dirty&=~r}function O1(e,t){return t=t||k1,e.dirty==null||!!(e.dirty&t)}function or(e){if(e)return O1(e)&&B1(e,e.label,e),e}function B1(e,t,r){var n=t.getComputedTransform();e.transform=Jv(e.transform,n);var i=e.localRect=eo(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=a.__marginType;f==null&&u&&(o=u,f=Mi.textMargin);for(var h=0;h<4;h++)Sf[h]=f===Mi.minMargin&&l&&l[h]!=null?l[h]:s&&s[h]!=null?s[h]:o?o[h]:0;f===Mi.textMargin&&al(i,Sf,!1,!1);var v=e.rect=eo(e.rect,i);return n&&v.applyTransform(n),f===Mi.minMargin&&al(v,Sf,!1,!1),e.axisAligned=Qv(n),(e.label=e.label||{}).ignore=t.ignore,wl(e,!1),wl(e,!0,bl),e}var Sf=[0,0,0,0];function R2(e,t,r){return e.transform=Jv(e.transform,r),e.localRect=eo(e.localRect,t),e.rect=eo(e.rect,t),r&&e.rect.applyTransform(r),e.axisAligned=Qv(r),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function E2(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var r=e.transform;r&&(r[4]+=t.x,r[5]+=t.y);var n=e.rect;n&&(n.x+=t.x,n.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,r)}}function Qg(e,t){for(var r=0;r<Kg.length;r++){var n=Kg[r];e[n]==null&&(e[n]=t[n])}return or(e)}function Jg(e){var t=e.obb;return(!t||O1(e,bl))&&(e.obb=t=t||new l_,t.fromBoundingRect(e.localRect,e.transform),wl(e,!1,bl)),t}function k2(e,t,r,n,i){var a=e.length,o=Gr[t],s=Gi[t];if(a<2)return!1;e.sort(function(x,A){return x.rect[o]-A.rect[o]});for(var l=0,u,f=!1,h=0,v=0;v<a;v++){var c=e[v],d=c.rect;u=d[o]-l,u<0&&(d[o]-=u,c.label[o]-=u,f=!0);var p=Math.max(-u,0);h+=p,l=d[o]+d[s]}h>0&&i&&w(-h/a,0,a);var g=e[0],m=e[a-1],y,_;S(),y<0&&T(-y,.8),_<0&&T(_,.8),S(),b(y,_,1),b(_,y,-1),S(),y<0&&C(-y),_<0&&C(_);function S(){y=g.rect[o]-r,_=n-m.rect[o]-m.rect[s]}function b(x,A,D){if(x<0){var I=Math.min(A,-x);if(I>0){w(I*D,0,a);var L=I+x;L<0&&T(-L*D,1)}else T(-x*D,1)}}function w(x,A,D){x!==0&&(f=!0);for(var I=A;I<D;I++){var L=e[I],P=L.rect;P[o]+=x,L.label[o]+=x}}function T(x,A){for(var D=[],I=0,L=1;L<a;L++){var P=e[L-1].rect,R=Math.max(e[L].rect[o]-P[o]-P[s],0);D.push(R),I+=R}if(I){var E=Math.min(Math.abs(x)/I,A);if(x>0)for(var L=0;L<a-1;L++){var B=D[L]*E;w(B,0,L+1)}else for(var L=a-1;L>0;L--){var B=D[L-1]*E;w(-B,L,a)}}}function C(x){var A=x<0?-1:1;x=Math.abs(x);for(var D=Math.ceil(x/(a-1)),I=0;I<a-1;I++)if(A>0?w(D,0,I+1):w(-D,a-I-1,a),x-=D,x<=0)return}return f}function O2(e){var t=[];e.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function r(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var n=0;n<e.length;n++){var i=or(e[n]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,l=0;l<t.length;l++)if(zc(i,t[l],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):t.push(i)}}}function zc(e,t,r,n){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,r,n)?!1:e.axisAligned&&t.axisAligned?!0:Jg(e).intersect(Jg(t),r,n)}var B2=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){return tu(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new It,i=tn("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=tn(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=K.color.neutral00,u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},t}(Dr);const N2=B2;function Vc(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Hi(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(Hi(e,t,r[o]));return a.join(" ")}}function N1(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!z(t))return t+"";for(var n=[],i=0;i<r.length;i++){var a=e.getDimensionIndex(r[i]);a>=0&&n.push(t[a])}return n.join(" ")}var F2=function(e){N(t,e);function t(r,n,i,a){var o=e.call(this)||this;return o.updateData(r,n,i,a),o}return t.prototype._createSymbol=function(r,n,i,a,o,s){this.removeAll();var l=tn(r,-1,-1,2,2,null,s);l.attr({z2:Y(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=z2,this._symbolType=r,this.add(l)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Ja(this.childAt(0))},t.prototype.downplay=function(){ja(this.childAt(0))},t.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},t.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},t.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=t.getSymbolZ2(r,n),f=o!==this._symbolType,h=a&&a.disableAnimation;if(f){var v=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,u,v)}else{var c=this.childAt(0);c.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};h?c.attr(d):Yt(c,d,s,n),Xv(c)}if(this._updateCommon(r,n,l,i,a),f){var c=this.childAt(0);if(!h){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,de(c,d,s,n)}}h&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,f,h,v,c,d,p,g,m;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,v=a.focus,c=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,m=a.cursorStyle,d=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),c=_.get("blurScope"),d=_.get("disabled"),p=ei(y),g=_.getShallow("scale"),m=y.getShallow("cursor")}var S=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=Jl(r.getItemVisual(n,"symbolOffset"),i);b&&(s.x=b[0],s.y=b[1]),m&&s.attr("cursor",m);var w=r.getItemVisual(n,"style"),T=w.fill;if(s instanceof rn){var C=s.style;s.useStyle(O({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},w))}else s.__isEmptyBrush?s.useStyle(O({},w)):s.useStyle(w),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var x=r.getItemVisual(n,"liftZ"),A=this._z2;x!=null?A==null&&(this._z2=s.z2,s.z2+=x):A!=null&&(s.z2=A,this._z2=null);var D=o&&o.useNameLabel;qi(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:T,defaultOpacity:w.opacity});function I(R){return D?r.getName(R):Vc(r,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),Vi(this,v,c,d)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=at(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&il(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();il(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return xc(r.getItemVisual(n,"symbolSize"))},t.getSymbolZ2=function(r,n){return r.getItemVisual(n,"z2")},t}(It);function z2(e,t){this.parent.drift(e,t)}const Gc=F2;function ls(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n&&n.isIgnore&&n.isIgnore(r))&&!(n&&n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function jg(e){return e!=null&&!q(e)&&(e={isIgnore:e}),e||{}}function tm(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:ei(t),cursorStyle:t.get("cursor")}}function em(e,t,r,n,i,a,o){var s=new e(t,r,n,i);return s.setPosition(a),t.setItemGraphicEl(r,s),o.add(s),s}var V2=function(){function e(t){this.group=new It,this._SymbolCtor=t||Gc}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=jg(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=this._seriesScope=tm(t),u={disableAnimation:s},f=r.getSymbolPoint||function(h){return t.getItemLayout(h)};a||n.removeAll(),t.diff(a).add(function(h){var v=f(h);ls(t,v,h,r)&&em(o,t,h,l,u,v,n)}).update(function(h,v){var c=a.getItemGraphicEl(v),d=f(h);if(!ls(t,d,h,r)){n.remove(c);return}var p=t.getItemVisual(h,"symbol")||"circle",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==p)n.remove(c),c=new o(t,h,l,u),c.setPosition(d);else{c.updateData(t,h,l,u);var m={x:d[0],y:d[1]};s?c.attr(m):Yt(c,m,i)}n.add(c),t.setItemGraphicEl(h,c)}).remove(function(h){var v=a.getItemGraphicEl(h);v&&v.fadeOut(function(){n.remove(v)},i)}).execute(),this._getSymbolPoint=f,this._data=t},e.prototype.updateLayout=function(t){var r=this._data;if(r)for(var n=this,i=r.getStore(),a=0,o=i.count();a<o;a++){var s=r.getItemGraphicEl(a),l=n._getSymbolPoint(a);ls(r,l,a,t)?(s=s||em(n._SymbolCtor,r,a,n._seriesScope,{disableAnimation:!0},l,n.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(n.group.remove(s),r.setItemGraphicEl(a,null))}},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=tm(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n,i){this._progressiveEls=[],i=jg(i);function a(u){u.isGroup||(u.incremental=n,u.ensureState("emphasis").hoverLayer=Hl)}for(var o=t.start;o<t.end;o++){var s=r.getItemLayout(o);if(ls(r,s,o,i)){var l=new this._SymbolCtor(r,o,this._seriesScope);l.traverse(a),l.setPosition(s),this.group.add(l),r.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},e.prototype.eachRendered=function(t){So(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var r=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},e}();const F1=V2;function z1(e,t,r){var n=e.getBaseAxis(),i=e.getOtherAxis(n),a=G2(i,r),o=n.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=X(e.dimensions,function(d){return t.mapDimension(d)}),v=!1,c=t.getCalculationInfo("stackResultDimension");return Zn(t,h[0])&&(v=!0,h[0]=c),Zn(t,h[1])&&(v=!0,h[1]=c),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function G2(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:St(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function V1(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function Pe(e,t){return!isFinite(e)||!isFinite(t)}var H2=typeof Float32Array!==Zi?Float32Array:void 0,U2=typeof Float64Array!==Zi?Float64Array:void 0;function gr(e){return Hc({ctor:H2},e).arr}function Hc(e,t){var r=e.arr,n=e.ctor;if(t>Rd&&(t=Rd),!r||e.typed&&r.length<t){var i=void 0;if(n)try{i=new n(t),e.typed=!0,r&&i.set(r)}catch(s){}if(!i&&(i=[],e.typed=!1,r))for(var a=0,o=r.length;a<o;a++)i[a]=r[a];e.arr=i}return e}function W2(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function Y2(e,t,r,n,i,a,o,s){for(var l=W2(e,t),u=[],f=[],h=[],v=[],c=[],d=[],p=[],g=z1(i,t,o),m=e.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],b=!0,w=void 0,T=void 0;switch(S.cmd){case"=":w=S.idx*2,T=S.idx1*2;var C=m[w],x=m[w+1],A=y[T],D=y[T+1];(isNaN(C)||isNaN(x))&&(C=A,x=D),u.push(C,x),f.push(A,D),h.push(r[w],r[w+1]),v.push(n[T],n[T+1]),p.push(t.getRawIndex(S.idx1));break;case"+":var I=S.idx,L=g.dataDimsForPoint,P=i.dataToPoint([t.get(L[0],I),t.get(L[1],I)]);T=I*2,u.push(P[0],P[1]),f.push(y[T],y[T+1]);var R=V1(g,i,t,I);h.push(R[0],R[1]),v.push(n[T],n[T+1]),p.push(t.getRawIndex(I));break;case"-":b=!1}b&&(c.push(S),d.push(d.length))}d.sort(function(et,st){return p[et]-p[st]});for(var E=u.length,B=gr(E),k=gr(E),F=gr(E),G=gr(E),H=[],_=0;_<d.length;_++){var W=d[_],$=_*2,U=W*2;B[$]=u[U],B[$+1]=u[U+1],k[$]=f[U],k[$+1]=f[U+1],F[$]=h[U],F[$+1]=h[U+1],G[$]=v[U],G[$+1]=v[U+1],H[_]=c[W]}return{current:B,next:k,stackedOnCurrent:F,stackedOnNext:G,status:H}}var Or=Math.min,Br=Math.max;function tv(e,t,r,n,i,a,o,s,l){for(var u,f,h,v,c,d,p=r,g=0;g<n;g++){var m=t[p*2],y=t[p*2+1];if(p>=i||p<0)break;if(Pe(m,y)){if(l){p+=a;continue}break}if(p===r)e[a>0?"moveTo":"lineTo"](m,y),h=m,v=y;else{var _=m-u,S=y-f;if(_*_+S*S<.5){p+=a;continue}if(o>0){for(var b=p+a,w=t[b*2],T=t[b*2+1];w===m&&T===y&&g<n;)g++,b+=a,p+=a,w=t[b*2],T=t[b*2+1],m=t[p*2],y=t[p*2+1],_=m-u,S=y-f;var C=g+1;if(l)for(;Pe(w,T)&&C<n;)C++,b+=a,w=t[b*2],T=t[b*2+1];var x=.5,A=0,D=0,I=void 0,L=void 0;if(C>=n||Pe(w,T))c=m,d=y;else{A=w-u,D=T-f;var P=m-u,R=w-m,E=y-f,B=T-y,k=void 0,F=void 0;if(s==="x"){k=Math.abs(P),F=Math.abs(R);var G=A>0?1:-1;c=m-G*k*o,d=y,I=m+G*F*o,L=y}else if(s==="y"){k=Math.abs(E),F=Math.abs(B);var H=D>0?1:-1;c=m,d=y-H*k*o,I=m,L=y+H*F*o}else k=Math.sqrt(P*P+E*E),F=Math.sqrt(R*R+B*B),x=F/(F+k),c=m-A*o*(1-x),d=y-D*o*(1-x),I=m+A*o*x,L=y+D*o*x,I=Or(I,Br(w,m)),L=Or(L,Br(T,y)),I=Br(I,Or(w,m)),L=Br(L,Or(T,y)),A=I-m,D=L-y,c=m-A*k/F,d=y-D*k/F,c=Or(c,Br(u,m)),d=Or(d,Br(f,y)),c=Br(c,Or(u,m)),d=Br(d,Or(f,y)),A=m-c,D=y-d,I=m+A*F/k,L=y+D*F/k}e.bezierCurveTo(h,v,c,d,m,y),h=I,v=L}else e.lineTo(m,y)}u=m,f=y,p+=a}return g}var G1=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),$2=function(e){N(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:K.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new G1},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&Pe(i[o*2-2],i[o*2-1]);o--);for(;a<o&&Pe(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=tv(r,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=Qr.CMD,s,l,u=n==="x",f=[],h=0;h<a.length;){var v=a[h++],c=void 0,d=void 0,p=void 0,g=void 0,m=void 0,y=void 0,_=void 0;switch(v){case o.M:s=a[h++],l=a[h++];break;case o.L:if(c=a[h++],d=a[h++],_=u?(r-s)/(c-s):(r-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(c-s)*_+s;return u?[r,S]:[S,r]}s=c,l=d;break;case o.C:c=a[h++],d=a[h++],p=a[h++],g=a[h++],m=a[h++],y=a[h++];var b=u?Ws(s,c,p,m,r,f):Ws(l,d,g,y,r,f);if(b>0)for(var w=0;w<b;w++){var T=f[w];if(T<=1&&T>=0){var S=u?kt(l,d,g,y,T):kt(s,c,p,m,T);return u?[r,S]:[S,r]}}s=m,l=y;break}}},t}(dt),X2=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(G1),Z2=function(e){N(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new X2},t.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Pe(i[s*2-2],i[s*2-1]);s--);for(;o<s&&Pe(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=tv(r,i,o,s,s,1,n.smooth,l,n.connectNulls);tv(r,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},t}(dt);function H1(e,t,r,n,i){var a=e.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var h=new Lt({shape:{x:o,y:s,width:l,height:u}});if(t){var v=e.getBaseAxis(),c=v.isHorizontal(),d=v.inverse;c?(d&&(h.shape.x+=l),h.shape.width=0):(d||(h.shape.y+=u),h.shape.height=0);var p=j(i)?function(g){i(g,h)}:null;de(h,{shape:{width:l,height:u,x:o,y:s}},r,null,n,p)}return h}function U1(e,t,r){var n=e.getArea(),i=ht(n.r0,1),a=ht(n.r,1),o=new ti({shape:{cx:ht(e.cx,1),cy:ht(e.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,de(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function q2(e,t,r,n,i){if(e){if(e.type==="polar")return U1(e,t,r);if(e.type==="cartesian2d")return H1(e,t,r,n,i)}else return null;return null}function K2(e){var t=e.coordinateSystem;if(e.get("clip",!0)&&t&&(!t.shouldClip||t.shouldClip()))return t.getArea&&t.getArea(.1)}function Uc(e,t){return e.type===t}function Q2(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||J(e,"text")))}function J2(e,t,r){var n=e,i,a,o;if(t==="text")o=n;else{o={},J(n,"text")&&(o.text=n.text),J(n,"rich")&&(o.rich=n.rich),J(n,"textFill")&&(o.fill=n.textFill),J(n,"textStroke")&&(o.stroke=n.textStroke),J(n,"fontFamily")&&(o.fontFamily=n.fontFamily),J(n,"fontSize")&&(o.fontSize=n.fontSize),J(n,"fontStyle")&&(o.fontStyle=n.fontStyle),J(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=J(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),J(n,"textPosition")&&(i.position=n.textPosition),J(n,"textOffset")&&(i.offset=n.textOffset),J(n,"textRotation")&&(i.rotation=n.textRotation),J(n,"textDistance")&&(i.distance=n.textDistance)}return rm(o,e),M(o.rich,function(l){rm(l,l)}),{textConfig:i,textContent:a}}function rm(e,t){t&&(t.font=t.textFont||t.font,J(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),J(t,"textAlign")&&(e.align=t.textAlign),J(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),J(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),J(t,"textWidth")&&(e.width=t.textWidth),J(t,"textHeight")&&(e.height=t.textHeight),J(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),J(t,"textPadding")&&(e.padding=t.textPadding),J(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),J(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),J(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),J(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),J(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),J(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),J(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function nm(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function im(e){for(var t=xe(),r=xe(),n=0;n<e.length;){var i=e[n++],a=e[n++];Pe(i,a)||(ph(t,i),ph(r,a))}return[t,r]}function am(e,t){var r=im(e),n=r[0],i=r[1],a=im(t),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(i[0]-s[0]),Math.abs(n[1]-o[1]),Math.abs(i[1]-s[1]))}function om(e){return St(e)?e:e?.5:0}function j2(e,t,r){if(r.valueDim==null)return[];for(var n=t.count(),i=gr(n*2),a=0;a<n;a++){var o=V1(r,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function Nr(e,t,r,n,i){var a=r.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],h=[],v=[];if(i){for(l=0;l<e.length;l+=2){var c=t||e;Pe(c[l],c[l+1])||v.push(e[l],e[l+1])}e=v}for(l=0;l<e.length-2;l+=2)switch(h[0]=e[l+2],h[1]=e[l+3],f[0]=e[l],f[1]=e[l+1],s.push(f[0],f[1]),n){case"end":u[o]=h[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+h[o])/2,p=[];u[o]=p[o]=d,u[1-o]=f[1-o],p[1-o]=h[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=f[o],u[1-o]=h[1-o],s.push(u[0],u[1])}return s.push(e[l++],e[l++]),s}function tR(e,t){var r=[],n=e.length,i,a;function o(f,h,v){var c=f.coord,d=(v-c)/(h.coord-c),p=oT(d,[f.color,h.color]);return{coord:v,color:p}}for(var s=0;s<n;s++){var l=e[s],u=l.coord;if(u<0)i=l;else if(u>t){a?r.push(o(a,l,t)):i&&r.push(o(i,l,0),o(i,l,t));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function eR(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=t.getAxis(i),u=X(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var v=tR(u,i==="x"?r.getWidth():r.getHeight()),c=v.length;if(!c&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var d=10,p=v[0].coord-d,g=v[c-1].coord+d,m=g-p;if(m<.001)return"transparent";M(v,function(_){_.offset=(_.coord-p)/m}),v.push({offset:c?v[c-1].offset:.5,color:h[1]||"transparent"}),v.unshift({offset:c?v[0].offset:.5,color:h[0]||"transparent"});var y=new s_(0,0,0,0,v,!0);return y[i]=p,y[i+"2"]=g,y}}}function rR(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&nR(a,t))){var o=t.mapDimension(a.dim),s={};return M(a.getViewLabels(),function(l){l.tick.offInterval||(s[wo(a.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function nR(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(Gc.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function iR(e){for(var t=e.length/2;t>0&&Pe(e[t*2-2],e[t*2-1]);t--);return t-1}function sm(e,t){return[e[t*2],e[t*2+1]]}function aR(e,t,r){for(var n=e.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=e[u*2+i],!Pe(o,e[u*2+1-i])){if(u===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function W1(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<fe.length;t++)if(e.get([fe[t],"endLabel","show"]))return!0;return!1}function bf(e,t,r,n){if(Uc(t,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=W1(n)?function(c,d){e._endLabelOnDuring(c,d,o,s,a,i,t)}:null,u=t.getBaseAxis().isHorizontal(),f=H1(t,r,n,function(){var c=e._endLabel;c&&r&&s.originalX!=null&&c.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var h=f.shape,v=Math.max(h.width,h.height);u?(h.y-=v,h.height+=v*2):(h.x-=v,h.width+=v*2)}return l&&l(1,f),f}else return U1(t,r,n)}function oR(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||a,verticalAlign:e.get("verticalAlign")||o}}}var sR=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new It,n=new F1;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r,this._changePolyState=_t(this._changePolyState,this)},t.prototype.render=function(r,n,i){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),f=s.getLayout("points")||[],h=a.type==="polar",v=this._coordSys,c=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,m=!n.ssr&&r.get("animation"),y=!u.isEmpty(),_=u.get("origin"),S=z1(a,s,_),b=y&&j2(a,s,S),w=r.get("showSymbol"),T=r.get("connectNulls"),C=w&&!h&&rR(r,s,a),x=this._data;x&&x.eachItemGraphicEl(function(yt,Ct){yt.__temp&&(o.remove(yt),x.setItemGraphicEl(Ct,null))}),w||c.remove(),o.add(g);var A=h?!1:r.get("step"),D;a&&a.getArea&&r.get("clip",!0)&&(D=a.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var I=eR(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&v.type===a.type&&A===this._step))w&&c.updateData(s,{isIgnore:C,clipShape:D,disableAnimation:!0,getSymbolPoint:function(yt){return[f[yt*2],f[yt*2+1]]}}),m&&this._initSymbolLabelAnimation(s,a,D),A&&(b&&(b=Nr(b,f,a,A,T)),f=Nr(f,null,a,A,T)),d=this._newPolyline(f),y?p=this._newPolygon(f,b):p&&(g.remove(p),p=this._polygon=null),h||this._initOrUpdateEndLabel(r,a,$n(I)),g.setClipPath(bf(this,a,!0,r));else{y&&!p?p=this._newPolygon(f,b):p&&!y&&(g.remove(p),p=this._polygon=null),h||this._initOrUpdateEndLabel(r,a,$n(I));var L=g.getClipPath();if(L){var P=bf(this,a,!1,r);de(L,{shape:P.shape},r)}else g.setClipPath(bf(this,a,!0,r));w&&c.updateData(s,{isIgnore:C,clipShape:D,disableAnimation:!0,getSymbolPoint:function(yt){return[f[yt*2],f[yt*2+1]]}}),(!nm(this._stackedOnPoints,b)||!nm(this._points,f))&&(m?this._doUpdateAnimation(s,b,a,i,A,_,T):(A&&(b&&(b=Nr(b,f,a,A,T)),f=Nr(f,null,a,A,T)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:b})))}var R=r.getModel("emphasis"),E=R.get("focus"),B=R.get("blurScope"),k=R.get("disabled");if(d.useStyle(mt(l.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),nl(d,r,"lineStyle"),d.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var F=d.getState("emphasis").style;F.lineWidth=+d.style.lineWidth+1}at(d).seriesIndex=r.seriesIndex,Vi(d,E,B,k);var G=om(r.get("smooth")),H=r.get("smoothMonotone");if(d.setShape({smooth:G,smoothMonotone:H,connectNulls:T}),p){var W=s.getCalculationInfo("stackedOnSeries"),$=0;p.useStyle(mt(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),W&&($=om(W.get("smooth"))),p.setShape({smooth:G,stackedOnSmooth:$,smoothMonotone:H,connectNulls:T}),nl(p,r,"areaStyle"),at(p).seriesIndex=r.seriesIndex,Vi(p,E,B,k)}var U=this._changePolyState;s.eachItemGraphicEl(function(yt){yt&&(yt.onHoverStateChange=U)}),this._polyline.onHoverStateChange=U,this._data=s,this._coordSys=a,this._stackedOnPoints=b,this._points=f,this._step=A,this._valueOrigin=_;var et=r.get("triggerEvent"),st=r.get("triggerLineEvent"),Pt=st===!0||et===!0||et==="line",Nt=st===!0||et===!0||et==="area";this.packEventData(r,d,Pt),p&&this.packEventData(r,p,Nt)},t.prototype.packEventData=function(r,n,i){at(n).eventData=i?{componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line",selfType:n===this._polygon?"area":"line"}:null},t.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=Yn(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(Pe(f,h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var v=r.get("zlevel")||0,c=r.get("z")||0;u=new Gc(o,s),u.x=f,u.y=h,u.setZ(v,c);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=c,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else ze.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Yn(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else ze.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;ap(this._polyline,r),n&&ap(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new $2({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new Z2({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");j(f)&&(f=f(null));var h=u.get("animationDelay")||0,v=j(h)?h(null):h;r.eachItemGraphicEl(function(c,d){var p=c;if(p){var g=[c.x,c.y],m=void 0,y=void 0,_=void 0;if(i)if(o){var S=i,b=n.pointToCoord(g);a?(m=S.startAngle,y=S.endAngle,_=-b[1]/180*Math.PI):(m=S.r0,y=S.r,_=b[0])}else{var w=i;a?(m=w.x,y=w.x+w.width,_=c.x):(m=w.y+w.height,y=w.y,_=c.y)}var T=y===m?0:(_-m)/(y-m);l&&(T=1-T);var C=j(h)?h(d):f*T+v,x=p.getSymbolPath(),A=x.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:C}),x.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(W1(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Bt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=iR(l);f>=0&&(qi(s,ei(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:f,defaultText:function(h,v,c){return c!=null?N1(o,c):Vc(o,h)},enableTextSetter:!0},oR(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var h=i.getLayout("points"),v=i.hostModel,c=v.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,_=n.shape,S=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,b=(m?p:0)*(y?-1:1),w=(m?0:-p)*(y?-1:1),T=m?"x":"y",C=aR(h,S,T),x=C.range,A=x[1]-x[0],D=void 0;if(A>=1){if(A>1&&!c){var I=sm(h,x[0]);u.attr({x:I[0]+b,y:I[1]+w}),o&&(D=v.getRawValue(x[0]))}else{var I=f.getPointOn(S,T);I&&u.attr({x:I[0]+b,y:I[1]+w});var L=v.getRawValue(x[0]),P=v.getRawValue(x[1]);o&&(D=vx(i,d,L,P,C.t))}a.lastFrameIndex=x[0]}else{var R=r===1||a.lastFrameIndex>0?x[0]:0,I=sm(h,R);o&&(D=v.getRawValue(R)),u.attr({x:I[0]+b,y:I[1]+w})}if(o){var E=Wl(u);typeof E.setLabelText=="function"&&E.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,h=r.hostModel,v=Y2(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),c=v.current,d=v.stackedOnCurrent,p=v.next,g=v.stackedOnNext;if(o&&(d=Nr(v.stackedOnCurrent,v.current,i,o,l),c=Nr(v.current,null,i,o,l),g=Nr(v.stackedOnNext,v.next,i,o,l),p=Nr(v.next,null,i,o,l)),am(c,p)>3e3||f&&am(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=c;var m={shape:{points:p}};v.current!==c&&(m.shape.__points=v.next),u.stopAnimation(),Yt(u,m,h),f&&(f.setShape({points:c,stackedOnPoints:d}),f.stopAnimation(),Yt(f,{shape:{stackedOnPoints:g}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=v.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var w=r.getItemGraphicEl(_[S].idx1);w&&y.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var T=u.shape.__points,C=0;C<y.length;C++){var x=y[C].el,A=y[C].ptIdx*2;x.x=T[A],x.y=T[A+1],x.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(ze);const lR=sR;function Wc(e,t){return{seriesType:e,plan:bc(),reset:function(r){var n=r.getData(),i=r.coordinateSystem,a=r.pipelineContext,o=t||a.large;if(i){var s=X(i.dimensions,function(c){return n.mapDimension(c)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");Zn(n,s[0])&&(s[0]=u),Zn(n,s[1])&&(s[1]=u);var f=n.getStore(),h=n.getDimensionIndex(s[0]),v=n.getDimensionIndex(s[1]);return l&&{progress:function(c,d){for(var p=c.end-c.start,g=o&&gr(p*l),m=[],y=[],_=c.start,S=0;_<c.end;_++){var b=void 0;if(l===1){var w=f.get(h,_);b=i.dataToPoint(w,null,y)}else m[0]=f.get(h,_),m[1]=f.get(v,_),b=i.dataToPoint(m,null,y);o?(g[S++]=b[0],g[S++]=b[1]):d.setItemLayout(_,b.slice())}o&&(d.setLayout("points",g),d.setLayout("pointsRange",{start:c.start,end:c.end}))}}}}}}var uR={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},fR=function(e){return Math.round(e.length/2)};function Y1(e){return{seriesType:e,reset:function(t,r,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=n.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(h||1),c=Math.round(s/v);if(isFinite(c)&&c>1){a==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/c)):a==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/c));var d=void 0;Z(a)?d=uR[a]:j(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(u.dim),1/c,d,fR))}}}}}function PB(e){e.registerChartView(lR),e.registerSeriesModel(N2),e.registerLayout(Wc("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Y1("line"))}var hR=function(e){N(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(C2);const vR=hR;var cR=null;function nu(){return cR}var dR="expandAxisBreak",Yr=Math.PI,pR=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],gR=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Kn=ft(),$1=ft(),X1=function(){function e(t){this.recordMap={},this.resolveAxisNameOverlap=t}return e.prototype.ensureRecord=function(t){var r=t.axis.dim,n=t.componentIndex,i=this.recordMap,a=i[r]||(i[r]=[]);return a[n]||(a[n]={ready:{}})},e}();function mR(e,t,r,n){var i=r.axis,a=t.ensureRecord(r),o=[],s,l=Yc(e.axisName)&&Wi(e.nameLocation);M(n,function(d){var p=or(d);if(!(!p||p.label.ignore)){o.push(p);var g=a.transGroup;l&&(g.transform?co(ma,g.transform):vo(ma),p.transform&&Ia(ma,ma,p.transform),nt.copy(us,p.localRect),us.applyTransform(ma),s?s.union(us):nt.copy(s=new nt(0,0,0,0),us))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.label[u]-f)}),l&&s){var h=i.getExtent(),v=Math.min(h[0],h[1]),c=Math.max(h[0],h[1])-v;s.union(new nt(v,0,c,1))}a.stOccupiedRect=s,a.labelInfoList=o}var ma=rr(),us=new nt(0,0,0,0),Z1=function(e,t,r,n,i,a){if(Wi(e.nameLocation)){var o=a.stOccupiedRect;o&&q1(R2({},o,a.transGroup.transform),n,i)}else K1(a.labelInfoList,a.dirVec,n,i)};function q1(e,t,r){var n=new rt;zc(e,t,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&E2(t,n)}function K1(e,t,r,n){for(var i=rt.dot(n,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||q1(s,r,n)}}var Gn=function(){function e(t,r,n,i){this.group=new It,this._axisModel=t,this._api=r,this._local={},this._shared=i||new X1(Z1),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(t){var r=this._cfg.raw;r.position=t.position,r.labelOffset=t.labelOffset,this._resetCfgDetermined(r)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(t){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},i=Y(t.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=Y(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:Y(t.nameDirection,1),tickDirection:Y(t.tickDirection,1),labelDirection:Y(t.labelDirection,1),labelOffset:Y(t.labelOffset,0),silent:Y(t.silent,!0),axisName:i,nameLocation:Bn(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:Yc(i)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new It({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new rt(Math.cos(-o.rotation),Math.sin(-o.rotation))},e.prototype.build=function(t,r){var n=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),M(yR,function(i){t[i]&&_R[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},e.innerTextLayout=function(t,r,n){var i=jy(r-t),a,o;return Qs(i)?(o=n>0?"top":"bottom",a="center"):Qs(i-Yr)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Yr?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),yR=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],_R={axisLine:function(e,t,r,n,i,a,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),!!s){var l=n.axis.getExtent(),u=a.transform,f=[l[0],0],h=[l[1],0],v=f[0]>h[0];u&&(Ie(f,f,u),Ie(h,h,u));var c=O({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:c};if(n.get(["axisLine","breakLine"])&&ll(n.axis.scale))nu().buildAxisBreakLine(n,i,a,d);else{var p=new Jr(O({shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]}},d));to(p.shape,p.style.lineWidth),p.anid="line",i.add(p)}var g=n.get(["axisLine","symbol"]);if(g!=null){var m=n.get(["axisLine","symbolSize"]);Z(g)&&(g=[g,g]),(Z(m)||St(m))&&(m=[m,m]);var y=Jl(n.get(["axisLine","symbolOffset"])||0,m),_=m[0],S=m[1];M([{rotate:e.rotation+Math.PI/2,offset:y[0],r:0},{rotate:e.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((f[0]-h[0])*(f[0]-h[0])+(f[1]-h[1])*(f[1]-h[1]))}],function(b,w){if(g[w]!=="none"&&g[w]!=null){var T=tn(g[w],-_/2,-S/2,_,S,c.stroke,!0),C=b.r+b.offset,x=v?h:f;T.attr({rotation:b.rotate,x:x[0]+C*Math.cos(e.rotation),y:x[1]-C*Math.sin(e.rotation),silent:!0,z2:11}),i.add(T)}})}}},axisTickLabelEstimate:function(e,t,r,n,i,a,o,s){var l=um(t,i,s);l&&lm(e,t,r,n,i,a,o,Ve.estimate)},axisTickLabelDetermine:function(e,t,r,n,i,a,o,s){var l=um(t,i,s);l&&lm(e,t,r,n,i,a,o,Ve.determine);var u=TR(e,i,a,n);wR(e,t.labelLayoutList,u),xR(e,i,a,n,e.tickDirection)},axisName:function(e,t,r,n,i,a,o,s){var l=r.ensureRecord(n);t.nameEl&&(i.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var u=e.axisName;if(Yc(u)){var f=e.nameLocation,h=e.nameDirection,v=n.getModel("nameTextStyle"),c=n.get("nameGap")||0,d=n.axis.getExtent(),p=n.axis.inverse?-1:1,g=new rt(0,0),m=new rt(0,0);f==="start"?(g.x=d[0]-p*c,m.x=-p):f==="end"?(g.x=d[1]+p*c,m.x=p):(g.x=(d[0]+d[1])/2,g.y=e.labelOffset+h*c,m.y=h);var y=rr();m.transform(xv(y,y,e.rotation));var _=n.get("nameRotate");_!=null&&(_=_*Yr/180);var S,b;Wi(f)?S=Gn.innerTextLayout(e.rotation,_!=null?_:e.rotation,h):(S=SR(e.rotation,f,_||0,d),b=e.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var w=v.getFont(),T=n.get("nameTruncate",!0)||{},C=T.ellipsis,x=Za(e.raw.nameTruncateMaxWidth,T.maxWidth,b),A=s.nameMarginLevel||0,D=new Bt({x:g.x,y:g.y,rotation:S.rotation,silent:Gn.isLabelSilent(n),style:jr(v,{text:u,font:w,overflow:"truncate",width:x,ellipsis:C,fill:v.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:v.get("align")||S.textAlign,verticalAlign:v.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(_o({el:D,componentModel:n,itemName:u}),D.__fullText=u,D.anid="name",n.get("triggerEvent")){var I=Gn.makeAxisEventDataBase(n);I.targetType="axisName",I.name=u,at(D).eventData=I}a.add(D),D.updateTransform(),t.nameEl=D;var L=l.nameLayout=or({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:Wi(f)?pR[A]:gR[A]});if(l.nameLocation=f,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&L){var P=r.ensureRecord(n);r.resolveAxisNameOverlap(e,r,n,L,m,P)}}}};function lm(e,t,r,n,i,a,o,s){J1(t)||CR(e,t,i,s,n,o);var l=t.labelLayoutList;DR(e,n,l,a),LR(n,e.rotation,l);var u=e.optionHideOverlap;bR(n,l,u),u&&O2(Ot(l,function(f){return f&&!f.label.ignore})),mR(e,r,n,l)}function SR(e,t,r,n){var i=jy(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Qs(i-Yr/2)?(o=l?"bottom":"top",a="center"):Qs(i-Yr*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<Yr*1.5&&i>Yr/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function bR(e,t,r){var n=e.axis,i=e.get(["axisLabel","customValues"]);if(PP(n))return;function a(u,f,h){var v=or(t[f]),c=or(t[h]),d=n.scale;if(!(!v||!c)){if(u==null){if(!r&&i)return;var p=Kn(v.label).labelInfo.tick;if(Ec(d)&&p.notNice||We(d)&&p.offInterval){wi(v.label);return}}if(u===!1||v.suggestIgnore){wi(v.label);return}if(c.suggestIgnore){wi(c.label);return}var g=.1;if(!r){var m=[0,0,0,0];v=Qg({marginForce:m},v),c=Qg({marginForce:m},c)}zc(v,c,null,{touchThreshold:g})&&wi(u?c.label:v.label)}}var o=e.get(["axisLabel","showMinLabel"]),s=e.get(["axisLabel","showMaxLabel"]),l=t.length;a(o,0,1),a(s,l-1,l-2)}function wR(e,t,r){e.showMinorTicks||M(t,function(n){if(n&&n.label.ignore)for(var i=0;i<r.length;i++){var a=r[i],o=$1(a),s=Kn(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){wi(a);return}}})}function wi(e){e&&(e.ignore=!0)}function Q1(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,t&&(Ie(o,o,t),Ie(s,s,t));var f=new Jr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});to(f.shape,f.style.lineWidth),f.anid=i+"_"+e[l].tickValue,a.push(f);var h=$1(f);h.onBand=!!e[l].onBand,h.tickValue=e[l].tickValue}return a}function TR(e,t,r,n){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=e.tickDirection*a.get("length"),u=i.getTicksCoords(),f=Q1(u,r.transform,l,mt(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)t.add(f[h]);return f}function xR(e,t,r,n,i){var a=n.axis,o=n.getModel("minorTick");if(!(!e.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=i*o.get("length"),f=mt(l.getLineStyle(),mt(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var v=Q1(s[h],r.transform,u,f,"minorticks_"+h),c=0;c<v.length;c++)t.add(v[c])}}function um(e,t,r){if(J1(e)){var n=e.axisLabelsCreationContext,i=n.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(t.remove(e.labelGroup),ev(e,null,null,null))}return!0}function CR(e,t,r,n,i,a){var o=i.axis,s=Za(e.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new It;r.add(l);var u=yl(n);if(!s||o.scale.isBlank()){ev(t,[],l,u);return}var f=i.getModel("axisLabel"),h=o.getViewLabels(u),v=(Za(e.raw.labelRotate,f.get("rotate"))||0)*Yr/180,c=Gn.innerTextLayout(e.rotation,v,e.labelDirection),d=i.getCategories&&i.getCategories(!0),p=[],g=i.get("triggerEvent"),m=1/0,y=-1/0;M(h,function(S,b){var w,T=S.tick,C=S.formattedLabel,x=S.rawLabel,A=f,D=wo(o.scale,T);if(d&&d[D]){var I=d[D];q(I)&&I.textStyle&&(A=new Wt(I.textStyle,f,i.ecModel))}var L=A.getTextColor()||i.get(["axisLine","lineStyle","color"]),P=A.getShallow("align",!0)||c.textAlign,R=Y(A.getShallow("alignMinLabel",!0),P),E=Y(A.getShallow("alignMaxLabel",!0),P),B=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||c.textVerticalAlign,k=Y(A.getShallow("verticalAlignMinLabel",!0),B),F=Y(A.getShallow("verticalAlignMaxLabel",!0),B),G=10+(((w=T.time)===null||w===void 0?void 0:w.level)||0);m=Math.min(m,G),y=Math.max(y,G);var H=new Bt({x:0,y:0,rotation:0,silent:Gn.isLabelSilent(i),z2:G,style:jr(A,{text:C,align:b===0?R:b===h.length-1?E:P,verticalAlign:b===0?k:b===h.length-1?F:B,fill:j(L)?L(o.type==="category"?x:o.type==="value"?D+"":D,b):L})});H.anid="label_"+D;var W=Kn(H);if(W.labelInfo=S,W.layoutRotation=c.rotation,_o({el:H,componentModel:i,itemName:C,formatterParamsExtra:{isTruncated:function(){return H.isTruncated},value:x,tickIndex:b}}),g){var $=Gn.makeAxisEventDataBase(i);$.targetType="axisLabel",$.value=x,$.tickIndex=b;var U=S.tick.break;if(U){var et=U.parsedBreak;$.break={start:et.vmin,end:et.vmax}}o.type==="category"&&($.dataIndex=D),at(H).eventData=$,U&&MR(i,a,H,U)}p.push(H),l.add(H)});var _=X(p,function(S){return{label:S,priority:Kn(S).labelInfo.tick.break?S.z2+(y-m+1):S.z2,defaultAttr:{ignore:S.ignore}}});ev(t,_,l,u)}function J1(e){return!!e.labelLayoutList}function ev(e,t,r,n){e.labelLayoutList=t,e.labelGroup=r,e.axisLabelsCreationContext=n}function DR(e,t,r,n){var i=t.get(["axisLabel","margin"]);M(r,function(a,o){var s=or(a);if(s){var l=s.label,u=Kn(l);s.suggestIgnore=l.ignore,l.ignore=!1,qs(cr,AR);var f=t.axis;cr.x=f.dataToCoord(wo(f.scale,u.labelInfo.tick)),cr.y=e.labelOffset+e.labelDirection*i,cr.rotation=u.layoutRotation,n.add(cr),cr.updateTransform(),n.remove(cr),cr.decomposeTransform(),qs(l,cr),l.markRedraw(),wl(s,!0),or(s)}})}var cr=new Lt,AR=new Lt;function Yc(e){return!!e}function MR(e,t,r,n){r.on("click",function(i){var a={type:dR,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};a[e.axis.dim+"AxisIndex"]=e.componentIndex,t.dispatchAction(a)})}function LR(e,t,r){var n=re();if(n){var i=n.retrieveAxisBreakPairs(r,function(o){return o&&Kn(o.label).labelInfo.tick.break},!0),a=e.get(["breakLabelLayout","moveOverlap"],!0);(a===!0||a==="auto")&&M(i,function(o){nu().adjustBreakLabelPair(e.axis.inverse,t,[or(r[o[0]]),or(r[o[1]])])})}}const j1=Gn;function Tl(e,t,r){r=r||{};var n=t.axis,i={},a=n.getAxesOnZeroOf()[0],o=n.position,s=a?"onZero":o,l=n.dim,u=[e.x,e.x+e.width,e.y,e.y+e.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,v=l==="x"?[u[2]-h,u[3]+h]:[u[0]-h,u[1]+h];if(a){var c=a.toGlobalCoord(a.dataToCoord(0));v[f.onZero]=Math.max(Math.min(c,v[1]),v[0])}i.position=[l==="y"?v[f[s]]:u[0],l==="x"?v[f[s]]:u[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=d[o],i.labelOffset=a?v[f[o]]-v[f.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Za(r.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var p=t.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-p:p,i.z2=1,i}function IR(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function PR(e){var t={xAxisModel:null,yAxisModel:null};return M(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,Ae).models[0];t[n]=a}),t}function RR(e,t,r,n,i,a){for(var o=Tl(e,r),s=!1,l=!1,u=0;u<t.length;u++)i1(t[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new j1(r,n,o,i)}function ER(e,t,r){var n=Tl(t,r);e.updateCfg(n)}function kR(){UP("liPosMinGap",OR)}function OR(e,t,r){var n=Q(),i=r.serUids,a=r.liPosMinGap,o,s=t.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,h=rS(f);function v(_){Nc(e,t.sers,function(S){var b=S.getRawData(),w=b.getDimensionIndex(b.mapDimension(s.dim));w>=0&&_(w,S,b.getStore())})}var c=0;if(v(function(_,S,b){n.set(S.uid,1),(!i||!i.hasKey(S.uid))&&(o=!0),c+=b.count()}),(!i||i.keys().length!==n.keys().length)&&(o=!0),!o&&a!=null){t.liPosMinGap=a;return}Hc(Mn,c);var d=0;v(function(_,S,b){for(var w=0,T=b.count();w<T;++w){var C=b.get(_,w);isFinite(C)&&(!f||nS(h,C))&&(u&&(C=l.transformIn(C,null)),Mn.arr[d++]=C)}});var p=Mn.typed?Mn.arr.subarray(0,d):(Mn.arr.length=d,Mn.arr);Mn.typed?p.sort():Dv(p);for(var g=1/0,m=1;m<d;++m){var y=p[m]-p[m-1];y>0&&y<g&&(g=y)}r.liPosMinGap=t.liPosMinGap=Re(g)?g:d>0?m1:BP,r.serUids=n}var Mn=Hc({ctor:U2},50);function BR(e){return function(t,r){var n=ta(t,{fromStat:{key:e}});if(Re(n.w2))return[-n.w2/2,n.w2/2]}}function iu(e,t){return e+Kh+t}function NR(e){return kR(),{liPosMinGap:!We(e.scale)}}var Bi="bar";function FR(e,t,r,n){WP(e,{key:t,seriesType:r,coordSysType:n,getMetrics:NR})}function zR(e){var t=e.scale.rawExtentInfo.makeRenderInfo().startValue;return t}var tb={left:0,right:0,top:0,bottom:0},xl=["25%","25%"],yr="cartesian2d",VR=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(r,n){var i=bo(r.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&r.outerBounds&&Cr(r.outerBounds,i)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&Cr(this.option.outerBounds,r.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:tb,outerBoundsContain:"all",outerBoundsClampWidth:xl[0],outerBoundsClampHeight:xl[1],backgroundColor:K.color.transparent,borderWidth:1,borderColor:K.color.neutral30},t}(wt);const GR=VR;var HR=f0(),UR="__ec_stack_";function eb(e){return e.get("stack")||UR+e.seriesIndex}function WR(e,t){var r=YR(e,t);return r.columnMap=$R(r),r}function YR(e,t){var r=iu(t,yr),n=[],i=ta(e,{fromStat:{key:r},min:1});return b1(e,r,function(a){n.push({barWidth:bt(a.get("barWidth"),i.w),barMaxWidth:bt(a.get("barMaxWidth"),i.w),barMinWidth:bt(a.get("barMinWidth")||(rb(a)?.5:1),i.w),barGap:a.get("barGap"),barCategoryGap:a.get("barCategoryGap"),defaultBarGap:a.get("defaultBarGap"),stackId:eb(a)})}),{bandWidthResult:i,seriesInfo:n}}function $R(e){var t=e.bandWidthResult.w,r=t,n=0,i,a,o=[],s={};M(e.seriesInfo,function(p,g){g||(a=p.defaultBarGap||0);var m=p.stackId;J(s,m)||n++;var y=s[m];y||(y=s[m]={width:0,maxWidth:0},o.push(m));var _=p.barWidth;_&&!y.width&&(y.width=_,_=Qt(r,_),r-=_);var S=p.barMaxWidth;S&&(y.maxWidth=S);var b=p.barMinWidth;b&&(y.minWidth=b);var w=p.barGap;w!=null&&(a=w);var T=p.barCategoryGap;T!=null&&(i=T)}),i==null&&(i=ct(35-o.length*4,15)+"%");var l=bt(i,t),u=bt(a,1),f=(r-l)/(n+(n-1)*u);f=ct(f,0),M(o,function(p){var g=s[p],m=g.maxWidth,y=g.minWidth;if(g.width){var _=g.width;m&&(_=Qt(_,m)),y&&(_=ct(_,y)),g.width=_,r-=_+u*_,n--}else{var _=f;m&&m<_&&(_=Qt(m,r)),y&&y>_&&(_=y),_!==f&&(g.width=_,r-=_+u*_,n--)}}),f=(r-l)/(n+(n-1)*u),f=ct(f,0);var h=0,v;M(o,function(p){var g=s[p];g.width||(g.width=f),v=g,h+=g.width*(1+u)}),v&&(h-=v.width*u);var c={},d=-h/2;return M(o,function(p){var g=s[p];c[p]=c[p]||{bandWidth:t,offset:d,width:g.width},d+=g.width*(1+u)}),c}function XR(e){return{seriesType:e,overallReset:function(t){var r=iu(e,yr);GP(t,r,function(n){var i=WR(n,e);b1(n,r,function(a){var o=i.columnMap[eb(a)];a.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function ZR(e){return{seriesType:e,plan:bc(),reset:function(t){if(IR(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),h=Zn(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),v=a.isHorizontal(),c=a.toGlobalCoord(a.dataToCoord(zR(a))),d=rb(t),p=t.get("barMinHeight")||0,g=f&&r.getDimensionIndex(f),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,S){for(var b=_.count,w=d&&gr(b*3),T=d&&l&&gr(b*3),C=d&&gr(b),x=n.master.getRect(),A=v?x.width:x.height,D,I=S.getStore(),L=0;(D=_.next())!=null;){var P=I.get(h?g:o,D),R=I.get(s,D),E=c,B=void 0;h&&(B=+P-I.get(o,D));var k=void 0,F=void 0,G=void 0,H=void 0;if(v){var W=n.dataToPoint([P,R]);h&&(E=n.dataToPoint([B,R])[0]),k=E,F=W[1]+y,G=W[0]-E,H=m,Et(G)<p&&(G=(G<0?-1:1)*p)}else{var W=n.dataToPoint([R,P]);h&&(E=n.dataToPoint([R,B])[1]),k=W[0]+y,F=E,G=m,H=W[1]-E,Et(H)<p&&(H=(H<=0?-1:1)*p)}d?(w[L]=k,w[L+1]=F,w[L+2]=v?G:H,T&&(T[L]=v?x.x:k,T[L+1]=v?F:x.y,T[L+2]=A),C[D]=D):S.setItemLayout(D,{x:k,y:F,width:G,height:H}),L+=3}d&&S.setLayout({largePoints:w,largeDataIndices:C,largeBackgroundPoints:T,valueAxisHorizontal:v})}}}}}}function rb(e){return e.pipelineContext&&e.pipelineContext.large}function qR(e){return BR(iu(e,yr))}function KR(e){HR(e,function(){function t(r){var n=iu(r,yr);FR(e,n,r,yr),jP(n,qR(r))}t("bar"),t("pictorialBar")})}var nb=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return tu(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)M(a.getAxes(),function(v,c){if(v.type==="category"&&n!=null){var d=v.getTicksCoords(),p=v.getTickModel().get("alignWithLabel"),g=o[c],m=n[c]==="x1"||n[c]==="y1";if(m&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[c]=v.toGlobalCoord(v.getExtent()[m?1:0]);return}for(var y=void 0,_=void 0,S=1,b=0;b<d.length;b++){var w=d[b].coord,T=b===d.length-1?d[b-1].tickValue+S:d[b].tickValue;if(T===g){_=w;break}else if(T<g)y=w;else if(y!=null&&T>g){_=(w+y)/2;break}b===1&&(S=T-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[c]=v.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/2}return s}return[NaN,NaN]},t.prototype.__requireStartValue=function(r){return this.getBaseAxis()!==r},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},t}(Dr);Dr.registerClass(nb);const fm=nb;var QR=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return tu(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.__preparePipelineContext=function(r,n){var i=v0(this,r,n);return i.progressiveRender&&(i.large=!0),i},t.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},t.type="series."+Bi,t.dependencies=["grid","polar"],t.defaultOption=b_(fm.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:K.color.primary,borderWidth:2}},realtimeSort:!1}),t}(fm);const JR=QR;var jR=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),tE=function(e){N(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new jR},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,h=n.endAngle,v=n.clockwise,c=Math.PI*2,d=v?h-f<c:f-h<c;d||(f=h-(v?c:-c));var p=Math.cos(f),g=Math.sin(f),m=Math.cos(h),y=Math.sin(h);d?(r.moveTo(p*o+i,g*o+a),r.arc(p*u+i,g*u+a,l,-Math.PI+f,f,!v)):r.moveTo(p*s+i,g*s+a),r.arc(i,a,s,f,h,!v),r.arc(m*u+i,y*u+a,l,h-Math.PI*2,h-Math.PI,!v),o!==0&&r.arc(i,a,o,h,f,v)},t}(dt);const hm=tE;function eE(e,t){t=t||{};var r=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return Ks(n,i,a);var s=e(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,h=u.cy,v=u.r,c=u.r0,d=(v+c)/2,p=u.startAngle,g=u.endAngle,m=(p+g)/2,y=r?Math.abs(v-c)/2:0,_=Math.cos,S=Math.sin,b=f+v*_(p),w=h+v*S(p),T="left",C="top";switch(s){case"startArc":b=f+(c-l)*_(m),w=h+(c-l)*S(m),T="center",C="top";break;case"insideStartArc":b=f+(c+l)*_(m),w=h+(c+l)*S(m),T="center",C="bottom";break;case"startAngle":b=f+d*_(p)+fs(p,l+y,!1),w=h+d*S(p)+hs(p,l+y,!1),T="right",C="middle";break;case"insideStartAngle":b=f+d*_(p)+fs(p,-l+y,!1),w=h+d*S(p)+hs(p,-l+y,!1),T="left",C="middle";break;case"middle":b=f+d*_(m),w=h+d*S(m),T="center",C="middle";break;case"endArc":b=f+(v+l)*_(m),w=h+(v+l)*S(m),T="center",C="bottom";break;case"insideEndArc":b=f+(v-l)*_(m),w=h+(v-l)*S(m),T="center",C="top";break;case"endAngle":b=f+d*_(g)+fs(g,l+y,!0),w=h+d*S(g)+hs(g,l+y,!0),T="left",C="middle";break;case"insideEndAngle":b=f+d*_(g)+fs(g,-l+y,!0),w=h+d*S(g)+hs(g,-l+y,!0),T="right",C="middle";break;default:return Ks(n,i,a)}return n=n||{},n.x=b,n.y=w,n.align=T,n.verticalAlign=C,n}}function rE(e,t,r,n){if(St(n)){e.setTextConfig({rotation:n});return}else if(z(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=r(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:e.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),e.setTextConfig({rotation:f})}function fs(e,t,r){return t*Math.sin(e)*(r?-1:1)}function hs(e,t,r){return t*Math.cos(e)*(r?1:-1)}function Ma(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;z(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:X(n,function(a){return Un(a,i)})}}var wf=Math.max,Tf=Math.min,nE=function(e){N(t,e);function t(){var r=e.call(this)||this;return r.type=Bi,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a))},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){So(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.getBaseAxis(),h;u.type==="cartesian2d"?h=f.isHorizontal():u.type==="polar"&&(h=f.dim==="angle");var v=r.isAnimationEnabled()?r:null,c=iE(r,u);c&&this._enableRealtimeSort(c,s,i);var d=r.get("clip",!0)||c,p=u.getArea();o.removeClipPath();var g=r.get("roundCap",!0),m=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,S=[],b=this._backgroundEls,w=a&&a.isInitSort,T=a&&a.type==="changeAxisOrder";function C(D){var I=vs[u.type](s,D);if(!I)return null;var L=hE(u,h,I);return L.useStyle(y.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),S[D]=L,L}s.diff(l).add(function(D){var I=s.getItemModel(D),L=vs[u.type](s,D,I);if(L&&(m&&C(D),!(!s.hasValue(D)||!gm[u.type](L)))){var P=!1;d&&(P=vm[u.type](p,L));var R=cm[u.type](r,s,D,L,h,v,f.model,!1,g);c&&(R.forceLabelAnimation=!0),mm(R,s,D,I,L,r,h,u.type==="polar"),w?R.attr({shape:L}):c?dm(c,v,R,L,D,h,!1,!1):de(R,{shape:L},r,D),s.setItemGraphicEl(D,R),o.add(R),R.ignore=P}}).update(function(D,I){var L=s.getItemModel(D),P=vs[u.type](s,D,L);if(P){if(m){var R=void 0;b.length===0?R=C(I):(R=b[I],R.useStyle(y.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),S[D]=R);var E=vs[u.type](s,D),B=ab(h,E,u);Yt(R,{shape:B},v,D)}var k=l.getItemGraphicEl(I);if(!s.hasValue(D)||!gm[u.type](P)){o.remove(k);return}var F=!1;d&&(F=vm[u.type](p,P),F&&o.remove(k));var G=k&&(k.type==="sector"&&g||k.type==="sausage"&&!g);if(G&&(k&&Ba(k,r,I),k=null),k?Xv(k):k=cm[u.type](r,s,D,P,h,v,f.model,!0,g),c&&(k.forceLabelAnimation=!0),T){var H=k.getTextContent();if(H){var W=Wl(H);W.prevValue!=null&&(W.prevValue=W.value)}}else mm(k,s,D,L,P,r,h,u.type==="polar");w?k.attr({shape:P}):c?dm(c,v,k,P,D,h,!0,T):Yt(k,{shape:P},r,D,null),s.setItemGraphicEl(D,k),k.ignore=F,o.add(k)}}).remove(function(D){var I=l.getItemGraphicEl(D);I&&Ba(I,r,D)}).execute();var x=this._backgroundGroup||(this._backgroundGroup=new It);x.removeAll();for(var A=0;A<S.length;++A)x.add(S[A]);o.add(x),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(r,n,i){this._clear(),_m(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),_m(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&q2(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=i(s);l=l==null?NaN:l,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:X(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),h=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(h>s)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Ba(a,r,at(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=Bi,t}(ze),vm={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=wf(t.x,e.x),s=Tf(t.x+t.width,i),l=wf(t.y,e.y),u=Tf(t.y+t.height,a),f=s<o,h=u<l;return t.x=f&&o>i?s:o,t.y=h&&l>a?u:l,t.width=f?0:s-o,t.height=h?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||h},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=Tf(t.r,e.r),a=wf(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},cm={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Lt({shape:O({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var f=u.shape,h=i?"height":"width";f[h]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?hm:ti,f=new u({shape:n,z2:1});f.name="item";var h=ib(i);if(f.calculateTextPosition=eE(h,{isRoundCap:u===hm}),a){var v=f.shape,c=i?"r":"endAngle",d={};v[c]=i?n.r0:n.startAngle,d[c]=n[c],(s?Yt:de)(f,{shape:d},a)}return f}};function iE(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function dm(e,t,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Yt:de)(r,{shape:l},t,i,null);var f=t?e.baseAxis.model:null;(o?Yt:de)(r,{shape:u},f,i)}function pm(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var aE=["x","y","width","height"],oE=["cx","cy","r","startAngle","endAngle"],gm={cartesian2d:function(e){return!pm(e,aE)},polar:function(e){return!pm(e,oE)}},vs={cartesian2d:function(e,t,r){var n=e.getItemLayout(t);if(!n)return null;var i=r?lE(r,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function sE(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function ib(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function mm(e,t,r,n,i,a,o,s){var l=t.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=e.shape,h=Ma(n.getModel("itemStyle"),f,!0);O(f,h),e.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var v=n.getShallow("cursor");v&&e.attr("cursor",v);var c=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?vE(i,a.coordinateSystem):cE(i,a.coordinateSystem),d=ei(n);qi(e,d,{labelFetcher:a,labelDataIndex:r,defaultText:Vc(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var p=e.getTextContent();if(s&&p){var g=n.get(["label","position"]);e.textConfig.inside=g==="middle"?!0:null,rE(e,g==="outside"?c:g,ib(o),n.get(["label","rotate"]))}JD(p,d,a.getRawValue(r),function(y){return N1(t,y)});var m=n.getModel(["emphasis"]);Vi(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),nl(e,n),sE(i)&&(e.style.fill="none",e.style.stroke="none",M(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function lE(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var uE=function(){function e(){}return e}(),ym=function(e){N(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new uE},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[a]=u,l[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],r.rect(s[0],s[1],l[0],l[1])},t}(dt);function _m(e,t,r,n){var i=e.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=e.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints"),f=n?h0(e):0;if(u){var h=new ym({shape:{points:u},incremental:f,silent:!0,z2:0});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,h.useStyle(l.getItemStyle()),t.add(h),r&&r.push(h)}var v=new ym({shape:{points:i.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});v.baseDimIdx=a,v.largeDataIndices=o,v.barWidth=s,t.add(v),v.useStyle(i.getVisual("style")),v.style.stroke=null,at(v).seriesIndex=e.seriesIndex,e.get("silent")||(v.on("mousedown",Sm),v.on("mousemove",Sm)),r&&r.push(v)}var Sm=Tc(function(e){var t=this,r=fE(t,e.offsetX,e.offsetY);at(t).dataIndex=r>=0?r:null},30,!1);function fE(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,f=0,h=a.length/3;f<h;f++){var v=f*3;if(l[n]=u,l[i]=a[v+2],s[n]=a[v+n],s[i]=a[v+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function ab(e,t,r){if(Uc(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}else{var i=r.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function hE(e,t,r){var n=e.type==="polar"?ti:Lt;return new n({shape:ab(t,r,e),silent:!0,z2:0})}function vE(e,t){if(e.height===0){var r=t.getOtherAxis(t.getBaseAxis());return r.inverse?"bottom":"top"}return e.height>0?"bottom":"top"}function cE(e,t){if(e.width===0){var r=t.getOtherAxis(t.getBaseAxis());return r.inverse?"left":"right"}return e.width>=0?"right":"left"}const dE=nE;function RB(e){e.registerChartView(dE),e.registerSeriesModel(JR),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,XR(Bi)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ZR(Bi)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Y1(Bi)),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})}),KR(e)}function pE(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=t.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}function gE(e,t,r){t=z(t)&&{coordDimensions:t}||O({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=QS(n,t).dimensions,a=new Ha(i,e);return a.initData(n,r),a}var mE=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}();const yE=mE;var qr="pie",_E=ft(),ob=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new yE(_t(this.getData,this),_t(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return gE(this,{coordDimensions:["value"],encodeDefaulter:xt(GA,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=_E(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=YT(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){js(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.type="series."+qr,t.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"},t}(Dr);MA({fullType:ob.type,getCoord2:function(e){return e.getShallow("center")}});const SE=ob;var bE=Math.PI/180;function bm(e,t,r,n,i,a,o,s,l,u){if(e.length<2)return;function f(p){for(var g=p.rB,m=g*g,y=0;y<p.list.length;y++){var _=p.list[y],S=Math.abs(_.label.y-r),b=n+_.len,w=b*b,T=Math.sqrt(Math.abs((1-S*S/m)*w)),C=t+(T+_.len2)*i,x=C-_.label.x,A=_.targetTextWidth-x*i;sb(_,A,!0),_.label.x=C}}function h(p){for(var g={list:[],maxY:0},m={list:[],maxY:0},y=0;y<p.length;y++)if(p[y].labelAlignTo==="none"){var _=p[y],S=_.label.y>r?m:g,b=Math.abs(_.label.y-r);if(b>=S.maxY){var w=_.label.x-t-_.len2*i,T=n+_.len,C=Math.abs(w)<T?Math.sqrt(b*b/(1-w*w/T/T)):T;S.rB=C,S.maxY=b}S.list.push(_)}f(g),f(m)}for(var v=e.length,c=0;c<v;c++)if(e[c].position==="outer"&&e[c].labelAlignTo==="labelLine"){var d=e[c].label.x-u;e[c].linePoints[1][0]+=d,e[c].label.x=u}k2(e,1,l,l+o)&&h(e)}function wE(e,t,r,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,v=0;v<e.length;v++){var c=e[v].label;xf(e[v])||(c.x<t?(f=Math.min(f,c.x),l.push(e[v])):(h=Math.max(h,c.x),u.push(e[v])))}for(var v=0;v<e.length;v++){var d=e[v];if(!xf(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var c=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?c.x<t?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+i-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?c.x<t?g=f-o-d.bleedMargin:g=o+i-h-d.bleedMargin:c.x<t?g=c.x-o-d.bleedMargin:g=o+i-c.x-d.bleedMargin,d.targetTextWidth=g,sb(d,g,!1)}}bm(u,t,r,n,1,i,a,o,s,h),bm(l,t,r,n,-1,i,a,o,s,f);for(var v=0;v<e.length;v++){var d=e[v];if(!xf(d)&&d.linePoints){var c=d.label,p=d.linePoints,m=d.labelAlignTo==="edge",y=c.style.padding,_=y?y[1]+y[3]:0,S=c.style.backgroundColor?0:_,b=d.rect.width+S,w=p[1][0]-p[2][0];m?c.x<t?p[2][0]=o+d.edgeDistance+b+d.labelDistance:p[2][0]=o+i-d.edgeDistance-b-d.labelDistance:(c.x<t?p[2][0]=c.x+d.labelDistance:p[2][0]=c.x-d.labelDistance,p[1][0]=p[2][0]+w),p[1][1]=p[2][1]=c.y}}}function sb(e,t,r){if(e.labelStyleWidth==null){var n=e.label,i=n.style,a=e.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,f=a.width+(o?0:l);if(t<f||r){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var h=n.getBoundingRect();n.setStyle("width",Math.ceil(h.width)),n.setStyle("backgroundColor",o)}else{var v=t-l,c=t<f?v:r?v>e.unconstrainedWidth?null:v:null;n.setStyle("width",c)}lb(a,n)}}}function lb(e,t){wm.rect=e,B1(wm,t,TE)}var TE={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},wm={};function xf(e){return e.position==="center"}function xE(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*bE,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,h=s.y,v=s.height;function c(w){w.ignore=!0}function d(w){if(!w.ignore)return!0;for(var T in w.states)if(w.states[T].ignore===!1)return!0;return!1}t.each(function(w){var T=t.getItemGraphicEl(w),C=T.shape,x=T.getTextContent(),A=T.getTextGuideLine(),D=t.getItemModel(w),I=D.getModel("label"),L=I.get("position")||D.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),R=I.get("alignTo"),E=bt(I.get("edgeDistance"),u),B=I.get("bleedMargin");B==null&&(B=Math.min(u,v)>200?10:2);var k=D.getModel("labelLine"),F=k.get("length");F=bt(F,u);var G=k.get("length2");if(G=bt(G,u),Math.abs(C.endAngle-C.startAngle)<o){M(x.states,c),x.ignore=!0,A&&(M(A.states,c),A.ignore=!0);return}if(d(x)){var H=(C.startAngle+C.endAngle)/2,W=Math.cos(H),$=Math.sin(H),U,et,st,Pt;n=C.cx,i=C.cy;var Nt=L==="inside"||L==="inner";if(L==="center")U=C.cx,et=C.cy,Pt="center";else{var yt=(Nt?(C.r+C.r0)/2*W:C.r*W)+n,Ct=(Nt?(C.r+C.r0)/2*$:C.r*$)+i;if(U=yt+W*3,et=Ct+$*3,!Nt){var tt=yt+W*(F+l-C.r),lt=Ct+$*(F+l-C.r),Ye=tt+(W<0?-1:1)*G,Ft=lt;R==="edge"?U=W<0?f+E:f+u-E:U=Ye+(W<0?-P:P),et=Ft,st=[[yt,Ct],[tt,lt],[Ye,Ft]]}Pt=Nt?"center":R==="edge"?W>0?"right":"left":W>0?"left":"right"}var Lr=Math.PI,ur=0,nn=I.get("rotate");if(St(nn))ur=nn*(Lr/180);else if(L==="center")ur=0;else if(nn==="radial"||nn===!0){var zb=W<0?-H+Lr:-H;ur=zb}else if(nn==="tangential"||nn==="tangential-noflip"&&L!=="outside"&&L!=="outer"){var ii=Math.atan2(W,$);ii<0&&(ii=Lr*2+ii);var Vb=$>0;Vb&&nn!=="tangential-noflip"&&(ii=Lr+ii),ur=ii-Lr}if(a=!!ur,x.x=U,x.y=et,x.rotation=ur,x.setStyle({verticalAlign:"middle"}),Nt){x.setStyle({align:Pt});var ou=x.states.select;ou&&(ou.x+=x.x,ou.y+=x.y)}else{var au=new nt(0,0,0,0);lb(au,x),r.push({label:x,labelLine:A,position:L,len:F,len2:G,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new rt(W,$),linePoints:st,textAlign:Pt,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:B,rect:au,unconstrainedWidth:au.width,labelStyleWidth:x.style.width})}T.setTextConfig({inside:Nt})}}),!a&&e.get("avoidLabelOverlap")&&wE(r,n,i,l,u,v,f,h);for(var p=0;p<r.length;p++){var g=r[p],m=g.label,y=g.labelLine,_=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),_&&(M(m.states,c),m.ignore=!0);var S=m.states.select;S&&(S.x+=m.x,S.y+=m.y)}if(y){var b=g.linePoints;_||!b?(M(y.states,c),y.ignore=!0):(D2(b,g.minTurnAngle),A2(b,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:b}),m.__hostTarget.textGuideLineConfig={anchor:new rt(b[0][0],b[0][1])})}}}var Tm=Math.PI*2,cs=Math.PI/180,CE=_x(qr,DE);function DE(e,t){e.eachSeriesByType(qr,function(r){var n=r.getData(),i=n.mapDimension("value"),a=kA(r,t),o=a.cx,s=a.cy,l=a.r,u=a.r0,f=a.viewRect,h=-r.get("startAngle")*cs,v=r.get("endAngle"),c=r.get("padAngle")*cs;v=v==="auto"?h-Tm:-v*cs;var d=r.get("minAngle")*cs,p=d+c,g=0;n.each(i,function(E){!isNaN(E)&&g++});var m=n.getSum(i),y=Math.PI/(m||g)*2,_=r.get("clockwise"),S=r.get("roseType"),b=r.get("stillShowZeroSum"),w=n.getDataExtent(i);w[0]=0;var T=_?1:-1,C=[h,v],x=T*c/2;S0(C,!_),h=C[0],v=C[1];var A=ub(r);A.startAngle=h,A.endAngle=v,A.clockwise=_,A.cx=o,A.cy=s,A.r=l,A.r0=u;var D=Math.abs(v-h),I=D,L=0,P=h;if(n.setLayout({viewRect:f,r:l}),n.each(i,function(E,B){var k;if(isNaN(E)){n.setItemLayout(B,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:u,r:S?NaN:l});return}S!=="area"?k=m===0&&b?y:E*y:k=D/g,k<p?(k=p,I-=p):L+=E;var F=P+T*k,G=0,H=0;c>k?(G=P+T*k/2,H=G):(G=P+x,H=F-x),n.setItemLayout(B,{angle:k,startAngle:G,endAngle:H,clockwise:_,cx:o,cy:s,r0:u,r:S?ch(E,w,[u,l]):l}),P=F}),I<Tm&&g)if(I<=.001){var R=D/g;n.each(i,function(E,B){if(!isNaN(E)){var k=n.getItemLayout(B);k.angle=R;var F=0,G=0;R<c?(F=h+T*(B+1/2)*R,G=F):(F=h+T*B*R+x,G=h+T*(B+1)*R-x),k.startAngle=F,k.endAngle=G}})}else y=I/L,P=h,n.each(i,function(E,B){if(!isNaN(E)){var k=n.getItemLayout(B),F=k.angle===p?p:E*y,G=0,H=0;F<c?(G=P+T*F/2,H=G):(G=P+x,H=P+T*F-x),k.startAngle=G,k.endAngle=H,P+=T*F}})})}var ub=ft(),AE=function(e){N(t,e);function t(r,n,i){var a=e.call(this)||this;a.z2=2;var o=new Bt;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return t.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),f=r.getItemLayout(n),h=O(Ma(l.getModel("itemStyle"),f,!0),f);if(isNaN(h.startAngle)){o.setShape(h);return}if(a){o.setShape(h);var v=s.getShallow("animationType");s.ecModel.ssr?(de(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):v==="scale"?(o.shape.r=f.r0,de(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),de(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Yt(o,{shape:{endAngle:f.endAngle}},s,n))}else Xv(o),Yt(o,{shape:h},s,n);o.useStyle(r.getItemVisual(n,"style")),nl(o,l);var c=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(c)*d,g=Math.sin(c)*d,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=O({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Ma(u.getModel("itemStyle"),f)),O(o.ensureState("select"),{x:p,y:g,shape:Ma(l.getModel(["select","itemStyle"]),f)}),O(o.ensureState("blur"),{shape:Ma(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&O(y.ensureState("select"),{x:p,y:g}),O(_.ensureState("select"),{x:p,y:g}),Vi(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,f=l&&l.opacity;qi(a,ei(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var h=a.getTextContent();a.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var v=o.get(["label","position"]);if(v!=="outside"&&v!=="outer")a.removeTextGuideLine();else{var c=this.getTextGuideLine();c||(c=new Gl,this.setTextGuideLine(c)),L2(this,I2(o),{stroke:u,opacity:Bn(s.get(["lineStyle","opacity"]),f,1)})}},t}(ti),ME=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=qr,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h<o.count();++h)f=o.getItemLayout(h);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var v=ub(r),c=new ti({shape:it(v)});c.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,l.add(c)}o.diff(s).add(function(d){var p=new AE(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var g=s.getItemGraphicEl(p);g.updateData(o,d,u),g.off("click"),l.add(g),o.setItemGraphicEl(d,g)}).remove(function(d){var p=s.getItemGraphicEl(d);Ba(p,r,d)}).execute(),xE(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type=qr,t}(ze);const LE=ME;function IE(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(St(o)&&!isNaN(o)&&o<0)})}}}function EB(e){e.registerChartView(LE),e.registerSeriesModel(SE),TL(qr,e.registerAction),e.registerLayout(CE),e.registerProcessor(pE(qr)),e.registerProcessor(IE(qr))}var PE=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return tu(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var r=this.option.progressive;return r==null?this.option.large?5e3:this.get("progressive"):r},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r==null?this.option.large?1e4:this.get("progressiveThreshold"):r},t.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:K.color.primary}},universalTransition:{divideShape:"clone"}},t}(Dr);const RE=PE;var fb=4,EE=function(){function e(){}return e}(),kE=function(e){N(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new EE},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.beforeBrush=function(r){r&&!r.contentRetained&&this.reset()},t.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]<fb,f=this.softClipShape,h;if(u){this._ctx=l;return}for(this._ctx=null,h=this._off;h<i.length;){var v=i[h++],c=i[h++];isNaN(v)||isNaN(c)||f&&!f.contain(v,c)||(s.x=v-a[0]/2,s.y=c-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=h,this.notClear=!0)},t.prototype.afterBrush=function(){var r=this.shape,n=r.points,i=r.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-i[0]/2,u-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(r,n){for(var i=this.shape,a=i.points,o=i.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var f=u*2,h=a[f]-s/2,v=a[f+1]-l/2;if(r>=h&&n>=v&&r<=h+s&&n<=v+l)return u}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,f=-1/0,h=-1/0,v=0;v<i.length;){var c=i[v++],d=i[v++];l=Math.min(c,l),f=Math.max(c,f),u=Math.min(d,u),h=Math.max(d,h)}r=this._rect=new nt(l-o/2,u-s/2,f-l+o,h-u+s)}return r},t}(dt),OE=function(){function e(){this.group=new It}return e.prototype.updateData=function(t,r){this._clear(),this._data=t;var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,r)},e.prototype.updateLayout=function(t){var r=this._data;if(r){var n=r.getLayout("points");this.group.eachChild(function(i){if(i.startIndex!=null){var a=(i.endIndex-i.startIndex)*2,o=i.startIndex*4*2;n=new Float32Array(n.buffer,o,a)}i.setShape("points",n),i.reset(),i.stopAnimation()})}},e.prototype.incrementalPrepareUpdate=function(t){this._clear()},e.prototype.incrementalUpdate=function(t,r,n,i){var a=this._newAdded[0],o=r.getLayout("points"),s=a&&a.shape.points;if(s&&s.length<2e4){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),a.endIndex=t.end,a.setShape({points:u})}else{this._newAdded=[];var f=this._create();f.startIndex=t.start,f.endIndex=t.end,f.incremental=n,f.setShape({points:o}),this._setCommon(f,r,i)}},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new kE({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},e.prototype._setCommon=function(t,r,n){var i=r.hostModel;n=n||{};var a=r.getVisual("symbolSize");t.setShape("size",a instanceof Array?a:[a,a]),t.softClipShape=n.clipShape||null,t.symbolProxy=tn(r.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<fb;t.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=at(t);u.seriesIndex=i.seriesIndex,t.on("mousemove",function(f){u.dataIndex=null;var h=t.hoverDataIdx;h>=0&&(u.dataIndex=h+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const BE=OE;var NE=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,Cf(r)),this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),h0(n),Cf(n)),this._finished=r.end===n.getData().count()},t.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),this._finished){var o=Wc("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(Cf(r))}else return{update:!0}},t.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},t.prototype._updateSymbolDraw=function(r,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new BE:new F1,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(ze);function Cf(e){return{clipShape:K2(e)}}const FE=NE;var rv=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ae).models[0]},t.type="cartesian2dAxis",t}(wt);Ge(rv,kP);var hb={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:"auto",onZeroAxisIndex:null,lineStyle:{color:K.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:K.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:K.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[K.color.backgroundTint,K.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:K.color.neutral00,borderColor:K.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},zE=vt({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},hb),$c=vt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:K.color.axisMinorSplitLine,width:1}}},hb),VE=vt({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},$c),GE=mt({logBase:10},$c);const HE={category:zE,value:$c,time:VE,log:GE};function xm(e,t,r,n){M(v1,function(i,a){var o=vt(vt({},HE[a],!0),n,!0),s=function(l){N(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var v=ro(this),c=v?bo(f):{},d=h.getTheme();vt(f,d.get(a+"Axis")),vt(f,this.getDefaultOption()),f.type=Cm(f),v&&Cr(f,c,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Zh.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var h=nu();return h?h.updateModelAxisBreak(this,f):{breaks:[]}},u.type=t+"Axis."+a,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",Cm)}function Cm(e){return e.type||(e.data?"category":"value")}var UE=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return X(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ot(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}();const WE=UE;var Fs=["x","y"];function Dm(e){return(e.type==="interval"||e.type==="time")&&!ll(e)}var YE=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=yr,r.dimensions=Fs,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Dm(r)||!Dm(n))){var i=so(r,null),a=so(n,null),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,v=o[0]-i[0]*f,c=o[1]-a[0]*h,d=this._transform=[f,0,0,h,v,c];this._invTransform=co([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new nt(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Ie(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n,i){if(i=i||[],this._invTransform)return Ie(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new nt(a,o,s,l)},t}(WE);function $E(e,t){var r=e.scale,n=e.model,i=A1(r,n,n.ecModel,e,null),a=Ui(r),o=Ui(t)?t.intervalStub:t,s=a?r.intervalStub:r,l=r.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),h=u.length-1,v,c,d;if(h===1)v=c=0,d=1;else if(h===2){var p=Et(u[0].value-u[1].value),g=Et(u[1].value-u[2].value);v=c=0,p===g?d=2:(d=1,p<g?v=p/g:c=g/p)}else{var m=o.getConfig().interval;v=(1-(u[0].value-f[0].value)/m)%1,c=(1-(f[h].value-u[h].value)/m)%1,d=h-(v?1:0)-(c?1:0)}var y=i.zoomFixMM,_=y[0]||y[1],S=[i.fixMM[0]||_,i.fixMM[1]||_],b=r.getExtent(),w=s.getExtent(),T=a1(w,S),C,x,A,D,I,L;function P(W){for(var $=50,U=0;U<$&&!W();U++)A=a?A*ct(l,2):uP(A),D=qn(A)}function R(){C=ht(L-A*v,D)}function E(){x=ht(I+A*c,D)}function B(){L=v?ht(C+A*v,D):C}function k(){I=c?ht(x-A*c,D):x}if(S[0]&&S[1]){C=T[0],x=T[1],A=(x-C)/(d+v+c);var F=e.getExtent(),G=Et(F[1]-F[0]);D=WT([x,C],G,.5/d),B(),k(),Re(D)&&(A=ht(A,D))}else{var H=T[1]-T[0];A=a?ct(t0(H),1):Mv(H/d,e0),D=qn(A),S[0]?(C=T[0],P(function(){if(B(),I=ht(L+A*d,D),E(),x>=T[1])return!0})):S[1]?(x=T[1],P(function(){if(k(),L=ht(I-A*d,D),R(),C<=T[0])return!0})):P(function(){L=ht(go(T[0]/A)*A,D),I=ht(Wn(T[1]/A)*A,D);var W=wr((I-L)/A);if(W<=d){var $=d-W,U=void 0,et=i.incl0||a;if(et&&T[0]===0)U=[0,$];else if(et&&T[1]===0)U=[$,0];else{var st=Wn($/2);U=$%2===0?[st,st]:C+x<T[0]+T[1]?[st,st+1]:[st+1,st]}if(L=ht(L-A*U[0],D),I=ht(I+A*U[1],D),R(),E(),C<=T[0]&&x>=T[1])return!0}})}p1(r,S,w,[C,x],b,{interval:A,intervalCount:d,intervalPrecision:D,niceExtent:[L,I]})}var Am=[[3,1],[0,2]],XE=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Fs,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;M(this._axesList,function(o){KP(o,$P);var s=o.scale;We(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function i(o){for(var s=pt(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):$g(f)}M(l,function(h){qE(h,h.__alignTo)?$g(h):$E(h,h.__alignTo.scale)})}i(n.x),i(n.y);var a={};M(n.x,function(o){Mm(n,"y",o,a)}),M(n.y,function(o){Mm(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=Zl(t,r),a=this._rect=xr(t.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(nv(o,a),!n){var u=QE(a,s,o,l,r),f=void 0;if(l)Rm?(Rm(this._axesList,a),nv(o,a)):f=Em(a.clone(),"axisLabel",null,a,o,u,i);else{var h=JE(t,a,i),v=h.outerBoundsRect,c=h.parsedOuterBoundsContain,d=h.outerBoundsClamp;v&&(f=Em(v,c,d,a,o,u,i))}vb(a,o,Ve.determine,null,f,i),M(this._coordsList,function(p){p.calcAffineTransform()})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}q(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===r)return a[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",Ae).models[0],i=t.yAxisModel||r&&r.getReferringComponents("yAxis",Ae).models[0],a=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,ot(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,M(s.x,function(f,h){M(s.y,function(v,c){var d="x"+h+"y"+c,p=new YE(d);p.master=i,p.model=t,i._coordsMap[d]=p,i._coordsList.push(p),p.addAxis(f),p.addAxis(v)})}),Im(s.x),Im(s.y);function u(f){return function(h,v){if(ZE(h,t)){var c=h.get("position");f==="x"?c!=="top"&&c!=="bottom"&&(c=o.bottom?"top":"bottom"):c!=="left"&&c!=="right"&&(c=o.left?"right":"left"),o[c]=!0;var d=xP(h),p=new vR(f,CP(h,d,!0),[0,0],d,c);p.onBand=g1(p.scale,h),p.inverse=h.get("inverse"),h.axis=p,p.model=h,p.grid=a,p.index=v,a._axesList.push(p),s[f][v]=p,l[f]++}}}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return M(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);ot(r,a)<0&&r.push(a),ot(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(i,a){var o=new e(i,t,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o),M(o._axesList,function(s){qP(s,e.dimIdxMap)})}),t.eachSeries(function(i){var a,o;PA({targetModel:i,coordSysType:yr,coordSysProvider:s});function s(){var l=PR(i),u=l.xAxisModel,f=l.yAxisModel;a=u.axis,o=f.axis;var h=u.getCoordSysModel(),v=h.coordinateSystem;return v.getCartesian(u.componentIndex,f.componentIndex)}a&&o&&(Hg(a,i,yr),Hg(o,i,yr))},this),n},e.dimensions=Fs,e.dimIdxMap=Pc(Fs),e}();function ZE(e,t){return e.getCoordSysModel()===t}function Mm(e,t,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)Lm(s,i[l])&&(a=i[l]);else for(var u in i)if(J(i,u)&&Lm(s,i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(h){return h.dim+"_"+h.index}}function Lm(e,t){if(!t)return!1;var r=t.scale,n=DP(r,0,!1),i=t&&t.type!=="category"&&t.type!=="time"&&n!==qh;return i&&e==="auto"&&IP(t)&&(i=!1),i}function Im(e){for(var t=pt(e),r,n=[],i=t.length-1;i>=0;i--){var a=e[+t[i]];i1(a.scale)&&d1(a.model,a.type,!0)==null&&(a.model.get("alignTicks")&&a.model.get("interval")==null?n.push(a):r=a)}r||(r=n.pop()),r&&M(n,function(o){o.__alignTo=r})}function qE(e,t){return ll(e.scale)||ll(t.scale)||t.scale.getTicks().length<2}function KE(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return n-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}function nv(e,t){M(e.x,function(r){return Pm(r,t.x,t.width)}),M(e.y,function(r){return Pm(r,t.y,t.height)})}function Pm(e,t,r){var n=[0,r],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),KE(e,t)}var Rm;function Em(e,t,r,n,i,a,o){vb(n,i,Ve.estimate,t,!1,o);var s=[0,0,0,0];u(0),u(1),f(n,0,NaN),f(n,1,NaN);var l=rw(s,function(v){return v>0})==null;return al(n,s,!0,!0,r),nv(i,n),l;function u(v){M(i[Gr[v]],function(c){if(lo(c.model)){var d=a.ensureRecord(c.model),p=d.labelInfoList;if(p)for(var g=0;g<p.length;g++){var m=p[g],y=c.scale.normalize(wo(c.scale,Kn(m.label).labelInfo.tick));y=v===1?1-y:y,f(m.rect,v,y),f(m.rect,1-v,NaN)}var _=d.nameLayout;if(_){var y=Wi(d.nameLocation)?.5:NaN;f(_.rect,v,y),f(_.rect,1-v,NaN)}}})}function f(v,c,d){var p=e[Gr[c]]-v[Gr[c]],g=v[Gi[c]]+v[Gr[c]]-(e[Gi[c]]+e[Gr[c]]);p=h(p,1-d),g=h(g,d);var m=Am[c][0],y=Am[c][1];s[m]=ct(s[m],p),s[y]=ct(s[y],g)}function h(v,c){return v>0&&!Xa(c)&&c>1e-4&&(v/=c),v}}function QE(e,t,r,n,i){var a=new X1(jE);return M(r,function(o){return M(o,function(s){if(lo(s.model)){var l=!n;s.axisBuilder=RR(e,t,s.model,i,a,l)}})}),a}function vb(e,t,r,n,i,a){var o=r===Ve.determine;M(t,function(u){return M(u,function(f){lo(f.model)&&(ER(f.axisBuilder,e,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[Gr[1-u]]=e[Gi[u]]<=a.refContainer[Gi[u]]*.5?0:1-u===1?2:1}M(t,function(u,f){return M(u,function(h){lo(h.model)&&((n==="all"||o)&&h.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&h.axisBuilder.build({axisLine:!0}))})})}function JE(e,t,r){var n,i=e.get("outerBoundsMode",!0);i==="same"?n=t.clone():(i==null||i==="auto")&&(n=xr(e.get("outerBounds",!0)||tb,r.refContainer));var a=e.get("outerBoundsContain",!0),o;a==null||a==="auto"||ot(["all","axisLabel"],a)<0?o="all":o=a;var s=[dh(Y(e.get("outerBoundsClampWidth",!0),xl[0]),t.width),dh(Y(e.get("outerBoundsClampHeight",!0),xl[1]),t.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var jE=function(e,t,r,n,i,a){var o=r.axis.dim==="x"?"y":"x";Z1(e,t,r,n,i,a),Wi(e.nameLocation)||M(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&K1(s.labelInfoList,s.dirVec,n,i)})};const tk=XE;function ek(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return rk(r,e,t),r.seriesInvolved&&ik(r,e),r}function rk(e,t,r){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];M(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=uo(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var f=s.model,h=f.getModel("tooltip",n);if(M(s.getAxes(),xt(p,!1,null)),s.getTooltipAxes&&n&&h.get("show")){var v=h.get("trigger")==="axis",c=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(v||c)&&M(d.baseAxes,xt(p,c?"cross":!0,v)),c&&M(d.otherAxes,xt(p,"cross",!1))}function p(g,m,y){var _=y.model.getModel("axisPointer",i),S=_.get("show");if(!(!S||S==="auto"&&!g&&!iv(_))){m==null&&(m=_.get("triggerTooltip")),_=g?nk(y,h,i,t,g,m):_;var b=_.get("snap"),w=_.get("triggerEmphasis"),T=uo(y.model),C=m||b||y.type==="category",x=e.axesInfo[T]={key:T,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:w,involveSeries:C,snap:b,useHandle:iv(_),seriesModels:[],linkGroup:null};u[T]=x,e.seriesInvolved=e.seriesInvolved||C;var A=ak(a,y);if(A!=null){var D=o[A]||(o[A]={axesInfo:{}});D.axesInfo[T]=x,D.mapper=a[A].mapper,x.linkGroup=D}}}})}function nk(e,t,r,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};M(s,function(v){l[v]=it(o.get(v))}),l.snap=e.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f!=null?f:!0,!a){var h=l.lineStyle=o.get("crossStyle");h&&mt(u,h.textStyle)}}return e.model.getModel("axisPointer",new Wt(l,r,n))}function ik(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||!n.model||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||M(e.coordSysAxesInfo[uo(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function ak(e,t){for(var r=t.model,n=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(Df(a[n+"AxisId"],r.id)||Df(a[n+"AxisIndex"],r.componentIndex)||Df(a[n+"AxisName"],r.name))return i}}function Df(e,t){return e==="all"||z(e)&&ot(e,t)>=0||e===t}function ok(e){var t=Xc(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=iv(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function Xc(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[uo(e)]}function sk(e){var t=Xc(e);return t&&t.axisPointerModel}function iv(e){return!!e.get(["handle","show"])}function uo(e){return e.type+"||"+e.id}var km={},lk=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){this.axisPointerClass&&ok(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},t.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},t.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=sk(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){km[r]=n},t.getAxisPointerClass=function(r){return r&&km[r]},t.type="axis",t}(Ee);const cb=lk;var av=ft();function uk(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,h=av(e).splitAreaColors,v=Q(),c=0;if(h)for(var d=0;d<u.length;d++){var p=h.get(u[d].tickValue);if(p!=null){c=(p+(f-1)*d)%f;break}}var g=i.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=z(s)?s:[s];for(var d=1;d<u.length;d++){var y=i.toGlobalCoord(u[d].coord),_=void 0,S=void 0,b=void 0,w=void 0;i.isHorizontal()?(_=g,S=l.y,b=y-_,w=l.height,g=_+b):(_=l.x,S=g,b=l.width,w=y-S,g=S+w);var T=u[d-1].tickValue;T!=null&&v.set(T,c),t.add(new Lt({anid:T!=null?"area_"+T:null,shape:{x:_,y:S,width:b,height:w},style:mt({fill:s[c]},m),autoBatch:!0,silent:!0})),c=(c+1)%f}av(e).splitAreaColors=v}}}function fk(e){av(e).splitAreaColors=null}var hk=["splitArea","splitLine","minorSplitLine","breakArea"],db=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new It,this.group.add(this._axisGroup),!!lo(r)){this._axisGroup.add(r.axis.axisBuilder.group),M(hk,function(l){r.get([l,"show"])&&vk[l](this,this._axisGroup,r,r.getCoordSysModel(),i)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||g_(o,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)}},t.prototype.remove=function(){fk(this)},t.type="cartesianAxis",t}(cb),vk={splitLine:function(e,t,r,n,i){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=z(l)?l:[l];for(var h=n.coordinateSystem.getRect(),v=a.isHorizontal(),c=0,d=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],m=s.getLineStyle(),y=0;y<d.length;y++){var _=a.toGlobalCoord(d[y].coord);if(!(y===0&&!u||y===d.length-1&&!f)){var S=d[y].tickValue;v?(p[0]=_,p[1]=h.y,g[0]=_,g[1]=h.y+h.height):(p[0]=h.x,p[1]=_,g[0]=h.x+h.width,g[1]=_);var b=c++%l.length,w=new Jr({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},style:mt({stroke:l[b]},m),silent:!0});to(w.shape,m.lineWidth),t.add(w)}}}},minorSplitLine:function(e,t,r,n,i){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var h=[],v=[],c=s.getLineStyle(),d=0;d<f.length;d++)for(var p=0;p<f[d].length;p++){var g=a.toGlobalCoord(f[d][p].coord);u?(h[0]=g,h[1]=l.y,v[0]=g,v[1]=l.y+l.height):(h[0]=l.x,h[1]=g,v[0]=l.x+l.width,v[1]=g);var m=new Jr({anid:"minor_line_"+f[d][p].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:v[0],y2:v[1]},style:c,silent:!0});to(m.shape,c.lineWidth),t.add(m)}},splitArea:function(e,t,r,n,i){uk(e,t,r,n)},breakArea:function(e,t,r,n,i){var a=nu(),o=r.axis.scale;a&&o.type!=="ordinal"&&a.rectCoordBuildBreakAxis(t,e,r,n.coordinateSystem.getRect(),i)}},pb=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(db),ck=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=pb.type,r}return t.type="yAxis",t}(db),dk=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new Lt({shape:r.coordinateSystem.getRect(),style:mt({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Ee),Om={offset:0};function gb(e){e.registerComponentView(dk),e.registerComponentModel(GR),e.registerCoordinateSystem("cartesian2d",tk),xm(e,"x",rv,Om),xm(e,"y",rv,Om),e.registerComponentView(pb),e.registerComponentView(ck),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function kB(e){en(gb),e.registerSeriesModel(RE),e.registerChartView(FE),e.registerLayout(Wc("scatter"))}var Bm=Jr.prototype,Af=Uv.prototype,mb=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(mb);function Mf(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var pk=function(e){N(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:K.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new mb},t.prototype.buildPath=function(r,n){Mf(n)?Bm.buildPath.call(this,r,n):Af.buildPath.call(this,r,n)},t.prototype.pointAt=function(r){return Mf(this.shape)?Bm.pointAt.call(this,r):Af.pointAt.call(this,r)},t.prototype.tangentAt=function(r){var n=this.shape,i=Mf(n)?[n.x2-n.x1,n.y2-n.y1]:Af.tangentAt.call(this,r);return bv(i,i)},t}(dt);const gk=pk;var Lf=["fromSymbol","toSymbol"];function Nm(e){return"_"+e+"Type"}function Fm(e,t,r){var n=t.getItemVisual(r,e);if(!n||n==="none")return n;var i=t.getItemVisual(r,e+"Size"),a=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=xc(i),u=Jl(o||0,l);return n+l+u+(a||"")+(s||"")}function zm(e,t,r){var n=t.getItemVisual(r,e);if(!(!n||n==="none")){var i=t.getItemVisual(r,e+"Size"),a=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=xc(i),u=Jl(o||0,l),f=tn(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,f.name=e,f}}function mk(e){var t=new gk({name:"line",subPixelOptimize:!0});return ov(t.shape,e),t}function ov(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var r=t[2];r?(e.cpx1=r[0],e.cpy1=r[1]):(e.cpx1=NaN,e.cpy1=NaN)}var yk=function(e){N(t,e);function t(r,n,i){var a=e.call(this)||this;return a._createLine(r,n,i),a}return t.prototype._createLine=function(r,n,i){var a=r.hostModel,o=r.getItemLayout(n),s=r.getItemVisual(n,"z2"),l=mk(o);l.shape.percent=0,de(l,{z2:Y(s,0),shape:{percent:1}},a,n),this.add(l),M(Lf,function(u){var f=zm(u,r,n);this.add(f),this[Nm(u)]=Fm(u,r,n)},this),this._updateCommonStl(r,n,i)},t.prototype.updateData=function(r,n,i){var a=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};ov(l.shape,s),Yt(o,l,a,n),M(Lf,function(u){var f=Fm(u,r,n),h=Nm(u);if(this[h]!==f){this.remove(this.childOfName(u));var v=zm(u,r,n);this.add(v)}this[h]=f},this),this._updateCommonStl(r,n,i)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(r,n,i){var a=r.hostModel,o=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,u=i&&i.selectLineStyle,f=i&&i.labelStatesModels,h=i&&i.emphasisDisabled,v=i&&i.focus,c=i&&i.blurScope;if(!i||r.hasItemOption){var d=r.getItemModel(n),p=d.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),h=p.get("disabled"),v=p.get("focus"),c=p.get("blurScope"),f=ei(d)}var g=r.getItemVisual(n,"style"),m=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,M(Lf,function(w){var T=this.childOfName(w);if(T){T.setColor(m),T.style.opacity=g.opacity;for(var C=0;C<fe.length;C++){var x=fe[C],A=o.getState(x);if(A){var D=A.style||{},I=T.ensureState(x),L=I.style||(I.style={});D.stroke!=null&&(L[T.__isEmptyBrush?"stroke":"fill"]=D.stroke),D.opacity!=null&&(L.opacity=D.opacity)}}T.markRedraw()}},this);var y=a.getRawValue(n);qi(this,f,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(w,T){return a.getFormattedLabel(w,T,r.dataType)}},inheritColor:m||K.color.neutral99,defaultOpacity:g.opacity,defaultText:(y==null?r.getName(n):isFinite(y)?ht(y,10):y)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var b=S.get("distance");z(b)||(b=[b,b]),_.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),Vi(this,v,c,h)},t.prototype.highlight=function(){Ja(this)},t.prototype.downplay=function(){ja(this)},t.prototype.updateLayout=function(r,n){this.childOfName("line").stopAnimation(),this.setLinePoints(r.getItemLayout(n))},t.prototype.setLinePoints=function(r){var n=this.childOfName("line");ov(n.shape,r),n.dirty()},t.prototype.beforeUpdate=function(){var r=this,n=r.childOfName("fromSymbol"),i=r.childOfName("toSymbol"),a=r.getTextContent();if(!n&&!i&&(!a||a.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=r.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),h=l.pointAt(u),v=Dy([],h,f);bv(v,v);function c(A,D){var I=A.__specifiedRotation;if(I==null){var L=l.tangentAt(D);A.attr("rotation",(D===1?-1:1)*Math.PI/2-Math.atan2(L[1],L[0]))}else A.attr("rotation",I)}if(n&&(n.setPosition(f),c(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&(i.setPosition(h),c(i,1),i.scaleX=i.scaleY=o*u,i.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var d=void 0,p=void 0,g=a.__labelDistance,m=g[0]*o,y=g[1]*o,_=u/2,S=l.tangentAt(_),b=[S[1],-S[0]],w=l.pointAt(_);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var T=S[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var C=-Math.atan2(S[1],S[0]);h[0]<f[0]&&(C=Math.PI+C),a.rotation=C}var x=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":x=-y,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":x=y,p="top";break;default:x=0,p="middle"}switch(a.__position){case"end":a.x=v[0]*m+h[0],a.y=v[1]*y+h[1],d=v[0]>.8?"left":v[0]<-.8?"right":"center",p=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":a.x=-v[0]*m+f[0],a.y=-v[1]*y+f[1],d=v[0]>.8?"right":v[0]<-.8?"left":"center",p=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=m*T+f[0],a.y=f[1]+x,d=S[0]<0?"right":"left",a.originX=-m*T,a.originY=-x;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=w[0],a.y=w[1]+x,d="center",a.originY=-x;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-m*T+h[0],a.y=h[1]+x,d=S[0]>=0?"right":"left",a.originX=m*T,a.originY=-x;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||p,align:a.__align||d})}},t}(It);const _k=yk;var Sk=function(){function e(t){this.group=new It,this._LineCtor=t||_k}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=t,a||i.removeAll();var o=Vm(t);t.diff(a).add(function(s){r._doAdd(t,s,o)}).update(function(s,l){r._doUpdate(a,t,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Vm(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[];function i(l){!l.isGroup&&!bk(l)&&(l.incremental=n,l.ensureState("emphasis").hoverLayer=Hl)}for(var a=t.start;a<t.end;a++){var o=r.getItemLayout(a);if(If(o)){var s=new this._LineCtor(r,a,this._seriesScope);s.traverse(i),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){So(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,r,n){var i=t.getItemLayout(r);if(If(i)){var a=new this._LineCtor(t,r,n);t.setItemGraphicEl(r,a),this.group.add(a)}},e.prototype._doUpdate=function(t,r,n,i,a){var o=t.getItemGraphicEl(n);if(!If(r.getItemLayout(i))){this.group.remove(o);return}o?o.updateData(r,i,a):o=new this._LineCtor(r,i,a),r.setItemGraphicEl(i,o),this.group.add(o)},e}();function bk(e){return e.animators&&e.animators.length>0}function Vm(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:ei(t)}}function Gm(e){return isNaN(e[0])||isNaN(e[1])}function If(e){return e&&!Gm(e[0])&&!Gm(e[1])}const wk=Sk;var yb={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Hm=pt(yb);_r(br,function(e,t){return e[t]=1,e},{});br.join(", ");var Cl=["","style","shape","extra"],Yi=ft();function Zc(e,t,r,n,i){var a=e+"Animation",o=Yv(e,n,i)||{},s=Yi(t).userDuring;return o.duration>0&&(o.during=s?_t(Mk,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),O(o,r[a]),o}function Pf(e,t,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=Yi(e),u=t.style;l.userDuring=t.during;var f={},h={};if(Ik(e,t,h),e.type==="compound")for(var v=e.shape.paths,c=t.shape.paths,d=0;d<c.length;d++){var p=c[d];Rf("shape",p,v[d])}else Rf("shape",t,h),Rf("extra",t,h);if(!a&&s&&(Lk(e,t,f),Um("shape",e,t,f),Um("extra",e,t,f),Pk(e,t,u,f)),h.style=u,xk(e,h,o),Dk(e,t),s)if(a){var g={};M(Cl,function(y){var _=y?t[y]:t;_&&_.enterFrom&&(y&&(g[y]=g[y]||{}),O(y?g[y]:g,_.enterFrom))});var m=Zc("enter",e,t,r,i);m.duration>0&&e.animateFrom(g,m)}else Ck(e,t,i||0,r,f);_b(e,t),u?e.dirty():e.markRedraw()}function _b(e,t){for(var r=Yi(e).leaveToProps,n=0;n<Cl.length;n++){var i=Cl[n],a=i?t[i]:t;a&&a.leaveTo&&(r||(r=Yi(e).leaveToProps={}),i&&(r[i]=r[i]||{}),O(i?r[i]:r,a.leaveTo))}}function Tk(e,t,r,n){if(e){var i=e.parent,a=Yi(e).leaveToProps;if(a){var o=Zc("update",e,t,r,0);o.done=function(){i&&i.remove(e),n&&n()},e.animateTo(a,o)}else i&&i.remove(e),n&&n()}}function Hn(e){return e==="all"}function xk(e,t,r){var n=t.style;if(!e.isGroup&&n){if(r){e.useStyle({});for(var i=e.animators,a=0;a<i.length;a++){var o=i[a];o.targetName==="style"&&o.changeTarget(e.style)}}e.setStyle(n)}t&&(t.style=null,t&&e.attr(t),t.style=n)}function Ck(e,t,r,n,i){if(i){var a=Zc("update",e,t,n,r);a.duration>0&&e.animateFrom(i,a)}}function Dk(e,t){J(t,"silent")&&(e.silent=t.silent),J(t,"ignore")&&(e.ignore=t.ignore),e instanceof Jn&&J(t,"invisible")&&(e.invisible=t.invisible),e instanceof dt&&J(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var Qe={},Ak={setTransform:function(e,t){return Qe.el[e]=t,this},getTransform:function(e){return Qe.el[e]},setShape:function(e,t){var r=Qe.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=Qe.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=Qe.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=Qe.el.style;if(t)return t[e]},setExtra:function(e,t){var r=Qe.el.extra||(Qe.el.extra={});return r[e]=t,this},getExtra:function(e){var t=Qe.el.extra;if(t)return t[e]}};function Mk(){var e=this,t=e.el;if(t){var r=Yi(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}Qe.el=t,n(Ak)}}function Um(e,t,r,n){var i=r[e];if(i){var a=t[e],o;if(a){var s=r.transition,l=i.transition;if(l)if(!o&&(o=n[e]={}),Hn(l))O(o,a);else for(var u=Gt(l),f=0;f<u.length;f++){var h=u[f],v=a[h];o[h]=v}else if(Hn(s)||ot(s,e)>=0){!o&&(o=n[e]={});for(var c=pt(a),f=0;f<c.length;f++){var h=c[f],v=a[h];Rk(i[h],v)&&(o[h]=v)}}}}}function Rf(e,t,r){var n=t[e];if(n)for(var i=r[e]={},a=pt(n),o=0;o<a.length;o++){var s=a[o];i[s]=Ra(n[s])}}function Lk(e,t,r){for(var n=t.transition,i=Hn(n)?br:Gt(n||[]),a=0;a<i.length;a++){var o=i[a];if(!(o==="style"||o==="shape"||o==="extra")){var s=e[o];r[o]=s}}}function Ik(e,t,r){for(var n=0;n<Hm.length;n++){var i=Hm[n],a=yb[i],o=t[i];o&&(r[a[0]]=o[0],r[a[1]]=o[1])}for(var n=0;n<br.length;n++){var s=br[n];t[s]!=null&&(r[s]=t[s])}}function Pk(e,t,r,n){if(r){var i=e.style,a;if(i){var o=r.transition,s=t.transition;if(o&&!Hn(o)){var l=Gt(o);!a&&(a=n.style={});for(var u=0;u<l.length;u++){var f=l[u],h=i[f];a[f]=h}}else if(e.getAnimationStyleProps&&(Hn(s)||Hn(o)||ot(s,"style")>=0)){var v=e.getAnimationStyleProps(),c=v?v.style:null;if(c){!a&&(a=n.style={});for(var d=pt(r),u=0;u<d.length;u++){var f=d[u];if(c[f]){var h=i[f];a[f]=h}}}}}}}function Rk(e,t){return ne(e)?e!==t:e!=null&&isFinite(e)}var Sb=ft(),Ek=["percent","easing","shape","style","extra"];function kk(e){e.stopAnimation("keyframe"),e.attr(Sb(e))}function sv(e,t,r){if(!(!r.isAnimationEnabled()||!t)){if(z(t)){M(t,function(s){sv(e,s,r)});return}var n=t.keyframes,i=t.duration;if(r&&i==null){var a=Yv("enter",r,0);i=a&&a.duration}if(!(!n||!i)){var o=Sb(e);M(Cl,function(s){if(!(s&&!e[s])){var l;n.sort(function(u,f){return u.percent-f.percent}),M(n,function(u){var f=e.animators,h=s?u[s]:u;if(h){var v=pt(h);if(s||(v=Ot(v,function(p){return ot(Ek,p)<0})),!!v.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var c=0;c<f.length;c++)f[c]!==l&&f[c].targetName===l.targetName&&f[c].stopTracks(v);s&&(o[s]=o[s]||{});var d=s?o[s]:o;M(v,function(p){d[p]=((s?e[s]:e)||{})[p]}),l.whenWithKeys(i*u.percent,h,v,u.easing)}}}),l&&l.delay(t.delay||0).duration(i).start(t.easing)}})}}}var In=ft(),Wm=it,Ef=_t,Ok=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,r,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new It,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var v=xt(Ym,r,h);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,r)}Xm(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&ta(i).w>s)return!0;if(o){var l=Xc(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=In(t).pointerEl=new XD[a.type](Wm(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=In(t).labelEl=new Bt(Wm(r.label));t.add(a),$m(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=In(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=In(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),$m(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Kv(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){My(u.event)},onmousedown:Ef(this._onHandleDragMove,this,0,0),drift:Ef(this._onHandleDragMove,this),ondragend:Ef(this._onHandleDragEnd,this)}),n.add(i)),Xm(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");z(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,pS(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){Ym(this._axisPointerModel,!r&&this._moveAnimation,this._handle,kf(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(kf(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(kf(i)),In(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Nh(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function Ym(e,t,r,n){bb(In(r).lastProp,n)||(In(r).lastProp=n,t?Yt(r,n,e):(r.stopAnimation(),r.attr(n)))}function bb(e,t){if(q(e)&&q(t)){var r=!0;return M(t,function(n,i){r=r&&bb(e[i],n)}),!!r}else return e===t}function $m(e,t){e[t.get(["label","show"])?"show":"hide"]()}function kf(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Xm(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}const Bk=Ok;function Nk(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function Fk(e,t,r,n,i){var a=r.get("value"),o=wb(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Xl(s.get("padding")||0),u=s.getFont(),f=Zy(o,u),h=i.position,v=f.width+l[1]+l[3],c=f.height+l[0]+l[2],d=i.align;d==="right"&&(h[0]-=v),d==="center"&&(h[0]-=v/2);var p=i.verticalAlign;p==="bottom"&&(h[1]-=c),p==="middle"&&(h[1]-=c/2),zk(h,v,c,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:h[0],y:h[1],style:jr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function zk(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function wb(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:ml(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};M(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),Z(o)?a=o.replace("{value}",a):j(o)&&(a=o(s))}return a}function Tb(e,t,r){var n=rr();return xv(n,n,r.rotation),Kf(n,n,r.position),qv([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function Vk(e,t,r,n,i,a){var o=j1.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),Fk(t,n,i,a,{position:Tb(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Gk(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function Hk(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function Uk(e,t,r){return ta(e,{fromStat:{sers:X(t,function(n){return r.getSeriesByIndex(n.seriesIndex)})},min:1}).w}function Wk(e,t,r){return[ct(Qt(t[0],t[1]),e-r/2),Qt(e+r/2,ct(t[0],t[1]))]}var Yk=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=s.getGlobalExtent(),h=Zm(l,s).getOtherAxis(s).getGlobalExtent(),v=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var c=Nk(a),d=$k[u](s,v,f,h,a.get("seriesDataIndices"),a.ecModel);d.style=c,r.graphicKey=d.type,r.pointer=d}var p=Tl(l.getRect(),i);Vk(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=Tl(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=Tb(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Zm(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[r.x,r.y];h[f]+=n[f],h[f]=Qt(l[1],h[f]),h[f]=ct(l[0],h[f]);var v=(u[1]+u[0])/2,c=[v,v];c[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:r.rotation,cursorPoint:c,tooltipOption:d[f]}},t}(Bk);function Zm(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var $k={line:function(e,t,r,n){var i=Gk([t,n[0]],[t,n[1]],qm(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,r,n,i,a){var o=Uk(e,i,a),s=n[1]-n[0],l=Wk(t,r,o),u=l[0],f=l[1];return{type:"Rect",shape:Hk([u,n[0]],[f-u,s],qm(e))}}};function qm(e){return e.dim==="x"?0:1}const Xk=Yk;var Zk=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:K.color.border,width:1,type:"dashed"},shadowStyle:{color:K.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:K.color.neutral00,padding:[5,7,5,7],backgroundColor:K.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:K.color.accent40,throttle:40}},t}(wt);const qk=Zk;var mr=ft(),Kk=M;function xb(e,t,r){if(!ut.node){var n=t.getZr();mr(n).records||(mr(n).records={}),Qk(n,t);var i=mr(n).records[e]||(mr(n).records[e]={});i.handler=r}}function Qk(e,t){if(mr(e).initialized)return;mr(e).initialized=!0,r("click",xt(Of,"click")),r("mousemove",xt(Of,"mousemove")),r("mousewheel",xt(Of,"mousewheel")),r("globalout",jk);function r(n,i){e.on(n,function(a){var o=tO(t);Kk(mr(e).records,function(s){s&&i(s,a,o.dispatchAction)}),Jk(o.pendings,t)})}}function Jk(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function jk(e,t,r){e.handler("leave",null,r)}function Of(e,t,r,n){t.handler(e,r,n)}function tO(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function lv(e,t){if(!ut.node){var r=t.getZr(),n=(mr(r).records||{})[e];n&&(mr(r).records[e]=null)}}var eO=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click|mousewheel";xb("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){lv("axisPointer",n)},t.prototype.dispose=function(r,n){lv("axisPointer",n)},t.type="axisPointer",t}(Ee);const rO=eO;function Cb(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Yn(a,e);if(o==null||o<0||z(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,v=u.dim,c=h==="x"||h==="radius"?1:0,d=a.mapDimension(v),p=[];p[c]=a.get(d,o),p[1-c]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(a.getValues(X(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var Km=ft();function nO(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||_t(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){zs(i)&&(i=Cb({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=zs(i),u=a.axesInfo,f=s.axesInfo,h=n==="leave"||zs(i),v={},c={},d={list:[],map:{}},p={showPointer:xt(aO,c),showTooltip:xt(oO,d)};M(s.coordSysMap,function(m,y){var _=l||m.containPoint(i);M(s.coordSysAxesInfo[y],function(S,b){var w=S.axis,T=fO(u,S);if(!h&&_&&(!u||T)){var C=T&&T.value;C==null&&!l&&(C=w.pointToData(i)),C!=null&&Qm(S,C,p,!1,v)}})});var g={};return M(f,function(m,y){var _=m.linkGroup;_&&!c[y]&&M(_.axesInfo,function(S,b){var w=c[b];if(S!==m&&w){var T=w.value;_.mapper&&(T=m.axis.scale.parse(_.mapper(T,Jm(S),Jm(m)))),g[m.key]=T}})}),M(g,function(m,y){Qm(f[y],m,p,!0,v)}),sO(c,f,v),lO(d,i,e,o),uO(f,o,r),v}}function Qm(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=iO(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&O(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function iO(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return M(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),h,v;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(f,e,r);v=c.dataIndices,h=c.nestestValue}else{if(v=l.indicesOfNearest(n,f[0],e,r.type==="category"?.5:null),!v.length)return;h=l.getData().get(f[0],v[0])}if(Re(h)){var d=e-h,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,i=h,a.length=0),M(v,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function aO(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function oO(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=uo(l),f=e.map[u];f||(f=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function sO(e,t,r){var n=r.axesInfo=[];M(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function lO(e,t,r,n){if(zs(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function uO(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=Km(n)[i]||{},o=Km(n)[i]={};M(e,function(f,h){var v=f.axisPointerModel.option;v.status==="show"&&f.triggerEmphasis&&M(v.seriesDataIndices,function(c){o[c.seriesIndex+"|"+c.dataIndex]=c})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}M(a,function(f,h){!o[h]&&l.push(u(f))}),M(o,function(f,h){!a[h]&&s.push(u(f))}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function fO(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Jm(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function zs(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Db(e){cb.registerAxisPointerClass("CartesianAxisPointer",Xk),e.registerComponentModel(qk),e.registerComponentView(rO),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!z(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=ek(t,r)}}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},nO)}function OB(e){en(gb),en(Db)}function hO(e,t){var r=e.existing;if(t.id=e.keyInfo.id,!t.type&&r&&(t.type=r.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:r&&(t.parentId=r.parentId)}t.parentOption=null}function jm(e,t){var r;return M(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function vO(e,t,r){var n=O({},r),i=e[t],a=r.$action||"merge";a==="merge"?i?(vt(i,n,!0),Cr(i,n,{ignoreSize:!0}),z_(r,i),ds(r,i),ds(r,i,"shape"),ds(r,i,"style"),ds(r,i,"extra"),r.clipPath=i.clipPath):e[t]=n:a==="replace"?e[t]=n:a==="remove"&&i&&(e[t]=null)}var Ab=["transition","enterFrom","leaveTo"],cO=Ab.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function ds(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?Ab:cO,i=0;i<n.length;i++){var a=n[i];e[a]==null&&t[a]!=null&&(e[a]=t[a])}}function dO(e,t){if(e&&(e.hv=t.hv=[jm(t,["left","right"]),jm(t,["top","bottom"])],e.type==="group")){var r=e,n=t;r.width==null&&(r.width=n.width=0),r.height==null&&(r.height=n.height=0)}}var pO=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventAutoZ=!0,r}return t.prototype.mergeOption=function(r,n){var i=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,r,n),this.option.elements=i},t.prototype.optionUpdated=function(r,n){var i=this.option,a=(n?i:r).elements,o=i.elements=n?[]:i.elements,s=[];this._flatten(a,s,null);var l=a0(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];M(l,function(f,h){var v=f.newOption;v&&(u.push(v),hO(f,v),vO(o,h,v),dO(o[h],v))},this),i.elements=Ot(o,function(f){return f&&delete f.$action,f!=null})},t.prototype._flatten=function(r,n,i){M(r,function(a){if(a){i&&(a.parentOption=i),n.push(a);var o=a.children;o&&o.length&&this._flatten(o,n,a),delete a.children}},this)},t.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},t.type="graphic",t.defaultOption={elements:[]},t}(wt),ty={path:null,compoundPath:null,group:It,image:rn,text:Bt},we=ft(),gO=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this._elMap=Q()},t.prototype.render=function(r,n,i){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,i)},t.prototype._updateElements=function(r){var n=r.useElOptionsToUpdate();if(n){var i=this._elMap,a=this.group,o=r.get("z"),s=r.get("zlevel");M(n,function(l){var u=le(l.id,null),f=u!=null?i.get(u):null,h=le(l.parentId,null),v=h!=null?i.get(h):a,c=l.type,d=l.style;c==="text"&&d&&l.hv&&l.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var p=l.textContent,g=l.textConfig;if(d&&Q2(d,c,!!g,!!p)){var m=J2(d,c,!0);!g&&m.textConfig&&(g=l.textConfig=m.textConfig),!p&&m.textContent&&(p=m.textContent)}var y=mO(l),_=l.$action||"merge",S=_==="merge",b=_==="replace";if(S){var w=!f,T=f;w?T=ey(u,v,l.type,i):(T&&(we(T).isNew=!1),kk(T)),T&&(Pf(T,y,r,{isInit:w}),ry(T,l,o,s))}else if(b){Vs(f,l,i,r);var C=ey(u,v,l.type,i);C&&(Pf(C,y,r,{isInit:!0}),ry(C,l,o,s))}else _==="remove"&&(_b(f,l),Vs(f,l,i,r));var x=i.get(u);if(x&&p)if(S){var A=x.getTextContent();A?A.attr(p):x.setTextContent(new Bt(p))}else b&&x.setTextContent(new Bt(p));if(x){var D=l.clipPath;if(D){var I=D.type,L=void 0,w=!1;if(S){var P=x.getClipPath();w=!P||we(P).type!==I,L=w?uv(I):P}else b&&(w=!0,L=uv(I));x.setClipPath(L),Pf(L,D,r,{isInit:w}),sv(L,D.keyframeAnimation,r)}var R=we(x);x.setTextConfig(g),R.option=l,yO(x,r,l),_o({el:x,componentModel:r,itemName:x.name,itemTooltipOption:l.tooltip}),sv(x,l.keyframeAnimation,r)}})}},t.prototype._relocate=function(r,n){for(var i=r.option.elements,a=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],f=0;f<i.length;f++){var h=i[f],v=le(h.id,null),c=v!=null?o.get(v):null;if(!(!c||!c.isGroup)){var d=c.parent,p=d===a,g=we(c),m=we(d);g.width=bt(g.option.width,p?s:m.width)||0,g.height=bt(g.option.height,p?l:m.height)||0}}for(var f=i.length-1;f>=0;f--){var h=i[f],v=le(h.id,null),c=v!=null?o.get(v):null;if(c){var d=c.parent,m=we(d),y=d===a?{width:s,height:l}:{width:m.width,height:m.height},_={},S=OA(c,h,y,null,{hv:h.hv,boundingMode:h.bounding},_);if(!we(c).isNew&&S){for(var b=h.transition,w={},T=0;T<u.length;T++){var C=u[T],x=_[C];b&&(Hn(b)||ot(b,C)>=0)?w[C]=x:c[C]=x}Yt(c,w,r,0)}else c.attr(_)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){Vs(i,we(i).option,n,r._lastGraphicModel)}),this._elMap=Q()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Ee);function uv(e){var t=J(ty,e)?ty[e]:v_(e),r=new t({});return we(r).type=e,r}function ey(e,t,r,n){var i=uv(r);return t.add(i),n.set(e,i),we(i).id=e,we(i).isNew=!0,i}function Vs(e,t,r,n){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(a){Vs(a,t,r,n)}),Tk(e,t,n),r.removeKey(we(e).id))}function ry(e,t,r,n){e.isGroup||M([["cursor",Jn.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];J(t,a)?e[a]=Y(t[a],i[1]):e[a]==null&&(e[a]=i[1])}),M(pt(t),function(i){if(i.indexOf("on")===0){var a=t[i];e[i]=j(a)?a:null}}),J(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function mO(e){return e=O({},e),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(F_),function(t){delete e[t]}),e}function yO(e,t,r){var n=at(e).eventData;!e.silent&&!e.ignore&&!n&&(n=at(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function BB(e){e.registerComponentModel(pO),e.registerComponentView(gO),e.registerPreprocessor(function(t){var r=t.graphic;z(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}function _O(e,t){var r=Xl(t.get("padding")),n=t.getItemStyle(["color","opacity"]);n.fill=t.get("backgroundColor");var i=new Lt({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1});return i}var SO=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:K.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:K.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:K.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:K.color.tertiary,fontSize:14}},t}(wt);const bO=SO;function Mb(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function Lb(e){if(ut.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var Ib=Lb(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),wO=Lb(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Pb(e,t){if(!e)return t;t=E_(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function TO(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?t?r[t]:r:null}var xO=Pb(wO,"transition"),qc=Pb(Ib,"transform"),CO="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ut.transform3dSupported?"will-change:transform;":"");function DO(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function AO(e,t,r){if(!Z(r)||r==="inside")return"";var n=e.get("backgroundColor"),i=e.get("borderWidth");t=$n(t);var a=DO(r),o=Math.max(Math.round(i)*1.5,6),s="",l=qc+":",u;ot(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+i,v=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),c=Math.round(((v-Math.SQRT2*i)/2+Math.SQRT2*i-(v-h)/2)*100)/100;s+=";"+a+":-"+c+"px";var d=t+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function MO(e,t,r){var n="cubic-bezier(0.23,1,0.32,1)",i="",a="";return r&&(i=" "+e/2+"s "+n,a="opacity"+i+",visibility"+i),t||(i=" "+e+"s "+n,a+=(a.length?",":"")+(ut.transformSupported?""+qc+i:",left"+i+",top"+i)),xO+":"+a}function ny(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!ut.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=ut.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+qc+":"+o+";":[["top",0],["left",0],[Ib,o]]}function LO(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont());var i=Y(e.get("lineHeight"),Math.round(r*3/2));r&&t.push("line-height:"+i+"px");var a=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),M(["decoration","align"],function(u){var f=e.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function IO(e,t,r,n){var i=[],a=e.get("transitionDuration"),o=e.get("backgroundColor"),s=e.get("shadowBlur"),l=e.get("shadowColor"),u=e.get("shadowOffsetX"),f=e.get("shadowOffsetY"),h=e.getModel("textStyle"),v=cS(e,"html"),c=u+"px "+f+"px "+s+"px "+l;return i.push("box-shadow:"+c),t&&a>0&&i.push(MO(a,r,n)),o&&i.push("background-color:"+o),M(["width","color","radius"],function(d){var p="border-"+d,g=E_(p),m=e.get(g);m!=null&&i.push(p+":"+m+(d==="color"?"":"px"))}),i.push(LO(h)),v!=null&&i.push("padding:"+Xl(v).join("px ")+"px"),i.join(";")+";"}function iy(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&yw(e,o,r,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var PO=function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ut.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=r.appendTo,o=a&&(Z(a)?document.querySelector(a):$a(a)?a:j(a)&&a(t.getDom()));iy(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();_e(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),n=TO(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=CO+IO(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+ny(a[0],a[1],!0)+("border-color:"+$n(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Z(a)&&n.get("trigger")==="item"&&!Mb(n)&&(s=AO(n,i,a)),Z(t))o.innerHTML=t+s;else if(t){o.innerHTML="",z(t)||(t=[t]);for(var l=0;l<t.length;l++)$a(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},e.prototype.moveTo=function(t,r){if(this.el){var n=this._styleCoord;if(iy(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=ny(n[0],n[1]);M(a,function(o){i[o[0]]=o[1]})}}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",ut.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(_t(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;_w(t&&t.painter&&t.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},e}();const RO=PO;var EO=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),oy(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,i,a){var o=this;q(t)&&oe(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Bt({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:cS(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),M(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),M(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=ay(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var i=this._styleCoord;oy(i,this._zr,t,r),t=i[0],r=i[1];var a=n.style,o=Vr(a.borderWidth||0),s=ay(a);n.x=t+o+s.left,n.y=r+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(_t(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Vr(e){return Math.max(0,e)}function ay(e){var t=Vr(e.shadowBlur||0),r=Vr(e.shadowOffsetX||0),n=Vr(e.shadowOffsetY||0);return{left:Vr(t-r),right:Vr(t+r),top:Vr(t-n),bottom:Vr(t+n)}}function oy(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}const kO=EO;var OO=new Lt({shape:{x:-1,y:-1,width:2,height:2}}),BO=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(ut.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=hx(i.get("renderMode"));this._tooltipContent=a==="richText"?new kO(n):new RO(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(r,n,i){if(!(ut.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?pS(this,"_updatePosition",50,"fixRate"):Nh(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");xb("itemTooltip",this._api,_t(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||ut.node||!i.getDom())){var o=sy(a,i);this._ticket="";var s=a.dataByCoordSys,l=VO(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=OO;f.x=a.x,f.y=a.y,f.update(),at(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var h=Cb(a,n),v=h.point[0],c=h.point[1];v!=null&&c!=null&&this._tryShow({offsetX:v,offsetY:c,target:h.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))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,a.from!==this.uid&&this._hide(sy(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),h=ya([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=at(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;Aa(i,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(at(f).dataIndex!=null?l=f:at(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=_t(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=ya([n.tooltipOption],a),l=this._renderMode,u=[],f=Xn("section",{blocks:[],noHeader:!0}),h=[],v=new sf;M(r,function(y){M(y.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value,w=S.axis,T=w.scale.parse(b);if(!(!S||b==null)){var C=wb(b,w,i,_.seriesDataIndices,_.valueLabelOpt),x=Xn("section",{header:C,noHeader:!tr(C),sortBlocks:!0,blocks:[]});f.blocks.push(x),M(_.seriesDataIndices,function(A){var D=i.getSeriesByIndex(A.seriesIndex),I=A.dataIndexInside,L=D.getDataParams(I);if(!(L.dataIndex<0)){L.axisDim=_.axisDim,L.axisIndex=_.axisIndex,L.axisType=_.axisType,L.axisId=_.axisId,L.axisValue=ml(S.axis,{value:T}),L.axisValueLabel=C,L.marker=v.makeTooltipMarker("item",$n(L.color),l);var P=Zp(D.formatTooltip(I,!0,null)),R=P.frag;if(R){var E=ya([D],a).get("valueFormatter");x.blocks.push(E?O({valueFormatter:E},R):R)}P.text&&h.push(P.text),u.push(L)}})}})}),f.blocks.reverse(),h.reverse();var c=n.position,d=s.get("order"),p=tg(f,v,l,d,i.get("useUTC"),s.get("textStyle"));p&&h.unshift(p);var g=l==="richText"?"\n\n":"<br/>",m=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],c,null,v)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=at(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,d=r.positionDefault,p=ya([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(f,h),y=new sf;m.marker=y.makeTooltipMarker("item",$n(m.color),c);var _=Zp(u.formatTooltip(f,!1,h)),S=p.get("order"),b=p.get("valueFormatter"),w=_.frag,T=w?tg(b?O({valueFormatter:b},w):w,y,c,S,a.get("useUTC"),p.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,T,m,C,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=at(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Z(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=it(l),l.content=ae(l.content));var h=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&h.push(v),h.push({formatter:l.content});var c=r.positionDefault,d=ya(h,this._tooltipModel,c?{position:c}:null),p=d.get("content"),g=Math.random()+"",m=new sf;this._showOrMove(d,function(){var y=it(d.get("formatterParams")||{});this._showTooltipContent(d,p,y,g,r.offsetX,r.offsetY,r.position,n,m)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var h=this._tooltipContent;h.setEnterable(r.get("enterable"));var v=r.get("formatter");l=l||r.get("position");var c=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),p=d.color;if(v)if(Z(v)){var g=r.ecModel.get("useUTC"),m=z(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;c=v,y&&(c=$l(m.axisValue,c,g)),c=k_(c,i,!0)}else if(j(v)){var _=_t(function(S,b){S===this._ticket&&(h.setContent(b,f,r,p,l),this._updatePosition(r,l,o,s,h,i,u))},this);this._ticket=a,c=v(i,a,_)}else c=v;h.setContent(c,f,r,p,l),h.show(r,p),this._updatePosition(r,l,o,s,h,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a,o){if(i==="axis"||z(n))return{color:a||o};if(!z(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var h=o.getSize(),v=r.get("align"),c=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),j(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),z(n))i=bt(n[0],u),a=bt(n[1],f);else if(q(n)){var p=n;p.width=h[0],p.height=h[1];var g=xr(p,{width:u,height:f});i=g.x,a=g.y,v=null,c=null}else if(Z(n)&&l){var m=zO(n,d,h,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=NO(i,a,o,u,f,v?null:20,c?null:20);i=m[0],a=m[1]}if(v&&(i-=ly(v)?h[0]/2:v==="right"?h[0]:0),c&&(a-=ly(c)?h[1]/2:c==="bottom"?h[1]:0),Mb(r)){var m=FO(i,a,o,u,f);i=m[0],a=m[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&M(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&M(u,function(v,c){var d=h[c]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&M(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&M(v.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],S=a[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){ut.node||!n.getDom()||(Nh(this,"_updatePosition"),this._tooltipContent.dispose(),lv("itemTooltip",n),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type="tooltip",t}(Ee);function ya(e,t,r){var n=t.ecModel,i;r?(i=new Wt(r,n,n),i=new Wt(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Wt&&(o=o.get("tooltip",!0)),Z(o)&&(o={formatter:o}),o&&(i=new Wt(o,i,n)))}return i}function sy(e,t){return e.dispatchAction||_t(t.dispatchAction,t)}function NO(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function FO(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function zO(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+f+o;break;case"left":s=t.x-i-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function ly(e){return e==="center"||e==="middle"}function VO(e,t,r){var n=Pv(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=yo(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=at(u).tooltipConfig;if(f&&f.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const GO=BO;function NB(e){en(Db),e.registerComponentModel(bO),e.registerComponentView(GO),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Kt),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Kt)}var HO=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:K.size.m,backgroundColor:K.color.transparent,borderColor:K.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:K.color.primary},subtextStyle:{fontSize:12,color:K.color.quaternary}},t}(wt),UO=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Y(r.get("textBaseline"),r.get("textVerticalAlign")),f=new Bt({style:jr(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),v=r.get("subtext"),c=new Bt({style:jr(s,{text:v,fill:s.getTextColor(),y:h.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),p=r.get("sublink"),g=r.get("triggerEvent",!0);f.silent=!d&&!g,c.silent=!p&&!g,d&&f.on("click",function(){Lp(d,"_"+r.get("target"))}),p&&c.on("click",function(){Lp(p,"_"+r.get("subtarget"))}),at(f).eventData=at(c).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),v&&a.add(c);var m=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=Zl(r,i),S=xr(y,_.refContainer,r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),a.x=S.x,a.y=S.y,a.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),c.setStyle(b),m=a.getBoundingRect();var w=S.margin,T=r.getItemStyle(["color","opacity"]);T.fill=r.get("backgroundColor");var C=new Lt({shape:{x:m.x-w[3],y:m.y-w[0],width:m.width+w[1]+w[3],height:m.height+w[0]+w[2],r:r.get("borderRadius")},style:T,subPixelOptimize:!0,silent:!0});a.add(C)}},t.type="title",t}(Ee);function FB(e){e.registerComponentModel(HO),e.registerComponentView(UO)}function WO(e,t){if(!e)return!1;for(var r=z(e)?e:[e],n=0;n<r.length;n++)if(r[n]&&r[n][t])return!0;return!1}function ps(e){js(e,"label",["show"])}var gs=ft(),Rb=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.createdBySelf=!1,r.preventAutoZ=!0,r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._mergeOption(r,i,!1,!0)},t.prototype.isAnimationEnabled=function(){if(ut.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},t.prototype.mergeOption=function(r,n){this._mergeOption(r,n,!1,!1)},t.prototype._mergeOption=function(r,n,i,a){var o=this.mainType;i||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=gs(s)[o];if(!l||!l.data){gs(s)[o]=null;return}u?u._mergeOption(l,n,!0):(a&&ps(l),M(l.data,function(f){f instanceof Array?(ps(f[0]),ps(f[1])):ps(f)}),u=this.createMarkerModelFromSeries(l,this,n),O(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),gs(s)[o]=u},this)},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return Xn("section",{header:this.name,blocks:[Xn("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(r){this._data=r},t.prototype.getDataParams=function(r,n){var i=yc.prototype.getDataParams.call(this,r,n),a=this.__hostSeries;return a&&(i.seriesId=a.id,i.seriesName=a.name,i.seriesType=a.subType),i},t.getMarkerModelFromSeries=function(r,n){return gs(r)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(wt);Ge(Rb,yc.prototype);const fo=Rb;function YO(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function $O(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function ms(e,t,r,n,i,a,o){var s=[],l=Zn(t,i),u=l?t.getCalculationInfo("stackResultDimension"):i,f=Dl(t,u,e),h=t.hostModel,v=h.indicesOfNearest(r,u,f)[0];s[a]=t.get(n,v),s[o]=t.get(u,v);var c=t.get(i,v),d=pr(t.get(i,v));return d=Math.min(d,20),d>=0&&(s[o]=+s[o].toFixed(d)),[s,c]}var ys={min:xt(ms,"min"),max:xt(ms,"max"),average:xt(ms,"average"),median:xt(ms,"median")};function uy(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!$O(t)&&!z(t.coord)&&z(i)){var a=Eb(t,r,n,e);if(t=it(t),t.type&&ys[t.type]&&a.baseAxis&&a.valueAxis){var o=ot(i,a.baseAxis.dim),s=ot(i,a.valueAxis.dim),l=ys[t.type](r,a.valueAxis.dim,a.baseDataDim,a.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!z(i)){t.coord=[];var u=e.getBaseAxis();if(u&&t.type&&ys[t.type]){var f=n.getOtherAxis(u);f&&(t.value=Dl(r,r.mapDimension(f.dim),t.type))}}else for(var h=t.coord,v=0;v<2;v++)ys[h[v]]&&(h[v]=Dl(r,r.mapDimension(i[v]),h[v]));return t}}function Eb(e,t,r,n){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=r.getAxis(XO(n,i.valueDataDim)),i.baseAxis=r.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=r.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function XO(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function fy(e,t){return e&&e.containData&&t.coord&&!YO(t)?e.containData(t.coord):!0}function ZO(e,t){return e?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return ki(o,t[a])}:function(r,n,i,a){return ki(r.value,t[a])}}function Dl(e,t,r){if(r==="average"){var n=0,i=0;return e.each(t,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var Bf=ft(),qO=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=Q()},t.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){Bf(s).keep=!1}),n.eachSeries(function(s){var l=fo.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!Bf(s).keep&&a.group.remove(s.group)}),KO(n,o,this.type)},t.prototype.markKeep=function(r){Bf(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var i=this;M(r,function(a){var o=fo.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?N0(l):Vv(l))})}})},t.type="marker",t}(Ee);function KO(e,t,r){e.eachSeries(function(n){var i=fo.getMarkerModelFromSeries(n,r),a=t.get(n.id);if(i&&a&&a.group){var o=jv(i),s=o.z,l=o.zlevel;tc(a.group,s,l)}})}const QO=qO;var JO=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(fo);const jO=JO;var _s=ft(),tB=function(e,t,r,n){var i=e.getData(),a;if(z(n))a=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=Za(n.yAxis,n.xAxis);else{var u=Eb(n,i,t,e);s=u.valueAxis;var f=JS(i,u.valueDataDim);l=Dl(i,f,o)}var h=s.dim==="x"?0:1,v=1-h,c=it(n),d={coord:[]};c.type=null,c.coord=[],c.coord[v]=-1/0,d.coord[v]=1/0;var p=r.get("precision");p>=0&&St(l)&&(l=+l.toFixed(Math.min(p,20))),c.coord[h]=d.coord[h]=l,a=[c,d,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var g=[uy(e,a[0]),uy(e,a[1]),O({},a[2])];return g[2].type=g[2].type||null,vt(g[2],g[0]),vt(g[2],g[1]),g};function Al(e){return!isNaN(e)&&!isFinite(e)}function hy(e,t,r,n){var i=1-e,a=n.dimensions[e];return Al(t[i])&&Al(r[i])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function eB(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(hy(1,r,n,e)||hy(0,r,n,e)))return!0}return fy(e,t[0])&&fy(e,t[1])}function Nf(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=bt(o.get("x"),i.getWidth()),u=bt(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var f=a.dimensions,h=e.get(f[0],t),v=e.get(f[1],t);s=a.dataToPoint([h,v])}if(Uc(a,"cartesian2d")){var c=a.getAxis("x"),d=a.getAxis("y"),f=a.dimensions;Al(e.get(f[0],t))?s[0]=c.toGlobalCoord(c.getExtent()[r?0:1]):Al(e.get(f[1],t))&&(s[1]=d.toGlobalCoord(d.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var rB=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=fo.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=_s(o).from,u=_s(o).to;l.each(function(f){Nf(l,f,!0,a,i),Nf(u,f,!1,a,i)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new wk);this.group.add(f.group);var h=nB(o,r,n),v=h.from,c=h.to,d=h.line;_s(n).from=v,_s(n).to=c,n.setData(d);var p=n.get("symbol"),g=n.get("symbolSize"),m=n.get("symbolRotate"),y=n.get("symbolOffset");z(p)||(p=[p,p]),z(g)||(g=[g,g]),z(m)||(m=[m,m]),z(y)||(y=[y,y]),h.from.each(function(S){_(v,S,!0),_(c,S,!1)}),d.each(function(S){var b=d.getItemModel(S),w=b.getModel("lineStyle").getLineStyle();d.setItemLayout(S,[v.getItemLayout(S),c.getItemLayout(S)]);var T=b.get("z2");w.stroke==null&&(w.stroke=v.getItemVisual(S,"style").fill),d.setItemVisual(S,{z2:Y(T,0),fromSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(S,"symbolOffset"),fromSymbolRotate:v.getItemVisual(S,"symbolRotate"),fromSymbolSize:v.getItemVisual(S,"symbolSize"),fromSymbol:v.getItemVisual(S,"symbol"),toSymbolKeepAspect:c.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(S,"symbolOffset"),toSymbolRotate:c.getItemVisual(S,"symbolRotate"),toSymbolSize:c.getItemVisual(S,"symbolSize"),toSymbol:c.getItemVisual(S,"symbol"),style:w})}),f.updateData(d),h.line.eachItemGraphicEl(function(S){at(S).dataModel=n,S.traverse(function(b){at(b).dataModel=n})});function _(S,b,w){var T=S.getItemModel(b);Nf(S,b,w,r,a);var C=T.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=TS(l,"color")),S.setItemVisual(b,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:Y(T.get("symbolOffset",!0),y[w?0:1]),symbolRotate:Y(T.get("symbolRotate",!0),m[w?0:1]),symbolSize:Y(T.get("symbolSize"),g[w?0:1]),symbol:Y(T.get("symbol",!0),p[w?0:1]),style:C})}this.markKeep(f),f.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(QO);function nB(e,t,r){var n;e?n=X(e&&e.dimensions,function(u){var f=t.getData(),h=f.getDimensionInfo(f.mapDimension(u))||{};return O(O({},h),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new Ha(n,r),a=new Ha(n,r),o=new Ha([],r),s=X(r.get("data"),xt(tB,t,e,r));e&&(s=Ot(s,xt(eB,e)));var l=ZO(!!e,n);return i.initData(X(s,function(u){return u[0]}),null,l),a.initData(X(s,function(u){return u[1]}),null,l),o.initData(X(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}const iB=rB;function zB(e){e.registerComponentModel(jO),e.registerComponentView(iB),e.registerPreprocessor(function(t){WO(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var aB=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},oB=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),z(n)&&M(n,function(a,o){Z(a)&&(a={type:a}),n[o]=vt(a,aB(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var h=l.legendVisualProvider,v=h.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(v)),v.length?n=n.concat(v):f=!0}else f=!0;f&&Iv(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=Q(),s=X(a,function(l){return(Z(l)||St(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Wt(l,this,this.ecModel))},this);this._data=Ot(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;M(a,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;M(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;M(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&ot(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:K.size.m,align:"auto",backgroundColor:K.color.transparent,borderColor:K.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:K.color.disabled,inactiveBorderColor:K.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:K.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:K.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:K.color.tertiary,borderWidth:1,borderColor:K.color.border},emphasis:{selectorLabel:{show:!0,color:K.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(wt);const fv=oB;var Si=xt,hv=M,Ss=It,sB=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new Ss),this.group.add(this._selectorGroup=new Ss),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var f=Zl(r,i).refContainer,h=r.getBoxLayoutParams(),v=r.get("padding"),c=xr(h,f,v),d=this.layoutInner(r,o,c,a,l,u),p=xr(mt({width:d.width,height:d.height},h),f,v);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=_O(d,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),f=Q(),h=n.get("selectedMode"),v=n.get("triggerEvent"),c=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&c.push(d.id)}),hv(n.getData(),function(d,p){var g=this,m=d.get("name");if(!this.newlineDisabled&&(m===""||m==="\n")){var y=new Ss;y.newline=!0,u.add(y);return}var _=i.getSeriesByName(m)[0];if(!f.get(m))if(_){var S=_.getData(),b=S.getVisual("legendLineStyle")||{},w=S.getVisual("legendIcon"),T=S.getVisual("style"),C=this._createItem(_,m,p,d,n,r,b,T,w,h,a);C.on("click",Si(vy,m,null,a,c)).on("mouseover",Si(vv,_.name,null,a,c)).on("mouseout",Si(cv,_.name,null,a,c)),i.ssr&&C.eachChild(function(x){var A=at(x);A.seriesIndex=_.seriesIndex,A.dataIndex=p,A.ssrType="legend"}),v&&C.eachChild(function(x){g.packEventData(x,n,_,p,m)}),f.set(m,!0)}else i.eachRawSeries(function(x){var A=this;if(!f.get(m)&&x.legendVisualProvider){var D=x.legendVisualProvider;if(!D.containName(m))return;var I=D.indexOfName(m),L=D.getItemVisual(I,"style"),P=D.getItemVisual(I,"legendIcon"),R=nr(L.fill);R&&R[3]===0&&(R[3]=.2,L=O(O({},L),{fill:po(R,"rgba")}));var E=this._createItem(x,m,p,d,n,r,{},L,P,h,a);E.on("click",Si(vy,null,m,a,c)).on("mouseover",Si(vv,null,m,a,c)).on("mouseout",Si(cv,null,m,a,c)),i.ssr&&E.eachChild(function(B){var k=at(B);k.seriesIndex=x.seriesIndex,k.dataIndex=p,k.ssrType="legend"}),v&&E.eachChild(function(B){A.packEventData(B,n,x,p,m)}),f.set(m,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype.packEventData=function(r,n,i,a,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:a,value:o,seriesIndex:i.seriesIndex};at(r).eventData=s},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();hv(r,function(u){var f=u.type,h=new Bt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(h);var v=n.getModel("selectorLabel"),c=n.getModel(["emphasis","selectorLabel"]);qi(h,{normal:v,emphasis:c},{defaultText:u.title}),xh(h)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,f,h,v){var c=r.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=lB(f,a,l,u,c,g,v),b=new Ss,w=a.getModel("textStyle");if(j(r.getLegendIcon)&&(!_||_==="inherit"))b.add(r.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var T=_==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;b.add(uB({itemWidth:d,itemHeight:p,icon:f,iconRotate:T,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?d+5:-5,x=s,A=o.get("formatter"),D=n;Z(A)&&A?D=A.replace("{name}",n!=null?n:""):j(A)&&(D=A(n));var I=g?w.getTextColor():a.get("inactiveColor");b.add(new Bt({style:jr(w,{text:D,x:C,y:p/2,fill:I,align:x,verticalAlign:"middle"},{inheritColor:I})}));var L=new Lt({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=a.getModel("tooltip");return P.get("show")&&_o({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),b.add(L),b.eachChild(function(R){R.silent=!0}),L.silent=!h,this.getContentGroup().add(b),xh(b),b.__legendDataIndex=i,b},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();za(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){za("horizontal",u,r.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],d=r.get("selectorButtonGap",!0),p=r.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?c[p]+=f[g]+d:h[p]+=v[g]+d,c[1-p]+=f[m]/2-v[m]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+d+v[g],_[m]=Math.max(f[m],v[m]),_[y]=Math.min(0,v[y]+c[1-p]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ee);function lB(e,t,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),hv(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=e.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?n.decal:Hh(h,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var v=t.getModel("lineStyle"),c=v.getLineStyle();if(s(c,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),c.stroke==="auto"&&(c.stroke=n.fill),!a){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),c.stroke=v.get("inactiveColor"),c.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function uB(e){var t=e.icon||"roundRect",r=tn(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=K.color.neutral00,r.style.lineWidth=2),r}function vy(e,t,r,n){cv(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e!=null?e:t}),vv(e,t,r,n)}function vv(e,t,r,n){r.usingTHL()||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function cv(e,t,r,n){r.usingTHL()||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}const kb=sB;function _a(e,t,r){var n=e==="allSelect"||e==="inverseSelect",i={},a=[];r.eachComponent({mainType:"legend",query:t},function(s){n?s[e]():s[e](t.name),cy(s,i),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){M(i,function(l,u){s[l?"select":"unSelect"](u)}),cy(s,o)}),n?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function cy(e,t){var r=t||{};return M(e.getData(),function(n){var i=n.get("name");if(!(i==="\n"||i==="")){var a=e.isSelected(i);J(r,i)?r[i]=r[i]&&a:r[i]=a}}),r}function fB(e){e.registerAction("legendToggleSelect","legendselectchanged",xt(_a,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",xt(_a,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",xt(_a,"inverseSelect")),e.registerAction("legendSelect","legendselected",xt(_a,"select")),e.registerAction("legendUnSelect","legendunselected",xt(_a,"unSelect"))}var hB=Ev(vB);function vB(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function Ob(e){e.registerComponentModel(fv),e.registerComponentView(kb),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,hB),e.registerSubTypeDefaulter("legend",function(){return"plain"}),fB(e)}var cB=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,i){var a=bo(r);e.prototype.init.call(this,r,n,i),dy(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),dy(this,this.option,r)},t.type="legend.scroll",t.defaultOption=b_(fv.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:K.color.accent50,pageIconInactiveColor:K.color.accent10,pageIconSize:15,pageTextStyle:{color:K.color.tertiary},animationDurationUpdate:800}),t}(fv);function dy(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,Cr(t,r,{type:"box",ignoreSize:!!i})}const dB=cB;var py=It,Ff=["width","height"],zf=["x","y"],pB=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new py),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new py)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,i,a,o,s,l);var f=this._controllerGroup,h=n.get("pageIconSize",!0),v=z(h)?h:[h,h];d("pagePrev",0);var c=n.getModel("pageTextStyle");f.add(new Bt({name:"pageText",style:{text:"xx/xx",fill:c.getTextColor(),font:c.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var m=p+"DataIndex",y=Kv(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:_t(u._pageGo,u,m,n,a)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});y.name=p,f.add(y)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=Ff[u],h=zf[u],v=Ff[1-u],c=zf[1-u];o&&za("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=it(i);o&&(m[f]=i[f]-p[f]-d);var y=this._layoutContentAndController(r,a,m,u,f,v,c,h);if(o){if(s==="end")g[u]+=y[f]+d;else{var _=p[f]+d;g[u]-=_,y[h]-=_}y[f]+=p[f]+d,g[1-u]+=y[c]+y[v]/2-p[v]/2,y[v]=Math.max(y[v],p[v]),y[c]=Math.min(y[c],p[c]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,v=this._controllerGroup;za(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),za("horizontal",v,r.get("pageButtonItemGap",!0));var c=f.getBoundingRect(),d=v.getBoundingRect(),p=this._showController=c[o]>i[o],g=[-c.x,-c.y];n||(g[a]=f[u]);var m=[0,0],y=[-d.x,-d.y],_=Y(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var S=r.get("pageButtonPosition",!0);S==="end"?y[a]+=i[o]-d[o]:m[a]+=d[o]+_}y[1-a]+=c[s]/2-d[s]/2,f.setPosition(g),h.setPosition(m),v.setPosition(y);var b={x:0,y:0};if(b[o]=p?i[o]:c[o],b[s]=Math.max(c[s],d[s]),b[l]=Math.min(0,d[l]+y[1-a]),h.__rectSize=i[o],p){var w={x:0,y:0};w[o]=Math.max(i[o]-d[o]-_,0),w[s]=b[s],h.setClipPath(new Lt({shape:w})),h.__rectSize=w[o]}else v.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(r);return T.pageIndex!=null&&Yt(f,{x:T.contentPosition[0],y:T.contentPosition[1]},p?r:null),this._updatePageInfoView(r,T),b},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;M(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=n[h]!=null,c=i.childOfName(f);c&&(c.setStyle("fill",v?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",Z(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Ff[o],l=zf[o],u=this._findTargetItemIndex(n),f=i.children(),h=f[u],v=f.length,c=v?1:0,d={contentPosition:[i.x,i.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var p=S(h);d.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=v;++g)_=S(f[g]),(!_&&y.e>m.s+a||_&&!b(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(y,_.s))&&m.i<y.i&&(y=m,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=m.i),++d.pageCount,++d.pageIndex),m=_;return d;function S(w){if(w){var T=w.getBoundingRect(),C=T[l]+w[l];return{s:C,e:C+T[s],i:w.__legendDataIndex}}}function b(w,T){return w.e>=T&&w.s<=T+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n!=null?n:a},t.type="legend.scroll",t}(kb);const gB=pB;function mB(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function yB(e){en(Ob),e.registerComponentModel(dB),e.registerComponentView(gB),mB(e)}function VB(e){en(Ob),en(yB)}var _B=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.prototype.init=function(r,n,i){e.prototype.init.call(this,r,n,i),this._sourceManager=new sS(this),Jp(this)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),Jp(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Fe},t}(wt),SB=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.type="dataset",t}(Ee);function GB(e){e.registerComponentModel(_B),e.registerComponentView(SB)}function gy(e,t,r){var n=ce.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",e)),n.width=i*r,n.height=a*r,n}function Vf(e){return!e.__cursors.get(u_)}function my(e){var t=e.__cursors.get(u_);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var bB=function(e){N(t,e);function t(r,n,i){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.zlevel=0,a.zlevel2=Ps,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__prevIdx={startIdx:0,endIdx:0};var o;i=i||Zs,typeof r=="string"?o=gy(r,n,i):q(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(Cy(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return t.prototype.afterBrush=function(){this.__prevIdx=my(this)},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=gy("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new nt(0,0,0,0);function f(S){if(!(!S.isFinite()||S.isZero()))if(o.length===0){var b=new nt(0,0,0,0);b.copy(S),o.push(b)}else{for(var w=!1,T=1/0,C=0,x=0;x<o.length;++x){var A=o[x];if(A.intersect(S)){var D=new nt(0,0,0,0);D.copy(A),D.union(S),o[x]=D,w=!0;break}else if(l){u.copy(S),u.union(A);var I=S.width*S.height,L=A.width*A.height,P=u.width*u.height,R=P-I-L;R<T&&(T=R,C=x)}}if(l&&(o[C].union(S),w=!0),!w){var b=new nt(0,0,0,0);b.copy(S),o.push(b)}l||(l=o.length>=s)}}for(var h=my(this),v=h.startIdx;v<h.endIdx;++v){var c=r[v];if(c){var d=c.shouldBePainted(i,a,!0,!0),p=c.__isRendered&&(c.__dirty&se||!d)?c.getPrevPaintRect():null;p&&f(p);var g=d&&(c.__dirty&se||!c.__isRendered)?c.getPaintRect():null;g&&f(g)}}for(var m=this.__prevIdx,v=m.startIdx;v<m.endIdx;++v){var c=n[v],d=c&&c.shouldBePainted(i,a,!0,!0);if(c&&(!d||!c.__zr)&&c.__isRendered){var p=c.getPrevPaintRect();p&&f(p)}}var y;do{y=!1;for(var v=0;v<o.length;){if(o[v].isZero()){o.splice(v,1);continue}for(var _=v+1;_<o.length;)o[v].intersect(o[_])?(y=!0,o[v].union(o[_]),o.splice(_,1)):_++;v++}}while(y);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,h=this.dpr,v=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,l/h));var c=this.domBack;function d(p,g,m,y){if(o.clearRect(p,g,m,y),n&&n!=="transparent"){var _=void 0;if(Ll(n)){var S=n.global||n.__width===m&&n.__height===y;_=S&&n.__canvasGradient||Vh(o,n,{x:0,y:0,width:m,height:y}),n.__canvasGradient=_,n.__width=m,n.__height=y}else iw(n)&&(n.scaleX=n.scaleX||h,n.scaleY=n.scaleY||h,_=Gh(o,n,{dirty:function(){v.setUnpainted(),v.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(p,g,m,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(c,p,g,m,y),o.restore())}!i||u?d(0,0,s,l):i.length&&M(i,function(p){d(p.x*h,p.y*h,p.width*h,p.height*h)})},t}(sr);const Bb=bB;var yy=1e5,Ln=314159,Gf=void 0,wB=1,Hf=2;function TB(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function xB(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}function _y(e,t,r,n){var i=new Bb(e,t,t.dpr);return i.zlevel=r,i.zlevel2=n,i.__builtin__=!0,Nb(i),i}function Nb(e){e.__cursorStack=[],e.__cursors=Q()}function CB(e){return e.startIdx=e.drawIdx=e.endIdx=e.endIdxNew=0,e.used=!1,e.first=e.last=NaN,e.notClearIdx=-1,e}function DB(e,t){var r=e.__cursors,n=+t;return r.get(n)||(e.__cursorStack.push(n),r.set(n,CB({key:n})))}function bs(e,t){for(var r=e.__cursorStack,n=0;n<r.length;n++)t(e.__cursors.get(r[n]))}function Uf(e,t){var r=e.layers;return r[t]||(r[t]=new Array(3))}function Xt(e,t,r){for(var n=e.layerStack,i=0;i<n.length;i++){var a=n[i].zl,o=n[i].zl2,s=e.layers[a][o];(!r||(!(r&Ya)||s.__builtin__)&&(!(r&dv)||!s.__builtin__)&&(!(r&Fb)||s!==e.hoverlayer))&&t(s,a,o,i)}}var Ya=1,dv=2,Fb=4,ws=Ya|Fb,AB=function(){function e(t,r,n,i){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=O({},n||{}),this.dpr=n.devicePixelRatio||Zs,this._singleCanvas=a,this.root=t;var o=t.style;if(o&&(Cy(t),t.innerHTML=""),this.storage=r,this._prevDisplayList=[],a){var l=t,u=l.width,f=l.height;n.width!=null&&(u=n.width),n.height!=null&&(f=n.height),this.dpr=n.devicePixelRatio||1,l.width=u*this.dpr,l.height=f*this.dpr,this._width=u,this._height=f;var h=_y(l,this,Ln,Ps);h.initContext(),this._insertLayer(h,Ln,Ps,!0),this._domRoot=t}else{this._width=Jo(t,0,n),this._height=Jo(t,1,n);var s=this._domRoot=xB(this._width,this._height);t.appendChild(s)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r;t&&!q(t)?r={paintAll:!!t}:r=t||{};var n=Y(r.refresh,!0),i=Y(r.refreshHover,!1);if(i&&(this._hoverLayerDirty=Hf),!n)return i&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var a=this.storage.getDisplayList(!0);this._updateLayerStatus(a,r.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(a,o,this._redrawId);var s=this._backgroundColor;return Xt(this._i,function(l,u,f,h){l.refresh&&l.refresh(h===0?s:null)},dv),this._opts.useDirtyRect&&(this._prevDisplayList=a.slice()),this},e.prototype._paintHoverList=function(t){var r=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=Gf,n!==Gf&&(!r&&n===Hf&&(r=this._i.hoverlayer=this._ensureLayer(yy)),!!r)){r.clear();for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},a,o=0,s=t.length;o<s;o++){var l=t[o];if(l.__inHover){a||(a=r.ctx,a.save());var u=l.__hoverStyle,f=void 0;u&&(f=l.style,l.style=u),On(a,l,i),u&&(l.style=f)}}a&&(Oi(a,i),a.restore())}},e.prototype.getHoverLayer=function(){return this._ensureLayer(yy)},e.prototype.paintOne=function(t,r){MS(t,r)},e.prototype._paintList=function(t,r,n){if(this._redrawId===n){var i=this._doPaintList(t,r);if(this._needsManuallyCompositing&&this._compositeManually(),i)Xt(this._i,function(o){o.afterBrush&&o.afterBrush()},ws),this._paintHoverList(t);else{var a=this;jf(function(){a._paintList(t,r,n)})}}},e.prototype._compositeManually=function(){var t=this._ensureLayer(Ln).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),Xt(this._i,function(i){i.virtual&&t.drawImage(i.dom,0,0,r,n)},Ya)},e.prototype._doPaintList=function(t,r){var n=this,i=!0;return Xt(this._i,function(a){var o=!1;if(bs(a,function(h){(h.drawIdx<h.endIdx||h.notClearIdx>=0)&&(o=!0)}),!(!o&&!a.__dirty)){var s=n._opts.useDirtyRect&&!Vf(a)?a.createRepaintRects(t,r,n._width,n._height):null,l=n._i.layerStack[0],u=!0;if(a.__dirty){u=!1,a.__dirty=!1;var f=a.zlevel===l.zl&&a.zlevel2===l.zl2?n._backgroundColor:null;a.clear(!1,f,s)}bs(a,function(h){var v=n._paintPerCursor(a,h,t,s,u);i=i&&v})}},ws),ut.wxa&&Xt(this._i,function(a){a&&a.ctx&&a.ctx.draw&&a.ctx.draw()}),i},e.prototype._paintPerCursor=function(t,r,n,i,a){var o=t.ctx;if(i)if(!i.length)r.drawIdx=r.endIdx;else for(var s=this.dpr,l=0;l<i.length;++l){var u=i[l];o.save(),o.beginPath(),o.rect(u.x*s,u.y*s,u.width*s,u.height*s),o.clip(),this._paintPerCursorInRect(t,r,n,u,a),o.restore()}else o.save(),this._paintPerCursorInRect(t,r,n,null,a),o.restore();return r.drawIdx>=r.endIdx},e.prototype._paintPerCursorInRect=function(t,r,n,i,a){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:a}},s=t.ctx,l=Vf(t),u=l&&ce.getTime(),f=r.drawIdx,h=r.notClearIdx,v=h>=0?Math.min(h,f):f;v<r.endIdx;v++){var c=n[v];if(!(v<f&&!c.notClear)){if(c.__inHover&&(this._hoverLayerDirty=Hf),i!=null){var d=c.getPaintRect();d&&d.intersect(i)&&(On(s,c,o),c.setPrevPaintRect(d))}else On(s,c,o);if(l){var p=ce.getTime()-u;if(p>15){v++;break}}}}Oi(s,o),r.drawIdx=Math.max(v,f)},e.prototype.getLayer=function(t,r){return this._ensureLayer(t,0,r)},e.prototype._ensureLayer=function(t,r,n){r=r||0;var i=this._singleCanvas;i&&!this._needsManuallyCompositing&&(t=Ln,r=0);var a=Uf(this._i,t)[r];return a||(a=_y("zr_"+t+"."+r,this,t,r),this._layerConfig[t]&&vt(a,this._layerConfig[t],!0),(n||i&&t!==Ln)&&(a.virtual=!0),this._insertLayer(a,t,r,!1),a.initContext()),a},e.prototype.insertLayer=function(t,r){this._insertLayer(r,t,0,!1)},e.prototype._insertLayer=function(t,r,n,i){var a=this._i,o=a.layers,s=a.layerStack,l=this._domRoot,u=null;if(!(o[r]&&o[r][n])&&TB(t)){for(var f=s.length,h=0;h<f&&(s[h].zl<r||s[h].zl===r&&s[h].zl2<n);)h++;if(h>0&&(u=Uf(a,s[h-1].zl)[s[h-1].zl2]),s.splice(h,0,{zl:r,zl2:n}),Uf(a,r)[n]=t,!i&&!t.virtual)if(u){var v=u.dom;v.nextSibling?l.insertBefore(t.dom,v.nextSibling):l.appendChild(t.dom)}else l.firstChild?l.insertBefore(t.dom,l.firstChild):l.appendChild(t.dom);t.painter||(t.painter=this)}},e.prototype.eachLayer=function(t,r){return Xt(this._i,function(n,i){t.call(r,n,i)})},e.prototype.eachBuiltinLayer=function(t,r){return Xt(this._i,function(n,i){t.call(r,n,i)},Ya)},e.prototype.eachOtherLayer=function(t,r){return Xt(this._i,function(n,i){t.call(r,n,i)},dv)},e.prototype.getLayers=function(){var t={};return Xt(this._i,function(r,n,i){t[r.id]=r}),t},e.prototype._updateLayerStatus=function(t,r){var n=this;if(n._singleCanvas)for(var i=1;i<t.length;i++){var a=t[i];if(a.zlevel!==t[i-1].zlevel||a.incremental){n._needsManuallyCompositing=!0;break}}Xt(n._i,function(g){g.__dirty=!1,bs(g,function(m){m.used=!1,m.endIdxNew=0,m.notClearIdx=-1})},ws);for(var o,s=null,l=null,u=!1,f=0,h=t.length;f<h;f++){var a=t[f],v=a.zlevel,c=a.incremental,d=void 0;if(o!==v&&(o=v,u=!1),c?(u=!0,d=CD):d=u?xD:Ps,(!s||v!==s.zlevel||d!==s.zlevel2)&&(s=n._ensureLayer(v,d),l=null,!s.__builtin__)){yv("ZLevel "+v+" has been used by unknown layer "+s.id);continue}if((!l||c!==l.key)&&(l=DB(s,c),!l.used))if(l.used=!0,!r&&l.first===a.id){var p=f-l.startIdx;l.startIdx=f,l.drawIdx+=p,l.endIdx+=p}else s.__dirty=!0,l.first=a.id,l.startIdx=l.drawIdx=f,l.endIdx=f+1;l.endIdxNew=f+1,a.__dirty&se&&!a.__inHover&&((!c||!a.notClear&&f<l.drawIdx)&&(s.__dirty=!0),c&&a.notClear&&l.notClearIdx<0&&(l.notClearIdx=f))}Xt(n._i,function(g){for(var m=g.__cursorStack,y=g.__cursors,_=m.length-1;_>=0;_--){var S=y.get(m[_]);if(!S.used)g.__dirty=!0,y.removeKey(m[_]),m.splice(_,1);else{var b=S.endIdxNew;(Vf(g)?b<S.drawIdx:b!==S.endIdx||!b||t[b-1].id!==S.last)&&(g.__dirty=!0),S.endIdx=S.endIdxNew,S.last=b?t[b-1].id:NaN}}g.__dirty&&(bs(g,function(w){w.drawIdx=w.startIdx}),n._hoverLayerDirty===Gf&&(n._hoverLayerDirty=wB))},ws)},e.prototype.clear=function(){return Xt(this._i,function(t){t.clear(),Nb(t)},Ya),this},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,Xt(this._i,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?vt(n[t],r,!0):n[t]=r,Xt(this._i,function(i,a){vt(i,n[a],!0)})}},e.prototype.delLayer=function(t){for(var r=this._i.layerStack,n=this._i.layers,i=r.length-1;i>=0;i--){var a=r[i];if(a.zl===t){var o=n[t][a.zl2];if(o.__builtin__)continue;if(r.splice(i,1),n[t][a.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;t!=null&&(i.width=t),r!=null&&(i.height=r),t=Jo(a,0,i),r=Jo(a,1,i),n.style.display="",(this._width!==t||r!==this._height)&&(n.style.width=t+"px",n.style.height=r+"px",Xt(this._i,function(o){o.resize(t,r)}),this.refresh({paintAll:!0})),this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this._ensureLayer(Ln).resize(t,r)}return this},e.prototype.clearLayer=function(t){M(this._i.layers[t],function(r){r&&!r.__builtin__&&r.clear()})},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[Ln][0].dom;var r=new Bb("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;Xt(this._i,function(h){h.__builtin__?n.drawImage(h.dom,0,0,i,a):h.renderToCanvas&&(n.save(),h.renderToCanvas(n),n.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];On(n,f,o)}Oi(n,o)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const MB=AB;function HB(e){e.registerPainter("canvas",MB)}export{s_ as L,RB as a,kB as b,EB as c,OB as d,NB as e,VB as f,FB as g,GB as h,PB as i,Db as j,BB as k,zB as l,HB as m,IB as n,en as u};