From bb2b808098223c2f55a85f0165dea6bb1063d090 Mon Sep 17 00:00:00 2001 From: Fabriziogianni7 Date: Fri, 26 May 2023 14:38:58 +0200 Subject: [PATCH 01/11] added outDir: "dist" --- vite.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 861b04b..0da3061 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,4 +4,7 @@ import react from '@vitejs/plugin-react-swc' // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], + build:{ + outDir: "dist" + } }) From 52b748241fc3fe6b6c8d63c803273d486953dc8f Mon Sep 17 00:00:00 2001 From: Fabriziogianni7 Date: Fri, 26 May 2023 14:42:36 +0200 Subject: [PATCH 02/11] outDir: "build" --- vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 0da3061..4370d69 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -5,6 +5,6 @@ import react from '@vitejs/plugin-react-swc' export default defineConfig({ plugins: [react()], build:{ - outDir: "dist" + outDir: "build" } }) From 28109acf9d88d7e7e17f7fcc876e854bae9417ad Mon Sep 17 00:00:00 2001 From: Fabriziogianni7 Date: Fri, 26 May 2023 14:46:07 +0200 Subject: [PATCH 03/11] outDir: "dist" --- vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 4370d69..0da3061 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -5,6 +5,6 @@ import react from '@vitejs/plugin-react-swc' export default defineConfig({ plugins: [react()], build:{ - outDir: "build" + outDir: "dist" } }) From 0e9dccb9d71ca21ec3badc27e07b028fa392f064 Mon Sep 17 00:00:00 2001 From: Fabriziogianni7 Date: Fri, 26 May 2023 15:09:59 +0200 Subject: [PATCH 04/11] build command --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bd122d0..0e0d8fd 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "type": "module", "scripts": { "dev": "vite", - "build": "tsc && vite build", + "build": "tsc && vite build --base=/dist/", "lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "preview": "vite preview" }, From 45f05516d05b5374ffab8a5700cdbbf27917526e Mon Sep 17 00:00:00 2001 From: Fabriziogianni7 Date: Fri, 26 May 2023 15:13:34 +0200 Subject: [PATCH 05/11] build command --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0e0d8fd..5fdbd8f 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "type": "module", "scripts": { "dev": "vite", - "build": "tsc && vite build --base=/dist/", + "build": "tsc && vite build --base=/dist", "lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "preview": "vite preview" }, From 00152268a3117c8b58e321e613f8ae52c8ee5c83 Mon Sep 17 00:00:00 2001 From: Fabriziogianni7 Date: Fri, 26 May 2023 15:16:23 +0200 Subject: [PATCH 06/11] gitignore --- .gitignore | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index a547bf3..5e05cd0 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,9 @@ pnpm-debug.log* lerna-debug.log* node_modules -dist +dist/assets +dist/favicon* +dist/index* dist-ssr *.local From fece6f4f3bdef73bacf1bbdcb06b59cdeacbeb0c Mon Sep 17 00:00:00 2001 From: Fabriziogianni7 Date: Fri, 26 May 2023 15:19:10 +0200 Subject: [PATCH 07/11] adding dist --- dist/exp.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 dist/exp.txt diff --git a/dist/exp.txt b/dist/exp.txt new file mode 100644 index 0000000..d28bb66 --- /dev/null +++ b/dist/exp.txt @@ -0,0 +1 @@ +ciao \ No newline at end of file From 92d3df957eefc84369e6fcfb27325bdbba655f2d Mon Sep 17 00:00:00 2001 From: Fabriziogianni7 Date: Fri, 26 May 2023 15:24:08 +0200 Subject: [PATCH 08/11] adding dist --- .gitignore | 8 +- dist/assets/fil-plus-60ab2b37.svg | 48 +++++++++ dist/assets/index-69303858.css | 1 + dist/assets/index-746ebbe2.js | 163 ++++++++++++++++++++++++++++++ dist/exp.txt | 1 - dist/favicon.png | Bin 0 -> 1052 bytes dist/index.html | 15 +++ 7 files changed, 231 insertions(+), 5 deletions(-) create mode 100644 dist/assets/fil-plus-60ab2b37.svg create mode 100644 dist/assets/index-69303858.css create mode 100644 dist/assets/index-746ebbe2.js delete mode 100644 dist/exp.txt create mode 100644 dist/favicon.png create mode 100644 dist/index.html diff --git a/.gitignore b/.gitignore index 5e05cd0..9cd5786 100644 --- a/.gitignore +++ b/.gitignore @@ -8,10 +8,10 @@ pnpm-debug.log* lerna-debug.log* node_modules -dist/assets -dist/favicon* -dist/index* -dist-ssr +# dist/assets +# dist/favicon* +# dist/index* +# dist-ssr *.local # Editor directories and files diff --git a/dist/assets/fil-plus-60ab2b37.svg b/dist/assets/fil-plus-60ab2b37.svg new file mode 100644 index 0000000..e7b9221 --- /dev/null +++ b/dist/assets/fil-plus-60ab2b37.svg @@ -0,0 +1,48 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/dist/assets/index-69303858.css b/dist/assets/index-69303858.css new file mode 100644 index 0000000..eec5341 --- /dev/null +++ b/dist/assets/index-69303858.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.-right-20{right:-5rem}.left-0{left:0px}.top-0{top:0px}.top-10{top:2.5rem}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.mb-10{margin-bottom:2.5rem}.mb-4{margin-bottom:1rem}.ml-64{margin-left:16rem}.mr-1{margin-right:.25rem}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-16{height:4rem}.h-2{height:.5rem}.h-2\/6{height:33.333333%}.h-3\/6{height:50%}.h-4\/6{height:66.666667%}.h-5\/6{height:83.333333%}.h-6{height:1.5rem}.h-9{height:2.25rem}.h-\[200px\]{height:200px}.h-\[360px\]{height:360px}.h-full{height:100%}.min-h-screen{min-height:100vh}.w-2{width:.5rem}.w-32{width:8rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-full{width:100%}.min-w-\[30rem\]{min-width:30rem}.max-w-\[1200px\]{max-width:1200px}.flex-1{flex:1 1 0%}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-between{justify-content:space-between}.space-x-11>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2.75rem * var(--tw-space-x-reverse));margin-left:calc(2.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.border-t{border-top-width:1px}.bg-\[\#5B5B5B\]{--tw-bg-opacity: 1;background-color:rgb(91 91 91 / var(--tw-bg-opacity))}.bg-\[\#E7E7E7\]{--tw-bg-opacity: 1;background-color:rgb(231 231 231 / var(--tw-bg-opacity))}.bg-chart-blue{--tw-bg-opacity: 1;background-color:rgb(33 150 243 / var(--tw-bg-opacity))}.bg-chart-orange{--tw-bg-opacity: 1;background-color:rgb(255 87 34 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-blue-500{--tw-gradient-to: #3b82f6 var(--tw-gradient-to-position)}.p-4{padding:1rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-12{padding-left:3rem;padding-right:3rem}.px-16{padding-left:4rem;padding-right:4rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pl-4{padding-left:1rem}.pr-1{padding-right:.25rem}.text-center{text-align:center}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.group:hover .group-hover\:block{display:block} diff --git a/dist/assets/index-746ebbe2.js b/dist/assets/index-746ebbe2.js new file mode 100644 index 0000000..3efa84d --- /dev/null +++ b/dist/assets/index-746ebbe2.js @@ -0,0 +1,163 @@ +(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();function tk(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var rk={exports:{}},oy={},nk={exports:{}},We={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var jh=Symbol.for("react.element"),NG=Symbol.for("react.portal"),BG=Symbol.for("react.fragment"),zG=Symbol.for("react.strict_mode"),FG=Symbol.for("react.profiler"),VG=Symbol.for("react.provider"),GG=Symbol.for("react.context"),HG=Symbol.for("react.forward_ref"),UG=Symbol.for("react.suspense"),WG=Symbol.for("react.memo"),$G=Symbol.for("react.lazy"),cA=Symbol.iterator;function YG(t){return t===null||typeof t!="object"?null:(t=cA&&t[cA]||t["@@iterator"],typeof t=="function"?t:null)}var ik={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ak=Object.assign,ok={};function Wu(t,e,r){this.props=t,this.context=e,this.refs=ok,this.updater=r||ik}Wu.prototype.isReactComponent={};Wu.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Wu.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function sk(){}sk.prototype=Wu.prototype;function Iw(t,e,r){this.props=t,this.context=e,this.refs=ok,this.updater=r||ik}var Ew=Iw.prototype=new sk;Ew.constructor=Iw;ak(Ew,Wu.prototype);Ew.isPureReactComponent=!0;var fA=Array.isArray,lk=Object.prototype.hasOwnProperty,Rw={current:null},uk={key:!0,ref:!0,__self:!0,__source:!0};function ck(t,e,r){var n,i={},a=null,o=null;if(e!=null)for(n in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(a=""+e.key),e)lk.call(e,n)&&!uk.hasOwnProperty(n)&&(i[n]=e[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1>>1,Y=R[V];if(0>>1;Vi(ve,z))Mei(me,ve)?(R[V]=me,R[Me]=z,V=Me):(R[V]=ve,R[te]=z,V=te);else if(Mei(me,z))R[V]=me,R[Me]=z,V=Me;else break e}}return O}function i(R,O){var z=R.sortIndex-O.sortIndex;return z!==0?z:R.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();t.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,f=null,h=3,v=!1,d=!1,p=!1,y=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(R){for(var O=r(u);O!==null;){if(O.callback===null)n(u);else if(O.startTime<=R)n(u),O.sortIndex=O.expirationTime,e(l,O);else break;O=r(u)}}function S(R){if(p=!1,_(R),!d)if(r(l)!==null)d=!0,k(w);else{var O=r(u);O!==null&&B(S,O.startTime-R)}}function w(R,O){d=!1,p&&(p=!1,g(C),C=-1),v=!0;var z=h;try{for(_(O),f=r(l);f!==null&&(!(f.expirationTime>O)||R&&!D());){var V=f.callback;if(typeof V=="function"){f.callback=null,h=f.priorityLevel;var Y=V(f.expirationTime<=O);O=t.unstable_now(),typeof Y=="function"?f.callback=Y:f===r(l)&&n(l),_(O)}else n(l);f=r(l)}if(f!==null)var re=!0;else{var te=r(u);te!==null&&B(S,te.startTime-O),re=!1}return re}finally{f=null,h=z,v=!1}}var x=!1,b=null,C=-1,T=5,A=-1;function D(){return!(t.unstable_now()-AR||125V?(R.sortIndex=z,e(u,R),r(l)===null&&R===r(u)&&(p?(g(C),C=-1):p=!0,B(S,z-V))):(R.sortIndex=Y,e(l,R),d||v||(d=!0,k(w))),R},t.unstable_shouldYield=D,t.unstable_wrapCallback=function(R){var O=h;return function(){var z=h;h=O;try{return R.apply(this,arguments)}finally{h=z}}}})(pk);dk.exports=pk;var nH=dk.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var gk=J,tn=nH;function q(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),O_=Object.prototype.hasOwnProperty,iH=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,vA={},dA={};function aH(t){return O_.call(dA,t)?!0:O_.call(vA,t)?!1:iH.test(t)?dA[t]=!0:(vA[t]=!0,!1)}function oH(t,e,r,n){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function sH(t,e,r,n){if(e===null||typeof e>"u"||oH(t,e,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Ir(t,e,r,n,i,a,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=a,this.removeEmptyString=o}var ir={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){ir[t]=new Ir(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];ir[e]=new Ir(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){ir[t]=new Ir(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){ir[t]=new Ir(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){ir[t]=new Ir(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){ir[t]=new Ir(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){ir[t]=new Ir(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){ir[t]=new Ir(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){ir[t]=new Ir(t,5,!1,t.toLowerCase(),null,!1,!1)});var Ow=/[\-:]([a-z])/g;function Nw(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(Ow,Nw);ir[e]=new Ir(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Ow,Nw);ir[e]=new Ir(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Ow,Nw);ir[e]=new Ir(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){ir[t]=new Ir(t,1,!1,t.toLowerCase(),null,!1,!1)});ir.xlinkHref=new Ir("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){ir[t]=new Ir(t,1,!1,t.toLowerCase(),null,!0,!0)});function Bw(t,e,r,n){var i=ir.hasOwnProperty(e)?ir[e]:null;(i!==null?i.type!==0:n||!(2s||i[o]!==a[s]){var l=` +`+i[o].replace(" at new "," at ");return t.displayName&&l.includes("")&&(l=l.replace("",t.displayName)),l}while(1<=o&&0<=s);break}}}finally{Om=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?tf(t):""}function lH(t){switch(t.tag){case 5:return tf(t.type);case 16:return tf("Lazy");case 13:return tf("Suspense");case 19:return tf("SuspenseList");case 0:case 2:case 15:return t=Nm(t.type,!1),t;case 11:return t=Nm(t.type.render,!1),t;case 1:return t=Nm(t.type,!0),t;default:return""}}function F_(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case $l:return"Fragment";case Wl:return"Portal";case N_:return"Profiler";case zw:return"StrictMode";case B_:return"Suspense";case z_:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case _k:return(t.displayName||"Context")+".Consumer";case mk:return(t._context.displayName||"Context")+".Provider";case Fw:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Vw:return e=t.displayName||null,e!==null?e:F_(t.type)||"Memo";case Fa:e=t._payload,t=t._init;try{return F_(t(e))}catch{}}return null}function uH(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return F_(e);case 8:return e===zw?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function yo(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function xk(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function cH(t){var e=xk(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Rv(t){t._valueTracker||(t._valueTracker=cH(t))}function wk(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=xk(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function Rp(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function V_(t,e){var r=e.checked;return bt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function gA(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=yo(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function bk(t,e){e=e.checked,e!=null&&Bw(t,"checked",e,!1)}function G_(t,e){bk(t,e);var r=yo(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?H_(t,e.type,r):e.hasOwnProperty("defaultValue")&&H_(t,e.type,yo(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function yA(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function H_(t,e,r){(e!=="number"||Rp(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var rf=Array.isArray;function lu(t,e,r,n){if(t=t.options,e){e={};for(var i=0;i"+e.valueOf().toString()+"",e=kv.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Xf(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var _f={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fH=["Webkit","ms","Moz","O"];Object.keys(_f).forEach(function(t){fH.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),_f[e]=_f[t]})});function Mk(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||_f.hasOwnProperty(t)&&_f[t]?(""+e).trim():e+"px"}function Dk(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=Mk(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,i):t[r]=i}}var hH=bt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $_(t,e){if(e){if(hH[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(q(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(q(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(q(61))}if(e.style!=null&&typeof e.style!="object")throw Error(q(62))}}function Y_(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var j_=null;function Gw(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var X_=null,uu=null,cu=null;function SA(t){if(t=qh(t)){if(typeof X_!="function")throw Error(q(280));var e=t.stateNode;e&&(e=fy(e),X_(t.stateNode,t.type,e))}}function Lk(t){uu?cu?cu.push(t):cu=[t]:uu=t}function Pk(){if(uu){var t=uu,e=cu;if(cu=uu=null,SA(t),e)for(t=0;t>>=0,t===0?32:31-(bH(t)/CH|0)|0}var Ov=64,Nv=4194304;function nf(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Bp(t,e){var r=t.pendingLanes;if(r===0)return 0;var n=0,i=t.suspendedLanes,a=t.pingedLanes,o=r&268435455;if(o!==0){var s=o&~i;s!==0?n=nf(s):(a&=o,a!==0&&(n=nf(a)))}else o=r&~i,o!==0?n=nf(o):a!==0&&(n=nf(a));if(n===0)return 0;if(e!==0&&e!==n&&!(e&i)&&(i=n&-n,a=e&-e,i>=a||i===16&&(a&4194240)!==0))return e;if(n&4&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0r;r++)e.push(t);return e}function Xh(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Jn(e),t[e]=r}function DH(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0=xf),LA=String.fromCharCode(32),PA=!1;function qk(t,e){switch(t){case"keyup":return rU.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kk(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Yl=!1;function iU(t,e){switch(t){case"compositionend":return Kk(e);case"keypress":return e.which!==32?null:(PA=!0,LA);case"textInput":return t=e.data,t===LA&&PA?null:t;default:return null}}function aU(t,e){if(Yl)return t==="compositionend"||!Zw&&qk(t,e)?(t=Xk(),ep=Yw=Ya=null,Yl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=kA(r)}}function tO(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?tO(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function rO(){for(var t=window,e=Rp();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=Rp(t.document)}return e}function qw(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function dU(t){var e=rO(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&tO(r.ownerDocument.documentElement,r)){if(n!==null&&qw(r)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!t.extend&&a>n&&(i=n,n=a,a=i),i=OA(r,a);var o=OA(r,n);i&&o&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),a>n?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,jl=null,eS=null,bf=null,tS=!1;function NA(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;tS||jl==null||jl!==Rp(n)||(n=jl,"selectionStart"in n&&qw(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),bf&&eh(bf,n)||(bf=n,n=Vp(eS,"onSelect"),0ql||(t.current=sS[ql],sS[ql]=null,ql--)}function ht(t,e){ql++,sS[ql]=t.current,t.current=e}var mo={},yr=Do(mo),Gr=Do(!1),$s=mo;function bu(t,e){var r=t.type.contextTypes;if(!r)return mo;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=e[a];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function Hr(t){return t=t.childContextTypes,t!=null}function Hp(){dt(Gr),dt(yr)}function UA(t,e,r){if(yr.current!==mo)throw Error(q(168));ht(yr,e),ht(Gr,r)}function fO(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(q(108,uH(t)||"Unknown",i));return bt({},r,n)}function Up(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||mo,$s=yr.current,ht(yr,t),ht(Gr,Gr.current),!0}function WA(t,e,r){var n=t.stateNode;if(!n)throw Error(q(169));r?(t=fO(t,e,$s),n.__reactInternalMemoizedMergedChildContext=t,dt(Gr),dt(yr),ht(yr,t)):dt(Gr),ht(Gr,r)}var Xi=null,hy=!1,qm=!1;function hO(t){Xi===null?Xi=[t]:Xi.push(t)}function AU(t){hy=!0,hO(t)}function Lo(){if(!qm&&Xi!==null){qm=!0;var t=0,e=it;try{var r=Xi;for(it=1;t>=o,i-=o,Zi=1<<32-Jn(e)+i|r<C?(T=b,b=null):T=b.sibling;var A=h(g,b,_[C],S);if(A===null){b===null&&(b=T);break}t&&b&&A.alternate===null&&e(g,b),m=a(A,m,C),x===null?w=A:x.sibling=A,x=A,b=T}if(C===_.length)return r(g,b),pt&&ls(g,C),w;if(b===null){for(;C<_.length;C++)b=f(g,_[C],S),b!==null&&(m=a(b,m,C),x===null?w=b:x.sibling=b,x=b);return pt&&ls(g,C),w}for(b=n(g,b);C<_.length;C++)T=v(b,g,C,_[C],S),T!==null&&(t&&T.alternate!==null&&b.delete(T.key===null?C:T.key),m=a(T,m,C),x===null?w=T:x.sibling=T,x=T);return t&&b.forEach(function(D){return e(g,D)}),pt&&ls(g,C),w}function p(g,m,_,S){var w=pc(_);if(typeof w!="function")throw Error(q(150));if(_=w.call(_),_==null)throw Error(q(151));for(var x=w=null,b=m,C=m=0,T=null,A=_.next();b!==null&&!A.done;C++,A=_.next()){b.index>C?(T=b,b=null):T=b.sibling;var D=h(g,b,A.value,S);if(D===null){b===null&&(b=T);break}t&&b&&D.alternate===null&&e(g,b),m=a(D,m,C),x===null?w=D:x.sibling=D,x=D,b=T}if(A.done)return r(g,b),pt&&ls(g,C),w;if(b===null){for(;!A.done;C++,A=_.next())A=f(g,A.value,S),A!==null&&(m=a(A,m,C),x===null?w=A:x.sibling=A,x=A);return pt&&ls(g,C),w}for(b=n(g,b);!A.done;C++,A=_.next())A=v(b,g,C,A.value,S),A!==null&&(t&&A.alternate!==null&&b.delete(A.key===null?C:A.key),m=a(A,m,C),x===null?w=A:x.sibling=A,x=A);return t&&b.forEach(function(L){return e(g,L)}),pt&&ls(g,C),w}function y(g,m,_,S){if(typeof _=="object"&&_!==null&&_.type===$l&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Ev:e:{for(var w=_.key,x=m;x!==null;){if(x.key===w){if(w=_.type,w===$l){if(x.tag===7){r(g,x.sibling),m=i(x,_.props.children),m.return=g,g=m;break e}}else if(x.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Fa&&KA(w)===x.type){r(g,x.sibling),m=i(x,_.props),m.ref=Sc(g,x,_),m.return=g,g=m;break e}r(g,x);break}else e(g,x);x=x.sibling}_.type===$l?(m=Os(_.props.children,g.mode,S,_.key),m.return=g,g=m):(S=lp(_.type,_.key,_.props,null,g.mode,S),S.ref=Sc(g,m,_),S.return=g,g=S)}return o(g);case Wl:e:{for(x=_.key;m!==null;){if(m.key===x)if(m.tag===4&&m.stateNode.containerInfo===_.containerInfo&&m.stateNode.implementation===_.implementation){r(g,m.sibling),m=i(m,_.children||[]),m.return=g,g=m;break e}else{r(g,m);break}else e(g,m);m=m.sibling}m=i0(_,g.mode,S),m.return=g,g=m}return o(g);case Fa:return x=_._init,y(g,m,x(_._payload),S)}if(rf(_))return d(g,m,_,S);if(pc(_))return p(g,m,_,S);Uv(g,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,m!==null&&m.tag===6?(r(g,m.sibling),m=i(m,_),m.return=g,g=m):(r(g,m),m=n0(_,g.mode,S),m.return=g,g=m),o(g)):r(g,m)}return y}var Tu=SO(!0),xO=SO(!1),Kh={},Pi=Do(Kh),ih=Do(Kh),ah=Do(Kh);function bs(t){if(t===Kh)throw Error(q(174));return t}function ab(t,e){switch(ht(ah,e),ht(ih,t),ht(Pi,Kh),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:W_(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=W_(e,t)}dt(Pi),ht(Pi,e)}function Au(){dt(Pi),dt(ih),dt(ah)}function wO(t){bs(ah.current);var e=bs(Pi.current),r=W_(e,t.type);e!==r&&(ht(ih,t),ht(Pi,r))}function ob(t){ih.current===t&&(dt(Pi),dt(ih))}var St=Do(0);function Zp(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Km=[];function sb(){for(var t=0;tr?r:4,t(!0);var n=Qm.transition;Qm.transition={};try{t(!1),e()}finally{it=r,Qm.transition=n}}function zO(){return In().memoizedState}function PU(t,e,r){var n=so(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},FO(t))VO(e,r);else if(r=gO(t,e,r,n),r!==null){var i=Tr();ei(r,t,n,i),GO(r,e,n)}}function IU(t,e,r){var n=so(t),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(FO(t))VO(e,i);else{var a=t.alternate;if(t.lanes===0&&(a===null||a.lanes===0)&&(a=e.lastRenderedReducer,a!==null))try{var o=e.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,ii(s,o)){var l=e.interleaved;l===null?(i.next=i,nb(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}r=gO(t,e,i,n),r!==null&&(i=Tr(),ei(r,t,n,i),GO(r,e,n))}}function FO(t){var e=t.alternate;return t===xt||e!==null&&e===xt}function VO(t,e){Cf=qp=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function GO(t,e,r){if(r&4194240){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Uw(t,r)}}var Kp={readContext:Pn,useCallback:ur,useContext:ur,useEffect:ur,useImperativeHandle:ur,useInsertionEffect:ur,useLayoutEffect:ur,useMemo:ur,useReducer:ur,useRef:ur,useState:ur,useDebugValue:ur,useDeferredValue:ur,useTransition:ur,useMutableSource:ur,useSyncExternalStore:ur,useId:ur,unstable_isNewReconciler:!1},EU={readContext:Pn,useCallback:function(t,e){return Si().memoizedState=[t,e===void 0?null:e],t},useContext:Pn,useEffect:JA,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,ip(4194308,4,RO.bind(null,e,t),r)},useLayoutEffect:function(t,e){return ip(4194308,4,t,e)},useInsertionEffect:function(t,e){return ip(4,2,t,e)},useMemo:function(t,e){var r=Si();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=Si();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=PU.bind(null,xt,t),[n.memoizedState,t]},useRef:function(t){var e=Si();return t={current:t},e.memoizedState=t},useState:QA,useDebugValue:hb,useDeferredValue:function(t){return Si().memoizedState=t},useTransition:function(){var t=QA(!1),e=t[0];return t=LU.bind(null,t[1]),Si().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=xt,i=Si();if(pt){if(r===void 0)throw Error(q(407));r=r()}else{if(r=e(),qt===null)throw Error(q(349));js&30||TO(n,e,r)}i.memoizedState=r;var a={value:r,getSnapshot:e};return i.queue=a,JA(MO.bind(null,n,a,t),[t]),n.flags|=2048,lh(9,AO.bind(null,n,a,r,e),void 0,null),r},useId:function(){var t=Si(),e=qt.identifierPrefix;if(pt){var r=qi,n=Zi;r=(n&~(1<<32-Jn(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=oh++,0<\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=o.createElement(r,{is:n.is}):(t=o.createElement(r),r==="select"&&(o=t,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):t=o.createElementNS(t,r),t[wi]=e,t[nh]=n,qO(t,e,!1,!1),e.stateNode=t;e:{switch(o=Y_(r,n),r){case"dialog":vt("cancel",t),vt("close",t),i=n;break;case"iframe":case"object":case"embed":vt("load",t),i=n;break;case"video":case"audio":for(i=0;iDu&&(e.flags|=128,n=!0,xc(a,!1),e.lanes=4194304)}else{if(!n)if(t=Zp(o),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),xc(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!pt)return cr(e),null}else 2*Lt()-a.renderingStartTime>Du&&r!==1073741824&&(e.flags|=128,n=!0,xc(a,!1),e.lanes=4194304);a.isBackwards?(o.sibling=e.child,e.child=o):(r=a.last,r!==null?r.sibling=o:e.child=o,a.last=o)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Lt(),e.sibling=null,r=St.current,ht(St,n?r&1|2:r&1),e):(cr(e),null);case 22:case 23:return mb(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?Xr&1073741824&&(cr(e),e.subtreeFlags&6&&(e.flags|=8192)):cr(e),null;case 24:return null;case 25:return null}throw Error(q(156,e.tag))}function VU(t,e){switch(Qw(e),e.tag){case 1:return Hr(e.type)&&Hp(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Au(),dt(Gr),dt(yr),sb(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return ob(e),null;case 13:if(dt(St),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(q(340));Cu()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return dt(St),null;case 4:return Au(),null;case 10:return rb(e.type._context),null;case 22:case 23:return mb(),null;case 24:return null;default:return null}}var $v=!1,pr=!1,GU=typeof WeakSet=="function"?WeakSet:Set,ce=null;function eu(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Tt(t,e,n)}else r.current=null}function _S(t,e,r){try{r()}catch(n){Tt(t,e,n)}}var lM=!1;function HU(t,e){if(rS=zp,t=rO(),qw(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,s=-1,l=-1,u=0,c=0,f=t,h=null;t:for(;;){for(var v;f!==r||i!==0&&f.nodeType!==3||(s=o+i),f!==a||n!==0&&f.nodeType!==3||(l=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(v=f.firstChild)!==null;)h=f,f=v;for(;;){if(f===t)break t;if(h===r&&++u===i&&(s=o),h===a&&++c===n&&(l=o),(v=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=v}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(nS={focusedElem:t,selectionRange:r},zp=!1,ce=e;ce!==null;)if(e=ce,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ce=t;else for(;ce!==null;){e=ce;try{var d=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(d!==null){var p=d.memoizedProps,y=d.memoizedState,g=e.stateNode,m=g.getSnapshotBeforeUpdate(e.elementType===e.type?p:$n(e.type,p),y);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var _=e.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(q(163))}}catch(S){Tt(e,e.return,S)}if(t=e.sibling,t!==null){t.return=e.return,ce=t;break}ce=e.return}return d=lM,lM=!1,d}function Tf(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&t)===t){var a=i.destroy;i.destroy=void 0,a!==void 0&&_S(e,r,a)}i=i.next}while(i!==n)}}function py(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function SS(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function JO(t){var e=t.alternate;e!==null&&(t.alternate=null,JO(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[wi],delete e[nh],delete e[oS],delete e[CU],delete e[TU])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function eN(t){return t.tag===5||t.tag===3||t.tag===4}function uM(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||eN(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function xS(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=Gp));else if(n!==4&&(t=t.child,t!==null))for(xS(t,e,r),t=t.sibling;t!==null;)xS(t,e,r),t=t.sibling}function wS(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(wS(t,e,r),t=t.sibling;t!==null;)wS(t,e,r),t=t.sibling}var er=null,Xn=!1;function Ma(t,e,r){for(r=r.child;r!==null;)tN(t,e,r),r=r.sibling}function tN(t,e,r){if(Li&&typeof Li.onCommitFiberUnmount=="function")try{Li.onCommitFiberUnmount(sy,r)}catch{}switch(r.tag){case 5:pr||eu(r,e);case 6:var n=er,i=Xn;er=null,Ma(t,e,r),er=n,Xn=i,er!==null&&(Xn?(t=er,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):er.removeChild(r.stateNode));break;case 18:er!==null&&(Xn?(t=er,r=r.stateNode,t.nodeType===8?Zm(t.parentNode,r):t.nodeType===1&&Zm(t,r),Qf(t)):Zm(er,r.stateNode));break;case 4:n=er,i=Xn,er=r.stateNode.containerInfo,Xn=!0,Ma(t,e,r),er=n,Xn=i;break;case 0:case 11:case 14:case 15:if(!pr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&_S(r,e,o),i=i.next}while(i!==n)}Ma(t,e,r);break;case 1:if(!pr&&(eu(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Tt(r,e,s)}Ma(t,e,r);break;case 21:Ma(t,e,r);break;case 22:r.mode&1?(pr=(n=pr)||r.memoizedState!==null,Ma(t,e,r),pr=n):Ma(t,e,r);break;default:Ma(t,e,r)}}function cM(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new GU),e.forEach(function(n){var i=KU.bind(null,t,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Fn(t,e){var r=e.deletions;if(r!==null)for(var n=0;ni&&(i=o),n&=~a}if(n=i,n=Lt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*WU(n/1960))-n,10t?16:t,ja===null)var n=!1;else{if(t=ja,ja=null,eg=0,Xe&6)throw Error(q(331));var i=Xe;for(Xe|=4,ce=t.current;ce!==null;){var a=ce,o=a.child;if(ce.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lLt()-gb?ks(t,0):pb|=r),Ur(t,e)}function uN(t,e){e===0&&(t.mode&1?(e=Nv,Nv<<=1,!(Nv&130023424)&&(Nv=4194304)):e=1);var r=Tr();t=fa(t,e),t!==null&&(Xh(t,e,r),Ur(t,r))}function qU(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),uN(t,r)}function KU(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,i=t.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(q(314))}n!==null&&n.delete(e),uN(t,r)}var cN;cN=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||Gr.current)Vr=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return Vr=!1,zU(t,e,r);Vr=!!(t.flags&131072)}else Vr=!1,pt&&e.flags&1048576&&vO(e,$p,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;ap(t,e),t=e.pendingProps;var i=bu(e,yr.current);hu(e,r),i=ub(null,e,n,t,i,r);var a=cb();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Hr(n)?(a=!0,Up(e)):a=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ib(e),i.updater=vy,e.stateNode=i,i._reactInternals=e,hS(e,n,t,r),e=pS(null,e,n,!0,a,r)):(e.tag=0,pt&&a&&Kw(e),xr(null,e,i,r),e=e.child),e;case 16:n=e.elementType;e:{switch(ap(t,e),t=e.pendingProps,i=n._init,n=i(n._payload),e.type=n,i=e.tag=JU(n),t=$n(n,t),i){case 0:e=dS(null,e,n,t,r);break e;case 1:e=aM(null,e,n,t,r);break e;case 11:e=nM(null,e,n,t,r);break e;case 14:e=iM(null,e,n,$n(n.type,t),r);break e}throw Error(q(306,n,""))}return e;case 0:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:$n(n,i),dS(t,e,n,i,r);case 1:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:$n(n,i),aM(t,e,n,i,r);case 3:e:{if(jO(e),t===null)throw Error(q(387));n=e.pendingProps,a=e.memoizedState,i=a.element,yO(t,e),Xp(e,n,null,r);var o=e.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=a,e.memoizedState=a,e.flags&256){i=Mu(Error(q(423)),e),e=oM(t,e,n,r,i);break e}else if(n!==i){i=Mu(Error(q(424)),e),e=oM(t,e,n,r,i);break e}else for(Kr=io(e.stateNode.containerInfo.firstChild),Jr=e,pt=!0,Zn=null,r=xO(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Cu(),n===i){e=ha(t,e,r);break e}xr(t,e,n,r)}e=e.child}return e;case 5:return wO(e),t===null&&uS(e),n=e.type,i=e.pendingProps,a=t!==null?t.memoizedProps:null,o=i.children,iS(n,i)?o=null:a!==null&&iS(n,a)&&(e.flags|=32),YO(t,e),xr(t,e,o,r),e.child;case 6:return t===null&&uS(e),null;case 13:return XO(t,e,r);case 4:return ab(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Tu(e,null,n,r):xr(t,e,n,r),e.child;case 11:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:$n(n,i),nM(t,e,n,i,r);case 7:return xr(t,e,e.pendingProps,r),e.child;case 8:return xr(t,e,e.pendingProps.children,r),e.child;case 12:return xr(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(n=e.type._context,i=e.pendingProps,a=e.memoizedProps,o=i.value,ht(Yp,n._currentValue),n._currentValue=o,a!==null)if(ii(a.value,o)){if(a.children===i.children&&!Gr.current){e=ha(t,e,r);break e}}else for(a=e.child,a!==null&&(a.return=e);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=na(-1,r&-r),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),cS(a.return,r,e),s.lanes|=r;break}l=l.next}}else if(a.tag===10)o=a.type===e.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(q(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),cS(o,r,e),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===e){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}xr(t,e,i.children,r),e=e.child}return e;case 9:return i=e.type,n=e.pendingProps.children,hu(e,r),i=Pn(i),n=n(i),e.flags|=1,xr(t,e,n,r),e.child;case 14:return n=e.type,i=$n(n,e.pendingProps),i=$n(n.type,i),iM(t,e,n,i,r);case 15:return WO(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:$n(n,i),ap(t,e),e.tag=1,Hr(n)?(t=!0,Up(e)):t=!1,hu(e,r),_O(e,n,i),hS(e,n,i,r),pS(null,e,n,!0,t,r);case 19:return ZO(t,e,r);case 22:return $O(t,e,r)}throw Error(q(156,e.tag))};function fN(t,e){return Bk(t,e)}function QU(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tn(t,e,r,n){return new QU(t,e,r,n)}function Sb(t){return t=t.prototype,!(!t||!t.isReactComponent)}function JU(t){if(typeof t=="function")return Sb(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Fw)return 11;if(t===Vw)return 14}return 2}function lo(t,e){var r=t.alternate;return r===null?(r=Tn(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function lp(t,e,r,n,i,a){var o=2;if(n=t,typeof t=="function")Sb(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case $l:return Os(r.children,i,a,e);case zw:o=8,i|=8;break;case N_:return t=Tn(12,r,e,i|2),t.elementType=N_,t.lanes=a,t;case B_:return t=Tn(13,r,e,i),t.elementType=B_,t.lanes=a,t;case z_:return t=Tn(19,r,e,i),t.elementType=z_,t.lanes=a,t;case Sk:return yy(r,i,a,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case mk:o=10;break e;case _k:o=9;break e;case Fw:o=11;break e;case Vw:o=14;break e;case Fa:o=16,n=null;break e}throw Error(q(130,t==null?t:typeof t,""))}return e=Tn(o,r,e,i),e.elementType=t,e.type=n,e.lanes=a,e}function Os(t,e,r,n){return t=Tn(7,t,n,e),t.lanes=r,t}function yy(t,e,r,n){return t=Tn(22,t,n,e),t.elementType=Sk,t.lanes=r,t.stateNode={isHidden:!1},t}function n0(t,e,r){return t=Tn(6,t,null,e),t.lanes=r,t}function i0(t,e,r){return e=Tn(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function e6(t,e,r,n,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zm(0),this.expirationTimes=zm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zm(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function xb(t,e,r,n,i,a,o,s,l){return t=new e6(t,e,r,s,l),e===1?(e=1,a===!0&&(e|=8)):e=0,a=Tn(3,null,null,e),t.current=a,a.stateNode=t,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},ib(a),t}function t6(t,e,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(pN)}catch(t){console.error(t)}}pN(),vk.exports=an;var o6=vk.exports,mM=o6;k_.createRoot=mM.createRoot,k_.hydrateRoot=mM.hydrateRoot;/** + * @remix-run/router v1.6.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Je(){return Je=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function Lu(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function l6(){return Math.random().toString(36).substr(2,8)}function SM(t,e){return{usr:t.state,key:t.key,idx:e}}function ch(t,e,r,n){return r===void 0&&(r=null),Je({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?xa(e):e,{state:r,key:e&&e.key||n||l6()})}function qs(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function xa(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function u6(t,e,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:a=!1}=n,o=i.history,s=Et.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(Je({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function f(){s=Et.Pop;let y=c(),g=y==null?null:y-u;u=y,l&&l({action:s,location:p.location,delta:g})}function h(y,g){s=Et.Push;let m=ch(p.location,y,g);r&&r(m,y),u=c()+1;let _=SM(m,u),S=p.createHref(m);try{o.pushState(_,"",S)}catch{i.location.assign(S)}a&&l&&l({action:s,location:p.location,delta:1})}function v(y,g){s=Et.Replace;let m=ch(p.location,y,g);r&&r(m,y),u=c();let _=SM(m,u),S=p.createHref(m);o.replaceState(_,"",S),a&&l&&l({action:s,location:p.location,delta:0})}function d(y){let g=i.location.origin!=="null"?i.location.origin:i.location.href,m=typeof y=="string"?y:qs(y);return He(g,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,g)}let p={get action(){return s},get location(){return t(i,o)},listen(y){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(_M,f),l=y,()=>{i.removeEventListener(_M,f),l=null}},createHref(y){return e(i,y)},createURL:d,encodeLocation(y){let g=d(y);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:v,go(y){return o.go(y)}};return p}var Nt;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Nt||(Nt={}));const c6=new Set(["lazy","caseSensitive","path","id","index","children"]);function f6(t){return t.index===!0}function gN(t,e,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),t.map((i,a)=>{let o=[...r,a],s=typeof i.id=="string"?i.id:o.join("-");if(He(i.index!==!0||!i.children,"Cannot specify children on an index route"),He(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),f6(i)){let l=Je({},i,e(i),{id:s});return n[s]=l,l}else{let l=Je({},i,e(i),{id:s,children:void 0});return n[s]=l,i.children&&(l.children=gN(i.children,e,o,n)),l}})}function ru(t,e,r){r===void 0&&(r="/");let n=typeof e=="string"?xa(e):e,i=ju(n.pathname||"/",r);if(i==null)return null;let a=yN(t);h6(a);let o=null;for(let s=0;o==null&&s{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(He(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=ia([n,l.relativePath]),c=r.concat(l);a.children&&a.children.length>0&&(He(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),yN(a.children,e,c,u)),!(a.path==null&&!a.index)&&e.push({path:u,score:_6(u,a.index),routesMeta:c})};return t.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of mN(a.path))i(a,o,l)}),e}function mN(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return i?[a,""]:[a];let o=mN(n.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>t.startsWith("/")&&l===""?"/":l)}function h6(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:S6(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const v6=/^:\w+$/,d6=3,p6=2,g6=1,y6=10,m6=-2,xM=t=>t==="*";function _6(t,e){let r=t.split("/"),n=r.length;return r.some(xM)&&(n+=m6),e&&(n+=p6),r.filter(i=>!xM(i)).reduce((i,a)=>i+(v6.test(a)?d6:a===""?g6:y6),n)}function S6(t,e){return t.length===e.length&&t.slice(0,-1).every((n,i)=>n===e[i])?t[t.length-1]-e[e.length-1]:0}function x6(t,e){let{routesMeta:r}=t,n={},i="/",a=[];for(let o=0;o{if(c==="*"){let h=s[f]||"";o=a.slice(0,a.length-h.length).replace(/(.)\/+$/,"$1")}return u[c]=T6(s[f]||"",c),u},{}),pathname:a,pathnameBase:o,pattern:t}}function b6(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),Lu(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,s)=>(n.push(s),"/([^\\/]+)"));return t.endsWith("*")?(n.push("*"),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),n]}function C6(t){try{return decodeURI(t)}catch(e){return Lu(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function T6(t,e){try{return decodeURIComponent(t)}catch(r){return Lu(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+t+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),t}}function ju(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function A6(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:i=""}=typeof t=="string"?xa(t):t;return{pathname:r?r.startsWith("/")?r:M6(r,e):e,search:L6(n),hash:P6(i)}}function M6(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function a0(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function wy(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function Tb(t,e,r,n){n===void 0&&(n=!1);let i;typeof t=="string"?i=xa(t):(i=Je({},t),He(!i.pathname||!i.pathname.includes("?"),a0("?","pathname","search",i)),He(!i.pathname||!i.pathname.includes("#"),a0("#","pathname","hash",i)),He(!i.search||!i.search.includes("#"),a0("#","search","hash",i)));let a=t===""||i.pathname==="",o=a?"/":i.pathname,s;if(n||o==null)s=r;else{let f=e.length-1;if(o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),f-=1;i.pathname=h.join("/")}s=f>=0?e[f]:"/"}let l=A6(i,s),u=o&&o!=="/"&&o.endsWith("/"),c=(a||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const ia=t=>t.join("/").replace(/\/\/+/g,"/"),D6=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),L6=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,P6=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class Ab{constructor(e,r,n,i){i===void 0&&(i=!1),this.status=e,this.statusText=r||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function _N(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const SN=["post","put","patch","delete"],I6=new Set(SN),E6=["get",...SN],R6=new Set(E6),k6=new Set([301,302,303,307,308]),O6=new Set([307,308]),o0={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},N6={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},wM={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},xN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",B6=!wN,z6=t=>({hasErrorBoundary:!!t.hasErrorBoundary});function F6(t){He(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let e;if(t.mapRouteProperties)e=t.mapRouteProperties;else if(t.detectErrorBoundary){let U=t.detectErrorBoundary;e=W=>({hasErrorBoundary:U(W)})}else e=z6;let r={},n=gN(t.routes,e,void 0,r),i,a=t.basename||"/",o=Je({v7_normalizeFormMethod:!1,v7_prependBasename:!1},t.future),s=null,l=new Set,u=null,c=null,f=null,h=t.hydrationData!=null,v=ru(n,t.history.location,a),d=null;if(v==null){let U=Yn(404,{pathname:t.history.location.pathname}),{matches:W,route:X}=LM(n);v=W,d={[X.id]:U}}let p=!v.some(U=>U.route.lazy)&&(!v.some(U=>U.route.loader)||t.hydrationData!=null),y,g={historyAction:t.history.action,location:t.history.location,matches:v,initialized:p,navigation:o0,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||d,fetchers:new Map,blockers:new Map},m=Et.Pop,_=!1,S,w=!1,x=!1,b=[],C=[],T=new Map,A=0,D=-1,L=new Map,P=new Set,I=new Map,E=new Map,k=new Map,B=!1;function R(){return s=t.history.listen(U=>{let{action:W,location:X,delta:he}=U;if(B){B=!1;return}Lu(k.size===0||he!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let ge=sA({currentLocation:g.location,nextLocation:X,historyAction:W});if(ge&&he!=null){B=!0,t.history.go(he*-1),Ta(ge,{state:"blocked",location:X,proceed(){Ta(ge,{state:"proceeding",proceed:void 0,reset:void 0,location:X}),t.history.go(he)},reset(){Ca(ge),V({blockers:new Map(y.state.blockers)})}});return}return ve(W,X)}),g.initialized||ve(Et.Pop,g.location),y}function O(){s&&s(),l.clear(),S&&S.abort(),g.fetchers.forEach((U,W)=>ot(W)),g.blockers.forEach((U,W)=>Ca(W))}function z(U){return l.add(U),()=>l.delete(U)}function V(U){g=Je({},g,U),l.forEach(W=>W(g))}function Y(U,W){var X,he;let ge=g.actionData!=null&&g.navigation.formMethod!=null&&$i(g.navigation.formMethod)&&g.navigation.state==="loading"&&((X=U.state)==null?void 0:X._isRedirect)!==!0,Re;W.actionData?Object.keys(W.actionData).length>0?Re=W.actionData:Re=null:ge?Re=g.actionData:Re=null;let Be=W.loaderData?DM(g.loaderData,W.loaderData,W.matches||[],W.errors):g.loaderData;for(let[_e]of k)Ca(_e);let Le=_===!0||g.navigation.formMethod!=null&&$i(g.navigation.formMethod)&&((he=U.state)==null?void 0:he._isRedirect)!==!0;i&&(n=i,i=void 0),V(Je({},W,{actionData:Re,loaderData:Be,historyAction:m,location:U,initialized:!0,navigation:o0,revalidation:"idle",restoreScrollPosition:lA(U,W.matches||g.matches),preventScrollReset:Le,blockers:new Map(g.blockers)})),w||m===Et.Pop||(m===Et.Push?t.history.push(U,U.state):m===Et.Replace&&t.history.replace(U,U.state)),m=Et.Pop,_=!1,w=!1,x=!1,b=[],C=[]}async function re(U,W){if(typeof U=="number"){t.history.go(U);return}let X=MS(g.location,g.matches,a,o.v7_prependBasename,U,W==null?void 0:W.fromRouteId,W==null?void 0:W.relative),{path:he,submission:ge,error:Re}=bM(o.v7_normalizeFormMethod,!1,X,W),Be=g.location,Le=ch(g.location,he,W&&W.state);Le=Je({},Le,t.history.encodeLocation(Le));let _e=W&&W.replace!=null?W.replace:void 0,Ze=Et.Push;_e===!0?Ze=Et.Replace:_e===!1||ge!=null&&$i(ge.formMethod)&&ge.formAction===g.location.pathname+g.location.search&&(Ze=Et.Replace);let st=W&&"preventScrollReset"in W?W.preventScrollReset===!0:void 0,lr=sA({currentLocation:Be,nextLocation:Le,historyAction:Ze});if(lr){Ta(lr,{state:"blocked",location:Le,proceed(){Ta(lr,{state:"proceeding",proceed:void 0,reset:void 0,location:Le}),re(U,W)},reset(){Ca(lr),V({blockers:new Map(g.blockers)})}});return}return await ve(Ze,Le,{submission:ge,pendingError:Re,preventScrollReset:st,replace:W&&W.replace})}function te(){if(Ee(),V({revalidation:"loading"}),g.navigation.state!=="submitting"){if(g.navigation.state==="idle"){ve(g.historyAction,g.location,{startUninterruptedRevalidation:!0});return}ve(m||g.historyAction,g.navigation.location,{overrideNavigation:g.navigation})}}async function ve(U,W,X){S&&S.abort(),S=null,m=U,w=(X&&X.startUninterruptedRevalidation)===!0,RG(g.location,g.matches),_=(X&&X.preventScrollReset)===!0;let he=i||n,ge=X&&X.overrideNavigation,Re=ru(he,W,a);if(!Re){let Yt=Yn(404,{pathname:W.pathname}),{matches:jt,route:ln}=LM(he);Am(),Y(W,{matches:jt,loaderData:{},errors:{[ln.id]:Yt}});return}if(W6(g.location,W)&&!(X&&X.submission&&$i(X.submission.formMethod))){Y(W,{matches:Re});return}S=new AbortController;let Be=Cc(t.history,W,S.signal,X&&X.submission),Le,_e;if(X&&X.pendingError)_e={[nu(Re).route.id]:X.pendingError};else if(X&&X.submission&&$i(X.submission.formMethod)){let Yt=await Me(Be,W,X.submission,Re,{replace:X.replace});if(Yt.shortCircuited)return;Le=Yt.pendingActionData,_e=Yt.pendingActionError,ge=Je({state:"loading",location:W},X.submission),Be=new Request(Be.url,{signal:Be.signal})}let{shortCircuited:Ze,loaderData:st,errors:lr}=await me(Be,W,Re,ge,X&&X.submission,X&&X.fetcherSubmission,X&&X.replace,Le,_e);Ze||(S=null,Y(W,Je({matches:Re},Le?{actionData:Le}:{},{loaderData:st,errors:lr})))}async function Me(U,W,X,he,ge){Ee();let Re=Je({state:"submitting",location:W},X);V({navigation:Re});let Be,Le=DS(he,W);if(!Le.route.action&&!Le.route.lazy)Be={type:Nt.error,error:Yn(405,{method:U.method,pathname:W.pathname,routeId:Le.route.id})};else if(Be=await bc("action",U,Le,he,r,e,a),U.signal.aborted)return{shortCircuited:!0};if(du(Be)){let _e;return ge&&ge.replace!=null?_e=ge.replace:_e=Be.location===g.location.pathname+g.location.search,await de(g,Be,{submission:X,replace:_e}),{shortCircuited:!0}}if(Df(Be)){let _e=nu(he,Le.route.id);return(ge&&ge.replace)!==!0&&(m=Et.Push),{pendingActionData:{},pendingActionError:{[_e.route.id]:Be.error}}}if(Cs(Be))throw Yn(400,{type:"defer-action"});return{pendingActionData:{[Le.route.id]:Be.data}}}async function me(U,W,X,he,ge,Re,Be,Le,_e){let Ze=he;Ze||(Ze=Je({state:"loading",location:W,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},ge));let st=ge||Re?ge||Re:Ze.formMethod&&Ze.formAction&&Ze.formData&&Ze.formEncType?{formMethod:Ze.formMethod,formAction:Ze.formAction,formData:Ze.formData,formEncType:Ze.formEncType}:void 0,lr=i||n,[Yt,jt]=CM(t.history,g,X,st,W,x,b,C,I,lr,a,Le,_e);if(Am(_t=>!(X&&X.some(un=>un.route.id===_t))||Yt&&Yt.some(un=>un.route.id===_t)),Yt.length===0&&jt.length===0){let _t=Jt();return Y(W,Je({matches:X,loaderData:{},errors:_e||null},Le?{actionData:Le}:{},_t?{fetchers:new Map(g.fetchers)}:{})),{shortCircuited:!0}}if(!w){jt.forEach(un=>{let pl=g.fetchers.get(un.key),Im={state:"loading",data:pl&&pl.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};g.fetchers.set(un.key,Im)});let _t=Le||g.actionData;V(Je({navigation:Ze},_t?Object.keys(_t).length===0?{actionData:null}:{actionData:_t}:{},jt.length>0?{fetchers:new Map(g.fetchers)}:{}))}D=++A,jt.forEach(_t=>{_t.controller&&T.set(_t.key,_t.controller)});let ln=()=>jt.forEach(_t=>mt(_t.key));S&&S.signal.addEventListener("abort",ln);let{results:dc,loaderResults:Mm,fetcherResults:Dv}=await rt(g.matches,X,Yt,jt,U);if(U.signal.aborted)return{shortCircuited:!0};S&&S.signal.removeEventListener("abort",ln),jt.forEach(_t=>T.delete(_t.key));let Aa=PM(dc);if(Aa)return await de(g,Aa,{replace:Be}),{shortCircuited:!0};let{loaderData:Lv,errors:Dm}=MM(g,X,Yt,Mm,_e,jt,Dv,E);E.forEach((_t,un)=>{_t.subscribe(pl=>{(pl||_t.done)&&E.delete(un)})});let Lm=Jt(),Pm=No(D),Pv=Lm||Pm||jt.length>0;return Je({loaderData:Lv,errors:Dm},Pv?{fetchers:new Map(g.fetchers)}:{})}function ue(U){return g.fetchers.get(U)||N6}function De(U,W,X,he){if(B6)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");T.has(U)&&mt(U);let ge=i||n,Re=MS(g.location,g.matches,a,o.v7_prependBasename,X,W,he==null?void 0:he.relative),Be=ru(ge,Re,a);if(!Be){ct(U,W,Yn(404,{pathname:Re}));return}let{path:Le,submission:_e}=bM(o.v7_normalizeFormMethod,!0,Re,he),Ze=DS(Be,Le);if(_=(he&&he.preventScrollReset)===!0,_e&&$i(_e.formMethod)){xe(U,W,Le,Ze,Be,_e);return}I.set(U,{routeId:W,path:Le}),ne(U,W,Le,Ze,Be,_e)}async function xe(U,W,X,he,ge,Re){if(Ee(),I.delete(U),!he.route.action&&!he.route.lazy){let $r=Yn(405,{method:Re.formMethod,pathname:X,routeId:W});ct(U,W,$r);return}let Be=g.fetchers.get(U),Le=Je({state:"submitting"},Re,{data:Be&&Be.data," _hasFetcherDoneAnything ":!0});g.fetchers.set(U,Le),V({fetchers:new Map(g.fetchers)});let _e=new AbortController,Ze=Cc(t.history,X,_e.signal,Re);T.set(U,_e);let st=await bc("action",Ze,he,ge,r,e,a);if(Ze.signal.aborted){T.get(U)===_e&&T.delete(U);return}if(du(st)){T.delete(U),P.add(U);let $r=Je({state:"loading"},Re,{data:void 0," _hasFetcherDoneAnything ":!0});return g.fetchers.set(U,$r),V({fetchers:new Map(g.fetchers)}),de(g,st,{submission:Re,isFetchActionRedirect:!0})}if(Df(st)){ct(U,W,st.error);return}if(Cs(st))throw Yn(400,{type:"defer-action"});let lr=g.navigation.location||g.location,Yt=Cc(t.history,lr,_e.signal),jt=i||n,ln=g.navigation.state!=="idle"?ru(jt,g.navigation.location,a):g.matches;He(ln,"Didn't find any matches after fetcher action");let dc=++A;L.set(U,dc);let Mm=Je({state:"loading",data:st.data},Re,{" _hasFetcherDoneAnything ":!0});g.fetchers.set(U,Mm);let[Dv,Aa]=CM(t.history,g,ln,Re,lr,x,b,C,I,jt,a,{[he.route.id]:st.data},void 0);Aa.filter($r=>$r.key!==U).forEach($r=>{let Em=$r.key,uA=g.fetchers.get(Em),OG={state:"loading",data:uA&&uA.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};g.fetchers.set(Em,OG),$r.controller&&T.set(Em,$r.controller)}),V({fetchers:new Map(g.fetchers)});let Lv=()=>Aa.forEach($r=>mt($r.key));_e.signal.addEventListener("abort",Lv);let{results:Dm,loaderResults:Lm,fetcherResults:Pm}=await rt(g.matches,ln,Dv,Aa,Yt);if(_e.signal.aborted)return;_e.signal.removeEventListener("abort",Lv),L.delete(U),T.delete(U),Aa.forEach($r=>T.delete($r.key));let Pv=PM(Dm);if(Pv)return de(g,Pv);let{loaderData:_t,errors:un}=MM(g,g.matches,Dv,Lm,void 0,Aa,Pm,E),pl={state:"idle",data:st.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};g.fetchers.set(U,pl);let Im=No(dc);g.navigation.state==="loading"&&dc>D?(He(m,"Expected pending action"),S&&S.abort(),Y(g.navigation.location,{matches:ln,loaderData:_t,errors:un,fetchers:new Map(g.fetchers)})):(V(Je({errors:un,loaderData:DM(g.loaderData,_t,ln,un)},Im?{fetchers:new Map(g.fetchers)}:{})),x=!1)}async function ne(U,W,X,he,ge,Re){let Be=g.fetchers.get(U),Le=Je({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Re,{data:Be&&Be.data," _hasFetcherDoneAnything ":!0});g.fetchers.set(U,Le),V({fetchers:new Map(g.fetchers)});let _e=new AbortController,Ze=Cc(t.history,X,_e.signal);T.set(U,_e);let st=await bc("loader",Ze,he,ge,r,e,a);if(Cs(st)&&(st=await AN(st,Ze.signal,!0)||st),T.get(U)===_e&&T.delete(U),Ze.signal.aborted)return;if(du(st)){P.add(U),await de(g,st);return}if(Df(st)){let Yt=nu(g.matches,W);g.fetchers.delete(U),V({fetchers:new Map(g.fetchers),errors:{[Yt.route.id]:st.error}});return}He(!Cs(st),"Unhandled fetcher deferred data");let lr={state:"idle",data:st.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};g.fetchers.set(U,lr),V({fetchers:new Map(g.fetchers)})}async function de(U,W,X){var he;let{submission:ge,replace:Re,isFetchActionRedirect:Be}=X===void 0?{}:X;W.revalidate&&(x=!0);let Le=ch(U.location,W.location,Je({_isRedirect:!0},Be?{_isFetchActionRedirect:!0}:{}));if(He(Le,"Expected a location on the redirect navigation"),xN.test(W.location)&&wN&&typeof((he=window)==null?void 0:he.location)<"u"){let jt=t.history.createURL(W.location),ln=ju(jt.pathname,a)==null;if(window.location.origin!==jt.origin||ln){Re?window.location.replace(W.location):window.location.assign(W.location);return}}S=null;let _e=Re===!0?Et.Replace:Et.Push,{formMethod:Ze,formAction:st,formEncType:lr,formData:Yt}=U.navigation;!ge&&Ze&&st&&Yt&&lr&&(ge={formMethod:Ze,formAction:st,formEncType:lr,formData:Yt}),O6.has(W.status)&&ge&&$i(ge.formMethod)?await ve(_e,Le,{submission:Je({},ge,{formAction:W.location}),preventScrollReset:_}):Be?await ve(_e,Le,{overrideNavigation:{state:"loading",location:Le,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},fetcherSubmission:ge,preventScrollReset:_}):await ve(_e,Le,{overrideNavigation:{state:"loading",location:Le,formMethod:ge?ge.formMethod:void 0,formAction:ge?ge.formAction:void 0,formEncType:ge?ge.formEncType:void 0,formData:ge?ge.formData:void 0},preventScrollReset:_})}async function rt(U,W,X,he,ge){let Re=await Promise.all([...X.map(_e=>bc("loader",ge,_e,W,r,e,a)),...he.map(_e=>_e.matches&&_e.match&&_e.controller?bc("loader",Cc(t.history,_e.path,_e.controller.signal),_e.match,_e.matches,r,e,a):{type:Nt.error,error:Yn(404,{pathname:_e.path})})]),Be=Re.slice(0,X.length),Le=Re.slice(X.length);return await Promise.all([IM(U,X,Be,Be.map(()=>ge.signal),!1,g.loaderData),IM(U,he.map(_e=>_e.match),Le,he.map(_e=>_e.controller?_e.controller.signal:null),!0)]),{results:Re,loaderResults:Be,fetcherResults:Le}}function Ee(){x=!0,b.push(...Am()),I.forEach((U,W)=>{T.has(W)&&(C.push(W),mt(W))})}function ct(U,W,X){let he=nu(g.matches,W);ot(U),V({errors:{[he.route.id]:X},fetchers:new Map(g.fetchers)})}function ot(U){T.has(U)&&mt(U),I.delete(U),L.delete(U),P.delete(U),g.fetchers.delete(U)}function mt(U){let W=T.get(U);He(W,"Expected fetch controller: "+U),W.abort(),T.delete(U)}function sn(U){for(let W of U){let he={state:"idle",data:ue(W).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};g.fetchers.set(W,he)}}function Jt(){let U=[],W=!1;for(let X of P){let he=g.fetchers.get(X);He(he,"Expected fetcher: "+X),he.state==="loading"&&(P.delete(X),U.push(X),W=!0)}return sn(U),W}function No(U){let W=[];for(let[X,he]of L)if(he0}function fi(U,W){let X=g.blockers.get(U)||wM;return k.get(U)!==W&&k.set(U,W),X}function Ca(U){g.blockers.delete(U),k.delete(U)}function Ta(U,W){let X=g.blockers.get(U)||wM;He(X.state==="unblocked"&&W.state==="blocked"||X.state==="blocked"&&W.state==="blocked"||X.state==="blocked"&&W.state==="proceeding"||X.state==="blocked"&&W.state==="unblocked"||X.state==="proceeding"&&W.state==="unblocked","Invalid blocker state transition: "+X.state+" -> "+W.state),g.blockers.set(U,W),V({blockers:new Map(g.blockers)})}function sA(U){let{currentLocation:W,nextLocation:X,historyAction:he}=U;if(k.size===0)return;k.size>1&&Lu(!1,"A router only supports one blocker at a time");let ge=Array.from(k.entries()),[Re,Be]=ge[ge.length-1],Le=g.blockers.get(Re);if(!(Le&&Le.state==="proceeding")&&Be({currentLocation:W,nextLocation:X,historyAction:he}))return Re}function Am(U){let W=[];return E.forEach((X,he)=>{(!U||U(he))&&(X.cancel(),W.push(he),E.delete(he))}),W}function EG(U,W,X){if(u=U,f=W,c=X||(he=>he.key),!h&&g.navigation===o0){h=!0;let he=lA(g.location,g.matches);he!=null&&V({restoreScrollPosition:he})}return()=>{u=null,f=null,c=null}}function RG(U,W){if(u&&c&&f){let X=W.map(ge=>EM(ge,g.loaderData)),he=c(U,X)||U.key;u[he]=f()}}function lA(U,W){if(u&&c&&f){let X=W.map(Re=>EM(Re,g.loaderData)),he=c(U,X)||U.key,ge=u[he];if(typeof ge=="number")return ge}return null}function kG(U){i=U}return y={get basename(){return a},get state(){return g},get routes(){return n},initialize:R,subscribe:z,enableScrollRestoration:EG,navigate:re,fetch:De,revalidate:te,createHref:U=>t.history.createHref(U),encodeLocation:U=>t.history.encodeLocation(U),getFetcher:ue,deleteFetcher:ot,dispose:O,getBlocker:fi,deleteBlocker:Ca,_internalFetchControllers:T,_internalActiveDeferreds:E,_internalSetRoutes:kG},y}function V6(t){return t!=null&&"formData"in t}function MS(t,e,r,n,i,a,o){let s,l;if(a!=null&&o!=="path"){s=[];for(let c of e)if(s.push(c),c.route.id===a){l=c;break}}else s=e,l=e[e.length-1];let u=Tb(i||".",wy(s).map(c=>c.pathnameBase),ju(t.pathname,r)||t.pathname,o==="path");return i==null&&(u.search=t.search,u.hash=t.hash),(i==null||i===""||i===".")&&l&&l.route.index&&!Mb(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(u.pathname=u.pathname==="/"?r:ia([r,u.pathname])),qs(u)}function bM(t,e,r,n){if(!n||!V6(n))return{path:r};if(n.formMethod&&!j6(n.formMethod))return{path:r,error:Yn(405,{method:n.formMethod})};let i;if(n.formData){let s=n.formMethod||"get";if(i={formMethod:t?s.toUpperCase():s.toLowerCase(),formAction:TN(r),formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:n.formData},$i(i.formMethod))return{path:r,submission:i}}let a=xa(r),o=CN(n.formData);return e&&a.search&&Mb(a.search)&&o.append("index",""),a.search="?"+o,{path:qs(a),submission:i}}function G6(t,e){let r=t;if(e){let n=t.findIndex(i=>i.route.id===e);n>=0&&(r=t.slice(0,n))}return r}function CM(t,e,r,n,i,a,o,s,l,u,c,f,h){let v=h?Object.values(h)[0]:f?Object.values(f)[0]:void 0,d=t.createURL(e.location),p=t.createURL(i),y=h?Object.keys(h)[0]:void 0,m=G6(r,y).filter((S,w)=>{if(S.route.lazy)return!0;if(S.route.loader==null)return!1;if(H6(e.loaderData,e.matches[w],S)||o.some(C=>C===S.route.id))return!0;let x=e.matches[w],b=S;return TM(S,Je({currentUrl:d,currentParams:x.params,nextUrl:p,nextParams:b.params},n,{actionResult:v,defaultShouldRevalidate:a||d.pathname+d.search===p.pathname+p.search||d.search!==p.search||bN(x,b)}))}),_=[];return l.forEach((S,w)=>{if(!r.some(T=>T.route.id===S.routeId))return;let x=ru(u,S.path,c);if(!x){_.push({key:w,routeId:S.routeId,path:S.path,matches:null,match:null,controller:null});return}let b=DS(x,S.path);if(s.includes(w)){_.push({key:w,routeId:S.routeId,path:S.path,matches:x,match:b,controller:new AbortController});return}TM(b,Je({currentUrl:d,currentParams:e.matches[e.matches.length-1].params,nextUrl:p,nextParams:r[r.length-1].params},n,{actionResult:v,defaultShouldRevalidate:a}))&&_.push({key:w,routeId:S.routeId,path:S.path,matches:x,match:b,controller:new AbortController})}),[m,_]}function H6(t,e,r){let n=!e||r.route.id!==e.route.id,i=t[r.route.id]===void 0;return n||i}function bN(t,e){let r=t.route.path;return t.pathname!==e.pathname||r!=null&&r.endsWith("*")&&t.params["*"]!==e.params["*"]}function TM(t,e){if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate(e);if(typeof r=="boolean")return r}return e.defaultShouldRevalidate}async function AM(t,e,r){if(!t.lazy)return;let n=await t.lazy();if(!t.lazy)return;let i=r[t.id];He(i,"No route found in manifest");let a={};for(let o in n){let l=i[o]!==void 0&&o!=="hasErrorBoundary";Lu(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!c6.has(o)&&(a[o]=n[o])}Object.assign(i,a),Object.assign(i,Je({},e(i),{lazy:void 0}))}async function bc(t,e,r,n,i,a,o,s,l,u){s===void 0&&(s=!1),l===void 0&&(l=!1);let c,f,h,v=y=>{let g,m=new Promise((_,S)=>g=S);return h=()=>g(),e.signal.addEventListener("abort",h),Promise.race([y({request:e,params:r.params,context:u}),m])};try{let y=r.route[t];if(r.route.lazy)if(y)f=(await Promise.all([v(y),AM(r.route,a,i)]))[0];else if(await AM(r.route,a,i),y=r.route[t],y)f=await v(y);else if(t==="action"){let g=new URL(e.url),m=g.pathname+g.search;throw Yn(405,{method:e.method,pathname:m,routeId:r.route.id})}else return{type:Nt.data,data:void 0};else if(y)f=await v(y);else{let g=new URL(e.url),m=g.pathname+g.search;throw Yn(404,{pathname:m})}He(f!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please return a value or `null`.")}catch(y){c=Nt.error,f=y}finally{h&&e.signal.removeEventListener("abort",h)}if(Y6(f)){let y=f.status;if(k6.has(y)){let _=f.headers.get("Location");if(He(_,"Redirects returned/thrown from loaders/actions must have a Location header"),!xN.test(_))_=MS(new URL(e.url),n.slice(0,n.indexOf(r)+1),o,!0,_);else if(!s){let S=new URL(e.url),w=_.startsWith("//")?new URL(S.protocol+_):new URL(_),x=ju(w.pathname,o)!=null;w.origin===S.origin&&x&&(_=w.pathname+w.search+w.hash)}if(s)throw f.headers.set("Location",_),f;return{type:Nt.redirect,status:y,location:_,revalidate:f.headers.get("X-Remix-Revalidate")!==null}}if(l)throw{type:c||Nt.data,response:f};let g,m=f.headers.get("Content-Type");return m&&/\bapplication\/json\b/.test(m)?g=await f.json():g=await f.text(),c===Nt.error?{type:c,error:new Ab(y,f.statusText,g),headers:f.headers}:{type:Nt.data,data:g,statusCode:f.status,headers:f.headers}}if(c===Nt.error)return{type:c,error:f};if($6(f)){var d,p;return{type:Nt.deferred,deferredData:f,statusCode:(d=f.init)==null?void 0:d.status,headers:((p=f.init)==null?void 0:p.headers)&&new Headers(f.init.headers)}}return{type:Nt.data,data:f}}function Cc(t,e,r,n){let i=t.createURL(TN(e)).toString(),a={signal:r};if(n&&$i(n.formMethod)){let{formMethod:o,formEncType:s,formData:l}=n;a.method=o.toUpperCase(),a.body=s==="application/x-www-form-urlencoded"?CN(l):l}return new Request(i,a)}function CN(t){let e=new URLSearchParams;for(let[r,n]of t.entries())e.append(r,n instanceof File?n.name:n);return e}function U6(t,e,r,n,i){let a={},o=null,s,l=!1,u={};return r.forEach((c,f)=>{let h=e[f].route.id;if(He(!du(c),"Cannot handle redirect results in processLoaderData"),Df(c)){let v=nu(t,h),d=c.error;n&&(d=Object.values(n)[0],n=void 0),o=o||{},o[v.route.id]==null&&(o[v.route.id]=d),a[h]=void 0,l||(l=!0,s=_N(c.error)?c.error.status:500),c.headers&&(u[h]=c.headers)}else Cs(c)?(i.set(h,c.deferredData),a[h]=c.deferredData.data):a[h]=c.data,c.statusCode!=null&&c.statusCode!==200&&!l&&(s=c.statusCode),c.headers&&(u[h]=c.headers)}),n&&(o=n,a[Object.keys(n)[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:u}}function MM(t,e,r,n,i,a,o,s){let{loaderData:l,errors:u}=U6(e,r,n,i,s);for(let c=0;cn.route.id===e)+1):[...t]).reverse().find(n=>n.route.hasErrorBoundary===!0)||t[0]}function LM(t){let e=t.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function Yn(t,e){let{pathname:r,routeId:n,method:i,type:a}=e===void 0?{}:e,o="Unknown Server Error",s="Unknown @remix-run/router error";return t===400?(o="Bad Request",i&&r&&n?s="You made a "+i+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":a==="defer-action"&&(s="defer() is not supported in actions")):t===403?(o="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):t===404?(o="Not Found",s='No route matches URL "'+r+'"'):t===405&&(o="Method Not Allowed",i&&r&&n?s="You made a "+i.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":i&&(s='Invalid request method "'+i.toUpperCase()+'"')),new Ab(t||500,o,new Error(s),!0)}function PM(t){for(let e=t.length-1;e>=0;e--){let r=t[e];if(du(r))return r}}function TN(t){let e=typeof t=="string"?xa(t):t;return qs(Je({},e,{hash:""}))}function W6(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function Cs(t){return t.type===Nt.deferred}function Df(t){return t.type===Nt.error}function du(t){return(t&&t.type)===Nt.redirect}function $6(t){let e=t;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function Y6(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function j6(t){return R6.has(t.toLowerCase())}function $i(t){return I6.has(t.toLowerCase())}async function IM(t,e,r,n,i,a){for(let o=0;of.route.id===l.route.id),c=u!=null&&!bN(u,l)&&(a&&a[l.route.id])!==void 0;if(Cs(s)&&(i||c)){let f=n[o];He(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await AN(s,f,i).then(h=>{h&&(r[o]=h||r[o])})}}}async function AN(t,e,r){if(r===void 0&&(r=!1),!await t.deferredData.resolveData(e)){if(r)try{return{type:Nt.data,data:t.deferredData.unwrappedData}}catch(i){return{type:Nt.error,error:i}}return{type:Nt.data,data:t.deferredData.data}}}function Mb(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function EM(t,e){let{route:r,pathname:n,params:i}=t;return{id:r.id,pathname:n,params:i,data:e[r.id],handle:r.handle}}function DS(t,e){let r=typeof e=="string"?xa(e).search:e.search;if(t[t.length-1].route.index&&Mb(r||""))return t[t.length-1];let n=wy(t);return n[n.length-1]}/** + * React Router v6.11.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function ng(){return ng=Object.assign?Object.assign.bind():function(t){for(var e=1;es.pathnameBase)),a=J.useRef(!1);return DN(()=>{a.current=!0}),J.useCallback(function(s,l){if(l===void 0&&(l={}),!a.current)return;if(typeof s=="number"){e.go(s);return}let u=Tb(s,JSON.parse(i),n,l.relative==="path");t!=="/"&&(u.pathname=u.pathname==="/"?t:ia([t,u.pathname])),(l.replace?e.replace:e.push)(u,l.state,l)},[t,e,i,n])}const K6=J.createContext(null);function Q6(t){let e=J.useContext(Po).outlet;return e&&J.createElement(K6.Provider,{value:t},e)}function Pb(t,e){let{relative:r}=e===void 0?{}:e,{matches:n}=J.useContext(Po),{pathname:i}=Jh(),a=JSON.stringify(wy(n).map(o=>o.pathnameBase));return J.useMemo(()=>Tb(t,JSON.parse(a),i,r==="path"),[t,a,i,r])}function J6(t,e,r){Qh()||He(!1);let{navigator:n}=J.useContext(sl),{matches:i}=J.useContext(Po),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let l=Jh(),u;if(e){var c;let p=typeof e=="string"?xa(e):e;s==="/"||(c=p.pathname)!=null&&c.startsWith(s)||He(!1),u=p}else u=l;let f=u.pathname||"/",h=s==="/"?f:f.slice(s.length)||"/",v=ru(t,{pathname:h}),d=iW(v&&v.map(p=>Object.assign({},p,{params:Object.assign({},o,p.params),pathname:ia([s,n.encodeLocation?n.encodeLocation(p.pathname).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?s:ia([s,n.encodeLocation?n.encodeLocation(p.pathnameBase).pathname:p.pathnameBase])})),i,r);return e&&d?J.createElement(by.Provider,{value:{location:ng({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Et.Pop}},d):d}function eW(){let t=lW(),e=_N(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return J.createElement(J.Fragment,null,J.createElement("h2",null,"Unexpected Application Error!"),J.createElement("h3",{style:{fontStyle:"italic"}},e),r?J.createElement("pre",{style:i},r):null,a)}const tW=J.createElement(eW,null);class rW extends J.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error?J.createElement(Po.Provider,{value:this.props.routeContext},J.createElement(MN.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function nW(t){let{routeContext:e,match:r,children:n}=t,i=J.useContext(Db);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),J.createElement(Po.Provider,{value:e},n)}function iW(t,e,r){var n;if(e===void 0&&(e=[]),r===void 0&&(r=null),t==null){var i;if((i=r)!=null&&i.errors)t=r.matches;else return null}let a=t,o=(n=r)==null?void 0:n.errors;if(o!=null){let s=a.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id]));s>=0||He(!1),a=a.slice(0,Math.min(a.length,s+1))}return a.reduceRight((s,l,u)=>{let c=l.route.id?o==null?void 0:o[l.route.id]:null,f=null;r&&(f=l.route.errorElement||tW);let h=e.concat(a.slice(0,u+1)),v=()=>{let d;return c?d=f:l.route.Component?d=J.createElement(l.route.Component,null):l.route.element?d=l.route.element:d=s,J.createElement(nW,{match:l,routeContext:{outlet:s,matches:h,isDataRoute:r!=null},children:d})};return r&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?J.createElement(rW,{location:r.location,revalidation:r.revalidation,component:f,error:c,children:v(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):v()},null)}var LS;(function(t){t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate"})(LS||(LS={}));var fh;(function(t){t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId"})(fh||(fh={}));function aW(t){let e=J.useContext(Db);return e||He(!1),e}function oW(t){let e=J.useContext(Lb);return e||He(!1),e}function sW(t){let e=J.useContext(Po);return e||He(!1),e}function LN(t){let e=sW(),r=e.matches[e.matches.length-1];return r.route.id||He(!1),r.route.id}function lW(){var t;let e=J.useContext(MN),r=oW(fh.UseRouteError),n=LN(fh.UseRouteError);return e||((t=r.errors)==null?void 0:t[n])}function uW(){let{router:t}=aW(LS.UseNavigateStable),e=LN(fh.UseNavigateStable),r=J.useRef(!1);return DN(()=>{r.current=!0}),J.useCallback(function(i,a){a===void 0&&(a={}),r.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,ng({fromRouteId:e},a)))},[t,e])}function cW(t){let{fallbackElement:e,router:r}=t,[n,i]=J.useState(r.state);J.useLayoutEffect(()=>r.subscribe(i),[r,i]);let a=J.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:l=>r.navigate(l),push:(l,u,c)=>r.navigate(l,{state:u,preventScrollReset:c==null?void 0:c.preventScrollReset}),replace:(l,u,c)=>r.navigate(l,{replace:!0,state:u,preventScrollReset:c==null?void 0:c.preventScrollReset})}),[r]),o=r.basename||"/",s=J.useMemo(()=>({router:r,navigator:a,static:!1,basename:o}),[r,a,o]);return J.createElement(J.Fragment,null,J.createElement(Db.Provider,{value:s},J.createElement(Lb.Provider,{value:n},J.createElement(vW,{basename:r.basename,location:r.state.location,navigationType:r.state.historyAction,navigator:a},r.state.initialized?J.createElement(fW,{routes:r.routes,state:n}):e))),null)}function fW(t){let{routes:e,state:r}=t;return J6(e,void 0,r)}function hW(t){return Q6(t.context)}function vW(t){let{basename:e="/",children:r=null,location:n,navigationType:i=Et.Pop,navigator:a,static:o=!1}=t;Qh()&&He(!1);let s=e.replace(/^\/*/,"/"),l=J.useMemo(()=>({basename:s,navigator:a,static:o}),[s,a,o]);typeof n=="string"&&(n=xa(n));let{pathname:u="/",search:c="",hash:f="",state:h=null,key:v="default"}=n,d=J.useMemo(()=>{let p=ju(u,s);return p==null?null:{location:{pathname:p,search:c,hash:f,state:h,key:v},navigationType:i}},[s,u,c,f,h,v,i]);return d==null?null:J.createElement(sl.Provider,{value:l},J.createElement(by.Provider,{children:r,value:d}))}var RM;(function(t){t[t.pending=0]="pending",t[t.success=1]="success",t[t.error=2]="error"})(RM||(RM={}));new Promise(()=>{});function dW(t){let e={hasErrorBoundary:t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&Object.assign(e,{element:J.createElement(t.Component),Component:void 0}),t.ErrorBoundary&&Object.assign(e,{errorElement:J.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),e}/** + * React Router DOM v6.11.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Pu(){return Pu=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(r[i]=t[i]);return r}function pW(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function gW(t,e){return t.button===0&&(!e||e==="_self")&&!pW(t)}const yW=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],mW=["aria-current","caseSensitive","className","end","style","to","children"];function _W(t,e){return F6({basename:e==null?void 0:e.basename,future:Pu({},e==null?void 0:e.future,{v7_prependBasename:!0}),history:s6({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||SW(),routes:t,mapRouteProperties:dW}).initialize()}function SW(){var t;let e=(t=window)==null?void 0:t.__staticRouterHydrationData;return e&&e.errors&&(e=Pu({},e,{errors:xW(e.errors)})),e}function xW(t){if(!t)return null;let e=Object.entries(t),r={};for(let[n,i]of e)if(i&&i.__type==="RouteErrorResponse")r[n]=new Ab(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){let a=new Error(i.message);a.stack="",r[n]=a}else r[n]=i;return r}const wW=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",bW=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,IN=J.forwardRef(function(e,r){let{onClick:n,relative:i,reloadDocument:a,replace:o,state:s,target:l,to:u,preventScrollReset:c}=e,f=PN(e,yW),{basename:h}=J.useContext(sl),v,d=!1;if(typeof u=="string"&&bW.test(u)&&(v=u,wW))try{let m=new URL(window.location.href),_=u.startsWith("//")?new URL(m.protocol+u):new URL(u),S=ju(_.pathname,h);_.origin===m.origin&&S!=null?u=S+_.search+_.hash:d=!0}catch{}let p=X6(u,{relative:i}),y=CW(u,{replace:o,state:s,target:l,preventScrollReset:c,relative:i});function g(m){n&&n(m),m.defaultPrevented||y(m)}return J.createElement("a",Pu({},f,{href:v||p,onClick:d||a?n:g,ref:r,target:l}))}),kM=J.forwardRef(function(e,r){let{"aria-current":n="page",caseSensitive:i=!1,className:a="",end:o=!1,style:s,to:l,children:u}=e,c=PN(e,mW),f=Pb(l,{relative:c.relative}),h=Jh(),v=J.useContext(Lb),{navigator:d}=J.useContext(sl),p=d.encodeLocation?d.encodeLocation(f).pathname:f.pathname,y=h.pathname,g=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;i||(y=y.toLowerCase(),g=g?g.toLowerCase():null,p=p.toLowerCase());let m=y===p||!o&&y.startsWith(p)&&y.charAt(p.length)==="/",_=g!=null&&(g===p||!o&&g.startsWith(p)&&g.charAt(p.length)==="/"),S=m?n:void 0,w;typeof a=="function"?w=a({isActive:m,isPending:_}):w=[a,m?"active":null,_?"pending":null].filter(Boolean).join(" ");let x=typeof s=="function"?s({isActive:m,isPending:_}):s;return J.createElement(IN,Pu({},c,{"aria-current":S,className:w,ref:r,style:x,to:l}),typeof u=="function"?u({isActive:m,isPending:_}):u)});var OM;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmitImpl="useSubmitImpl",t.UseFetcher="useFetcher"})(OM||(OM={}));var NM;(function(t){t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(NM||(NM={}));function CW(t,e){let{target:r,replace:n,state:i,preventScrollReset:a,relative:o}=e===void 0?{}:e,s=Z6(),l=Jh(),u=Pb(t,{relative:o});return J.useCallback(c=>{if(gW(c,r)){c.preventDefault();let f=n!==void 0?n:qs(l)===qs(u);s(t,{replace:f,state:i,preventScrollReset:a,relative:o})}},[l,s,u,n,i,r,t,a,o])}const TW=()=>K.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"w-6 h-6",children:K.jsx("path",{d:"M12.378 1.602a.75.75 0 00-.756 0L3 6.632l9 5.25 9-5.25-8.622-5.03zM21.75 7.93l-9 5.25v9l8.628-5.032a.75.75 0 00.372-.648V7.93zM11.25 22.18v-9l-9-5.25v8.57a.75.75 0 00.372.648l8.628 5.033z"})}),AW=()=>K.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"w-6 h-6",children:K.jsx("path",{fillRule:"evenodd",d:"M18.685 19.097A9.723 9.723 0 0021.75 12c0-5.385-4.365-9.75-9.75-9.75S2.25 6.615 2.25 12a9.723 9.723 0 003.065 7.097A9.716 9.716 0 0012 21.75a9.716 9.716 0 006.685-2.653zm-12.54-1.285A7.486 7.486 0 0112 15a7.486 7.486 0 015.855 2.812A8.224 8.224 0 0112 20.25a8.224 8.224 0 01-5.855-2.438zM15.75 9a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z",clipRule:"evenodd"})}),MW=()=>K.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:K.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 12.75c1.148 0 2.278.08 3.383.237 1.037.146 1.866.966 1.866 2.013 0 3.728-2.35 6.75-5.25 6.75S6.75 18.728 6.75 15c0-1.046.83-1.867 1.866-2.013A24.204 24.204 0 0112 12.75zm0 0c2.883 0 5.647.508 8.207 1.44a23.91 23.91 0 01-1.152 6.06M12 12.75c-2.883 0-5.647.508-8.208 1.44.125 2.104.52 4.136 1.153 6.06M12 12.75a2.25 2.25 0 002.248-2.354M12 12.75a2.25 2.25 0 01-2.248-2.354M12 8.25c.995 0 1.971-.08 2.922-.236.403-.066.74-.358.795-.762a3.778 3.778 0 00-.399-2.25M12 8.25c-.995 0-1.97-.08-2.922-.236-.402-.066-.74-.358-.795-.762a3.734 3.734 0 01.4-2.253M12 8.25a2.25 2.25 0 00-2.248 2.146M12 8.25a2.25 2.25 0 012.248 2.146M8.683 5a6.032 6.032 0 01-1.155-1.002c.07-.63.27-1.222.574-1.747m.581 2.749A3.75 3.75 0 0115.318 5m0 0c.427-.283.815-.62 1.155-.999a4.471 4.471 0 00-.575-1.752M4.921 6a24.048 24.048 0 00-.392 3.314c1.668.546 3.416.914 5.223 1.082M19.08 6c.205 1.08.337 2.187.392 3.314a23.882 23.882 0 01-5.223 1.082"})}),DW=({style:t})=>K.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:`w-6 h-6 ${t}`,children:K.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"})});class ev{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const r={listener:e};return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const hh=typeof window>"u"||"Deno"in window;function yn(){}function LW(t,e){return typeof t=="function"?t(e):t}function PS(t){return typeof t=="number"&&t>=0&&t!==1/0}function EN(t,e){return Math.max(t+(e||0)-Date.now(),0)}function of(t,e,r){return Cy(t)?typeof e=="function"?{...r,queryKey:t,queryFn:e}:{...e,queryKey:t}:t}function Ga(t,e,r){return Cy(t)?[{...e,queryKey:t},r]:[t||{},e]}function BM(t,e){const{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:o,stale:s}=t;if(Cy(o)){if(n){if(e.queryHash!==Ib(o,e.options))return!1}else if(!ig(e.queryKey,o))return!1}if(r!=="all"){const l=e.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof s=="boolean"&&e.isStale()!==s||typeof i<"u"&&i!==e.state.fetchStatus||a&&!a(e))}function zM(t,e){const{exact:r,fetching:n,predicate:i,mutationKey:a}=t;if(Cy(a)){if(!e.options.mutationKey)return!1;if(r){if(Ts(e.options.mutationKey)!==Ts(a))return!1}else if(!ig(e.options.mutationKey,a))return!1}return!(typeof n=="boolean"&&e.state.status==="loading"!==n||i&&!i(e))}function Ib(t,e){return((e==null?void 0:e.queryKeyHashFn)||Ts)(t)}function Ts(t){return JSON.stringify(t,(e,r)=>IS(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function ig(t,e){return RN(t,e)}function RN(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?!Object.keys(e).some(r=>!RN(t[r],e[r])):!1}function kN(t,e){if(t===e)return t;const r=VM(t)&&VM(e);if(r||IS(t)&&IS(e)){const n=r?t.length:Object.keys(t).length,i=r?e:Object.keys(e),a=i.length,o=r?[]:{};let s=0;for(let l=0;l"u")return!0;const r=e.prototype;return!(!GM(r)||!r.hasOwnProperty("isPrototypeOf"))}function GM(t){return Object.prototype.toString.call(t)==="[object Object]"}function Cy(t){return Array.isArray(t)}function ON(t){return new Promise(e=>{setTimeout(e,t)})}function HM(t){ON(0).then(t)}function PW(){if(typeof AbortController=="function")return new AbortController}function ES(t,e,r){return r.isDataEqual!=null&&r.isDataEqual(t,e)?t:typeof r.structuralSharing=="function"?r.structuralSharing(t,e):r.structuralSharing!==!1?kN(t,e):e}class IW extends ev{constructor(){super(),this.setup=e=>{if(!hh&&window.addEventListener){const r=()=>e();return window.addEventListener("visibilitychange",r,!1),window.addEventListener("focus",r,!1),()=>{window.removeEventListener("visibilitychange",r),window.removeEventListener("focus",r)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var r;this.setup=e,(r=this.cleanup)==null||r.call(this),this.cleanup=e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(e){this.focused=e,e&&this.onFocus()}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const ag=new IW;class EW extends ev{constructor(){super(),this.setup=e=>{if(!hh&&window.addEventListener){const r=()=>e();return window.addEventListener("online",r,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",r)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var r;this.setup=e,(r=this.cleanup)==null||r.call(this),this.cleanup=e(n=>{typeof n=="boolean"?this.setOnline(n):this.onOnline()})}setOnline(e){this.online=e,e&&this.onOnline()}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const og=new EW;function RW(t){return Math.min(1e3*2**t,3e4)}function Ty(t){return(t??"online")==="online"?og.isOnline():!0}class NN{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}}function up(t){return t instanceof NN}function BN(t){let e=!1,r=0,n=!1,i,a,o;const s=new Promise((y,g)=>{a=y,o=g}),l=y=>{n||(v(new NN(y)),t.abort==null||t.abort())},u=()=>{e=!0},c=()=>{e=!1},f=()=>!ag.isFocused()||t.networkMode!=="always"&&!og.isOnline(),h=y=>{n||(n=!0,t.onSuccess==null||t.onSuccess(y),i==null||i(),a(y))},v=y=>{n||(n=!0,t.onError==null||t.onError(y),i==null||i(),o(y))},d=()=>new Promise(y=>{i=g=>{const m=n||!f();return m&&y(g),m},t.onPause==null||t.onPause()}).then(()=>{i=void 0,n||t.onContinue==null||t.onContinue()}),p=()=>{if(n)return;let y;try{y=t.fn()}catch(g){y=Promise.reject(g)}Promise.resolve(y).then(h).catch(g=>{var m,_;if(n)return;const S=(m=t.retry)!=null?m:3,w=(_=t.retryDelay)!=null?_:RW,x=typeof w=="function"?w(r,g):w,b=S===!0||typeof S=="number"&&r{if(f())return d()}).then(()=>{e?v(g):p()})})};return Ty(t.networkMode)?p():d().then(p),{promise:s,cancel:l,continue:()=>(i==null?void 0:i())?s:Promise.resolve(),cancelRetry:u,continueRetry:c}}const Eb=console;function kW(){let t=[],e=0,r=c=>{c()},n=c=>{c()};const i=c=>{let f;e++;try{f=c()}finally{e--,e||s()}return f},a=c=>{e?t.push(c):HM(()=>{r(c)})},o=c=>(...f)=>{a(()=>{c(...f)})},s=()=>{const c=t;t=[],c.length&&HM(()=>{n(()=>{c.forEach(f=>{r(f)})})})};return{batch:i,batchCalls:o,schedule:a,setNotifyFunction:c=>{r=c},setBatchNotifyFunction:c=>{n=c}}}const Rt=kW();class zN{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),PS(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,e??(hh?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class OW extends zN{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||Eb,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||NW(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(e,r){const n=ES(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(e,r){this.dispatch({type:"setState",state:e,setStateOptions:r})}cancel(e){var r;const n=this.promise;return(r=this.retryer)==null||r.cancel(e),n?n.then(yn).catch(yn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!EN(this.state.dataUpdatedAt,e)}onFocus(){var e;const r=this.observers.find(n=>n.shouldFetchOnWindowFocus());r&&r.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}onOnline(){var e;const r=this.observers.find(n=>n.shouldFetchOnReconnect());r&&r.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}addObserver(e){this.observers.indexOf(e)===-1&&(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.indexOf(e)!==-1&&(this.observers=this.observers.filter(r=>r!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,r){var n,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&r!=null&&r.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var a;return(a=this.retryer)==null||a.continueRetry(),this.promise}}if(e&&this.setOptions(e),!this.options.queryFn){const v=this.observers.find(d=>d.options.queryFn);v&&this.setOptions(v.options)}Array.isArray(this.options.queryKey);const o=PW(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};l(s);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn"),c={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};if(l(c),(n=this.options.behavior)==null||n.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=c.fetchOptions)==null?void 0:i.meta)){var f;this.dispatch({type:"fetch",meta:(f=c.fetchOptions)==null?void 0:f.meta})}const h=v=>{if(up(v)&&v.silent||this.dispatch({type:"error",error:v}),!up(v)){var d,p,y,g;(d=(p=this.cache.config).onError)==null||d.call(p,v,this),(y=(g=this.cache.config).onSettled)==null||y.call(g,this.state.data,v,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=BN({fn:c.fetchFn,abort:o==null?void 0:o.abort.bind(o),onSuccess:v=>{var d,p,y,g;if(typeof v>"u"){h(new Error(this.queryHash+" data is undefined"));return}this.setData(v),(d=(p=this.cache.config).onSuccess)==null||d.call(p,v,this),(y=(g=this.cache.config).onSettled)==null||y.call(g,v,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:(v,d)=>{this.dispatch({type:"failed",failureCount:v,error:d})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){const r=n=>{var i,a;switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=e.meta)!=null?i:null,fetchStatus:Ty(this.options.networkMode)?"fetching":"paused",...!n.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(a=e.dataUpdatedAt)!=null?a:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=e.error;return up(o)&&o.revert&&this.revertState?{...this.revertState}:{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=r(this.state),Rt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}function NW(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,r=typeof e<"u",n=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}class BW extends ev{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,r,n){var i;const a=r.queryKey,o=(i=r.queryHash)!=null?i:Ib(a,r);let s=this.get(o);return s||(s=new OW({cache:this,logger:e.getLogger(),queryKey:a,queryHash:o,options:e.defaultQueryOptions(r),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(s)),s}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const r=this.queriesMap[e.queryHash];r&&(e.destroy(),this.queries=this.queries.filter(n=>n!==e),r===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){Rt.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,r){const[n]=Ga(e,r);return typeof n.exact>"u"&&(n.exact=!0),this.queries.find(i=>BM(n,i))}findAll(e,r){const[n]=Ga(e,r);return Object.keys(n).length>0?this.queries.filter(i=>BM(n,i)):this.queries}notify(e){Rt.batch(()=>{this.listeners.forEach(({listener:r})=>{r(e)})})}onFocus(){Rt.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){Rt.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class zW extends zN{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||Eb,this.observers=[],this.state=e.state||FW(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.indexOf(e)===-1&&(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(r=>r!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,r;return(e=(r=this.retryer)==null?void 0:r.continue())!=null?e:this.execute()}async execute(){const e=()=>{var b;return this.retryer=BN({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(C,T)=>{this.dispatch({type:"failed",failureCount:C,error:T})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(b=this.options.retry)!=null?b:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},r=this.state.status==="loading";try{var n,i,a,o,s,l,u,c;if(!r){var f,h,v,d;this.dispatch({type:"loading",variables:this.options.variables}),await((f=(h=this.mutationCache.config).onMutate)==null?void 0:f.call(h,this.state.variables,this));const C=await((v=(d=this.options).onMutate)==null?void 0:v.call(d,this.state.variables));C!==this.state.context&&this.dispatch({type:"loading",context:C,variables:this.state.variables})}const b=await e();return await((n=(i=this.mutationCache.config).onSuccess)==null?void 0:n.call(i,b,this.state.variables,this.state.context,this)),await((a=(o=this.options).onSuccess)==null?void 0:a.call(o,b,this.state.variables,this.state.context)),await((s=(l=this.mutationCache.config).onSettled)==null?void 0:s.call(l,b,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,b,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:b}),b}catch(b){try{var p,y,g,m,_,S,w,x;throw await((p=(y=this.mutationCache.config).onError)==null?void 0:p.call(y,b,this.state.variables,this.state.context,this)),await((g=(m=this.options).onError)==null?void 0:g.call(m,b,this.state.variables,this.state.context)),await((_=(S=this.mutationCache.config).onSettled)==null?void 0:_.call(S,void 0,b,this.state.variables,this.state.context,this)),await((w=(x=this.options).onSettled)==null?void 0:w.call(x,void 0,b,this.state.variables,this.state.context)),b}finally{this.dispatch({type:"error",error:b})}}}dispatch(e){const r=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"loading":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Ty(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...n,...e.state}}};this.state=r(this.state),Rt.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function FW(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class VW extends ev{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,r,n){const i=new zW({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(r),state:n,defaultOptions:r.mutationKey?e.getMutationDefaults(r.mutationKey):void 0});return this.add(i),i}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(r=>r!==e),this.notify({type:"removed",mutation:e})}clear(){Rt.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return typeof e.exact>"u"&&(e.exact=!0),this.mutations.find(r=>zM(e,r))}findAll(e){return this.mutations.filter(r=>zM(e,r))}notify(e){Rt.batch(()=>{this.listeners.forEach(({listener:r})=>{r(e)})})}resumePausedMutations(){var e;return this.resuming=((e=this.resuming)!=null?e:Promise.resolve()).then(()=>{const r=this.mutations.filter(n=>n.state.isPaused);return Rt.batch(()=>r.reduce((n,i)=>n.then(()=>i.continue().catch(yn)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function GW(){return{onFetch:t=>{t.fetchFn=()=>{var e,r,n,i,a,o;const s=(e=t.fetchOptions)==null||(r=e.meta)==null?void 0:r.refetchPage,l=(n=t.fetchOptions)==null||(i=n.meta)==null?void 0:i.fetchMore,u=l==null?void 0:l.pageParam,c=(l==null?void 0:l.direction)==="forward",f=(l==null?void 0:l.direction)==="backward",h=((a=t.state.data)==null?void 0:a.pages)||[],v=((o=t.state.data)==null?void 0:o.pageParams)||[];let d=v,p=!1;const y=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>{var b;if((b=t.signal)!=null&&b.aborted)p=!0;else{var C;(C=t.signal)==null||C.addEventListener("abort",()=>{p=!0})}return t.signal}})},g=t.options.queryFn||(()=>Promise.reject("Missing queryFn")),m=(x,b,C,T)=>(d=T?[b,...d]:[...d,b],T?[C,...x]:[...x,C]),_=(x,b,C,T)=>{if(p)return Promise.reject("Cancelled");if(typeof C>"u"&&!b&&x.length)return Promise.resolve(x);const A={queryKey:t.queryKey,pageParam:C,meta:t.options.meta};y(A);const D=g(A);return Promise.resolve(D).then(P=>m(x,C,P,T))};let S;if(!h.length)S=_([]);else if(c){const x=typeof u<"u",b=x?u:UM(t.options,h);S=_(h,x,b)}else if(f){const x=typeof u<"u",b=x?u:HW(t.options,h);S=_(h,x,b,!0)}else{d=[];const x=typeof t.options.getNextPageParam>"u";S=(s&&h[0]?s(h[0],0,h):!0)?_([],x,v[0]):Promise.resolve(m([],v[0],h[0]));for(let C=1;C{if(s&&h[C]?s(h[C],C,h):!0){const D=x?v[C]:UM(t.options,T);return _(T,x,D)}return Promise.resolve(m(T,v[C],h[C]))})}return S.then(x=>({pages:x,pageParams:d}))}}}}function UM(t,e){return t.getNextPageParam==null?void 0:t.getNextPageParam(e[e.length-1],e)}function HW(t,e){return t.getPreviousPageParam==null?void 0:t.getPreviousPageParam(e[0],e)}class UW{constructor(e={}){this.queryCache=e.queryCache||new BW,this.mutationCache=e.mutationCache||new VW,this.logger=e.logger||Eb,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=ag.subscribe(()=>{ag.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=og.subscribe(()=>{og.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,r;this.mountCount--,this.mountCount===0&&((e=this.unsubscribeFocus)==null||e.call(this),this.unsubscribeFocus=void 0,(r=this.unsubscribeOnline)==null||r.call(this),this.unsubscribeOnline=void 0)}isFetching(e,r){const[n]=Ga(e,r);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,r){var n;return(n=this.queryCache.find(e,r))==null?void 0:n.state.data}ensureQueryData(e,r,n){const i=of(e,r,n),a=this.getQueryData(i.queryKey);return a?Promise.resolve(a):this.fetchQuery(i)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:r,state:n})=>{const i=n.data;return[r,i]})}setQueryData(e,r,n){const i=this.queryCache.find(e),a=i==null?void 0:i.state.data,o=LW(r,a);if(typeof o>"u")return;const s=of(e),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(o,{...n,manual:!0})}setQueriesData(e,r,n){return Rt.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,r,n)]))}getQueryState(e,r){var n;return(n=this.queryCache.find(e,r))==null?void 0:n.state}removeQueries(e,r){const[n]=Ga(e,r),i=this.queryCache;Rt.batch(()=>{i.findAll(n).forEach(a=>{i.remove(a)})})}resetQueries(e,r,n){const[i,a]=Ga(e,r,n),o=this.queryCache,s={type:"active",...i};return Rt.batch(()=>(o.findAll(i).forEach(l=>{l.reset()}),this.refetchQueries(s,a)))}cancelQueries(e,r,n){const[i,a={}]=Ga(e,r,n);typeof a.revert>"u"&&(a.revert=!0);const o=Rt.batch(()=>this.queryCache.findAll(i).map(s=>s.cancel(a)));return Promise.all(o).then(yn).catch(yn)}invalidateQueries(e,r,n){const[i,a]=Ga(e,r,n);return Rt.batch(()=>{var o,s;if(this.queryCache.findAll(i).forEach(u=>{u.invalidate()}),i.refetchType==="none")return Promise.resolve();const l={...i,type:(o=(s=i.refetchType)!=null?s:i.type)!=null?o:"active"};return this.refetchQueries(l,a)})}refetchQueries(e,r,n){const[i,a]=Ga(e,r,n),o=Rt.batch(()=>this.queryCache.findAll(i).filter(l=>!l.isDisabled()).map(l=>{var u;return l.fetch(void 0,{...a,cancelRefetch:(u=a==null?void 0:a.cancelRefetch)!=null?u:!0,meta:{refetchPage:i.refetchPage}})}));let s=Promise.all(o).then(yn);return a!=null&&a.throwOnError||(s=s.catch(yn)),s}fetchQuery(e,r,n){const i=of(e,r,n),a=this.defaultQueryOptions(i);typeof a.retry>"u"&&(a.retry=!1);const o=this.queryCache.build(this,a);return o.isStaleByTime(a.staleTime)?o.fetch(a):Promise.resolve(o.state.data)}prefetchQuery(e,r,n){return this.fetchQuery(e,r,n).then(yn).catch(yn)}fetchInfiniteQuery(e,r,n){const i=of(e,r,n);return i.behavior=GW(),this.fetchQuery(i)}prefetchInfiniteQuery(e,r,n){return this.fetchInfiniteQuery(e,r,n).then(yn).catch(yn)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,r){const n=this.queryDefaults.find(i=>Ts(e)===Ts(i.queryKey));n?n.defaultOptions=r:this.queryDefaults.push({queryKey:e,defaultOptions:r})}getQueryDefaults(e){if(!e)return;const r=this.queryDefaults.find(n=>ig(e,n.queryKey));return r==null?void 0:r.defaultOptions}setMutationDefaults(e,r){const n=this.mutationDefaults.find(i=>Ts(e)===Ts(i.mutationKey));n?n.defaultOptions=r:this.mutationDefaults.push({mutationKey:e,defaultOptions:r})}getMutationDefaults(e){if(!e)return;const r=this.mutationDefaults.find(n=>ig(e,n.mutationKey));return r==null?void 0:r.defaultOptions}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const r={...this.defaultOptions.queries,...this.getQueryDefaults(e==null?void 0:e.queryKey),...e,_defaulted:!0};return!r.queryHash&&r.queryKey&&(r.queryHash=Ib(r.queryKey,r)),typeof r.refetchOnReconnect>"u"&&(r.refetchOnReconnect=r.networkMode!=="always"),typeof r.useErrorBoundary>"u"&&(r.useErrorBoundary=!!r.suspense),r}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(e==null?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class WW extends ev{constructor(e,r){super(),this.client=e,this.options=r,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(r)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),WM(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return RS(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return RS(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,r){const n=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),FM(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const a=this.hasListeners();a&&$M(this.currentQuery,i,this.options,n)&&this.executeFetch(),this.updateResult(r),a&&(this.currentQuery!==i||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const o=this.computeRefetchInterval();a&&(this.currentQuery!==i||this.options.enabled!==n.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(e){const r=this.client.getQueryCache().build(this.client,e);return this.createResult(r,e)}getCurrentResult(){return this.currentResult}trackResult(e){const r={};return Object.keys(e).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})}),r}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...r}={}){return this.fetch({...r,meta:{refetchPage:e}})}fetchOptimistic(e){const r=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(e){var r;return this.executeFetch({...e,cancelRefetch:(r=e.cancelRefetch)!=null?r:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let r=this.currentQuery.fetch(this.options,e);return e!=null&&e.throwOnError||(r=r.catch(yn)),r}updateStaleTimeout(){if(this.clearStaleTimeout(),hh||this.currentResult.isStale||!PS(this.options.staleTime))return;const r=EN(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},r)}computeRefetchInterval(){var e;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(e=this.options.refetchInterval)!=null?e:!1}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!(hh||this.options.enabled===!1||!PS(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||ag.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,r){const n=this.currentQuery,i=this.options,a=this.currentResult,o=this.currentResultState,s=this.currentResultOptions,l=e!==n,u=l?e.state:this.currentQueryInitialState,c=l?this.currentResult:this.previousQueryResult,{state:f}=e;let{dataUpdatedAt:h,error:v,errorUpdatedAt:d,fetchStatus:p,status:y}=f,g=!1,m=!1,_;if(r._optimisticResults){const C=this.hasListeners(),T=!C&&WM(e,r),A=C&&$M(e,n,r,i);(T||A)&&(p=Ty(e.options.networkMode)?"fetching":"paused",h||(y="loading")),r._optimisticResults==="isRestoring"&&(p="idle")}if(r.keepPreviousData&&!f.dataUpdatedAt&&c!=null&&c.isSuccess&&y!=="error")_=c.data,h=c.dataUpdatedAt,y=c.status,g=!0;else if(r.select&&typeof f.data<"u")if(a&&f.data===(o==null?void 0:o.data)&&r.select===this.selectFn)_=this.selectResult;else try{this.selectFn=r.select,_=r.select(f.data),_=ES(a==null?void 0:a.data,_,r),this.selectResult=_,this.selectError=null}catch(C){this.selectError=C}else _=f.data;if(typeof r.placeholderData<"u"&&typeof _>"u"&&y==="loading"){let C;if(a!=null&&a.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))C=a.data;else if(C=typeof r.placeholderData=="function"?r.placeholderData():r.placeholderData,r.select&&typeof C<"u")try{C=r.select(C),this.selectError=null}catch(T){this.selectError=T}typeof C<"u"&&(y="success",_=ES(a==null?void 0:a.data,C,r),m=!0)}this.selectError&&(v=this.selectError,_=this.selectResult,d=Date.now(),y="error");const S=p==="fetching",w=y==="loading",x=y==="error";return{status:y,fetchStatus:p,isLoading:w,isSuccess:y==="success",isError:x,isInitialLoading:w&&S,data:_,dataUpdatedAt:h,error:v,errorUpdatedAt:d,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:S,isRefetching:S&&!w,isLoadingError:x&&f.dataUpdatedAt===0,isPaused:p==="paused",isPlaceholderData:m,isPreviousData:g,isRefetchError:x&&f.dataUpdatedAt!==0,isStale:Rb(e,r),refetch:this.refetch,remove:this.remove}}updateResult(e){const r=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,FM(n,r))return;this.currentResult=n;const i={cache:!0},a=()=>{if(!r)return!0;const{notifyOnChangeProps:o}=this.options;if(o==="all"||!o&&!this.trackedProps.size)return!0;const s=new Set(o??this.trackedProps);return this.options.useErrorBoundary&&s.add("error"),Object.keys(this.currentResult).some(l=>{const u=l;return this.currentResult[u]!==r[u]&&s.has(u)})};(e==null?void 0:e.listeners)!==!1&&a()&&(i.listeners=!0),this.notify({...i,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const r=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(r==null||r.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const r={};e.type==="success"?r.onSuccess=!e.manual:e.type==="error"&&!up(e.error)&&(r.onError=!0),this.updateResult(r),this.hasListeners()&&this.updateTimers()}notify(e){Rt.batch(()=>{if(e.onSuccess){var r,n,i,a;(r=(n=this.options).onSuccess)==null||r.call(n,this.currentResult.data),(i=(a=this.options).onSettled)==null||i.call(a,this.currentResult.data,null)}else if(e.onError){var o,s,l,u;(o=(s=this.options).onError)==null||o.call(s,this.currentResult.error),(l=(u=this.options).onSettled)==null||l.call(u,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function $W(t,e){return e.enabled!==!1&&!t.state.dataUpdatedAt&&!(t.state.status==="error"&&e.retryOnMount===!1)}function WM(t,e){return $W(t,e)||t.state.dataUpdatedAt>0&&RS(t,e,e.refetchOnMount)}function RS(t,e,r){if(e.enabled!==!1){const n=typeof r=="function"?r(t):r;return n==="always"||n!==!1&&Rb(t,e)}return!1}function $M(t,e,r,n){return r.enabled!==!1&&(t!==e||n.enabled===!1)&&(!r.suspense||t.state.status!=="error")&&Rb(t,r)}function Rb(t,e){return t.isStaleByTime(e.staleTime)}var FN={exports:{}},VN={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Iu=J;function YW(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var jW=typeof Object.is=="function"?Object.is:YW,XW=Iu.useState,ZW=Iu.useEffect,qW=Iu.useLayoutEffect,KW=Iu.useDebugValue;function QW(t,e){var r=e(),n=XW({inst:{value:r,getSnapshot:e}}),i=n[0].inst,a=n[1];return qW(function(){i.value=r,i.getSnapshot=e,s0(i)&&a({inst:i})},[t,r,e]),ZW(function(){return s0(i)&&a({inst:i}),t(function(){s0(i)&&a({inst:i})})},[t]),KW(r),r}function s0(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!jW(t,r)}catch{return!0}}function JW(t,e){return e()}var e$=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?JW:QW;VN.useSyncExternalStore=Iu.useSyncExternalStore!==void 0?Iu.useSyncExternalStore:e$;FN.exports=VN;var t$=FN.exports;const r$=t$.useSyncExternalStore,YM=J.createContext(void 0),GN=J.createContext(!1);function HN(t,e){return t||(e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=YM),window.ReactQueryClientContext):YM)}const n$=({context:t}={})=>{const e=J.useContext(HN(t,J.useContext(GN)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},i$=({client:t,children:e,context:r,contextSharing:n=!1})=>{J.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]);const i=HN(r,n);return J.createElement(GN.Provider,{value:!r&&n},J.createElement(i.Provider,{value:t},e))},UN=J.createContext(!1),a$=()=>J.useContext(UN);UN.Provider;function o$(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}const s$=J.createContext(o$()),l$=()=>J.useContext(s$);function u$(t,e){return typeof t=="function"?t(...e):!!t}const c$=(t,e)=>{(t.suspense||t.useErrorBoundary)&&(e.isReset()||(t.retryOnMount=!1))},f$=t=>{J.useEffect(()=>{t.clearReset()},[t])},h$=({result:t,errorResetBoundary:e,useErrorBoundary:r,query:n})=>t.isError&&!e.isReset()&&!t.isFetching&&u$(r,[t.error,n]),v$=t=>{t.suspense&&typeof t.staleTime!="number"&&(t.staleTime=1e3)},d$=(t,e)=>t.isLoading&&t.isFetching&&!e,p$=(t,e,r)=>(t==null?void 0:t.suspense)&&d$(e,r),g$=(t,e,r)=>e.fetchOptimistic(t).then(({data:n})=>{t.onSuccess==null||t.onSuccess(n),t.onSettled==null||t.onSettled(n,null)}).catch(n=>{r.clearReset(),t.onError==null||t.onError(n),t.onSettled==null||t.onSettled(void 0,n)});function y$(t,e){const r=n$({context:t.context}),n=a$(),i=l$(),a=r.defaultQueryOptions(t);a._optimisticResults=n?"isRestoring":"optimistic",a.onError&&(a.onError=Rt.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=Rt.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=Rt.batchCalls(a.onSettled)),v$(a),c$(a,i),f$(i);const[o]=J.useState(()=>new e(r,a)),s=o.getOptimisticResult(a);if(r$(J.useCallback(l=>n?()=>{}:o.subscribe(Rt.batchCalls(l)),[o,n]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),J.useEffect(()=>{o.setOptions(a,{listeners:!1})},[a,o]),p$(a,s,n))throw g$(a,o,i);if(h$({result:s,errorResetBoundary:i,useErrorBoundary:a.useErrorBoundary,query:o.getCurrentQuery()}))throw s.error;return a.notifyOnChangeProps?s:o.trackResult(s)}function kb(t,e,r){const n=of(t,e,r);return y$(n,WW)}function WN(t,e){return function(){return t.apply(e,arguments)}}const{toString:m$}=Object.prototype,{getPrototypeOf:Ob}=Object,Ay=(t=>e=>{const r=m$.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),zi=t=>(t=t.toLowerCase(),e=>Ay(e)===t),My=t=>e=>typeof e===t,{isArray:Xu}=Array,vh=My("undefined");function _$(t){return t!==null&&!vh(t)&&t.constructor!==null&&!vh(t.constructor)&&Dn(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const $N=zi("ArrayBuffer");function S$(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&$N(t.buffer),e}const x$=My("string"),Dn=My("function"),YN=My("number"),Dy=t=>t!==null&&typeof t=="object",w$=t=>t===!0||t===!1,cp=t=>{if(Ay(t)!=="object")return!1;const e=Ob(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},b$=zi("Date"),C$=zi("File"),T$=zi("Blob"),A$=zi("FileList"),M$=t=>Dy(t)&&Dn(t.pipe),D$=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Dn(t.append)&&((e=Ay(t))==="formdata"||e==="object"&&Dn(t.toString)&&t.toString()==="[object FormData]"))},L$=zi("URLSearchParams"),P$=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function tv(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,i;if(typeof t!="object"&&(t=[t]),Xu(t))for(n=0,i=t.length;n0;)if(i=r[n],e===i.toLowerCase())return i;return null}const XN=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),ZN=t=>!vh(t)&&t!==XN;function kS(){const{caseless:t}=ZN(this)&&this||{},e={},r=(n,i)=>{const a=t&&jN(e,i)||i;cp(e[a])&&cp(n)?e[a]=kS(e[a],n):cp(n)?e[a]=kS({},n):Xu(n)?e[a]=n.slice():e[a]=n};for(let n=0,i=arguments.length;n(tv(e,(i,a)=>{r&&Dn(i)?t[a]=WN(i,r):t[a]=i},{allOwnKeys:n}),t),E$=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),R$=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},k$=(t,e,r,n)=>{let i,a,o;const s={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),a=i.length;a-- >0;)o=i[a],(!n||n(o,t,e))&&!s[o]&&(e[o]=t[o],s[o]=!0);t=r!==!1&&Ob(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},O$=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},N$=t=>{if(!t)return null;if(Xu(t))return t;let e=t.length;if(!YN(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},B$=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Ob(Uint8Array)),z$=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=n.next())&&!i.done;){const a=i.value;e.call(t,a[0],a[1])}},F$=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},V$=zi("HTMLFormElement"),G$=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),jM=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),H$=zi("RegExp"),qN=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};tv(r,(i,a)=>{e(i,a,t)!==!1&&(n[a]=i)}),Object.defineProperties(t,n)},U$=t=>{qN(t,(e,r)=>{if(Dn(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(Dn(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},W$=(t,e)=>{const r={},n=i=>{i.forEach(a=>{r[a]=!0})};return Xu(t)?n(t):n(String(t).split(e)),r},$$=()=>{},Y$=(t,e)=>(t=+t,Number.isFinite(t)?t:e),l0="abcdefghijklmnopqrstuvwxyz",XM="0123456789",KN={DIGIT:XM,ALPHA:l0,ALPHA_DIGIT:l0+l0.toUpperCase()+XM},j$=(t=16,e=KN.ALPHA_DIGIT)=>{let r="";const{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r};function X$(t){return!!(t&&Dn(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Z$=t=>{const e=new Array(10),r=(n,i)=>{if(Dy(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[i]=n;const a=Xu(n)?[]:{};return tv(n,(o,s)=>{const l=r(o,i+1);!vh(l)&&(a[s]=l)}),e[i]=void 0,a}}return n};return r(t,0)},q$=zi("AsyncFunction"),K$=t=>t&&(Dy(t)||Dn(t))&&Dn(t.then)&&Dn(t.catch),$={isArray:Xu,isArrayBuffer:$N,isBuffer:_$,isFormData:D$,isArrayBufferView:S$,isString:x$,isNumber:YN,isBoolean:w$,isObject:Dy,isPlainObject:cp,isUndefined:vh,isDate:b$,isFile:C$,isBlob:T$,isRegExp:H$,isFunction:Dn,isStream:M$,isURLSearchParams:L$,isTypedArray:B$,isFileList:A$,forEach:tv,merge:kS,extend:I$,trim:P$,stripBOM:E$,inherits:R$,toFlatObject:k$,kindOf:Ay,kindOfTest:zi,endsWith:O$,toArray:N$,forEachEntry:z$,matchAll:F$,isHTMLForm:V$,hasOwnProperty:jM,hasOwnProp:jM,reduceDescriptors:qN,freezeMethods:U$,toObjectSet:W$,toCamelCase:G$,noop:$$,toFiniteNumber:Y$,findKey:jN,global:XN,isContextDefined:ZN,ALPHABET:KN,generateString:j$,isSpecCompliantForm:X$,toJSONObject:Z$,isAsyncFn:q$,isThenable:K$};function je(t,e,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}$.inherits(je,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const QN=je.prototype,JN={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{JN[t]={value:t}});Object.defineProperties(je,JN);Object.defineProperty(QN,"isAxiosError",{value:!0});je.from=(t,e,r,n,i,a)=>{const o=Object.create(QN);return $.toFlatObject(t,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),je.call(o,t.message,e,r,n,i),o.cause=t,o.name=t.name,a&&Object.assign(o,a),o};const Q$=null;function OS(t){return $.isPlainObject(t)||$.isArray(t)}function eB(t){return $.endsWith(t,"[]")?t.slice(0,-2):t}function ZM(t,e,r){return t?t.concat(e).map(function(i,a){return i=eB(i),!r&&a?"["+i+"]":i}).join(r?".":""):e}function J$(t){return $.isArray(t)&&!t.some(OS)}const e8=$.toFlatObject($,{},null,function(e){return/^is[A-Z]/.test(e)});function Ly(t,e,r){if(!$.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=$.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,y){return!$.isUndefined(y[p])});const n=r.metaTokens,i=r.visitor||c,a=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&$.isSpecCompliantForm(e);if(!$.isFunction(i))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if($.isDate(d))return d.toISOString();if(!l&&$.isBlob(d))throw new je("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(d)||$.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function c(d,p,y){let g=d;if(d&&!y&&typeof d=="object"){if($.endsWith(p,"{}"))p=n?p:p.slice(0,-2),d=JSON.stringify(d);else if($.isArray(d)&&J$(d)||($.isFileList(d)||$.endsWith(p,"[]"))&&(g=$.toArray(d)))return p=eB(p),g.forEach(function(_,S){!($.isUndefined(_)||_===null)&&e.append(o===!0?ZM([p],S,a):o===null?p:p+"[]",u(_))}),!1}return OS(d)?!0:(e.append(ZM(y,p,a),u(d)),!1)}const f=[],h=Object.assign(e8,{defaultVisitor:c,convertValue:u,isVisitable:OS});function v(d,p){if(!$.isUndefined(d)){if(f.indexOf(d)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(d),$.forEach(d,function(g,m){(!($.isUndefined(g)||g===null)&&i.call(e,g,$.isString(m)?m.trim():m,p,h))===!0&&v(g,p?p.concat(m):[m])}),f.pop()}}if(!$.isObject(t))throw new TypeError("data must be an object");return v(t),e}function qM(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Nb(t,e){this._pairs=[],t&&Ly(t,this,e)}const tB=Nb.prototype;tB.append=function(e,r){this._pairs.push([e,r])};tB.toString=function(e){const r=e?function(n){return e.call(this,n,qM)}:qM;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function t8(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rB(t,e,r){if(!e)return t;const n=r&&r.encode||t8,i=r&&r.serialize;let a;if(i?a=i(e,r):a=$.isURLSearchParams(e)?e.toString():new Nb(e,r).toString(n),a){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class r8{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){$.forEach(this.handlers,function(n){n!==null&&e(n)})}}const KM=r8,nB={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},n8=typeof URLSearchParams<"u"?URLSearchParams:Nb,i8=typeof FormData<"u"?FormData:null,a8=typeof Blob<"u"?Blob:null,o8=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),s8=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ti={isBrowser:!0,classes:{URLSearchParams:n8,FormData:i8,Blob:a8},isStandardBrowserEnv:o8,isStandardBrowserWebWorkerEnv:s8,protocols:["http","https","file","blob","url","data"]};function l8(t,e){return Ly(t,new Ti.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,a){return Ti.isNode&&$.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}function u8(t){return $.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function c8(t){const e={},r=Object.keys(t);let n;const i=r.length;let a;for(n=0;n=r.length;return o=!o&&$.isArray(i)?i.length:o,l?($.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!s):((!i[o]||!$.isObject(i[o]))&&(i[o]=[]),e(r,n,i[o],a)&&$.isArray(i[o])&&(i[o]=c8(i[o])),!s)}if($.isFormData(t)&&$.isFunction(t.entries)){const r={};return $.forEachEntry(t,(n,i)=>{e(u8(n),i,r,0)}),r}return null}const f8={"Content-Type":void 0};function h8(t,e,r){if($.isString(t))try{return(e||JSON.parse)(t),$.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const Py={transitional:nB,adapter:["xhr","http"],transformRequest:[function(e,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,a=$.isObject(e);if(a&&$.isHTMLForm(e)&&(e=new FormData(e)),$.isFormData(e))return i&&i?JSON.stringify(iB(e)):e;if($.isArrayBuffer(e)||$.isBuffer(e)||$.isStream(e)||$.isFile(e)||$.isBlob(e))return e;if($.isArrayBufferView(e))return e.buffer;if($.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return l8(e,this.formSerializer).toString();if((s=$.isFileList(e))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ly(s?{"files[]":e}:e,l&&new l,this.formSerializer)}}return a||i?(r.setContentType("application/json",!1),h8(e)):e}],transformResponse:[function(e){const r=this.transitional||Py.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(e&&$.isString(e)&&(n&&!this.responseType||i)){const o=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(s){if(o)throw s.name==="SyntaxError"?je.from(s,je.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ti.classes.FormData,Blob:Ti.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};$.forEach(["delete","get","head"],function(e){Py.headers[e]={}});$.forEach(["post","put","patch"],function(e){Py.headers[e]=$.merge(f8)});const Bb=Py,v8=$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),d8=t=>{const e={};let r,n,i;return t&&t.split(` +`).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||e[r]&&v8[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},QM=Symbol("internals");function Tc(t){return t&&String(t).trim().toLowerCase()}function fp(t){return t===!1||t==null?t:$.isArray(t)?t.map(fp):String(t)}function p8(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const g8=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function u0(t,e,r,n,i){if($.isFunction(n))return n.call(this,e,r);if(i&&(e=r),!!$.isString(e)){if($.isString(n))return e.indexOf(n)!==-1;if($.isRegExp(n))return n.test(e)}}function y8(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function m8(t,e){const r=$.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(i,a,o){return this[n].call(this,e,i,a,o)},configurable:!0})})}class Iy{constructor(e){e&&this.set(e)}set(e,r,n){const i=this;function a(s,l,u){const c=Tc(l);if(!c)throw new Error("header name must be a non-empty string");const f=$.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=fp(s))}const o=(s,l)=>$.forEach(s,(u,c)=>a(u,c,l));return $.isPlainObject(e)||e instanceof this.constructor?o(e,r):$.isString(e)&&(e=e.trim())&&!g8(e)?o(d8(e),r):e!=null&&a(r,e,n),this}get(e,r){if(e=Tc(e),e){const n=$.findKey(this,e);if(n){const i=this[n];if(!r)return i;if(r===!0)return p8(i);if($.isFunction(r))return r.call(this,i,n);if($.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=Tc(e),e){const n=$.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||u0(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let i=!1;function a(o){if(o=Tc(o),o){const s=$.findKey(n,o);s&&(!r||u0(n,n[s],s,r))&&(delete n[s],i=!0)}}return $.isArray(e)?e.forEach(a):a(e),i}clear(e){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const a=r[n];(!e||u0(this,this[a],a,e,!0))&&(delete this[a],i=!0)}return i}normalize(e){const r=this,n={};return $.forEach(this,(i,a)=>{const o=$.findKey(n,a);if(o){r[o]=fp(i),delete r[a];return}const s=e?y8(a):String(a).trim();s!==a&&delete r[a],r[s]=fp(i),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return $.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=e&&$.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(i=>n.set(i)),n}static accessor(e){const n=(this[QM]=this[QM]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=Tc(o);n[s]||(m8(i,o),n[s]=!0)}return $.isArray(e)?e.forEach(a):a(e),this}}Iy.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);$.freezeMethods(Iy.prototype);$.freezeMethods(Iy);const aa=Iy;function c0(t,e){const r=this||Bb,n=e||r,i=aa.from(n.headers);let a=n.data;return $.forEach(t,function(s){a=s.call(r,a,i.normalize(),e?e.status:void 0)}),i.normalize(),a}function aB(t){return!!(t&&t.__CANCEL__)}function rv(t,e,r){je.call(this,t??"canceled",je.ERR_CANCELED,e,r),this.name="CanceledError"}$.inherits(rv,je,{__CANCEL__:!0});function _8(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new je("Request failed with status code "+r.status,[je.ERR_BAD_REQUEST,je.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const S8=Ti.isStandardBrowserEnv?function(){return{write:function(r,n,i,a,o,s){const l=[];l.push(r+"="+encodeURIComponent(n)),$.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),$.isString(a)&&l.push("path="+a),$.isString(o)&&l.push("domain="+o),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(r){const n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function x8(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function w8(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function oB(t,e){return t&&!x8(e)?w8(t,e):e}const b8=Ti.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function i(a){let o=a;return e&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=i(window.location.href),function(o){const s=$.isString(o)?i(o):o;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}();function C8(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function T8(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i=0,a=0,o;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=n[a];o||(o=u),r[i]=l,n[i]=u;let f=a,h=0;for(;f!==i;)h+=r[f++],f=f%t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),u-o{const a=i.loaded,o=i.lengthComputable?i.total:void 0,s=a-r,l=n(s),u=a<=o;r=a;const c={loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&u?(o-a)/l:void 0,event:i};c[e?"download":"upload"]=!0,t(c)}}const A8=typeof XMLHttpRequest<"u",M8=A8&&function(t){return new Promise(function(r,n){let i=t.data;const a=aa.from(t.headers).normalize(),o=t.responseType;let s;function l(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}$.isFormData(i)&&(Ti.isStandardBrowserEnv||Ti.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(t.auth){const v=t.auth.username||"",d=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";a.set("Authorization","Basic "+btoa(v+":"+d))}const c=oB(t.baseURL,t.url);u.open(t.method.toUpperCase(),rB(c,t.params,t.paramsSerializer),!0),u.timeout=t.timeout;function f(){if(!u)return;const v=aa.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),p={data:!o||o==="text"||o==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:v,config:t,request:u};_8(function(g){r(g),l()},function(g){n(g),l()},p),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(n(new je("Request aborted",je.ECONNABORTED,t,u)),u=null)},u.onerror=function(){n(new je("Network Error",je.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let d=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const p=t.transitional||nB;t.timeoutErrorMessage&&(d=t.timeoutErrorMessage),n(new je(d,p.clarifyTimeoutError?je.ETIMEDOUT:je.ECONNABORTED,t,u)),u=null},Ti.isStandardBrowserEnv){const v=(t.withCredentials||b8(c))&&t.xsrfCookieName&&S8.read(t.xsrfCookieName);v&&a.set(t.xsrfHeaderName,v)}i===void 0&&a.setContentType(null),"setRequestHeader"in u&&$.forEach(a.toJSON(),function(d,p){u.setRequestHeader(p,d)}),$.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),o&&o!=="json"&&(u.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&u.addEventListener("progress",JM(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",JM(t.onUploadProgress)),(t.cancelToken||t.signal)&&(s=v=>{u&&(n(!v||v.type?new rv(null,t,u):v),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s)));const h=C8(c);if(h&&Ti.protocols.indexOf(h)===-1){n(new je("Unsupported protocol "+h+":",je.ERR_BAD_REQUEST,t));return}u.send(i||null)})},hp={http:Q$,xhr:M8};$.forEach(hp,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const D8={getAdapter:t=>{t=$.isArray(t)?t:[t];const{length:e}=t;let r,n;for(let i=0;it instanceof aa?t.toJSON():t;function Eu(t,e){e=e||{};const r={};function n(u,c,f){return $.isPlainObject(u)&&$.isPlainObject(c)?$.merge.call({caseless:f},u,c):$.isPlainObject(c)?$.merge({},c):$.isArray(c)?c.slice():c}function i(u,c,f){if($.isUndefined(c)){if(!$.isUndefined(u))return n(void 0,u,f)}else return n(u,c,f)}function a(u,c){if(!$.isUndefined(c))return n(void 0,c)}function o(u,c){if($.isUndefined(c)){if(!$.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function s(u,c,f){if(f in e)return n(u,c);if(f in t)return n(void 0,u)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,c)=>i(tD(u),tD(c),!0)};return $.forEach(Object.keys(Object.assign({},t,e)),function(c){const f=l[c]||i,h=f(t[c],e[c],c);$.isUndefined(h)&&f!==s||(r[c]=h)}),r}const sB="1.4.0",zb={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{zb[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const rD={};zb.transitional=function(e,r,n){function i(a,o){return"[Axios v"+sB+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return(a,o,s)=>{if(e===!1)throw new je(i(o," has been removed"+(r?" in "+r:"")),je.ERR_DEPRECATED);return r&&!rD[o]&&(rD[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(a,o,s):!0}};function L8(t,e,r){if(typeof t!="object")throw new je("options must be an object",je.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let i=n.length;for(;i-- >0;){const a=n[i],o=e[a];if(o){const s=t[a],l=s===void 0||o(s,a,t);if(l!==!0)throw new je("option "+a+" must be "+l,je.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new je("Unknown option "+a,je.ERR_BAD_OPTION)}}const NS={assertOptions:L8,validators:zb},Da=NS.validators;class sg{constructor(e){this.defaults=e,this.interceptors={request:new KM,response:new KM}}request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=Eu(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:a}=r;n!==void 0&&NS.assertOptions(n,{silentJSONParsing:Da.transitional(Da.boolean),forcedJSONParsing:Da.transitional(Da.boolean),clarifyTimeoutError:Da.transitional(Da.boolean)},!1),i!=null&&($.isFunction(i)?r.paramsSerializer={serialize:i}:NS.assertOptions(i,{encode:Da.function,serialize:Da.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o;o=a&&$.merge(a.common,a[r.method]),o&&$.forEach(["delete","get","head","post","put","patch","common"],d=>{delete a[d]}),r.headers=aa.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let c,f=0,h;if(!l){const d=[eD.bind(this),void 0];for(d.unshift.apply(d,s),d.push.apply(d,u),h=d.length,c=Promise.resolve(r);f{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](i);n._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{n.subscribe(s),a=s}).then(i);return o.cancel=function(){n.unsubscribe(a)},o},e(function(a,o,s){n.reason||(n.reason=new rv(a,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}static source(){let e;return{token:new Fb(function(i){e=i}),cancel:e}}}const P8=Fb;function I8(t){return function(r){return t.apply(null,r)}}function E8(t){return $.isObject(t)&&t.isAxiosError===!0}const BS={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(BS).forEach(([t,e])=>{BS[e]=t});const R8=BS;function lB(t){const e=new vp(t),r=WN(vp.prototype.request,e);return $.extend(r,vp.prototype,e,{allOwnKeys:!0}),$.extend(r,e,null,{allOwnKeys:!0}),r.create=function(i){return lB(Eu(t,i))},r}const Ut=lB(Bb);Ut.Axios=vp;Ut.CanceledError=rv;Ut.CancelToken=P8;Ut.isCancel=aB;Ut.VERSION=sB;Ut.toFormData=Ly;Ut.AxiosError=je;Ut.Cancel=Ut.CanceledError;Ut.all=function(e){return Promise.all(e)};Ut.spread=I8;Ut.isAxiosError=E8;Ut.mergeConfig=Eu;Ut.AxiosHeaders=aa;Ut.formToJSON=t=>iB($.isHTMLForm(t)?new FormData(t):t);Ut.HttpStatusCode=R8;Ut.default=Ut;const uB=Ut,cB={apiUri:"https://test.verification.rocks"},k8=(t,e)=>Object.values(t).slice(-e).reduce((i,a)=>i+a,0),O8=t=>({tooltip:{},grid:{left:"5%",right:"5%",top:"10%",bottom:"10%"},xAxis:{type:"category",data:t.map(e=>e.day)},yAxis:{type:"value"},series:[{name:"Success",stack:"total",type:"bar",data:t.map(e=>e.positive),itemStyle:{color:"#2196F3"}},{name:"Failure",stack:"total",type:"bar",data:t.map(e=>e.negative),itemStyle:{color:"#FF5722"}}]}),fB=async()=>{try{return(await uB.get(`${cB.apiUri}/stats/sentry/events`)).data}catch{return{}}},N8=async()=>{try{const t=`${cB.apiUri}/stats/bugs/open`;return(await uB.get(t)).data}catch(t){return console.log(t),{count:0}}},B8="/dist/assets/fil-plus-60ab2b37.svg",z8=[{name:"Blockchain",to:"",svg:K.jsx(TW,{})},{name:"User",to:"user",svg:K.jsx(AW,{})}],F8=()=>K.jsxs("nav",{className:"w-64 min-h-screen shadow-md fixed left-0 top-0 flex flex-col",children:[K.jsx(kM,{to:"/",children:K.jsx("img",{src:B8,alt:"logo",className:"h-16 w-full cursor-pointer my-5"})}),K.jsx("div",{className:"flex flex-col flex-1 px-5",children:z8.map(t=>K.jsxs(kM,{to:t.to,className:({isActive:e})=>`flex items-center space-x-4 py-3 pl-4 cursor-pointer rounded-lg hover:bg-gray-100 ${e&&"bg-gradient-to-r from-cyan-500 to-blue-500 text-white transition duration-300 shadow-md"}`,children:[K.jsx("span",{children:t.svg}),K.jsx("span",{children:t.name})]},t.name))}),K.jsx(IN,{to:"/",className:"border-t text-center py-4",children:K.jsx("span",{children:"About Fil+ Metrics"})})]});function V8(){var e;const t=kb({queryKey:["bugs"],queryFn:N8});return K.jsxs("section",{className:"flex",children:[K.jsx(F8,{}),K.jsx("main",{className:"bg-[#E7E7E7] flex-1 px-8 py-6 ml-64 min-h-screen",children:K.jsxs("div",{className:"max-w-[1200px] mx-auto",children:[K.jsx("div",{className:"bg-white rounded-md px-12 py-4 shadow-md mb-4",children:t.isLoading?"Loading...":K.jsxs("div",{className:"flex items-center space-x-4 ",children:[K.jsx(MW,{}),K.jsxs("div",{children:[" Number of open bugs : ",(e=t==null?void 0:t.data)==null?void 0:e.count]})]})}),K.jsx(hW,{})]})})]})}/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var zS=function(t,e){return zS=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},zS(t,e)};function hB(t,e){zS(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var FS=function(){return FS=Object.assign||function(e){for(var r,n=1,i=arguments.length;n"u"&&typeof self<"u"?cs.worker=!0:typeof navigator>"u"?(cs.node=!0,cs.svgSupported=!0):U8(navigator.userAgent,cs);function U8(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);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),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}const ze=cs;var Vb=12,vB="sans-serif",_o=Vb+"px "+vB,W8=20,$8=100,Y8="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function j8(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r=0)s=o*r.length;else for(var l=0;l>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;"),t.appendChild(o),r.push(o)}return r}function y7(t,e,r){for(var n=r?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),f=2*u,h=c.left,v=c.top;o.push(h,v),l=l&&a&&h===a[f]&&v===a[f+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=r?iD(s,o):iD(o,s))}function TB(t){return t.nodeName.toUpperCase()==="CANVAS"}var m7=/([&<>"'])/g,_7={"&":"&","<":"<",">":">",'"':""","'":"'"};function Cr(t){return t==null?"":(t+"").replace(m7,function(e,r){return _7[r]})}var S7=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,v0=[],x7=ze.browser.firefox&&+ze.browser.version.split(".")[0]<39;function YS(t,e,r,n){return r=r||{},n?oD(t,e,r):x7&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):oD(t,e,r),r}function oD(t,e,r){if(ze.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(TB(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if($S(v0,t,n,i)){r.zrX=v0[0],r.zrY=v0[1];return}}r.zrX=r.zrY=0}function jb(t){return t||window.event}function pn(t,e,r){if(e=jb(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&YS(t,o,e,r)}else{YS(t,e,e,r);var a=w7(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&S7.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function w7(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function jS(t,e,r,n){t.addEventListener(e,r,n)}function b7(t,e,r,n){t.removeEventListener(e,r,n)}var va=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function sD(t){return t.which===2||t.which===3}var C7=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:r,event:e},o=0,s=i.length;o1&&n&&n.length>1){var a=lD(n)/lD(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=T7(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function rn(){return[1,0,0,1,0,0]}function av(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function By(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Ri(t,e,r){var n=e[0]*r[0]+e[2]*r[1],i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function oi(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function Eo(t,e,r){var n=e[0],i=e[2],a=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(r),c=Math.cos(r);return t[0]=n*c+o*u,t[1]=-n*u+o*c,t[2]=i*c+s*u,t[3]=-i*u+c*s,t[4]=c*a+u*l,t[5]=c*l-u*a,t}function zy(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function ul(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*i)*l,t[5]=(a*i-r*s)*l,t):null}function AB(t){var e=rn();return By(e,t),e}const A7=Object.freeze(Object.defineProperty({__proto__:null,clone:AB,copy:By,create:rn,identity:av,invert:ul,mul:Ri,rotate:Eo,scale:zy,translate:oi},Symbol.toStringTag,{value:"Module"}));var M7=function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,i){e.x=r.x+n.x*i,e.y=r.y+n.y*i},t.lerp=function(e,r,n,i){var a=1-i;e.x=a*r.x+i*n.x,e.y=a*r.y+i*n.y},t}();const we=M7;var Zv=Math.min,qv=Math.max,Bo=new we,zo=new we,Fo=new we,Vo=new we,Ac=new we,Mc=new we,D7=function(){function t(e,r,n,i){n<0&&(e=e+n,n=-n),i<0&&(r=r+i,i=-i),this.x=e,this.y=r,this.width=n,this.height=i}return t.prototype.union=function(e){var r=Zv(e.x,this.x),n=Zv(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=qv(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=qv(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var r=this,n=e.width/r.width,i=e.height/r.height,a=rn();return oi(a,a,[-r.x,-r.y]),zy(a,a,[n,i]),oi(a,a,[e.x,e.y]),a},t.prototype.intersect=function(e,r){if(!e)return!1;e instanceof t||(e=t.create(e));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,c=e.y,f=e.y+e.height,h=!(ad&&(d=_,pd&&(d=S,g=n.x&&e<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,r){e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height},t.applyTransform=function(e,r,n){if(!n){e!==r&&t.copy(e,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];e.x=r.x*i+o,e.y=r.y*a+s,e.width=r.width*i,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Bo.x=Fo.x=r.x,Bo.y=Vo.y=r.y,zo.x=Vo.x=r.x+r.width,zo.y=Fo.y=r.y+r.height,Bo.transform(n),Vo.transform(n),zo.transform(n),Fo.transform(n),e.x=Zv(Bo.x,zo.x,Fo.x,Vo.x),e.y=Zv(Bo.y,zo.y,Fo.y,Vo.y);var l=qv(Bo.x,zo.x,Fo.x,Vo.x),u=qv(Bo.y,zo.y,Fo.y,Vo.y);e.width=l-e.x,e.height=u-e.y},t}();const Ce=D7;var MB="silent";function L7(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.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:P7}}function P7(){va(this.event)}var I7=function(t){ut(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(kn),Dc=function(){function t(e,r){this.x=e,this.y=r}return t}(),E7=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],p0=new Ce(0,0,0,0),DB=function(t){ut(e,t);function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new Dc(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new I7,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new h7(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(M(E7,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=LB(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 Dc(n,i):this.findHover(n,i),u=l.target,c=this.proxy;c.setCursor&&c.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)},e.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})},e.prototype.resize=function(){this._hovered=new Dc(0,0)},e.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=L7(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)}))}},e.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new Dc(r,n);if(uD(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Ce(r-u,n-u,l,l),f=a.length-1;f>=0;f--){var h=a[f];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(p0.copy(h.getBoundingRect()),h.transform&&p0.applyTransform(h.transform),p0.intersect(c)&&s.push(h))}if(s.length)for(var v=4,d=Math.PI/12,p=Math.PI*2,y=0;y4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function R7(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?MB:!0}return!1}function uD(t,e,r,n,i){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==i&&!o.ignore&&(s=R7(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==MB)){e.target=o;break}}}function LB(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}const k7=DB;var PB=32,Lc=7;function O7(t){for(var e=0;t>=PB;)e|=t&1,t>>=1;return t+e}function cD(t,e,r,n){var i=e+1;if(i===r)return 1;if(n(t[i++],t[e])<0){for(;i=0;)i++;return i-e}function N7(t,e,r){for(r--;e>>1,i(a,t[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function g0(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])>0){for(s=n-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);a(t,e[r+c])>0?o=c+1:l=c}return l}function y0(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);a(t,e[r+c])<0?l=c:o=c+1}return l}function B7(t,e){var r=Lc,n,i,a=0;t.length;var o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]i[v+1])break;c(v)}}function u(){for(;a>1;){var v=a-2;v>0&&i[v-1]=Lc||b>=Lc);if(C)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),d===1){for(g=0;g=0;g--)t[x+g]=t[w+g];t[S]=o[_];return}for(var b=r;;){var C=0,T=0,A=!1;do if(e(o[_],t[m])<0){if(t[S--]=t[m--],C++,T=0,--d===0){A=!0;break}}else if(t[S--]=o[_--],T++,C=0,--y===1){A=!0;break}while((C|T)=0;g--)t[x+g]=t[w+g];if(d===0){A=!0;break}}if(t[S--]=o[_--],--y===1){A=!0;break}if(T=y-g0(t[m],o,0,y,y-1,e),T!==0){for(S-=T,_-=T,y-=T,x=S+1,w=_+1,g=0;g=Lc||T>=Lc);if(A)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),y===1){for(S-=d,m-=d,x=S+1,w=m+1,g=d-1;g>=0;g--)t[x+g]=t[w+g];t[S]=o[_]}else{if(y===0)throw new Error;for(w=S-(y-1),g=0;gs&&(l=s),fD(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var Zr=1,sf=2,Fl=4,hD=!1;function m0(){hD||(hD=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function vD(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var z7=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=vD}return t.prototype.traverse=function(e,r){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(m0(),c.z=0),isNaN(c.z2)&&(m0(),c.z2=0),isNaN(c.zlevel)&&(m0(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=e.getDecalElement&&e.getDecalElement();f&&this._updateAndAddDisplayable(f,r,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,r,n);var v=e.getTextContent();v&&this._updateAndAddDisplayable(v,r,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();const F7=z7;var IB;IB=ze.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};const XS=IB;var pp={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-pp.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?pp.bounceIn(t*2)*.5:pp.bounceOut(t*2-1)*.5+.5}};const EB=pp;var Kv=Math.pow,co=Math.sqrt,fg=1e-8,RB=1e-4,dD=co(3),Qv=1/3,bi=Io(),wn=Io(),gu=Io();function Za(t){return t>-fg&&tfg||t<-fg}function zt(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function pD(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function hg(t,e,r,n,i,a){var o=n+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-i,c=s*s-3*o*l,f=s*l-9*o*u,h=l*l-3*s*u,v=0;if(Za(c)&&Za(f))if(Za(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var p=f*f-4*c*h;if(Za(p)){var y=f/c,d=-s/o+y,g=-y/2;d>=0&&d<=1&&(a[v++]=d),g>=0&&g<=1&&(a[v++]=g)}else if(p>0){var m=co(p),_=c*s+1.5*o*(-f+m),S=c*s+1.5*o*(-f-m);_<0?_=-Kv(-_,Qv):_=Kv(_,Qv),S<0?S=-Kv(-S,Qv):S=Kv(S,Qv);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var w=(2*c*s-3*o*f)/(2*co(c*c*c)),x=Math.acos(w)/3,b=co(c),C=Math.cos(x),d=(-s-2*b*C)/(3*o),g=(-s+b*(C+dD*Math.sin(x)))/(3*o),T=(-s+b*(C-dD*Math.sin(x)))/(3*o);d>=0&&d<=1&&(a[v++]=d),g>=0&&g<=1&&(a[v++]=g),T>=0&&T<=1&&(a[v++]=T)}}return v}function OB(t,e,r,n,i){var a=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,l=0;if(Za(o)){if(kB(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(Za(c))i[0]=-a/(2*o);else if(c>0){var f=co(c),u=(-a+f)/(2*o),h=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function So(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,l=(n-r)*i+r,u=(s-o)*i+o,c=(l-s)*i+s,f=(c-u)*i+u;a[0]=t,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=c,a[6]=l,a[7]=n}function NB(t,e,r,n,i,a,o,s,l,u,c){var f,h=.005,v=1/0,d,p,y,g;bi[0]=l,bi[1]=u;for(var m=0;m<1;m+=.05)wn[0]=zt(t,r,i,o,m),wn[1]=zt(e,n,a,s,m),y=uo(bi,wn),y=0&&y=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(Za(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=co(c),u=(-o+f)/(2*a),h=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function BB(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function yh(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function zB(t,e,r,n,i,a,o,s,l){var u,c=.005,f=1/0;bi[0]=o,bi[1]=s;for(var h=0;h<1;h+=.05){wn[0]=Zt(t,r,i,h),wn[1]=Zt(e,n,a,h);var v=uo(bi,wn);v=0&&v=1?1:hg(0,n,a,1,l,s)&&zt(0,i,o,1,s[0])}}}var W7=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||wt,this.ondestroy=e.ondestroy||wt,this.onrestart=e.onrestart||wt,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=e-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=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ae(e)?e:EB[e]||Xb(e)},t}();const $7=W7;var FB=function(){function t(e){this.value=e}return t}(),Y7=function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new FB(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),j7=function(){function t(e){this._list=new Y7,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,i=this._map,a=null;if(i[e]==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 FB(r),s.key=e,n.insertEntry(s),i[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();const ov=j7;var gD={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 ti(t){return t=Math.round(t),t<0?0:t>255?255:t}function X7(t){return t=Math.round(t),t<0?0:t>360?360:t}function mh(t){return t<0?0:t>1?1:t}function _0(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?ti(parseFloat(e)/100*255):ti(parseInt(e,10))}function Ns(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?mh(parseFloat(e)/100):mh(parseFloat(e))}function S0(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function qa(t,e,r){return t+(e-t)*r}function dn(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function qS(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var VB=new ov(20),Jv=null;function ml(t,e){Jv&&qS(Jv,e),Jv=VB.put(t,Jv||e.slice())}function Ar(t,e){if(t){e=e||[];var r=VB.get(t);if(r)return qS(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in gD)return qS(e,gD[n]),ml(t,e),e;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)){dn(e,0,0,0,1);return}return dn(e,(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),ml(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){dn(e,0,0,0,1);return}return dn(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),ml(t,e),e}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(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?dn(e,+u[0],+u[1],+u[2],1):dn(e,0,0,0,1);c=Ns(u.pop());case"rgb":if(u.length>=3)return dn(e,_0(u[0]),_0(u[1]),_0(u[2]),u.length===3?c:Ns(u[3])),ml(t,e),e;dn(e,0,0,0,1);return;case"hsla":if(u.length!==4){dn(e,0,0,0,1);return}return u[3]=Ns(u[3]),KS(u,e),ml(t,e),e;case"hsl":if(u.length!==3){dn(e,0,0,0,1);return}return KS(u,e),ml(t,e),e;default:return}}dn(e,0,0,0,1)}}function KS(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=Ns(t[1]),i=Ns(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],dn(e,ti(S0(o,a,r+1/3)*255),ti(S0(o,a,r)*255),ti(S0(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function Z7(t){if(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),a=Math.max(e,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 c=((a-e)/6+o/2)/o,f=((a-r)/6+o/2)/o,h=((a-n)/6+o/2)/o;e===a?l=h-f:r===a?l=1/3+c-h:n===a&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return t[3]!=null&&v.push(t[3]),v}}function vg(t,e){var r=Ar(t);if(r){for(var n=0;n<3;n++)e<0?r[n]=r[n]*(1-e)|0:r[n]=(255-r[n])*e+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return ri(r,r.length===4?"rgba":"rgb")}}function q7(t){var e=Ar(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Ef(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){r=r||[];var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=e[i],s=e[a],l=n-i;return r[0]=ti(qa(o[0],s[0],l)),r[1]=ti(qa(o[1],s[1],l)),r[2]=ti(qa(o[2],s[2],l)),r[3]=mh(qa(o[3],s[3],l)),r}}var K7=Ef;function Zb(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=Ar(e[i]),s=Ar(e[a]),l=n-i,u=ri([ti(qa(o[0],s[0],l)),ti(qa(o[1],s[1],l)),ti(qa(o[2],s[2],l)),mh(qa(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}var Q7=Zb;function yu(t,e,r,n){var i=Ar(t);if(t)return i=Z7(i),e!=null&&(i[0]=X7(e)),r!=null&&(i[1]=Ns(r)),n!=null&&(i[2]=Ns(n)),ri(KS(i),"rgba")}function _h(t,e){var r=Ar(t);if(r&&e!=null)return r[3]=mh(e),ri(r,"rgba")}function ri(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function Sh(t,e){var r=Ar(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}function J7(){return ri([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const e9=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:Ef,fastMapToColor:K7,lerp:Zb,lift:vg,lum:Sh,mapToColor:Q7,modifyAlpha:_h,modifyHSL:yu,parse:Ar,random:J7,stringify:ri,toHex:q7},Symbol.toStringTag,{value:"Module"}));var dg=Math.round;function xh(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var r=Ar(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}return{color:t,opacity:e??1}}var yD=1e-4;function Ka(t){return t-yD}function ed(t){return dg(t*1e3)/1e3}function QS(t){return dg(t*1e4)/1e4}function t9(t){return"matrix("+ed(t[0])+","+ed(t[1])+","+ed(t[2])+","+ed(t[3])+","+QS(t[4])+","+QS(t[5])+")"}var r9={left:"start",right:"end",center:"middle",middle:"middle"};function n9(t,e,r){return r==="top"?t+=e/2:r==="bottom"&&(t-=e/2),t}function i9(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function a9(t){var e=t.style,r=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function GB(t){return t&&!!t.image}function o9(t){return t&&!!t.svgElement}function qb(t){return GB(t)||o9(t)}function HB(t){return t.type==="linear"}function UB(t){return t.type==="radial"}function WB(t){return t&&(t.type==="linear"||t.type==="radial")}function Fy(t){return"url(#"+t+")"}function $B(t){var e=t.getGlobalScale(),r=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function YB(t){var e=t.x||0,r=t.y||0,n=(t.rotation||0)*Lf,i=be(t.scaleX,1),a=be(t.scaleY,1),o=t.skewX||0,s=t.skewY||0,l=[];return(e||r)&&l.push("translate("+e+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+dg(o*Lf)+"deg, "+dg(s*Lf)+"deg)"),l.join(" ")}var s9=function(){return ze.hasGlobalWindow&&ae(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}}(),JS=Array.prototype.slice;function Yi(t,e,r){return(e-t)*r+t}function x0(t,e,r,n){for(var i=e.length,a=0;an?e:t,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var l=a;l=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=_D,l=r;if(ar(r)){var u=f9(r);s=u,(u===1&&!Fe(r[0])||u===2&&!Fe(r[0][0]))&&(o=!0)}else if(Fe(r)&&!ku(r))s=rd;else if(Z(r))if(!isNaN(+r))s=rd;else{var c=Ar(r);c&&(l=c,s=lf)}else if(nv(r)){var f=F({},l);f.colorStops=H(r.colorStops,function(v){return{offset:v.offset,color:Ar(v.color)}}),HB(r)?s=ex:UB(r)&&(s=tx),l=f}a===0?this.valType=s:(s!==this.valType||s===_D)&&(o=!0),this.discrete=this.discrete||o;var h={time:e,value:l,rawValue:r,percent:0};return n&&(h.easing=n,h.easingFunc=ae(n)?n:EB[n]||Xb(n)),i.push(h),h},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,y){return p.time-y.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=nd(i),u=SD(i),c=0;c=0&&!(o[c].percent<=r);c--);c=h(c,s-2)}else{for(c=f;cr);c++);c=h(c-1,s-2)}d=o[c+1],v=o[c]}if(v&&d){this._lastFr=c,this._lastFrP=r;var y=d.percent-v.percent,g=y===0?1:h((r-v.percent)/y,1);d.easingFunc&&(g=d.easingFunc(g));var m=n?this._additiveValue:u?Pc:e[l];if((nd(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=g<1?v.rawValue:d.rawValue;else if(nd(a))a===yp?x0(m,v[i],d[i],g):l9(m,v[i],d[i],g);else if(SD(a)){var _=v[i],S=d[i],w=a===ex;e[l]={type:w?"linear":"radial",x:Yi(_.x,S.x,g),y:Yi(_.y,S.y,g),colorStops:H(_.colorStops,function(b,C){var T=S.colorStops[C];return{offset:Yi(b.offset,T.offset,g),color:gp(x0([],b.color,T.color,g))}}),global:S.global},w?(e[l].x2=Yi(_.x2,S.x2,g),e[l].y2=Yi(_.y2,S.y2,g)):e[l].r=Yi(_.r,S.r,g)}else if(u)x0(m,v[i],d[i],g),n||(e[l]=gp(m));else{var x=Yi(v[i],d[i],g);n?this._additiveValue=x:e[l]=x}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===rd?e[n]=e[n]+i:r===lf?(Ar(e[n],Pc),td(Pc,Pc,i,1),e[n]=gp(Pc)):r===yp?td(e[n],e[n],i,1):r===jB&&mD(e[n],e[n],i,1)},t}(),v9=function(){function t(e,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&i){Ry("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,Ie(r),n)},t.prototype.whenWithKeys=function(e,r,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,Rf(u),i),this._trackKeys.push(s)}l.addKeyframe(e,Rf(r[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t}();const Kb=v9;function iu(){return new Date().getTime()}var d9=function(t){ut(e,t);function e(r){var n=t.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 e.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},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.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}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=iu()-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())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(XS(n),!r._paused&&r.update())}XS(n)},e.prototype.start=function(){this._running||(this._time=iu(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=iu(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=iu()-this._pauseStart,this._paused=!1)},e.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},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var i=new Kb(r,n.loop);return this.addAnimator(i),i},e}(kn);const p9=d9;var g9=300,w0=ze.domSupported,b0=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=H(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:n}}(),xD={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},wD=!1;function rx(t){var e=t.pointerType;return e==="pen"||e==="touch"}function y9(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function C0(t){t&&(t.zrByTouch=!0)}function m9(t,e){return pn(t.dom,new _9(t,e),!0)}function XB(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var _9=function(){function t(e,r){this.stopPropagation=wt,this.stopImmediatePropagation=wt,this.preventDefault=wt,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t}(),Un={mousedown:function(t){t=pn(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=pn(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=pn(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=pn(this.dom,t);var e=t.toElement||t.relatedTarget;XB(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){wD=!0,t=pn(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){wD||(t=pn(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=pn(this.dom,t),C0(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Un.mousemove.call(this,t),Un.mousedown.call(this,t)},touchmove:function(t){t=pn(this.dom,t),C0(t),this.handler.processGesture(t,"change"),Un.mousemove.call(this,t)},touchend:function(t){t=pn(this.dom,t),C0(t),this.handler.processGesture(t,"end"),Un.mouseup.call(this,t),+new Date-+this.__lastTouchMomentTD||t<-TD}var Ho=[],_l=[],A0=rn(),M0=Math.abs,T9=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Go(this.rotation)||Go(this.x)||Go(this.y)||Go(this.scaleX-1)||Go(this.scaleY-1)||Go(this.skewX)||Go(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&CD(n);return}n=n||rn(),r?this.getLocalTransform(n):CD(n),e&&(r?Ri(n,e,n):By(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Ho);var n=Ho[0]<0?-1:1,i=Ho[1]<0?-1:1,a=((Ho[0]-n)*r+n)/Ho[0]||0,o=((Ho[1]-i)*r+i)/Ho[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||rn(),ul(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(Ri(_l,e.invTransform,r),r=_l);var n=this.originX,i=this.originY;(n||i)&&(A0[4]=n,A0[5]=i,Ri(_l,r,A0),_l[4]-=n,_l[5]-=i,r=_l),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],i=this.invTransform;return i&&Kt(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&Kt(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&M0(e[0]-1)>1e-10&&M0(e[3]-1)>1e-10?Math.sqrt(M0(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){qB(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,f=e.y,h=e.skewX?Math.tan(e.skewX):0,v=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var d=n+s,p=i+l;r[4]=-d*a-h*p*o,r[5]=-p*o-v*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=v*a,r[2]=h*o,u&&Eo(r,r,u),r[4]+=n+c,r[5]+=i+f,r},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Oi=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function qB(t,e){for(var r=0;r=0?parseFloat(t)/100*e:parseFloat(t):t}function gg(t,e,r){var n=e.position||"inside",i=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,c="left",f="top";if(n instanceof Array)l+=si(n[0],r.width),u+=si(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+o,u+=s,f="middle";break;case"top":l+=o/2,u-=i,c="center",f="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=o-i,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,f="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",f="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=f,t}var D0="__zr_normal__",L0=Oi.concat(["ignore"]),A9=En(Oi,function(t,e){return t[e]=!0,t},{ignore:!1}),Sl={},M9=new Ce(0,0,0,0),Qb=function(){function t(e){this.id=Ub(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){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;if(a.copyTransform(r),n.position!=null){var c=M9;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Sl,n,c):gg(Sl,n,c),a.x=Sl.x,a.y=Sl.y,o=Sl.align,s=Sl.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var h=void 0,v=void 0;f==="center"?(h=c.width*.5,v=c.height*.5):(h=si(f[0],c.width),v=si(f[1],c.height)),u=!0,a.originX=-a.x+h+(i?0:c.x),a.originY=-a.y+v+(i?0:c.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,m=void 0,_=void 0;p&&this.canBeInsideText()?(g=n.insideFill,m=n.insideStroke,(g==null||g==="auto")&&(g=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(g),_=!0)):(g=n.outsideFill,m=n.outsideStroke,(g==null||g==="auto")&&(g=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(g),_=!0)),g=g||"#000",(g!==y.fill||m!==y.stroke||_!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=g,y.stroke=m,y.autoStroke=_,y.align=o,y.verticalAlign=s,r.setDefaultTextStyle(y)),r.__dirty|=Zr,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ox:ax},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Ar(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,ri(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},F(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(se(e))for(var n=e,i=Ie(n),a=0;a0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(D0,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===D0,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(Te(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){Ry("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,h=this._textGuide;return f&&f.useState(e,r,n,c),h&&h.useState(e,r,n,c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Zr),u}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l0,d);var p=this._textContent,y=this._textGuide;p&&p.useStates(e,r,h),y&&y.useStates(e,r,h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Zr)}},t.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var i=this.currentStates.slice(),a=Te(i,e),o=Te(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,i=n.length,a=[],o=0;o0&&r.during&&a[0].during(function(d,p){r.during(p)});for(var h=0;h0||i.force&&!o.length){var C=void 0,T=void 0,A=void 0;if(s){T={},h&&(C={});for(var S=0;S<_;S++){var g=p[S];T[g]=r[g],h?C[g]=n[g]:r[g]=n[g]}}else if(h){A={};for(var S=0;S<_;S++){var g=p[S];A[g]=Rf(r[g]),L9(r,n,g)}}var w=new Kb(r,!1,!1,f?Ye(d,function(L){return L.targetName===e}):null);w.targetName=e,i.scope&&(w.scope=i.scope),h&&C&&w.whenWithKeys(0,C,p),A&&w.whenWithKeys(0,A,p),w.whenWithKeys(u??500,s?T:n,p).delay(c||0),t.addAnimator(w,e),o.push(w)}}const QB=Qb;var JB=function(t){ut(e,t);function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,i=0;i=0&&(i.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var i=Te(this._children,r);return i>=0&&this.replaceAt(n,i),this},e.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},e.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()},e.prototype.remove=function(r){var n=this.__zr,i=this._children,a=Te(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},t.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this.handler.off(e,r)},t.prototype.trigger=function(e,r){this.handler.trigger(e,r)},t.prototype.clear=function(){for(var e=this.storage.getRoots(),r=0;r0){if(t<=i)return o;if(t>=a)return s}else{if(t>=i)return o;if(t<=a)return s}else{if(t===i)return o;if(t===a)return s}return(t-i)/l*u+o}function j(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return Z(t)?V9(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function gt(t,e,r){return e==null&&(e=10),e=Math.min(Math.max(0,e),tz),t=(+t).toFixed(e),r?t:+t}function Qr(t){return t.sort(function(e,r){return e-r}),t}function Kn(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Math.round(t*e)/e===t)return r}return rz(t)}function rz(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,i=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function Jb(t,e){var r=Math.log,n=Math.LN10,i=Math.floor(r(t[1]-t[0])/n),a=Math.round(r(Math.abs(e[1]-e[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function G9(t,e,r){if(!t[e])return 0;var n=nz(t,r);return n[e]||0}function nz(t,e){var r=En(t,function(v,d){return v+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Math.pow(10,e),i=H(t,function(v){return(isNaN(v)?0:v)/r*n*100}),a=n*100,o=H(i,function(v){return Math.floor(v)}),s=En(o,function(v,d){return v+d},0),l=H(i,function(v,d){return v-o[d]});su&&(u=l[f],c=f);++o[c],l[c]=0,++s}return H(o,function(v){return v/n})}function H9(t,e){var r=Math.max(Kn(t),Kn(e)),n=t+e;return r>tz?n:gt(n,r)}var lx=9007199254740991;function eC(t){var e=Math.PI*2;return(t%e+e)%e}function wh(t){return t>-DD&&t=10&&e++,e}function tC(t,e){var r=Gy(t),n=Math.pow(10,r),i=t/n,a;return e?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,t=a*n,r>=-20?+t.toFixed(r<0?-r:0):t}function Sp(t,e){var r=(t.length-1)*e+1,n=Math.floor(r),i=+t[n-1],a=r-n;return a?i+a*(t[n]-i):i}function ux(t){t.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,r=1,n=0;n=0||a&&Te(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var vY=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],dY=Js(vY),pY=function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return dY(this,e,r)},t}(),fx=new ov(50);function gY(t){if(typeof t=="string"){var e=fx.get(t);return e&&e.image}else return t}function oC(t,e,r,n,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=fx.get(t),o={hostEl:r,cb:n,cbPayload:i};return a?(e=a.image,!Uy(e)&&a.pending.push(o)):(e=ai.loadImage(t,ED,ED),e.__zrImageSrc=t,fx.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function ED(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=en(r,e);return u>s&&(r="",u=0),s=t-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=t,i}function yz(t,e){var r=e.containerWidth,n=e.font,i=e.contentWidth;if(!r)return"";var a=en(t,n);if(a<=r)return t;for(var o=0;;o++){if(a<=i||o>=e.maxIterations){t+=e.ellipsis;break}var s=o===0?yY(t,i,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*i/a):0;t=t.substr(0,s),a=en(t,n)}return t===""&&(t=e.placeholder),t}function yY(t,e,r,n){for(var i=0,a=0,o=t.length;av&&u){var d=Math.floor(v/s);f=f.slice(0,d)}if(t&&a&&c!=null)for(var p=gz(c,i,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y=0;ys&&R0(r,t.substring(s,u),e,o),R0(r,l[2],e,o,l[1]),s=E0.lastIndex}si){w>0?(m.tokens=m.tokens.slice(0,w),y(m,S,_),r.lines=r.lines.slice(0,g+1)):r.lines=r.lines.slice(0,g);break e}var L=b.width,P=L==null||L==="auto";if(typeof L=="string"&&L.charAt(L.length-1)==="%")x.percentWidth=L,c.push(x),x.contentWidth=en(x.text,A);else{if(P){var I=b.backgroundColor,E=I&&I.image;E&&(E=gY(E),Uy(E)&&(x.width=Math.max(x.width,E.width*D/E.height)))}var k=d&&n!=null?n-S:null;k!=null&&k0&&d+n.accumWidth>n.width&&(c=e.split(` +`),u=!0),n.accumWidth=d}else{var p=mz(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+v,f=p.linesWidths,c=p.lines}}else c=e.split(` +`);for(var y=0;y=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var bY=En(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function CY(t){return wY(t)?!!bY[t]:!0}function mz(t,e,r,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,f=0;fr:i+c+v>r){c?(s||l)&&(d?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=h,u+=v,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=h,c=v)):d?(a.push(l),o.push(u),l=h,u=v):(a.push(h),o.push(v));continue}c+=v,d?(l+=h,u+=v):(l&&(s+=l,l="",u=0),s+=h)}return!a.length&&!s&&(s=t,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var hx="__zr_style_"+Math.round(Math.random()*10),Bs={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Wy={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Bs[hx]=!0;var kD=["z","z2","invisible"],TY=["invisible"],AY=function(t){ut(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=Ie(r),i=0;i1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if(id[0]=B0(i)*r+t,id[1]=N0(i)*n+e,ad[0]=B0(a)*r+t,ad[1]=N0(a)*n+e,u(s,id,ad),c(l,id,ad),i=i%Wo,i<0&&(i=i+Wo),a=a%Wo,a<0&&(a=a+Wo),i>a&&!o?a+=Wo:ii&&(od[0]=B0(v)*r+t,od[1]=N0(v)*n+e,u(s,od,s),c(l,od,l))}var et={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},$o=[],Yo=[],vi=[],La=[],di=[],pi=[],z0=Math.min,F0=Math.max,jo=Math.cos,Xo=Math.sin,Gi=Math.abs,vx=Math.PI,Ba=vx*2,V0=typeof Float32Array<"u",Ic=[];function G0(t){var e=Math.round(t/vx*1e8)/1e8;return e%2*vx}function _z(t,e){var r=G0(t[0]);r<0&&(r+=Ba);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=Ba?i=r+Ba:e&&r-i>=Ba?i=r-Ba:!e&&r>i?i=r+(Ba-G0(r-i)):e&&r0&&(this._ux=Gi(n/pg/e)||0,this._uy=Gi(n/pg/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(et.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=Gi(e-this._xi),i=Gi(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(et.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){return this._drawPendingPt(),this.addData(et.C,e,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,i,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,i){return this._drawPendingPt(),this.addData(et.Q,e,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(e,r,n,i,a,o){this._drawPendingPt(),Ic[0]=i,Ic[1]=a,_z(Ic,o),i=Ic[0],a=Ic[1];var s=a-i;return this.addData(et.A,e,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,i,a,o),this._xi=jo(a)*n+e,this._yi=Xo(a)*n+r,this},t.prototype.arcTo=function(e,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,i,a),this},t.prototype.rect=function(e,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,i),this.addData(et.R,e,r,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(et.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var r=e.length;!(this.data&&this.data.length===r)&&V0&&(this.data=new Float32Array(r));for(var n=0;nc.length&&(this._expandData(),c=this.data);for(var f=0;f0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){vi[0]=vi[1]=di[0]=di[1]=Number.MAX_VALUE,La[0]=La[1]=pi[0]=pi[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||Gi(_)>i||h===r-1)&&(p=Math.sqrt(m*m+_*_),a=y,o=g);break}case et.C:{var S=e[h++],w=e[h++],y=e[h++],g=e[h++],x=e[h++],b=e[h++];p=V7(a,o,S,w,y,g,x,b,10),a=x,o=b;break}case et.Q:{var S=e[h++],w=e[h++],y=e[h++],g=e[h++];p=H7(a,o,S,w,y,g,10),a=y,o=g;break}case et.A:var C=e[h++],T=e[h++],A=e[h++],D=e[h++],L=e[h++],P=e[h++],I=P+L;h+=1,e[h++],d&&(s=jo(L)*A+C,l=Xo(L)*D+T),p=F0(A,D)*z0(Ba,Math.abs(P)),a=jo(I)*A+C,o=Xo(I)*D+T;break;case et.R:{s=a=e[h++],l=o=e[h++];var E=e[h++],k=e[h++];p=E*2+k*2;break}case et.Z:{var m=s-a,_=l-o;p=Math.sqrt(m*m+_*_),a=s,o=l;break}}p>=0&&(u[f++]=p,c+=p)}return this._pathLen=c,c},t.prototype.rebuildPath=function(e,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,f,h,v=r<1,d,p,y=0,g=0,m,_=0,S,w;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=r*p,!m)))e:for(var x=0;x0&&(e.lineTo(S,w),_=0),b){case et.M:s=u=n[x++],l=c=n[x++],e.moveTo(u,c);break;case et.L:{f=n[x++],h=n[x++];var T=Gi(f-u),A=Gi(h-c);if(T>i||A>a){if(v){var D=d[g++];if(y+D>m){var L=(m-y)/D;e.lineTo(u*(1-L)+f*L,c*(1-L)+h*L);break e}y+=D}e.lineTo(f,h),u=f,c=h,_=0}else{var P=T*T+A*A;P>_&&(S=f,w=h,_=P)}break}case et.C:{var I=n[x++],E=n[x++],k=n[x++],B=n[x++],R=n[x++],O=n[x++];if(v){var D=d[g++];if(y+D>m){var L=(m-y)/D;So(u,I,k,R,L,$o),So(c,E,B,O,L,Yo),e.bezierCurveTo($o[1],Yo[1],$o[2],Yo[2],$o[3],Yo[3]);break e}y+=D}e.bezierCurveTo(I,E,k,B,R,O),u=R,c=O;break}case et.Q:{var I=n[x++],E=n[x++],k=n[x++],B=n[x++];if(v){var D=d[g++];if(y+D>m){var L=(m-y)/D;yh(u,I,k,L,$o),yh(c,E,B,L,Yo),e.quadraticCurveTo($o[1],Yo[1],$o[2],Yo[2]);break e}y+=D}e.quadraticCurveTo(I,E,k,B),u=k,c=B;break}case et.A:var z=n[x++],V=n[x++],Y=n[x++],re=n[x++],te=n[x++],ve=n[x++],Me=n[x++],me=!n[x++],ue=Y>re?Y:re,De=Gi(Y-re)>.001,xe=te+ve,ne=!1;if(v){var D=d[g++];y+D>m&&(xe=te+ve*(m-y)/D,ne=!0),y+=D}if(De&&e.ellipse?e.ellipse(z,V,Y,re,Me,te,xe,me):e.arc(z,V,ue,te,xe,me),ne)break e;C&&(s=jo(te)*Y+z,l=Xo(te)*re+V),u=jo(xe)*Y+z,c=Xo(xe)*re+V;break;case et.R:s=u=n[x],l=c=n[x+1],f=n[x++],h=n[x++];var de=n[x++],rt=n[x++];if(v){var D=d[g++];if(y+D>m){var Ee=m-y;e.moveTo(f,h),e.lineTo(f+z0(Ee,de),h),Ee-=de,Ee>0&&e.lineTo(f+de,h+z0(Ee,rt)),Ee-=rt,Ee>0&&e.lineTo(f+F0(de-Ee,0),h+rt),Ee-=de,Ee>0&&e.lineTo(f,h+F0(rt-Ee,0));break e}y+=D}e.rect(f,h,de,rt);break;case et.Z:if(v){var D=d[g++];if(y+D>m){var L=(m-y)/D;e.lineTo(u*(1-L)+s*L,c*(1-L)+l*L);break e}y+=D}e.closePath(),u=s,c=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.CMD=et,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();const Bi=IY;function Ha(t,e,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=t;if(o>e+s&&o>n+s||ot+s&&a>r+s||ae+f&&c>n+f&&c>a+f&&c>s+f||ct+f&&u>r+f&&u>i+f&&u>o+f||ue+u&&l>n+u&&l>a+u||lt+u&&s>r+u&&s>i+u||sr||c+ui&&(i+=Ec);var h=Math.atan2(l,s);return h<0&&(h+=Ec),h>=n&&h<=i||h+Ec>=n&&h+Ec<=i}function ji(t,e,r,n,i,a){if(a>e&&a>n||ai?s:0}var Pa=Bi.CMD,Zo=Math.PI*2,kY=1e-4;function OY(t,e){return Math.abs(t-e)e&&u>n&&u>a&&u>s||u1&&NY(),v=zt(e,n,a,s,mn[0]),h>1&&(d=zt(e,n,a,s,mn[1]))),h===2?ye&&s>n&&s>a||s=0&&u<=1){for(var c=0,f=Zt(e,n,a,u),h=0;hr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);wr[0]=-l,wr[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Zo-1e-4){n=0,i=Zo;var c=a?1:-1;return o>=wr[0]+t&&o<=wr[1]+t?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=Zo,i+=Zo);for(var h=0,v=0;v<2;v++){var d=wr[v];if(d+t>o){var p=Math.atan2(s,d),c=a?1:-1;p<0&&(p=Zo+p),(p>=n&&p<=i||p+Zo>=n&&p+Zo<=i)&&(p>Math.PI/2&&p1&&(r||(s+=ji(l,u,c,f,n,i))),y&&(l=a[d],u=a[d+1],c=l,f=u),p){case Pa.M:c=a[d++],f=a[d++],l=c,u=f;break;case Pa.L:if(r){if(Ha(l,u,a[d],a[d+1],e,n,i))return!0}else s+=ji(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Pa.C:if(r){if(EY(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=BY(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 Pa.Q:if(r){if(Sz(l,u,a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=zY(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Pa.A:var g=a[d++],m=a[d++],_=a[d++],S=a[d++],w=a[d++],x=a[d++];d+=1;var b=!!(1-a[d++]);h=Math.cos(w)*_+g,v=Math.sin(w)*S+m,y?(c=h,f=v):s+=ji(l,u,h,v,n,i);var C=(n-g)*S/_+g;if(r){if(RY(g,m,S,w,w+x,b,e,C,i))return!0}else s+=FY(g,m,S,w,w+x,b,C,i);l=Math.cos(w+x)*_+g,u=Math.sin(w+x)*S+m;break;case Pa.R:c=l=a[d++],f=u=a[d++];var T=a[d++],A=a[d++];if(h=c+T,v=f+A,r){if(Ha(c,f,h,f,e,n,i)||Ha(h,f,h,v,e,n,i)||Ha(h,v,c,v,e,n,i)||Ha(c,v,c,f,e,n,i))return!0}else s+=ji(h,f,h,v,n,i),s+=ji(c,v,c,f,n,i);break;case Pa.Z:if(r){if(Ha(l,u,c,f,e,n,i))return!0}else s+=ji(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!OY(u,f)&&(s+=ji(l,u,c,f,n,i)||0),s!==0}function VY(t,e,r){return xz(t,0,!1,e,r)}function GY(t,e,r,n){return xz(t,e,!0,r,n)}var yg=oe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Bs),HY={style:oe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Wy.style)},H0=Oi.concat(["invisible","culling","z","z2","zlevel","parent"]),UY=function(t){ut(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.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.5?ax:n>.2?C9:ox}else if(r)return ox}return ax},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Z(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Sh(r,0)0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.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&Fl)&&(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 c=this.strokeContainThreshold;u=Math.max(u,c??4)}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},e.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)),GY(s,l/u,r,n)))return!0}if(this.hasFill())return VY(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Fl,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:F(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Fl)},e.prototype.createStyle=function(r){return iv(yg,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=F({},this.shape))},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=F({},i.shape),F(u,n.shape)):(u=F({},a?this.shape:i.shape),F(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=F({},this.shape);for(var c={},f=Ie(u),h=0;h0},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return iv(WY,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=sv(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},e.initDefaultProps=function(){var r=e.prototype;r.dirtyRectTolerance=10}(),e}(Rn);wz.prototype.type="tspan";const Ch=wz;var $Y=oe({x:0,y:0},Bs),YY={style:oe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Wy.style)};function jY(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var bz=function(t){ut(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return iv($Y,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=jY(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},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return YY},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Ce(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Rn);bz.prototype.type="image";const Qt=bz;function XY(t,e){var r=e.x,n=e.y,i=e.width,a=e.height,o=e.r,s,l,u,c;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>i&&(f=s+l,s*=i/f,l*=i/f),u+c>i&&(f=u+c,u*=i/f,c*=i/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+c>a&&(f=s+c,s*=a/f,c*=a/f),t.moveTo(r+s,n),t.lineTo(r+i-l,n),l!==0&&t.arc(r+i-l,n+l,l,-Math.PI/2,0),t.lineTo(r+i,n+a-u),u!==0&&t.arc(r+i-u,n+a-u,u,0,Math.PI/2),t.lineTo(r+c,n+a),c!==0&&t.arc(r+c,n+a-c,c,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var au=Math.round;function Cz(t,e,r){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;t.x1=n,t.x2=i,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(au(n*2)===au(i*2)&&(t.x1=t.x2=Ms(n,s,!0)),au(a*2)===au(o*2)&&(t.y1=t.y2=Ms(a,s,!0))),t}}function Tz(t,e,r){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;t.x=n,t.y=i,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=Ms(n,s,!0),t.y=Ms(i,s,!0),t.width=Math.max(Ms(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(Ms(i+o,s,!1)-t.y,o===0?0:1)),t}}function Ms(t,e,r){if(!e)return t;var n=au(t*2);return(n+au(e))%2===0?n/2:(n+(r?1:-1))/2}var ZY=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),qY={},Az=function(t){ut(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new ZY},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=Tz(qY,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?XY(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Pe);Az.prototype.type="rect";const Ne=Az;var FD={fill:"#000"},VD=2,KY={style:oe({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},Wy.style)},Mz=function(t){ut(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=FD,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,L=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),P=o.calculatedLineHeight,I=0;I=0&&(I=x[P],I.align==="right");)this._placeToken(I,r,C,g,L,"right",_),T-=I.width,L-=I.width,P--;for(D+=(a-(D-y)-(m-L)-T)/2;A<=P;)I=x[A],this._placeToken(I,r,C,g,D+I.width/2,"center",_),D+=I.width,A++;g+=C}},e.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=a+i/2;c==="top"?f=a+r.height/2:c==="bottom"&&(f=a+i-r.height/2);var h=!r.isLineHolder&&U0(u);h&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var v=!!u.backgroundColor,d=r.textPadding;d&&(o=YD(o,s,d),f-=r.height/2-d[0]-r.innerHeight/2);var p=this._getOrCreateChild(Ch),y=p.createStyle();p.useStyle(y);var g=this._defaultStyle,m=!1,_=0,S=$D("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,g.fill)),w=WD("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!g.autoStroke||m)?(_=VD,g.stroke):null),x=u.textShadowBlur>0||n.textShadowBlur>0;y.text=r.text,y.x=o,y.y=f,x&&(y.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,y.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",y.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,y.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),y.textAlign=s,y.textBaseline="middle",y.font=r.font||_o,y.opacity=Ii(u.opacity,n.opacity,1),HD(y,u),w&&(y.lineWidth=Ii(u.lineWidth,n.lineWidth,_),y.lineDash=be(u.lineDash,n.lineDash),y.lineDashOffset=n.lineDashOffset||0,y.stroke=w),S&&(y.fill=S);var b=r.contentWidth,C=r.contentHeight;p.setBoundingRect(new Ce(uf(y.x,b,y.textAlign),Vl(y.y,C,y.textBaseline),b,C))},e.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,h=l&&!f,v=r.borderRadius,d=this,p,y;if(h||r.lineHeight||u&&c){p=this._getOrCreateChild(Ne),p.useStyle(p.createStyle()),p.style.fill=null;var g=p.shape;g.x=i,g.y=a,g.width=o,g.height=s,g.r=v,p.dirtyShape()}if(h){var m=p.style;m.fill=l||null,m.fillOpacity=be(r.fillOpacity,1)}else if(f){y=this._getOrCreateChild(Qt),y.onload=function(){d.dirtyStyle()};var _=y.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&c){var m=p.style;m.lineWidth=u,m.stroke=c,m.strokeOpacity=be(r.strokeOpacity,1),m.lineDash=r.borderDash,m.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||y).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=Ii(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return Lz(r)&&(n=[r.fontStyle,r.fontWeight,Dz(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&An(n)||r.textFont||r.font},e}(Rn),QY={left:!0,right:1,center:1},JY={top:1,bottom:1,middle:1},GD=["fontStyle","fontWeight","fontSize","fontFamily"];function Dz(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?Vb+"px":t+"px"}function HD(t,e){for(var r=0;r=0,a=!1;if(t instanceof Pe){var o=Pz(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(xl(s)||xl(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=F({},n),u=F({},u),u.fill=s):!xl(u.fill)&&xl(s)?(a=!0,n=F({},n),u=F({},u),u.fill=KD(s)):!xl(u.stroke)&&xl(l)&&(a||(n=F({},n),u=F({},u)),u.stroke=KD(l)),n.style=u}}if(n&&n.z2==null){a||(n=F({},n));var c=t.z2EmphasisLift;n.z2=t.z2+(c??Ku)}return n}function oj(t,e,r){if(r&&r.z2==null){r=F({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??tj)}return r}function sj(t,e,r){var n=Te(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:ij(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=F({},r),o=F({opacity:n?i:a.opacity*.1},o),r.style=o),r}function W0(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return aj(this,t,e,r);if(t==="blur")return sj(this,t,r);if(t==="select")return oj(this,t,r)}return r}function el(t){t.stateProxy=W0;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=W0),r&&(r.stateProxy=W0)}function JD(t,e){!Bz(t,e)&&!t.__highByOuter&&wa(t,Iz)}function e2(t,e){!Bz(t,e)&&!t.__highByOuter&&wa(t,Ez)}function da(t,e){t.__highByOuter|=1<<(e||0),wa(t,Iz)}function pa(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&wa(t,Ez)}function kz(t){wa(t,uC)}function cC(t){wa(t,Rz)}function Oz(t){wa(t,rj)}function Nz(t){wa(t,nj)}function Bz(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function zz(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=sC(a),s=i==="series",l=s?t.getViewOfSeriesModel(a):t.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){Rz(u)}),s&&r.push(a)),o.isBlured=!1}),M(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function px(t,e,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,c){for(var f=0;f0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function fo(t,e,r){Ds(t,!0),wa(t,el),yx(t,e,r)}function vj(t){Ds(t,!1)}function yt(t,e,r,n){n?vj(t):fo(t,e,r)}function yx(t,e,r){var n=pe(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var r2=["emphasis","blur","select"],dj={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function or(t,e,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=$0(d),s*=$0(d));var p=(i===a?-1:1)*$0((o*o*(s*s)-o*o*(v*v)-s*s*(h*h))/(o*o*(v*v)+s*s*(h*h)))||0,y=p*o*v/s,g=p*-s*h/o,m=(t+r)/2+ld(f)*y-sd(f)*g,_=(e+n)/2+sd(f)*y+ld(f)*g,S=o2([1,0],[(h-y)/o,(v-g)/s]),w=[(h-y)/o,(v-g)/s],x=[(-1*h-y)/o,(-1*v-g)/s],b=o2(w,x);if(_x(w,x)<=-1&&(b=Rc),_x(w,x)>=1&&(b=0),b<0){var C=Math.round(b/Rc*1e6)/1e6;b=Rc*2+C%2*Rc}c.addData(u,m,_,o,s,S,b,f,a)}var Sj=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,xj=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function wj(t){var e=new Bi;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=Bi.CMD,l=t.match(Sj);if(!l)return e;for(var u=0;uI*I+E*E&&(C=A,T=D),{cx:C,cy:T,x0:-c,y0:-f,x1:C*(i/w-1),y1:T*(i/w-1)}}function Lj(t){var e;if(G(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function Pj(t,e){var r,n=cf(e.r,0),i=cf(e.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=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,f=e.cy,h=!!e.clockwise,v=l2(u-l),d=v>Y0&&v%Y0;if(d>Hn&&(v=d),!(n>Hn))t.moveTo(c,f);else if(v>Y0-Hn)t.moveTo(c+n*bl(l),f+n*qo(l)),t.arc(c,f,n,l,u,!h),i>Hn&&(t.moveTo(c+i*bl(u),f+i*qo(u)),t.arc(c,f,i,u,l,h));else{var p=void 0,y=void 0,g=void 0,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0,b=void 0,C=void 0,T=void 0,A=void 0,D=void 0,L=void 0,P=void 0,I=void 0,E=n*bl(l),k=n*qo(l),B=i*bl(u),R=i*qo(u),O=v>Hn;if(O){var z=e.cornerRadius;z&&(r=Lj(z),p=r[0],y=r[1],g=r[2],m=r[3]);var V=l2(n-i)/2;if(_=gi(V,g),S=gi(V,m),w=gi(V,p),x=gi(V,y),T=b=cf(_,S),A=C=cf(w,x),(b>Hn||C>Hn)&&(D=n*bl(u),L=n*qo(u),P=i*bl(l),I=i*qo(l),vHn){var De=gi(g,T),xe=gi(m,T),ne=ud(P,I,E,k,n,De,h),de=ud(D,L,B,R,n,xe,h);t.moveTo(c+ne.cx+ne.x0,f+ne.cy+ne.y0),T0&&t.arc(c+ne.cx,f+ne.cy,De,fr(ne.y0,ne.x0),fr(ne.y1,ne.x1),!h),t.arc(c,f,n,fr(ne.cy+ne.y1,ne.cx+ne.x1),fr(de.cy+de.y1,de.cx+de.x1),!h),xe>0&&t.arc(c+de.cx,f+de.cy,xe,fr(de.y1,de.x1),fr(de.y0,de.x0),!h))}else t.moveTo(c+E,f+k),t.arc(c,f,n,l,u,!h);if(!(i>Hn)||!O)t.lineTo(c+B,f+R);else if(A>Hn){var De=gi(p,A),xe=gi(y,A),ne=ud(B,R,D,L,i,-xe,h),de=ud(E,k,P,I,i,-De,h);t.lineTo(c+ne.cx+ne.x0,f+ne.cy+ne.y0),A0&&t.arc(c+ne.cx,f+ne.cy,xe,fr(ne.y0,ne.x0),fr(ne.y1,ne.x1),!h),t.arc(c,f,i,fr(ne.cy+ne.y1,ne.cx+ne.x1),fr(de.cy+de.y1,de.cx+de.x1),h),De>0&&t.arc(c+de.cx,f+de.cy,De,fr(de.y1,de.x1),fr(de.y0,de.x0),!h))}else t.lineTo(c+B,f+R),t.arc(c,f,i,u,l,h)}t.closePath()}}}var Ij=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t}(),jz=function(t){ut(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new Ij},e.prototype.buildPath=function(r,n){Pj(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Pe);jz.prototype.type="sector";const Dr=jz;var Ej=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),Xz=function(t){ut(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new Ej},e.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)},e}(Pe);Xz.prototype.type="ring";const cv=Xz;function Rj(t,e,r,n){var i=[],a=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var h=0,v=t.length;h=2){if(n){var a=Rj(i,n,r,e.smoothConstraint);t.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],c=i[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;sQo[1]){if(s=!1,a)return s;var c=Math.abs(Qo[0]-Ko[1]),f=Math.abs(Ko[0]-Qo[1]);Math.min(c,f)>i.len()&&(c0){var f=c.duration,h=c.delay,v=c.easing,d={duration:f,delay:h||0,easing:v,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function Ge(t,e,r,n,i,a){dC("update",t,e,r,n,i,a)}function lt(t,e,r,n,i,a){dC("enter",t,e,r,n,i,a)}function mu(t){if(!t.__zr)return!0;for(var e=0;eMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function f2(t){return!t.isGroup}function qj(t){return t.shape!=null}function vv(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){f2(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return qj(o)&&(s.shape=F({},o.shape)),s}var a=n(t);e.traverse(function(o){if(f2(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Ge(o,l,r,pe(o).dataIndex)}}})}function yC(t,e){return H(t,function(r){var n=r[0];n=Sg(n,e.x),n=xg(n,e.x+e.width);var i=r[1];return i=Sg(i,e.y),i=xg(i,e.y+e.height),[n,i]})}function s5(t,e){var r=Sg(t.x,e.x),n=xg(t.x+t.width,e.x+e.width),i=Sg(t.y,e.y),a=xg(t.y+t.height,e.y+e.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function ec(t,e,r){var n=F({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),oe(i,r),new Qt(n)):hv(t.replace("path://",""),n,r,"center")}function ff(t,e,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var y=j0(v,d,c,f)/h;return!(y<0||y>1)}function j0(t,e,r,n){return t*n-r*e}function Kj(t){return t<=1e-6&&t>=-1e-6}function tc(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=Z(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&M(Ie(l),function(c){ee(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=pe(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:oe({content:n,formatterParams:s},i)}}function h2(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Ro(t,e){if(t)if(G(t))for(var r=0;r=0&&s.push(l)}),s}}function ko(t,e){return Se(Se({},t,!0),e,!0)}const cX={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"}},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:". "}}}},fX={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:"旭日图"}},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 bg="ZH",mC="EN",Dh=mC,Cp={},_C={},p5=ze.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(bg)>-1?bg:Dh}():Dh;function SC(t,e){t=t.toUpperCase(),_C[t]=new qe(e),Cp[t]=e}function hX(t){if(Z(t)){var e=Cp[t.toUpperCase()]||{};return t===bg||t===mC?le(e):Se(le(e),le(Cp[Dh]),!1)}else return Se(le(t),le(Cp[Dh]),!1)}function bx(t){return _C[t]}function vX(){return _C[Dh]}SC(mC,cX);SC(bg,fX);var xC=1e3,wC=xC*60,Ff=wC*60,Cn=Ff*24,y2=Cn*365,hf={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},hd="{yyyy}-{MM}-{dd}",m2={year:"{yyyy}",month:"{yyyy}-{MM}",day:hd,hour:hd+" "+hf.hour,minute:hd+" "+hf.minute,second:hd+" "+hf.second,millisecond:hf.none},q0=["year","month","day","hour","minute","second","millisecond"],g5=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Or(t,e){return t+="","0000".substr(0,e-t.length)+t}function _u(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function dX(t){return t===_u(t)}function pX(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function pv(t,e,r,n){var i=nn(t),a=i[bC(r)](),o=i[Su(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[em(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[Lh(r)](),f=(c-1)%12+1,h=i[tm(r)](),v=i[rm(r)](),d=i[nm(r)](),p=n instanceof qe?n:bx(n||p5)||vX(),y=p.getModel("time"),g=y.get("month"),m=y.get("monthAbbr"),_=y.get("dayOfWeek"),S=y.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,a%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,g[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,Or(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Or(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Or(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Or(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Or(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Or(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Or(d,3)).replace(/{S}/g,d+"")}function gX(t,e,r,n,i){var a=null;if(Z(r))a=r;else if(ae(r))a=r(t.value,e,{level:t.level});else{var o=F({},hf);if(t.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(G(a)){var f=t.level==null?0:t.level>=0?t.level:a.length+t.level;f=Math.min(f,a.length-1),a=a[f]}}return pv(new Date(t.value),a,i,n)}function y5(t,e){var r=nn(t),n=r[Su(e)]()+1,i=r[em(e)](),a=r[Lh(e)](),o=r[tm(e)](),s=r[rm(e)](),l=r[nm(e)](),u=l===0,c=u&&s===0,f=c&&o===0,h=f&&a===0,v=h&&i===1,d=v&&n===1;return d?"year":v?"month":h?"day":f?"hour":c?"minute":u?"second":"millisecond"}function _2(t,e,r){var n=Fe(t)?nn(t):t;switch(e=e||y5(t,r),e){case"year":return n[bC(r)]();case"half-year":return n[Su(r)]()>=6?1:0;case"quarter":return Math.floor((n[Su(r)]()+1)/4);case"month":return n[Su(r)]();case"day":return n[em(r)]();case"half-day":return n[Lh(r)]()/24;case"hour":return n[Lh(r)]();case"minute":return n[tm(r)]();case"second":return n[rm(r)]();case"millisecond":return n[nm(r)]()}}function bC(t){return t?"getUTCFullYear":"getFullYear"}function Su(t){return t?"getUTCMonth":"getMonth"}function em(t){return t?"getUTCDate":"getDate"}function Lh(t){return t?"getUTCHours":"getHours"}function tm(t){return t?"getUTCMinutes":"getMinutes"}function rm(t){return t?"getUTCSeconds":"getSeconds"}function nm(t){return t?"getUTCMilliseconds":"getMilliseconds"}function yX(t){return t?"setUTCFullYear":"setFullYear"}function m5(t){return t?"setUTCMonth":"setMonth"}function _5(t){return t?"setUTCDate":"setDate"}function S5(t){return t?"setUTCHours":"setHours"}function x5(t){return t?"setUTCMinutes":"setMinutes"}function w5(t){return t?"setUTCSeconds":"setSeconds"}function b5(t){return t?"setUTCMilliseconds":"setMilliseconds"}function mX(t,e,r,n,i,a,o,s){var l=new Oe({style:{text:t,font:e,align:r,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function CC(t){if(!rC(t))return Z(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function TC(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var fl=Ny;function Cx(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&An(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?nn(t):t;if(isNaN(+l)){if(s)return"-"}else return pv(l,n,r)}if(e==="ordinal")return lg(t)?i(t):Fe(t)&&a(t)?t+"":"-";var u=Ni(t);return a(u)?CC(u):lg(t)?i(t):typeof t=="boolean"?t+"":"-"}var S2=["a","b","c","d","e","f","g"],K0=function(t,e){return"{"+t+(e??"")+"}"};function AC(t,e,r){G(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a':'';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 SX(t,e,r){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd +yyyy`);var n=nn(e),i=r?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),l=n[i+"Hours"](),u=n[i+"Minutes"](),c=n[i+"Seconds"](),f=n[i+"Milliseconds"]();return t=t.replace("MM",Or(o,2)).replace("M",o).replace("yyyy",a).replace("yy",Or(a%100+"",2)).replace("dd",Or(s,2)).replace("d",s).replace("hh",Or(l,2)).replace("h",l).replace("mm",Or(u,2)).replace("m",u).replace("ss",Or(c,2)).replace("s",c).replace("SSS",Or(f,3)),t}function xX(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function tl(t,e){return e=e||"transparent",Z(t)?t:se(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Cg(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var Tp=M,T5=["left","right","top","bottom","width","height"],Ls=[["width","left","right"],["height","top","bottom"]];function MC(t,e,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),f=e.childAt(u+1),h=f&&f.getBoundingRect(),v,d;if(t==="horizontal"){var p=c.width+(h?-h.x+c.x:0);v=a+p,v>n||l.newline?(a=0,v=p,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var y=c.height+(h?-h.y+c.y:0);d=o+y,d>i||l.newline?(a+=s+r,o=0,d=y,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=v+r:o=d+r)})}var Fs=MC;ye(MC,"vertical");ye(MC,"horizontal");function wX(t,e,r){var n=e.width,i=e.height,a=j(t.left,n),o=j(t.top,i),s=j(t.right,n),l=j(t.bottom,i);return(isNaN(a)||isNaN(parseFloat(t.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(t.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(t.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(t.bottom)))&&(l=i),r=fl(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function It(t,e,r){r=fl(r||0);var n=e.width,i=e.height,a=j(t.left,n),o=j(t.top,i),s=j(t.right,n),l=j(t.bottom,i),u=j(t.width,n),c=j(t.height,i),f=r[2]+r[0],h=r[1]+r[3],v=t.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(c)&&(c=i-l-f-o),v!=null&&(isNaN(u)&&isNaN(c)&&(v>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=v*c),isNaN(c)&&(c=u/v)),isNaN(a)&&(a=n-s-u-h),isNaN(o)&&(o=i-l-c-f),t.left||t.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-h;break}switch(t.top||t.bottom){case"middle":case"center":o=i/2-c/2-r[0];break;case"bottom":o=i-c-f;break}a=a||0,o=o||0,isNaN(u)&&(u=n-h-a-(s||0)),isNaN(c)&&(c=i-f-o-(l||0));var d=new Ce(a+r[3],o+r[0],u,c);return d.margin=r,d}function im(t,e,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||t,a.x=t.x,a.y=t.y,!o&&!s)return!1;var u;if(l==="raw")u=t.type==="group"?new Ce(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=It(oe({width:u.width,height:u.height},e),r,n),h=o?f.x-u.x:0,v=s?f.y-u.y:0;return l==="raw"?(a.x=h,a.y=v):(a.x+=h,a.y+=v),a===t&&t.markRedraw(),!0}function bX(t,e){return t[Ls[e][0]]!=null||t[Ls[e][1]]!=null&&t[Ls[e][2]]!=null}function Ph(t){var e=t.layoutMode||t.constructor.layoutMode;return se(e)?e:e?{type:e}:null}function wo(t,e,r){var n=r&&r.ignoreSize;!G(n)&&(n=[n,n]);var i=o(Ls[0],0),a=o(Ls[1],1);u(Ls[0],t,i),u(Ls[1],t,a);function o(c,f){var h={},v=0,d={},p=0,y=2;if(Tp(c,function(_){d[_]=t[_]}),Tp(c,function(_){s(e,_)&&(h[_]=d[_]=e[_]),l(h,_)&&v++,l(d,_)&&p++}),n[f])return l(e,c[1])?d[c[2]]=null:l(e,c[2])&&(d[c[1]]=null),d;if(p===y||!v)return d;if(v>=y)return h;for(var g=0;g=0;l--)s=Se(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return lv(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),e}(qe);dz(ac,qe);Hy(ac);lX(ac);uX(ac,TX);function TX(t){var e=[];return M(ac.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=H(e,function(r){return Ai(r).main}),t!=="dataset"&&Te(e,"dataset")<=0&&e.unshift("dataset"),e}const ke=ac;var M5="";typeof navigator<"u"&&(M5=navigator.platform||"");var Cl="rgba(0, 0, 0, 0.2)";const AX={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Cl,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Cl,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Cl,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Cl,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Cl,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Cl,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:M5.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 D5=ie(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Nn="original",_r="arrayRows",Bn="objectRows",Fi="keyedColumns",vo="typedArray",L5="unknown",ki="column",oc="row",tr={Must:1,Might:2,Not:3},P5=Ve();function MX(t){P5(t).datasetMap=ie()}function I5(t,e,r){var n={},i=LC(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,l=P5(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;t=t.slice(),M(t,function(p,y){var g=se(p)?p:t[y]={name:p};g.type==="ordinal"&&c==null&&(c=y,f=d(g)),n[g.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});M(t,function(p,y){var g=p.name,m=d(p);if(c==null){var _=h.valueWayDim;v(n[g],_,m),v(o,_,m),h.valueWayDim+=m}else if(c===y)v(n[g],0,m),v(a,0,m);else{var _=h.categoryWayDim;v(n[g],_,m),v(o,_,m),h.categoryWayDim+=m}});function v(p,y,g){for(var m=0;me)return t[n];return t[r-1]}function k5(t,e,r,n,i,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?r:EX(n,o);if(c=c||r,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function RX(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var vd,kc,w2,b2="\0_ec_inner",kX=1,O5=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new qe(a),this._locale=new qe(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){var a=A2(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,A2(n))},e.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"?w2(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},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=ie(),u=n&&n.replaceMergeMainTypeMap;MX(this),M(r,function(f,h){f!=null&&(ke.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?le(f):Se(i[h],f,!0))}),u&&u.each(function(f,h){ke.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),ke.topologicalTravel(s,ke.getAllClassMainTypes(),c,this);function c(f){var h=PX(this,f,Ke(r[f])),v=a.get(f),d=v?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=uz(v,h,d);Q9(p,f,ke),i[f]=null,a.set(f,null),o.set(f,0);var y=[],g=[],m=0,_;M(p,function(S,w){var x=S.existing,b=S.newOption;if(!b)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var C=f==="series",T=ke.getClass(f,S.keyInfo.subType,!C);if(!T)return;if(f==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===T)x.name=S.keyInfo.name,x.mergeOption(b,this),x.optionUpdated(b,!1);else{var A=F({componentIndex:w},S.keyInfo);x=new T(b,this,this,A),F(x,A),S.brandNew&&(x.__requireNewView=!0),x.init(b,this,this),x.optionUpdated(null,!0)}}x?(y.push(x.option),g.push(x),m++):(y.push(void 0),g.push(void 0))},this),i[f]=y,a.set(f,g),o.set(f,m),f==="series"&&vd(this)}this._seriesIndices||vd(this)},e.prototype.getOption=function(){var r=le(this.option);return M(r,function(n,i){if(ke.hasClass(i)){for(var a=Ke(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!bh(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[b2],r},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.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=e:r==="max"?t<=e:t===e}function $X(t,e){return t.join(",")===e.join(",")}const YX=GX;var Vn=M,Ih=se,M2=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function J0(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=M2.length;r=0;y--){var g=t[y];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,v)),d>=0){var m=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&h>=0&&m>0||l==="samesign"&&h<=0&&m<0){h=H9(h,m),p=m;break}}}return n[0]=h,n[1]=p,n})})}var am=function(){function t(e){this.data=e.data||(e.sourceFormat===Fi?{}:[]),this.sourceFormat=e.sourceFormat||L5,this.seriesLayoutBy=e.seriesLayoutBy||ki,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;np&&(p=_)}v[0]=d,v[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};k2=(e={},e[_r+"_"+ki]={pure:!0,appendData:a},e[_r+"_"+oc]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Bn]={pure:!0,appendData:a},e[Fi]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},e[Nn]={appendData:a},e[vo]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s=0&&(p=o.interpolatedValue[y])}return p!=null?p+"":""})}},t.prototype.getRawValue=function(e,r){return Nu(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t}();function z2(t){var e,r;return se(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function Vf(t){return new uZ(t)}var uZ=function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.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=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(m){return!(m>=1)&&(m=1),m}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(f||v1&&n>0?s:o}};return a;function o(){return e=t?null:le},gte:function(t,e){return t>=e}},fZ=function(){function t(e,r){if(!Fe(r)){var n="";Ue(n)}this._opFn=j5[e],this._rvalFloat=Ni(r)}return t.prototype.evaluate=function(e){return Fe(e)?this._opFn(e,this._rvalFloat):this._opFn(Ni(e),this._rvalFloat)},t}(),X5=function(){function t(e,r){var n=e==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=Fe(e)?e:Ni(e),i=Fe(r)?r:Ni(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=Z(e),l=Z(r);s&&(n=l?e:0),l&&(i=s?r:0)}return ni?-this._resultLT:0},t}(),hZ=function(){function t(e,r){this._rval=r,this._isEQ=e,this._rvalTypeof=typeof r,this._rvalFloat=Ni(r)}return t.prototype.evaluate=function(e){var r=e===this._rval;if(!r){var n=typeof e;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=Ni(e)===this._rvalFloat)}return this._isEQ?r:!r},t}();function vZ(t,e){return t==="eq"||t==="ne"?new hZ(t==="eq",e):ee(j5,t)?new fZ(t,e):null}var dZ=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return po(e,r)},t}();function pZ(t,e){var r=new dZ,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==ki&&Ue(o);var s=[],l={},u=t.dimensionsDefine;if(u)M(u,function(p,y){var g=p.name,m={index:y,name:g,displayName:p.displayName};if(s.push(m),g!=null){var _="";ee(l,g)&&Ue(_),l[g]=m}});else for(var c=0;c65535?bZ:CZ}function Tl(){return[1/0,-1/0]}function TZ(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function G2(t,e,r,n,i){var a=K5[r||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;uy[1]&&(y[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=H(o,function(m){return m.property}),c=0;cg[1]&&(g[1]=y)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r=0&&r=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&ne)a=o-1;else return o}return-1},t.prototype.indicesOfNearest=function(e,r,n){var i=this._chunks,a=i[e],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=c))}return o.length=u,o},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a=f&&m<=h||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(a===2){for(var y=v[i[0]],_=v[i[1]],S=e[i[1]][0],w=e[i[1]][1],g=0;g=f&&m<=h||isNaN(m))&&(x>=S&&x<=w||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(a===1)for(var g=0;g=f&&m<=h||isNaN(m))&&(l[u++]=b)}else for(var g=0;ge[A][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(g))}return ug[1]&&(g[1]=y)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,h,v=new(Nc(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;dc&&(c=f,h=S)}D>0&&Dc-d&&(l=c-d,s.length=l);for(var p=0;pf[1]&&(f[1]=g),h[v++]=m}return a._count=v,a._indices=h,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();al&&(l=f)}return o=[s,l],this._extent[e]=o,o},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(r,n,i,a){return po(r[a],this._dimensions[a])}r1={arrayRows:e,objectRows:function(r,n,i,a){return po(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return po(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),t}();const Dx=AZ;var Q5=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(dd(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=Wr(s)?vo:Nn,a=[];var f=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=be(f.seriesLayoutBy,h.seriesLayoutBy)||null,d=be(f.sourceHeader,h.sourceHeader),p=be(f.dimensions,h.dimensions),y=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;i=y?[Mx(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var g=e;if(n){var m=this._applyTransform(r);i=m.sourceList,a=m.upstreamSignList}else{var _=g.get("source",!0);i=[Mx(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&U2(a)}var o,s=[],l=[];return M(e,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&U2(f),s.push(c),l.push(u._getVersionSign())}),n?o=xZ(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[rZ(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r1||r>0&&!t.noHeader;return M(t.blocks,function(i){var a=r3(i);a>=e&&(e=a+ +(n&&(!a||Lx(i)&&!i.noHeader)))}),e}return 0}function LZ(t,e,r,n){var i=e.noHeader,a=IZ(r3(e)),o=[],s=e.blocks||[];mr(!s||G(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ee(u,l)){var c=new X5(u[l],null);s.sort(function(d,p){return c.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(d,p){var y=e.valueFormatter,g=t3(d)(y?F(F({},t),{valueFormatter:y}):t,d,p>0?a.html:0,n);g!=null&&o.push(g)});var f=t.renderMode==="richText"?o.join(a.richText):Px(o.join(""),i?r:a.html);if(i)return f;var h=Cx(e.header,"ordinal",t.useUTC),v=e3(n,t.renderMode).nameStyle;return t.renderMode==="richText"?n3(t,h,v)+a.richText+f:Px('
'+Cr(h)+"
"+f,r)}function PZ(t,e,r,n){var i=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(S){return S=G(S)?S:[S],H(S,function(w,x){return Cx(w,G(v)?v[x]:v,u)})};if(!(a&&o)){var f=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),h=a?"":Cx(l,"ordinal",u),v=e.valueType,d=o?[]:c(e.value),p=!s||!a,y=!s&&a,g=e3(n,i),m=g.nameStyle,_=g.valueStyle;return i==="richText"?(s?"":f)+(a?"":n3(t,h,m))+(o?"":kZ(t,d,p,y,_)):Px((s?"":f)+(a?"":EZ(h,!s,m))+(o?"":RZ(d,p,y,_)),r)}}function W2(t,e,r,n,i,a){if(t){var o=t3(t),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function IZ(t){return{html:MZ[t],richText:DZ[t]}}function Px(t,e){var r='
',n="margin: "+e+"px 0 0";return'
'+t+r+"
"}function EZ(t,e,r){var n=e?"margin-left:2px":"";return''+Cr(t)+""}function RZ(t,e,r,n){var i=r?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return t=G(t)?t:[t],''+H(t,function(o){return Cr(o)}).join("  ")+""}function n3(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function kZ(t,e,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(G(e)?e.join(" "):e,a)}function i3(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return tl(n)}function a3(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var n1=function(){function t(){this.richTextStyles={},this._nextStyleNameId=az()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var i=n==="richText"?this._generateStyleName():null,a=C5({color:r,type:e,renderMode:n,markerId:i});return Z(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};G(r)?M(r,function(a){return F(n,a)}):F(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},t}();function o3(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=G(s),u=i3(e,r),c,f,h,v;if(o>1||l&&!o){var d=OZ(s,e,r,a,u);c=d.inlineValues,f=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);v=c=Nu(i,r,a[0]),f=p.type}else v=c=l?s[0]:s;var y=nC(e),g=y&&e.name||"",m=i.getName(r),_=n?g:m;return $t("section",{header:g,noHeader:n||!y,sortParam:v,blocks:[$t("nameValue",{markerType:"item",markerColor:u,name:_,noName:!An(_),value:c,valueType:f})].concat(h||[])})}function OZ(t,e,r,n,i){var a=e.getData(),o=En(t,function(f,h,v){var d=a.getDimensionInfo(v);return f=f||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?M(n,function(f){c(Nu(a,r,f),f)}):M(t,c);function c(f,h){var v=a.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push($t("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:f,valueType:v.type})):(s.push(f),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Ia=Ve();function pd(t,e){return t.getName(e)||t.getId(e)}var Ap="__universalTransitionEnabled",sm=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Vf({count:BZ,reset:zZ}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Ia(this).sourceManager=new Q5(this);a.prepareSource();var o=this.getInitialData(r,i);Y2(o,this),this.dataTask.context.data=o,Ia(this).dataBeforeProcessed=o,$2(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Ph(this),a=i?ic(r):{},o=this.subType;ke.hasClass(o)&&(o+="Series"),Se(r,n.getTheme().get(this.subType)),Se(r,this.getDefaultOption()),Ks(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&wo(r,a,i)},e.prototype.mergeOption=function(r,n){r=Se(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Ph(this);i&&wo(this.option,r,i);var a=Ia(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);Y2(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ia(this).dataBeforeProcessed=o,$2(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!Wr(r))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=PC.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.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=0&&i.push(o)}return i},e.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[pd(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Ap])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.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"){se(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(r,n)}},e.registerClass=function(r){return ke.registerClass(r)},e.protoInitialize=function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),e}(ke);Ct(sm,kC);Ct(sm,PC);dz(sm,ke);function $2(t){var e=t.name;nC(t)||(t.name=NZ(t)||e)}function NZ(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return M(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function BZ(t){return t.model.getRawData().count()}function zZ(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),FZ}function FZ(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Y2(t,e){M(ph(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,ye(VZ,e))})}function VZ(t,e){var r=Ix(t);return r&&r.setOutputEnd((e||this).count()),e}function Ix(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(t.uid))}return n}}const at=sm;var NC=function(){function t(){this.group=new fe,this.uid=nc("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){},t.prototype.updateLayout=function(e,r,n,i){},t.prototype.updateVisual=function(e,r,n,i){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t}();aC(NC);Hy(NC);const ft=NC;function lc(){var t=Ve();return function(e){var r=t(e),n=e.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 s3=Ve(),GZ=lc(),BC=function(){function t(){this.group=new fe,this.uid=nc("viewChart"),this.renderTask=Vf({plan:HZ,reset:UZ}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.highlight=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&X2(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&X2(a,i,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateLayout=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateVisual=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.eachRendered=function(e){Ro(this.group,e)},t.markUpdateMethod=function(e,r){s3(e).updateMethod=r},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function j2(t,e,r){t&&Ah(t)&&(e==="emphasis"?da:pa)(t,r)}function X2(t,e,r){var n=Qs(t,e),i=e&&e.highlightKey!=null?gj(e.highlightKey):null;n!=null?M(Ke(n),function(a){j2(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){j2(a,r,i)})}aC(BC);Hy(BC);function HZ(t){return GZ(t.model)}function UZ(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&s3(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,i),WZ[l]}var WZ={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const Qe=BC;var Tg="\0__throttleOriginMethod",Z2="\0__throttleRate",q2="\0__throttleType";function lm(t,e,r){var n,i=0,a=0,o=null,s,l,u,c;e=e||0;function f(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var h=function(){for(var v=[],d=0;d=0?f():o=setTimeout(f,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){c=v},h}function uc(t,e,r,n){var i=t[e];if(i){var a=i[Tg]||i,o=i[q2],s=i[Z2];if(s!==r||o!==n){if(r==null||!n)return t[e]=a;i=t[e]=lm(a,r,n==="debounce"),i[Tg]=a,i[q2]=n,i[Z2]=r}return i}}function Eh(t,e){var r=t[e];r&&r[Tg]&&(r.clear&&r.clear(),t[e]=r[Tg])}var K2=Ve(),Q2={itemStyle:Js(d5,!0),lineStyle:Js(v5,!0)},$Z={lineStyle:"stroke",itemStyle:"fill"};function l3(t,e){var r=t.visualStyleMapper||Q2[e];return r||(console.warn("Unknown style type '"+e+"'."),Q2.itemStyle)}function u3(t,e){var r=t.visualDrawType||$Z[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var YZ={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=l3(t,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=u3(t,n),u=o[l],c=ae(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=h,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ae(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||ae(o.stroke)?h:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=t.getDataParams(d),y=F({},o);y[l]=c(p),v.setItemVisual(d,"style",y)}}}},Bc=new qe,jZ={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=l3(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Bc.option=l[n];var u=i(Bc),c=o.ensureUniqueItemVisual(s,"style");F(c,u),Bc.option.decal&&(o.setItemVisual(s,"decal",Bc.option.decal),Bc.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},XZ={performRawSeries:!0,overallReset:function(t){var e=ie();t.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=e.get(i);a||(a={},e.set(i,a)),K2(r).scope=a}}),t.eachSeries(function(r){if(!(r.isColorBySeries()||t.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=K2(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=u3(r,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],f=a.getItemVisual(c,"colorFromPalette");if(f){var h=a.ensureUniqueItemVisual(c,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=r.getColorFromPalette(v,o,d)}})}})}},gd=Math.PI;function ZZ(t,e){e=e||{},oe(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new fe,n=new Ne({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new Oe({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Ne({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new Zy({shape:{startAngle:-gd/2,endAngle:-gd/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:gd*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:gd*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var qZ=function(){function t(e,r,n,i){this._stageTaskMap=ie(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__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}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),i=e.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=e.get("large")&&a>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?a:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var r=this,n=r._pipelineMap=ie();e.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;M(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";mr(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},t.prototype.prepareView=function(e,r,n,i){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,i){i=i||{};var a=!1,o=this;M(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,h=c.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(y){s(i,y)&&(y.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,i.block);d.each(function(y){y.perform(p)}),h.perform(p)&&(a=!0)}else f&&f.each(function(y,g){s(i,y)&&y.dirty();var m=o.getPerformArgs(y,i.block);m.skip=!l.performRawSeries&&r.isSeriesFiltered(y.context.model),o.updatePayload(y,n),y.perform(m)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=ie(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(f){var h=f.uid,v=s.set(h,o&&o.get(h)||Vf({plan:tq,reset:rq,count:iq}));v.context={model:f,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(f,v)}},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||Vf({reset:KZ});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ie(),u=e.seriesType,c=e.getTargetSeries,f=!0,h=!1,v="";mr(!e.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):c?c(n,i).each(d):(f=!1,M(n.getSeries(),d));function d(p){var y=p.uid,g=l.set(y,s&&s.get(y)||(h=!0,Vf({reset:QZ,onDirty:eq})));g.context={model:p,overallProgress:f},g.agent=o,g.__block=f,a._pipe(p,g)}h&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.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},t.wrapStageHandler=function(e,r){return ae(e)&&(e={overallReset:e,seriesType:aq(e)}),e.uid=nc("stageHandler"),r&&(e.visualType=r),e},t}();function KZ(t){t.overallReset(t.ecModel,t.api,t.payload)}function QZ(t){return t.overallProgress&&JZ}function JZ(){this.agent.dirty(),this.getDownstream().dirty()}function eq(){this.agent&&this.agent.dirty()}function tq(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function rq(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Ke(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?H(e,function(r,n){return c3(n)}):nq}var nq=c3(0);function c3(t){return function(e,r){var n=r.data,i=r.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(r.mainType=d,r[h.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},t.prototype.filter=function(e,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 c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,i,a));function c(f,h,v,d){return f[v]==null||h[d||v]===f[v]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Ex=["symbol","symbolSize","symbolRotate","symbolOffset"],rL=Ex.concat(["symbolKeepAspect"]),uq={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o=0&&Is(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function Rx(t,e,r){for(var n=e.type==="radial"?Tq(t,e,r):Cq(t,e,r),i=e.colorStops,a=0;a0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:Fe(t)?[t]:G(t)?t:null}function FC(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&Mq(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(r=H(r,function(a){return a/i}),n/=i)}return[r,n]}var Dq=new Bi(!0);function Dg(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function nL(t){return typeof t=="string"&&t!=="none"}function Lg(t){var e=t.fill;return e!=null&&e!=="none"}function iL(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function aL(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function kx(t,e,r){var n=oC(e.image,e.__image,r);if(Uy(n)){var i=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*Lf),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function Lq(t,e,r,n){var i,a=Dg(r),o=Lg(r),s=r.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||Dq,f=e.__dirty;if(!n){var h=r.fill,v=r.stroke,d=o&&!!h.colorStops,p=a&&!!v.colorStops,y=o&&!!h.image,g=a&&!!v.image,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0;(d||p)&&(x=e.getBoundingRect()),d&&(m=f?Rx(t,h,x):e.__canvasFillGradient,e.__canvasFillGradient=m),p&&(_=f?Rx(t,v,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),y&&(S=f||!e.__canvasFillPattern?kx(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=S),g&&(w=f||!e.__canvasStrokePattern?kx(t,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),d?t.fillStyle=m:y&&(S?t.fillStyle=S:o=!1),p?t.strokeStyle=_:g&&(w?t.strokeStyle=w:a=!1)}var b=e.getGlobalScale();c.setScale(b[0],b[1],e.segmentIgnoreThreshold);var C,T;t.setLineDash&&r.lineDash&&(i=FC(e),C=i[0],T=i[1]);var A=!0;(u||f&Fl)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),A=!1),c.reset(),e.buildPath(c,e.shape,n),c.toStatic(),e.pathUpdated()),A&&c.rebuildPath(t,l?s:1),C&&(t.setLineDash(C),t.lineDashOffset=T),n||(r.strokeFirst?(a&&aL(t,r),o&&iL(t,r)):(o&&iL(t,r),a&&aL(t,r))),C&&t.setLineDash([])}function Pq(t,e,r){var n=e.__image=oC(r.image,e.__image,e,e.onload);if(!(!n||!Uy(n))){var i=r.x||0,a=r.y||0,o=e.getWidth(),s=e.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,c=r.sy||0;t.drawImage(n,u,c,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,h=s-c;t.drawImage(n,u,c,f,h,i,a,o,s)}else t.drawImage(n,i,a,o,s)}}function Iq(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||_o,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=FC(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(Dg(r)&&t.strokeText(i,r.x,r.y),Lg(r)&&t.fillText(i,r.x,r.y)):(Lg(r)&&t.fillText(i,r.x,r.y),Dg(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}var oL=["shadowBlur","shadowOffsetX","shadowOffsetY"],sL=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function y3(t,e,r,n,i){var a=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){Fr(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Bs.opacity:o}(n||e.blend!==r.blend)&&(a||(Fr(t,i),a=!0),t.globalCompositeOperation=e.blend||Bs.blend);for(var s=0;s0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,i){if(!this[hr]){if(this._disposed){this.id;return}var a,o,s;if(se(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[hr]=!0,!this._model||n){var l=new YX(this._api),u=this._theme,c=this._model=new N5;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},Nx);var f={seriesTransition:s,optionChanged:!0};if(i)this[kr]={silent:a,updateParams:f},this[hr]=!1,this.getZr().wakeUp();else{try{Ml(this),Ea.update.call(this,null,f)}catch(h){throw this[kr]=null,this[hr]=!1,h}this._ssr||this._zr.flush(),this[kr]=null,this[hr]=!1,zc.call(this,a),Fc.call(this,a)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ze.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.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()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){if(ze.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return M(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},e.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 c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.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},e.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,c=-s,f=-s,h=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();M(Vs,function(_,S){if(_.group===i){var w=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(le(r)),x=_.getDom().getBoundingClientRect();l=a(x.left,l),u=a(x.top,u),c=o(x.right,c),f=o(x.bottom,f),h.push({dom:w,left:x.left,top:x.top})}}),l*=v,u*=v,c*=v,f*=v;var d=c-l,p=f-u,y=ai.createCanvas(),g=sx(y,{renderer:n?"svg":"canvas"});if(g.resize({width:d,height:p}),n){var m="";return M(h,function(_){var S=_.left-l,w=_.top-u;m+=''+_.dom+""}),g.painter.getSvgRoot().innerHTML=m,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new Ne({shape:{x:0,y:0,width:d,height:p},style:{fill:r.connectedBackgroundColor}})),M(h,function(_){var S=new Qt({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});g.add(S)}),g.refreshImmediately(),y.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n){return l1(this,"convertToPixel",r,n)},e.prototype.convertFromPixel=function(r,n){return l1(this,"convertFromPixel",r,n)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Of(i,r);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(a=a||f.containPoint(n,u))}},this)},this),!!a},e.prototype.getVisual=function(r,n){var i=this._model,a=Of(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?zC(s,l,n):gv(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;M(nK,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Ps(s,function(d){var p=pe(d);if(p&&p.dataIndex!=null){var y=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=y&&y.getDataParams(p.dataIndex,p.dataType)||{},!0}else if(p.eventData)return l=F({},p.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var h=c&&f!=null&&o.getComponent(c,f),v=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),M(Gf,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),M(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),fq(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&fz(this.getDom(),UC,"");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 Vs[n.id]},e.prototype.resize=function(r){if(!this[hr]){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[kr]&&(a==null&&(a=this[kr].silent),i=!0,this[kr]=null),this[hr]=!0;try{i&&Ml(this),Ea.update.call(this,{type:"resize",animation:F({duration:0},r&&r.animation)})}catch(o){throw this[hr]=!1,o}this[hr]=!1,zc.call(this,a),Fc.call(this,a)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(se(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!Bx[r]){var i=Bx[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=F({},r);return n.type=Gf[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(se(n)||(n={silent:!!n}),!!Ig[r.type]&&this._model){if(this[hr]){this._pendingActions.push(r);return}var i=n.silent;c1.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&ze.browser.weChat&&this._throttledZrFlush(),zc.call(this,i),Fc.call(this,i)}},e.prototype.updateLabelLayout=function(){Wn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.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()},e.internalField=function(){Ml=function(f){var h=f._scheduler;h.restorePipelines(f._model),h.prepareStageTasks(),s1(f,!0),s1(f,!1),h.plan()},s1=function(f,h){for(var v=f._model,d=f._scheduler,p=h?f._componentsViews:f._chartsViews,y=h?f._componentsMap:f._chartsMap,g=f._zr,m=f._api,_=0;_h.get("hoverLayerThreshold")&&!ze.node&&!ze.worker&&h.eachSeries(function(y){if(!y.preventUsingHoverLayer){var g=f._chartsMap[y.__viewId];g.__alive&&g.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(f,h){var v=f.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(f,h){if(!f.preventAutoZ){var v=f.get("z")||0,d=f.get("zlevel")||0;h.eachRendered(function(p){return l(p,v,d,-1/0),!0})}}function l(f,h,v,d){var p=f.getTextContent(),y=f.getTextGuideLine(),g=f.isGroup;if(g)for(var m=f.childrenRef(),_=0;_0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(g){if(g.states&&g.states.emphasis){if(mu(g))return;if(g instanceof Pe&&yj(g),g.__dirty){var m=g.prevStates;m&&g.useStates(m)}if(d){g.stateTransition=y;var _=g.getTextContent(),S=g.getTextGuideLine();_&&(_.stateTransition=y),S&&(S.stateTransition=y)}g.__dirty&&i(g)}})}SL=function(f){return new(function(h){N(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){da(d,p),cn(f)},v.prototype.leaveEmphasis=function(d,p){pa(d,p),cn(f)},v.prototype.enterBlur=function(d){kz(d),cn(f)},v.prototype.leaveBlur=function(d){cC(d),cn(f)},v.prototype.enterSelect=function(d){Oz(d),cn(f)},v.prototype.leaveSelect=function(d){Nz(d),cn(f)},v.prototype.getModel=function(){return f.getModel()},v.prototype.getViewOfComponentModel=function(d){return f.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return f.getViewOfSeriesModel(d)},v}(B5))(f)},R3=function(f){function h(v,d){for(var p=0;p=0)){wL.push(r);var a=v3.wrapStageHandler(r,i);a.__prio=e,a.__raw=r,t.push(a)}}function ZC(t,e){Bx[t]=e}function hK(t){dB({createCanvas:t})}function V3(t,e,r){var n=b3("registerMap");n&&n(t,e,r)}function vK(t){var e=b3("getMap");return e&&e(t)}var G3=SZ;Oo(GC,YZ);Oo(um,jZ);Oo(um,XZ);Oo(GC,uq);Oo(um,cq);Oo(A3,Fq);YC(F5);jC(Yq,eZ);ZC("default",ZZ);ci({type:zs,event:zs,update:zs},wt);ci({type:xp,event:xp,update:xp},wt);ci({type:Nf,event:Nf,update:Nf},wt);ci({type:wp,event:wp,update:wp},wt);ci({type:Bf,event:Bf,update:Bf},wt);$C("light",oq);$C("dark",sq);var dK={},bL=[],pK={registerPreprocessor:YC,registerProcessor:jC,registerPostInit:N3,registerPostUpdate:B3,registerUpdateLifecycle:cm,registerAction:ci,registerCoordinateSystem:z3,registerLayout:F3,registerVisual:Oo,registerTransform:G3,registerLoading:ZC,registerMap:V3,registerImpl:Gq,PRIORITY:M3,ComponentModel:ke,ComponentView:ft,SeriesModel:at,ChartView:Qe,registerComponentModel:function(t){ke.registerClass(t)},registerComponentView:function(t){ft.registerClass(t)},registerSeriesModel:function(t){at.registerClass(t)},registerChartView:function(t){Qe.registerClass(t)},registerSubTypeDefaulter:function(t,e){ke.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){ez(t,e)}};function Ae(t){if(G(t)){M(t,function(e){Ae(e)});return}Te(bL,t)>=0||(bL.push(t),ae(t)&&(t={install:t}),t.install(pK))}function Vc(t){return t==null?0:t.length||1}function CL(t){return t}var gK=function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||CL,this._newKeyGetter=i||CL,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},i=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s1&&h===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&h===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var v=0;v1)for(var s=0;s30}var Gc=se,Ra=H,bK=typeof Int32Array>"u"?Array:Int32Array,CK="e\0\0",TL=-1,TK=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],AK=["_approximateExtent"],AL,xd,Hc,Uc,v1,wd,d1,MK=function(){function t(e,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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;U3(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Nn;if(l&&!i.pure)for(var u=[],c=e;c0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[r];return a==null&&(a=this.getVisual(r),G(a)?a=a.slice():Gc(a)&&(a=F({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Gc(r)?F(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Gc(e)?F(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?F(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;dx(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){M(this._graphicEls,function(n,i){n&&e&&e.call(r,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Ra(this.dimensions,this._getDimInfo,this),this.hostModel)),v1(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];ae(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Oy(arguments)))})},t.internalField=function(){AL=function(e){var r=e._invertedIndicesMap;M(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new bK(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[r]=l}}}(),t}();const gr=MK;function DK(t,e){return fc(t,e).dimensions}function fc(t,e){IC(t)||(t=EC(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=ie(),a=[],o=PK(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Y3(o),l=n===t.dimensionsDefine,u=l?$3(t):W3(n),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,o));for(var f=ie(c),h=new q5(o),v=0;v0&&(n.name=i+(a-1)),a++,e.set(i,a)}}function PK(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return M(e,function(a){var o;se(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function IK(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var EK=function(){function t(e){this.coordSysDims=[],this.axisMap=ie(),this.categoryAxisMap=ie(),this.coordSysName=e}return t}();function RK(t){var e=t.get("coordinateSystem"),r=new EK(e),n=kK[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var kK={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",Pt).models[0],a=t.getReferringComponents("yAxis",Pt).models[0];e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),Dl(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),Dl(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",Pt).models[0];e.coordSysDims=["single"],r.set("single",i),Dl(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",Pt).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Dl(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),Dl(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var i=t.ecModel,a=i.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();M(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),Dl(u)&&(n.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Dl(t){return t.get("type")==="category"}function j3(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;OK(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,c,f,h;if(M(a,function(m,_){Z(m)&&(a[_]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!c&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(c=m))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var v=c.coordDim,d=c.type,p=0;M(a,function(m){m.coordDim===v&&p++});var y={name:f,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},g={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(h,d),g.storeDimIndex=s.ensureCalculationDimension(f,d)),o.appendCalculationDimension(y),o.appendCalculationDimension(g)):(a.push(y),a.push(g))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:f}}function OK(t){return!U3(t.schema)}function ya(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function qC(t,e){return ya(t,e)?t.getCalculationInfo("stackResultDimension"):e}function NK(t,e){var r=t.get("coordinateSystem"),n=sc.get(r),i;return e&&e.coordSysDims&&(i=H(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=kg(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function BK(t,e,r){var n,i;return r&&M(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(t[n].otherDims.itemName=0),n}function Vi(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;t?(a=!0,i=EC(t)):(i=n.getSource(),a=i.sourceFormat===Nn);var o=RK(e),s=NK(e,o),l=r.useEncodeDefaulter,u=ae(l)?l:l?ye(I5,s,e):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=fc(i,c),h=BK(f.dimensions,r.createInvertedIndices,o),v=a?null:n.getSharedDataStore(f),d=j3(e,{schema:f,store:v}),p=new gr(f,e);p.setCalculationInfo(d);var y=h!=null&&zK(i)?function(g,m,_,S){return S===h?_:this.defaultDimValueGetter(g,m,_,S)}:null;return p.hasItemOption=!1,p.initData(a?i:v,null,y),p}function zK(t){if(t.sourceFormat===Nn){var e=FK(t.data||[]);return!G(qu(e))}}function FK(t){for(var e=0;er[1]&&(r[1]=e[1])},t.prototype.unionExtentFromData=function(e,r){this.unionExtent(e.getApproximateExtent(r))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(r)||(n[1]=r)},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t}();Hy(X3);const ba=X3;var VK=0,GK=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++VK}return t.createByAxisModel=function(e){var r=e.option,n=r.data,i=n&&H(n,HK);return new t({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!Z(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,r;var i=this._getOrCreateMap();return r=i.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,i.set(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=ie(this.categories))},t}();function HK(t){return se(t)&&t.value!=null?t.value:t+""}const zx=GK;function Fx(t){return t.type==="interval"||t.type==="log"}function UK(t,e,r,n){var i={},a=t[1]-t[0],o=i.interval=tC(a/e,!0);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=Z3(o),l=i.niceTickExtent=[gt(Math.ceil(t[0]/o)*o,s),gt(Math.floor(t[1]/o)*o,s)];return WK(l,t),i}function p1(t){var e=Math.pow(10,Gy(t)),r=t/e;return r?r===2?r=3:r===3?r=5:r*=2:r=1,gt(r*e)}function Z3(t){return Kn(t)+2}function ML(t,e,r){t[e]=Math.max(Math.min(t[e],r[1]),r[0])}function WK(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),ML(t,0,e),ML(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function fm(t,e){return t>=e[0]&&t<=e[1]}function hm(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function vm(t,e){return t*(e[1]-e[0])+e[0]}var q3=function(t){N(e,t);function e(r){var n=t.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new zx({})),G(i)&&(i=new zx({categories:H(i,function(a){return se(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return e.prototype.parse=function(r){return r==null?NaN:Z(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},e.prototype.contain=function(r){return r=this.parse(r),fm(r,this._extent)&&this._ordinalMeta.categories[r]!=null},e.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),hm(r,this._extent)},e.prototype.scale=function(r){return r=Math.round(vm(r,this._extent)),this.getRawOrdinalNumber(r)},e.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},e.prototype.getMinorTicks=function(r){},e.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=Math.min(s,n.length);o=0&&r=0&&r=r},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(ba);ba.registerClass(q3);const KC=q3;var rs=gt,K3=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return e.prototype.parse=function(r){return r},e.prototype.contain=function(r){return fm(r,this._extent)},e.prototype.normalize=function(r){return hm(r,this._extent)},e.prototype.scale=function(r){return vm(r,this._extent)},e.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},e.prototype.unionExtent=function(r){var n=this._extent;r[0]n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=Z3(r)},e.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]l)return[];var c=s.length?s[s.length-1].value:a[1];return i[1]>c&&(r?s.push({value:rs(c+n,o)}):s.push({value:i[1]})),s},e.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&v0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function eF(t){var e=jK(t),r=[];return M(t,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=e[l],c=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),h=Math.abs(f[1]-f[0]);s=u?c/h*u:c}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=j(n.get("barWidth"),s),p=j(n.get("barMaxWidth"),s),y=j(n.get("barMinWidth")||(aF(n)?.5:1),s),g=n.get("barGap"),m=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:y,barGap:g,barCategoryGap:m,axisKey:JC(a),stackId:QC(n)})}),tF(r)}function tF(t){var e={};M(t,function(n,i){var a=n.axisKey,o=n.bandWidth,s=e[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var h=n.barMinWidth;h&&(l[u].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return M(e,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Ie(a).length;s=Math.max(35-l*4,15)+"%"}var u=j(s,o),c=j(n.gap,1),f=n.remainedWidth,h=n.autoWidthCount,v=(f-u)/(h+(h-1)*c);v=Math.max(v,0),M(a,function(g){var m=g.maxWidth,_=g.minWidth;if(g.width){var S=g.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),g.width=S,f-=S+c*S,h--}else{var S=v;m&&mS&&(S=_),S!==v&&(g.width=S,f-=S+c*S,h--)}}),v=(f-u)/(h+(h-1)*c),v=Math.max(v,0);var d=0,p;M(a,function(g,m){g.width||(g.width=v),p=g,d+=g.width*(1+c)}),p&&(d-=p.width*c);var y=-d/2;M(a,function(g,m){r[i][m]=r[i][m]||{bandWidth:o,offset:y,width:g.width},y+=g.width*(1+c)})}),r}function XK(t,e,r){if(t&&e){var n=t[JC(e)];return n!=null&&r!=null?n[QC(r)]:n}}function rF(t,e){var r=J3(t,e),n=eF(r);M(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=QC(i),u=n[JC(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function nF(t){return{seriesType:t,plan:lc(),reset:function(e){if(iF(e)){var r=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=e.get("showBackground",!0),u=r.mapDimension(a.dim),c=r.getCalculationInfo("stackResultDimension"),f=ya(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),h=a.isHorizontal(),v=ZK(i,a),d=aF(e),p=e.get("barMinHeight")||0,y=c&&r.getDimensionIndex(c),g=r.getLayout("size"),m=r.getLayout("offset");return{progress:function(_,S){for(var w=_.count,x=d&&Mi(w*3),b=d&&l&&Mi(w*3),C=d&&Mi(w),T=n.master.getRect(),A=h?T.width:T.height,D,L=S.getStore(),P=0;(D=_.next())!=null;){var I=L.get(f?y:o,D),E=L.get(s,D),k=v,B=void 0;f&&(B=+I-L.get(o,D));var R=void 0,O=void 0,z=void 0,V=void 0;if(h){var Y=n.dataToPoint([I,E]);if(f){var re=n.dataToPoint([B,E]);k=re[0]}R=k,O=Y[1]+m,z=Y[0]-k,V=g,Math.abs(z)>>1;t[i][1]i&&(this._approxInterval=i);var s=bd.length,l=Math.min(qK(bd,this._approxInterval,0,s),s-1);this._interval=bd[l][1],this._minLevelUnit=bd[Math.max(l-1,0)][0]},e.prototype.parse=function(r){return Fe(r)?r:+nn(r)},e.prototype.contain=function(r){return fm(this.parse(r),this._extent)},e.prototype.normalize=function(r){return hm(this.parse(r),this._extent)},e.prototype.scale=function(r){return vm(r,this._extent)},e.type="time",e}(bo),bd=[["second",xC],["minute",wC],["hour",Ff],["quarter-day",Ff*6],["half-day",Ff*12],["day",Cn*1.2],["half-week",Cn*3.5],["week",Cn*7],["month",Cn*31],["quarter",Cn*95],["half-year",y2/2],["year",y2]];function KK(t,e,r,n){var i=nn(e),a=nn(r),o=function(d){return _2(i,d,n)===_2(a,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},h=function(){return f()&&o("second")},v=function(){return h()&&o("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return h();case"millisecond":return v()}}function QK(t,e){return t/=Cn,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function JK(t){var e=30*Cn;return t/=e,t>6?6:t>3?3:t>2?2:1}function eQ(t){return t/=Ff,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function DL(t,e){return t/=e?wC:xC,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function tQ(t){return tC(t,!0)}function rQ(t,e,r){var n=new Date(t);switch(_u(e)){case"year":case"month":n[m5(r)](0);case"day":n[_5(r)](1);case"hour":n[S5(r)](0);case"minute":n[x5(r)](0);case"second":n[w5(r)](0),n[b5(r)](0)}return n.getTime()}function nQ(t,e,r,n){var i=1e4,a=g5,o=0;function s(A,D,L,P,I,E,k){for(var B=new Date(D),R=D,O=B[P]();R1&&E===0&&L.unshift({value:L[0].value-R})}}for(var E=0;E=n[0]&&m<=n[1]&&f++)}var _=(n[1]-n[0])/e;if(f>_*1.5&&h>_/1.5||(u.push(y),f>_||t===a[v]))break}c=[]}}}for(var S=Ye(H(u,function(A){return Ye(A,function(D){return D.value>=n[0]&&D.value<=n[1]&&!D.notAdd})}),function(A){return A.length>0}),w=[],x=S.length-1,v=0;v0;)a*=10;var s=[gt(oQ(n[0]/a)*a),gt(aQ(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},e.prototype.calcNiceExtent=function(r){Hf.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},e.prototype.parse=function(r){return r},e.prototype.contain=function(r){return r=Gn(r)/Gn(this.base),fm(r,this._extent)},e.prototype.normalize=function(r){return r=Gn(r)/Gn(this.base),hm(r,this._extent)},e.prototype.scale=function(r){return r=vm(r,this._extent),Cd(this.base,r)},e.type="log",e}(ba),lF=eT.prototype;lF.getMinorTicks=Hf.getMinorTicks;lF.getLabel=Hf.getLabel;function Td(t,e){return iQ(t,Kn(e))}ba.registerClass(eT);const sQ=eT;var lQ=function(){function t(e,r,n){this._prepareParams(e,r,n)}return t.prototype._prepareParams=function(e,r,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},t.prototype.modifyDataMinMax=function(e,r){this[cQ[e]]=r},t.prototype.setDeterminedMinMax=function(e,r){var n=uQ[e];this[n]=r},t.prototype.freeze=function(){this.frozen=!0},t}(),uQ={min:"_determinedMin",max:"_determinedMax"},cQ={min:"_dataMin",max:"_dataMax"};function uF(t,e,r){var n=t.rawExtentInfo;return n||(n=new lQ(t,e,r),t.rawExtentInfo=n,n)}function Ad(t,e){return e==null?null:ku(e)?NaN:t.parse(e)}function cF(t,e){var r=t.type,n=uF(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var i=n.min,a=n.max,o=e.ecModel;if(o&&r==="time"){var s=J3("bar",o),l=!1;if(M(s,function(f){l=l||f.getBaseAxis()===e.axis}),l){var u=eF(s),c=fQ(i,a,e,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function fQ(t,e,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=XK(n,r.axis);if(o===void 0)return{min:t,max:e};var s=1/0;M(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;M(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,f=1-(s+l)/a,h=c/f-c;return e+=h*(l/u),t-=h*(s/u),{min:t,max:e}}function rl(t,e){var r=e,n=cF(t,r),i=n.extent,a=r.get("splitNumber");t instanceof sQ&&(t.base=r.get("logBase"));var o=t.type,s=r.get("interval"),l=o==="interval"||o==="time";t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&t.setInterval&&t.setInterval(s)}function mv(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new KC({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new sF({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(ba.getClass(e)||bo)}}function hQ(t){var e=t.scale.getExtent(),r=e[0],n=e[1];return!(r>0&&n>0||r<0&&n<0)}function _v(t){var e=t.getLabelModel().get("formatter"),r=t.type==="category"?t.scale.getExtent()[0]:null;return t.scale.type==="time"?function(n){return function(i,a){return t.scale.getFormattedLabel(i,a,n)}}(e):Z(e)?function(n){return function(i){var a=t.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(e):ae(e)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(tT(t,i),a,i.level!=null?{level:i.level}:null)}}(e):function(n){return t.scale.getLabel(n)}}function tT(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function vQ(t){var e=t.model,r=t.scale;if(!(!e.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof KC?i=r.count():(n=r.getTicks(),i=n.length);var o=t.getLabelModel(),s=_v(t),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;ct[1]&&(t[1]=i[1])})}var hc=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t}();function gQ(t){return Vi(null,t)}var yQ={isDimensionStacked:ya,enableDataStack:j3,getStackedDimension:qC};function mQ(t,e){var r=e;e instanceof qe||(r=new qe(e));var n=mv(r);return n.setExtent(t[0],t[1]),rl(n,r),n}function _Q(t){Ct(t,hc)}function SQ(t,e){return e=e||{},tt(t,null,null,e.state!=="normal")}const xQ=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:DK,createList:gQ,createScale:mQ,createSymbol:Mt,createTextStyle:SQ,dataStack:yQ,enableHoverEmphasis:fo,getECData:pe,getLayoutRect:It,mixinAxisModelCommonMethods:_Q},Symbol.toStringTag,{value:"Module"}));var wQ=1e-8;function PL(t,e){return Math.abs(t-e)i&&(n=o,i=l)}if(n)return CQ(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return M(o,function(s){s.type==="polygon"?IL(s.exterior,i,a,r):M(s.points,function(l){IL(l,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new Ce(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},e.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var a=0,o=i.length;a>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/r,l/r])}return n}function Gx(t,e){return t=AQ(t),H(Ye(t.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new EL(o[0],o.slice(1)));break;case"MultiPolygon":M(i.coordinates,function(l){l[0]&&a.push(new EL(l[0],l.slice(1)))});break;case"LineString":a.push(new RL([i.coordinates]));break;case"MultiLineString":a.push(new RL(i.coordinates))}var s=new vF(n[e||"name"],a,n.cp);return s.properties=n,s})}const MQ=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:lx,asc:Qr,getPercentWithPrecision:G9,getPixelPrecision:Jb,getPrecision:Kn,getPrecisionSafe:rz,isNumeric:rC,isRadianAroundZero:wh,linearMap:$e,nice:tC,numericToNumber:Ni,parseDate:nn,quantile:Sp,quantity:iz,quantityExponent:Gy,reformIntervals:ux,remRadian:eC,round:gt},Symbol.toStringTag,{value:"Module"})),DQ=Object.freeze(Object.defineProperty({__proto__:null,format:pv,parse:nn},Symbol.toStringTag,{value:"Module"})),LQ=Object.freeze(Object.defineProperty({__proto__:null,Arc:Zy,BezierCurve:fv,BoundingRect:Ce,Circle:li,CompoundPath:qy,Ellipse:Xy,Group:fe,Image:Qt,IncrementalDisplayable:r5,Line:Gt,LinearGradient:Qu,Polygon:Lr,Polyline:Er,RadialGradient:vC,Rect:Ne,Ring:cv,Sector:Dr,Text:Oe,clipPointsByRect:yC,clipRectByRect:s5,createIcon:ec,extendPath:a5,extendShape:i5,getShapeClass:Ky,getTransform:ho,initProps:lt,makeImage:pC,makePath:hv,mergePath:qr,registerShape:On,resizePath:gC,updateProps:Ge},Symbol.toStringTag,{value:"Module"})),PQ=Object.freeze(Object.defineProperty({__proto__:null,addCommas:CC,capitalFirst:xX,encodeHTML:Cr,formatTime:SX,formatTpl:AC,getTextRect:mX,getTooltipMarker:C5,normalizeCssArray:fl,toCamelCase:TC,truncateText:pz},Symbol.toStringTag,{value:"Module"})),IQ=Object.freeze(Object.defineProperty({__proto__:null,bind:Q,clone:le,curry:ye,defaults:oe,each:M,extend:F,filter:Ye,indexOf:Te,inherits:Wb,isArray:G,isFunction:ae,isObject:se,isString:Z,map:H,merge:Se,reduce:En},Symbol.toStringTag,{value:"Module"}));var Oh=Ve();function EQ(t){return t.type==="category"?kQ(t):NQ(t)}function RQ(t,e){return t.type==="category"?OQ(t,e):{ticks:H(t.scale.getTicks(),function(r){return r.value})}}function kQ(t){var e=t.getLabelModel(),r=pF(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function pF(t,e){var r=gF(t,"labels"),n=rT(e),i=yF(r,n);if(i)return i;var a,o;return ae(n)?a=SF(t,n):(o=n==="auto"?BQ(t):n,a=_F(t,o)),mF(r,n,{labels:a,labelCategoryInterval:o})}function OQ(t,e){var r=gF(t,"ticks"),n=rT(e),i=yF(r,n);if(i)return i;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),ae(n))a=SF(t,n,!0);else if(n==="auto"){var s=pF(t,t.getLabelModel());o=s.labelCategoryInterval,a=H(s.labels,function(l){return l.tickValue})}else o=n,a=_F(t,o,!0);return mF(r,n,{ticks:a,tickCategoryInterval:o})}function NQ(t){var e=t.scale.getTicks(),r=_v(t);return{labels:H(e,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:t.scale.getLabel(n),tickValue:n.value}})}}function gF(t,e){return Oh(t)[e]||(Oh(t)[e]=[])}function yF(t,e){for(var r=0;r40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),h=0,v=0;l<=a[1];l+=s){var d=0,p=0,y=sv(r({value:l}),e.font,"center","top");d=y.width*1.3,p=y.height*1.3,h=Math.max(h,d,7),v=Math.max(v,p,7)}var g=h/c,m=v/f;isNaN(g)&&(g=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(g,m))),S=Oh(t.model),w=t.getExtent(),x=S.lastAutoInterval,b=S.lastTickCount;return x!=null&&b!=null&&Math.abs(x-_)<=1&&Math.abs(b-o)<=1&&x>_&&S.axisExtent0===w[0]&&S.axisExtent1===w[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=w[0],S.axisExtent1=w[1]),_}function FQ(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function _F(t,e,r){var n=_v(t),i=t.scale,a=i.getExtent(),o=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=fF(t),h=o.get("showMinLabel")||f,v=o.get("showMaxLabel")||f;h&&u!==a[0]&&p(a[0]);for(var d=u;d<=a[1];d+=l)p(d);v&&d-l!==a[1]&&p(a[1]);function p(y){var g={value:y};s.push(r?y:{formattedLabel:n(g),rawLabel:i.getLabel(g),tickValue:y})}return s}function SF(t,e,r){var n=t.scale,i=_v(t),a=[];return M(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;e(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var kL=[0,1],VQ=function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return e>=n&&e<=i},t.prototype.containData=function(e){return this.scale.contain(e)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return Jb(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&i.type==="ordinal"&&(n=n.slice(),OL(n,i.count())),$e(e,kL,n,r)},t.prototype.coordToData=function(e,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),OL(n,i.count()));var a=$e(e,n,kL,r);return this.scale.scale(a)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=RQ(this,r),i=n.ticks,a=H(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return GQ(this,a,o,e.clamp),a},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=H(n,function(a){return H(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},t.prototype.getViewLabels=function(){return EQ(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return zQ(this)},t}();function OL(t,e){var r=t[1]-t[0],n=e,i=r/n/2;t[0]+=i,t[1]-=i}function GQ(t,e,r,n){var i=e.length;if(!t.onBand||r||!i)return;var a=t.getExtent(),o,s;if(i===1)e[0].coord=a[0],o=e[1]={coord:a[0]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;M(e,function(v){v.coord-=u/2});var c=t.scale.getExtent();s=1+c[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*s},e.push(o)}var f=a[0]>a[1];h(e[0].coord,a[0])&&(n?e[0].coord=a[0]:e.shift()),n&&h(a[0],e[0].coord)&&e.unshift({coord:a[0]}),h(a[1],o.coord)&&(n?o.coord=a[1]:e.pop()),n&&h(o.coord,a[1])&&e.push({coord:a[1]});function h(v,d){return v=gt(v),d=gt(d),f?v>d:vi&&(i+=Wc);var v=Math.atan2(s,o);if(v<0&&(v+=Wc),v>=n&&v<=i||v+Wc>=n&&v+Wc<=i)return l[0]=c,l[1]=f,u-r;var d=r*Math.cos(n)+t,p=r*Math.sin(n)+e,y=r*Math.cos(i)+t,g=r*Math.sin(i)+e,m=(d-o)*(d-o)+(p-s)*(p-s),_=(y-o)*(y-o)+(g-s)*(g-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=y,l[1]=g,Math.sqrt(_))}function Ng(t,e,r,n,i,a,o,s){var l=i-t,u=a-e,c=r-t,f=n-e,h=Math.sqrt(c*c+f*f);c/=h,f/=h;var v=l*c+u*f,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=t+d*c,y=o[1]=e+d*f;return Math.sqrt((p-i)*(p-i)+(y-a)*(y-a))}function xF(t,e,r,n,i,a,o){r<0&&(t=t+r,r=-r),n<0&&(e=e+n,n=-n);var s=t+r,l=e+n,u=o[0]=Math.min(Math.max(i,t),s),c=o[1]=Math.min(Math.max(a,e),l);return Math.sqrt((u-i)*(u-i)+(c-a)*(c-a))}var jn=[];function ZQ(t,e,r){var n=xF(e.x,e.y,e.width,e.height,t.x,t.y,jn);return r.set(jn[0],jn[1]),n}function qQ(t,e,r){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,c=e.data,f=t.x,h=t.y,v=0;v0){e=e/180*Math.PI,Qn.fromArray(t[0]),nt.fromArray(t[1]),At.fromArray(t[2]),we.sub(Di,Qn,nt),we.sub(Ci,At,nt);var r=Di.len(),n=Ci.len();if(!(r<.001||n<.001)){Di.scale(1/r),Ci.scale(1/n);var i=Di.dot(Ci),a=Math.cos(e);if(a1&&we.copy(br,At),br.toArray(t[1])}}}}function KQ(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,Qn.fromArray(t[0]),nt.fromArray(t[1]),At.fromArray(t[2]),we.sub(Di,nt,Qn),we.sub(Ci,At,nt);var n=Di.len(),i=Ci.len();if(!(n<.001||i<.001)){Di.scale(1/n),Ci.scale(1/i);var a=Di.dot(e),o=Math.cos(r);if(a=l)we.copy(br,At);else{br.scaleAndAdd(Ci,s/Math.tan(Math.PI/2-c));var f=At.x!==nt.x?(br.x-nt.x)/(At.x-nt.x):(br.y-nt.y)/(At.y-nt.y);if(isNaN(f))return;f<0?we.copy(br,nt):f>1&&we.copy(br,At)}br.toArray(t[1])}}}}function BL(t,e,r,n){var i=r==="normal",a=i?t:t.ensureState(r);a.ignore=e;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?t.useStyle(s):a.style=s}function QQ(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=Ki(n[0],n[1]),a=Ki(n[1],n[2]);if(!i||!a){t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=If([],n[1],n[0],o/i),l=If([],n[1],n[2],o/a),u=If([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c0&&a&&w(-c/o,0,o);var p=t[0],y=t[o-1],g,m;_(),g<0&&x(-g,.8),m<0&&x(m,.8),_(),S(g,m,1),S(m,g,-1),_(),g<0&&b(-g),m<0&&b(m);function _(){g=p.rect[e]-n,m=i-y.rect[e]-y.rect[r]}function S(C,T,A){if(C<0){var D=Math.min(T,-C);if(D>0){w(D*A,0,o);var L=D+C;L<0&&x(-L*A,1)}else x(-C*A,1)}}function w(C,T,A){C!==0&&(u=!0);for(var D=T;D0)for(var L=0;L0;L--){var k=A[L-1]*E;w(-k,L,o)}}}function b(C){var T=C<0?-1:1;C=Math.abs(C);for(var A=Math.ceil(C/(o-1)),D=0;D0?w(A,0,D+1):w(-A,o-D-1,o),C-=A,C<=0)return}return u}function JQ(t,e,r,n){return CF(t,"x","width",e,r,n)}function TF(t,e,r,n){return CF(t,"y","height",e,r,n)}function AF(t){var e=[];t.sort(function(p,y){return y.priority-p.priority});var r=new Ce(0,0,0,0);function n(p){if(!p.ignore){var y=p.ensureState("emphasis");y.ignore==null&&(y.ignore=!1)}p.ignore=!0}for(var i=0;i=0&&n.attr(a.oldLayoutSelect),Te(h,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Ge(n,u,r,l)}else if(n.attr(u),!rc(n).valueAnimation){var f=be(n.style.opacity,1);n.style.opacity=0,lt(n,{style:{opacity:f}},r,l)}if(a.oldLayout=u,n.states.select){var v=a.oldLayoutSelect={};Md(v,u,Dd),Md(v,n.states.select,Dd)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};Md(d,u,Dd),Md(d,n.states.emphasis,Dd)}h5(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=rJ(i),o=a.oldLayout,p={points:i.shape.points};o?(i.attr({shape:o}),Ge(i,{shape:p},r)):(i.setShape(p),i.style.strokePercent=0,lt(i,{style:{strokePercent:1}},r)),a.oldLayout=p}},t}();const iJ=nJ;var _1=Ve();function aJ(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,n){var i=_1(r).labelManager;i||(i=_1(r).labelManager=new iJ),i.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,r,n){var i=_1(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}var S1=Math.sin,x1=Math.cos,MF=Math.PI,is=Math.PI*2,oJ=180/MF,sJ=function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,r){this._add("M",e,r)},t.prototype.lineTo=function(e,r){this._add("L",e,r)},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){this._add("C",e,r,n,i,a,o)},t.prototype.quadraticCurveTo=function(e,r,n,i){this._add("Q",e,r,n,i)},t.prototype.arc=function(e,r,n,i,a,o){this.ellipse(e,r,n,n,0,i,a,o)},t.prototype.ellipse=function(e,r,n,i,a,o,s,l){var u=s-o,c=!l,f=Math.abs(u),h=Ka(f-is)||(c?u>=is:-u>=is),v=u>0?u%is:u%is+is,d=!1;h?d=!0:Ka(f)?d=!1:d=v>=MF==!!c;var p=e+n*x1(o),y=r+i*S1(o);this._start&&this._add("M",p,y);var g=Math.round(a*oJ);if(h){var m=1/this._p,_=(c?1:-1)*(is-m);this._add("A",n,i,g,1,+c,e+n*x1(o+_),r+i*S1(o+_)),m>.01&&this._add("A",n,i,g,0,+c,p,y)}else{var S=e+n*x1(s),w=r+i*S1(s);this._add("A",n,i,g,+d,+c,S,w)}},t.prototype.rect=function(e,r,n,i){this._add("M",e,r),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,r,n,i,a,o,s,l,u){for(var c=[],f=this._p,h=1;h"}function gJ(t){return""}function aT(t,e){e=e||{};var r=e.newline?` +`:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return pJ(o,s)+(o!=="style"?Cr(l):l||"")+(a?""+r+H(a,function(u){return n(u)}).join(r)+r:"")+gJ(o)}return n(t)}function yJ(t,e,r){r=r||{};var n=r.newline?` +`:"",i=" {"+n,a=n+"}",o=H(Ie(t),function(l){return l+i+H(Ie(t[l]),function(u){return u+":"+t[l][u]+";"}).join(n)+a}).join(n),s=H(Ie(e),function(l){return"@keyframes "+l+i+H(Ie(e[l]),function(u){return u+i+H(Ie(e[l][u]),function(c){var f=e[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":[""].join(n)}function Ux(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function FL(t,e,r,n){return Ht("svg","root",{width:t,height:e,xmlns:LF,"xmlns:xlink":PF,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+t+" "+e:!1},r)}var VL={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},fs="transform-origin";function mJ(t,e,r){var n=F({},t.shape);F(n,e),t.buildPath(r,n);var i=new DF;return i.reset($B(t)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function _J(t,e){var r=e.originX,n=e.originY;(r||n)&&(t[fs]=r+"px "+n+"px")}var SJ={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function EF(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function xJ(t,e,r){var n=t.shape.paths,i={},a,o;if(M(n,function(l){var u=Ux(r.zrId);u.animation=!0,dm(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,h=Ie(c),v=h.length;if(v){o=h[v-1];var d=c[o];for(var p in d){var y=d[p];i[p]=i[p]||{d:""},i[p].d+=y.d||""}for(var g in f){var m=f[g].animation;m.indexOf(o)>=0&&(a=m)}}}),!!a){e.d=!1;var s=EF(i,r);return a.replace(o,s)}}function GL(t){return Z(t)?VL[t]?"cubic-bezier("+VL[t]+")":Xb(t)?t:"":""}function dm(t,e,r,n){var i=t.animators,a=i.length,o=[];if(t instanceof qy){var s=xJ(t,e,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u0}).length){var me=EF(b,r);return me+" "+m[0]+" both"}}for(var y in l){var s=p(l[y]);s&&o.push(s)}if(o.length){var g=r.zrId+"-cls-"+r.cssClassIdx++;r.cssNodes["."+g]={animation:o.join(",")},e.class=g}}var Nh=Math.round;function RF(t){return t&&Z(t.src)}function kF(t){return t&&ae(t.toDataURL)}function oT(t,e,r,n){hJ(function(i,a){var o=i==="fill"||i==="stroke";o&&WB(a)?NF(e,t,i,n):o&&qb(a)?BF(r,t,i,n):t[i]=a},e,r,!1),DJ(r,t,n)}function HL(t){return Ka(t[0]-1)&&Ka(t[1])&&Ka(t[2])&&Ka(t[3]-1)}function wJ(t){return Ka(t[4])&&Ka(t[5])}function sT(t,e,r){if(e&&!(wJ(e)&&HL(e))){var n=r?10:1e4;t.transform=HL(e)?"translate("+Nh(e[4]*n)/n+" "+Nh(e[5]*n)/n+")":t9(e)}}function UL(t,e,r){for(var n=t.points,i=[],a=0;a"u"){var y="Image width/height must been given explictly in svg-ssr renderer.";mr(h,y),mr(v,y)}else if(h==null||v==null){var g=function(A,D){if(A){var L=A.elm,P=h||D.width,I=v||D.height;A.tag==="pattern"&&(u?(I=1,P/=a.width):c&&(P=1,I/=a.height)),A.attrs.width=P,A.attrs.height=I,L&&(L.setAttribute("width",P),L.setAttribute("height",I))}},m=oC(d,null,t,function(A){l||g(x,A),g(f,A)});m&&m.width&&m.height&&(h=h||m.width,v=v||m.height)}f=Ht("image","img",{href:d,width:h,height:v}),o.width=h,o.height=v}else i.svgElement&&(f=le(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(f){var _,S;l?_=S=1:u?(S=1,_=o.width/a.width):c?(_=1,S=o.height/a.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var w=YB(i);w&&(o.patternTransform=w);var x=Ht("pattern","",o,[f]),b=aT(x),C=n.patternCache,T=C[b];T||(T=n.zrId+"-p"+n.patternIdx++,C[b]=T,o.id=T,x=n.defs[T]=Ht("pattern",T,o,[f])),e[r]=Fy(T)}}function LJ(t,e,r){var n=r.clipPathCache,i=r.defs,a=n[t.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};n[t.id]=a,i[a]=Ht("clipPath",a,o,[OF(t,r)])}e["clip-path"]=Fy(a)}function YL(t){return document.createTextNode(t)}function ms(t,e,r){t.insertBefore(e,r)}function jL(t,e){t.removeChild(e)}function XL(t,e){t.appendChild(e)}function zF(t){return t.parentNode}function FF(t){return t.nextSibling}function w1(t,e){t.textContent=e}var ZL=58,PJ=120,IJ=Ht("","");function Wx(t){return t===void 0}function xi(t){return t!==void 0}function EJ(t,e,r){for(var n={},i=e;i<=r;++i){var a=t[i].key;a!==void 0&&(n[a]=i)}return n}function df(t,e){var r=t.key===e.key,n=t.tag===e.tag;return n&&r}function Bh(t){var e,r=t.children,n=t.tag;if(xi(n)){var i=t.elm=IF(n);if(lT(IJ,t),G(r))for(e=0;ea?(d=r[l+1]==null?null:r[l+1].elm,VF(t,d,r,i,l)):zg(t,e,n,a))}function Gl(t,e){var r=e.elm=t.elm,n=t.children,i=e.children;t!==e&&(lT(t,e),Wx(e.text)?xi(n)&&xi(i)?n!==i&&RJ(r,n,i):xi(i)?(xi(t.text)&&w1(r,""),VF(r,null,i,0,i.length-1)):xi(n)?zg(r,n,0,n.length-1):xi(t.text)&&w1(r,""):t.text!==e.text&&(xi(n)&&zg(r,n,0,n.length-1),w1(r,e.text)))}function kJ(t,e){if(df(t,e))Gl(t,e);else{var r=t.elm,n=zF(r);Bh(e),n!==null&&(ms(n,e.elm,FF(r)),zg(n,[t],0,0))}return e}var OJ=0,NJ=function(){function t(e,r,n){if(this.type="svg",this.refreshHover=qL(),this.configLayer=qL(),this.storage=r,this._opts=n=F({},n),this.root=e,this._id="zr"+OJ++,this._oldVNode=FL(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=IF("svg");lT(null,this._oldVNode),i.appendChild(a),e.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",kJ(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return $L(e,Ux(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=Ux(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress;var o=[],s=this._bgVNode=BJ(n,i,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=Ht("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=H(Ie(a.defs),function(h){return a.defs[h]});if(u.length&&o.push(Ht("defs","defs",{},u)),e.animation){var c=yJ(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=Ht("style","stl",{},[],c);o.push(f)}}return FL(n,i,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},aT(this.renderToVNode({animation:be(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:be(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,r,n){for(var i=e.length,a=[],o=0,s,l,u=0,c=0;c=0&&!(h&&l&&h[p]===l[p]);p--);for(var y=d-1;y>p;y--)o--,s=a[o-1];for(var g=p+1;g=s)}}for(var f=this.__startIndex;f15)break}}I.prevElClipPaths&&g.restore()};if(m)if(m.length===0)C=y.__endIndex;else for(var A=v.dpr,D=0;D0&&e>i[0]){for(l=0;le);l++);s=n[i[l]]}if(i.splice(l+1,0,e),n[e]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.__painter=this}},t.prototype.eachLayer=function(e,r){for(var n=this._zlevelList,i=0;i0?Ld:0),this._needsManuallyCompositing),c.__builtin__||Ry("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),a=c),i.__dirty&Zr&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(f,h){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,M(this._layers,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var n=this._layerConfig;n[e]?Se(n[e],r,!0):n[e]=r;for(var i=0;i-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(at);const XJ=jJ;function zu(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Nu(t,e,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(e[a])}return n.join(" ")}var ZJ=function(t){N(e,t);function e(r,n,i,a){var o=t.call(this)||this;return o.updateData(r,n,i,a),o}return e.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=Mt(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=qJ,this._symbolType=r,this.add(s)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){da(this.childAt(0))},e.prototype.downplay=function(){pa(this.childAt(0))},e.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},e.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},e.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,n),u=o!==this._symbolType,c=a&&a.disableAnimation;if(u){var f=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,f)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(v):Ge(h,v,s,n),ui(h)}if(this._updateCommon(r,n,l,i,a),u){var h=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,lt(h,v,s,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,c,f,h,v,d,p,y,g;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,f=a.selectItemStyle,h=a.focus,v=a.blurScope,p=a.labelStatesModels,y=a.hoverScale,g=a.cursorStyle,d=a.emphasisDisabled),!a||r.hasItemOption){var m=a&&a.itemModel?a.itemModel:r.getItemModel(n),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=m.getModel(["select","itemStyle"]).getItemStyle(),c=m.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=Wt(m),y=_.getShallow("scale"),g=m.getShallow("cursor")}var S=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var w=cc(r.getItemVisual(n,"symbolOffset"),i);w&&(s.x=w[0],s.y=w[1]),g&&s.attr("cursor",g);var x=r.getItemVisual(n,"style"),b=x.fill;if(s instanceof Qt){var C=s.style;s.useStyle(F({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},x))}else s.__isEmptyBrush?s.useStyle(F({},x)):s.useStyle(x),s.style.decal=null,s.setColor(b,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var T=r.getItemVisual(n,"liftZ"),A=this._z2;T!=null?A==null&&(this._z2=s.z2,s.z2+=T):A!=null&&(s.z2=A,this._z2=null);var D=o&&o.useNameLabel;sr(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:b,defaultOpacity:x.opacity});function L(E){return D?r.getName(E):zu(r,E)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var P=s.ensureState("emphasis");P.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var I=y==null||y===!0?Math.max(1.1,3/this._sizeY):isFinite(y)&&y>0?+y:1;P.scaleX=this._sizeX*I,P.scaleY=this._sizeY*I,this.setSymbolScale(1),yt(this,h,v,d)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=pe(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&xo(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();xo(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return yv(r.getItemVisual(n,"symbolSize"))},e}(fe);function qJ(t,e){this.parent.drift(t,e)}const Sv=ZJ;function C1(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function JL(t){return t!=null&&!se(t)&&(t={isIgnore:t}),t||{}}function eP(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Wt(e),cursorStyle:e.get("cursor")}}var KJ=function(){function t(e){this.group=new fe,this._SymbolCtor=e||Sv}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=JL(r);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=eP(e),u={disableAnimation:s},c=r.getSymbolPoint||function(f){return e.getItemLayout(f)};a||n.removeAll(),e.diff(a).add(function(f){var h=c(f);if(C1(e,h,f,r)){var v=new o(e,f,l,u);v.setPosition(h),e.setItemGraphicEl(f,v),n.add(v)}}).update(function(f,h){var v=a.getItemGraphicEl(h),d=c(f);if(!C1(e,d,f,r)){n.remove(v);return}var p=e.getItemVisual(f,"symbol")||"circle",y=v&&v.getSymbolType&&v.getSymbolType();if(!v||y&&y!==p)n.remove(v),v=new o(e,f,l,u),v.setPosition(d);else{v.updateData(e,f,l,u);var g={x:d[0],y:d[1]};s?v.attr(g):Ge(v,g,i)}n.add(v),e.setItemGraphicEl(f,v)}).remove(function(f){var h=a.getItemGraphicEl(f);h&&h.fadeOut(function(){n.remove(h)},i)}).execute(),this._getSymbolPoint=c,this._data=e},t.prototype.updateLayout=function(){var e=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=e._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=eP(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n){this._progressiveEls=[],n=JL(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0?r=n[0]:n[1]<0&&(r=n[1]),r}function UF(t,e,r,n){var i=NaN;t.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=r.get(t.baseDim,n),o[1-a]=i,e.dataToPoint(o)}function JJ(t,e){var r=[];return e.diff(t).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 eee(t,e,r,n,i,a,o,s){for(var l=JJ(t,e),u=[],c=[],f=[],h=[],v=[],d=[],p=[],y=HF(i,e,o),g=t.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_=i||p<0)break;if(Gs(g,m)){if(l){p+=a;continue}break}if(p===r)t[a>0?"moveTo":"lineTo"](g,m),f=g,h=m;else{var _=g-u,S=m-c;if(_*_+S*S<.5){p+=a;continue}if(o>0){for(var w=p+a,x=e[w*2],b=e[w*2+1];x===g&&b===m&&y=n||Gs(x,b))v=g,d=m;else{A=x-u,D=b-c;var I=g-u,E=x-g,k=m-c,B=b-m,R=void 0,O=void 0;if(s==="x"){R=Math.abs(I),O=Math.abs(E);var z=A>0?1:-1;v=g-z*R*o,d=m,L=g+z*O*o,P=m}else if(s==="y"){R=Math.abs(k),O=Math.abs(B);var V=D>0?1:-1;v=g,d=m-V*R*o,L=g,P=m+V*O*o}else R=Math.sqrt(I*I+k*k),O=Math.sqrt(E*E+B*B),T=O/(O+R),v=g-A*o*(1-T),d=m-D*o*(1-T),L=g+A*o*T,P=m+D*o*T,L=ka(L,Oa(x,g)),P=ka(P,Oa(b,m)),L=Oa(L,ka(x,g)),P=Oa(P,ka(b,m)),A=L-g,D=P-m,v=g-A*R/O,d=m-D*R/O,v=ka(v,Oa(u,g)),d=ka(d,Oa(c,m)),v=Oa(v,ka(u,g)),d=Oa(d,ka(c,m)),A=g-v,D=m-d,L=g+A*O/R,P=m+D*O/R}t.bezierCurveTo(f,h,v,d,g,m),f=L,h=P}else t.lineTo(g,m)}u=g,c=m,p+=a}return y}var WF=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),tee=function(t){N(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new WF},e.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&Gs(i[o*2-2],i[o*2-1]);o--);for(;a=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[r,S]:[S,r]}s=v,l=d;break;case o.C:v=a[f++],d=a[f++],p=a[f++],y=a[f++],g=a[f++],m=a[f++];var w=u?hg(s,v,p,g,r,c):hg(l,d,y,m,r,c);if(w>0)for(var x=0;x=0){var S=u?zt(l,d,y,m,b):zt(s,v,p,g,b);return u?[r,S]:[S,r]}}s=g,l=m;break}}},e}(Pe),ree=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(WF),$F=function(t){N(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new ree},e.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&&Gs(i[s*2-2],i[s*2-1]);s--);for(;oe){a?r.push(o(a,l,e)):i&&r.push(o(i,l,0),o(i,l,e));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function aee(t,e,r){var n=t.getVisual("visualMeta");if(!(!n||!n.length||!t.count())&&e.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=t.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=e.getAxis(i),u=H(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var h=iee(u,i==="x"?r.getWidth():r.getHeight()),v=h.length;if(!v&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var d=10,p=h[0].coord-d,y=h[v-1].coord+d,g=y-p;if(g<.001)return"transparent";M(h,function(_){_.offset=(_.coord-p)/g}),h.push({offset:v?h[v-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:f[0]||"transparent"});var m=new Qu(0,0,0,0,h,!0);return m[i]=p,m[i+"2"]=y,m}}}function oee(t,e,r){var n=t.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&see(a,e))){var o=e.mapDimension(a.dim),s={};return M(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function see(t,e){var r=t.getExtent(),n=Math.abs(r[1]-r[0])/t.scale.count();isNaN(n)&&(n=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function lee(t,e){return isNaN(t)||isNaN(e)}function uee(t){for(var e=t.length/2;e>0&&lee(t[e*2-2],t[e*2-1]);e--);return e-1}function aP(t,e){return[t[e*2],t[e*2+1]]}function cee(t,e,r){for(var n=t.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function XF(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var z=p.getState("emphasis").style;z.lineWidth=+p.style.lineWidth+1}pe(p).seriesIndex=r.seriesIndex,yt(p,B,R,O);var V=iP(r.get("smooth")),Y=r.get("smoothMonotone");if(p.setShape({smooth:V,smoothMonotone:Y,connectNulls:C}),y){var re=l.getCalculationInfo("stackedOnSeries"),te=0;y.useStyle(oe(c.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),re&&(te=iP(re.get("smooth"))),y.setShape({smooth:V,stackedOnSmooth:te,smoothMonotone:Y,connectNulls:C}),or(y,r,"areaStyle"),pe(y).seriesIndex=r.seriesIndex,yt(y,B,R,O)}var ve=function(Me){a._changePolyState(Me)};l.eachItemGraphicEl(function(Me){Me&&(Me.onHoverStateChange=ve)}),this._polyline.onHoverStateChange=ve,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=f,this._step=D,this._valueOrigin=S,r.get("triggerLineEvent")&&(this.packEventData(r,p),y&&this.packEventData(r,y))},e.prototype.packEventData=function(r,n){pe(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},e.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=Qs(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 c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var h=r.get("zlevel")||0,v=r.get("z")||0;u=new Sv(o,s),u.x=c,u.y=f,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Qe.prototype.highlight.call(this,r,n,i,a)},e.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Qs(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 Qe.prototype.downplay.call(this,r,n,i,a)},e.prototype._changePolyState=function(r){var n=this._polygon;mg(this._polyline,r),n&&mg(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new tee({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new $F({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.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,c=u.get("animationDuration");ae(c)&&(c=c(null));var f=u.get("animationDelay")||0,h=ae(f)?f(null):f;r.eachItemGraphicEl(function(v,d){var p=v;if(p){var y=[v.x,v.y],g=void 0,m=void 0,_=void 0;if(i)if(o){var S=i,w=n.pointToCoord(y);a?(g=S.startAngle,m=S.endAngle,_=-w[1]/180*Math.PI):(g=S.r0,m=S.r,_=w[0])}else{var x=i;a?(g=x.x,m=x.x+x.width,_=v.x):(g=x.y+x.height,m=x.y,_=v.y)}var b=m===g?0:(_-g)/(m-g);l&&(b=1-b);var C=ae(f)?f(d):c*b+h,T=p.getSymbolPath(),A=T.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}),T.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(XF(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 Oe({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=uee(l);c>=0&&(sr(s,Wt(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,h,v){return v!=null?GF(o,v):zu(o,f)},enableTextSetter:!0},fee(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var f=i.getLayout("points"),h=i.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,y=l.getBaseAxis(),g=y.isHorizontal(),m=y.inverse,_=n.shape,S=m?g?_.x:_.y+_.height:g?_.x+_.width:_.y,w=(g?p:0)*(m?-1:1),x=(g?0:-p)*(m?-1:1),b=g?"x":"y",C=cee(f,S,b),T=C.range,A=T[1]-T[0],D=void 0;if(A>=1){if(A>1&&!v){var L=aP(f,T[0]);u.attr({x:L[0]+w,y:L[1]+x}),o&&(D=h.getRawValue(T[0]))}else{var L=c.getPointOn(S,b);L&&u.attr({x:L[0]+w,y:L[1]+x});var P=h.getRawValue(T[0]),I=h.getRawValue(T[1]);o&&(D=hz(i,d,P,I,C.t))}a.lastFrameIndex=T[0]}else{var E=r===1||a.lastFrameIndex>0?T[0]:0,L=aP(f,E);o&&(D=h.getRawValue(E)),u.attr({x:L[0]+w,y:L[1]+x})}o&&rc(u).setLabelText(D)}},e.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,h=eee(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,y=h.stackedOnNext;if(o&&(v=Na(h.current,i,o,l),d=Na(h.stackedOnCurrent,i,o,l),p=Na(h.next,i,o,l),y=Na(h.stackedOnNext,i,o,l)),nP(v,p)>3e3||c&&nP(d,y)>3e3){u.stopAnimation(),u.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:y}));return}u.shape.__points=h.current,u.shape.points=v;var g={shape:{points:p}};h.current!==v&&(g.shape.__points=h.next),u.stopAnimation(),Ge(u,g,f),c&&(c.setShape({points:v,stackedOnPoints:d}),c.stopAnimation(),Ge(c,{shape:{stackedOnPoints:y}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var m=[],_=h.status,S=0;S<_.length;S++){var w=_[S].cmd;if(w==="="){var x=r.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var b=u.shape.__points,C=0;Ce&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(f||1),v=Math.round(s/h);if(isFinite(v)&&v>1){a==="lttb"&&e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/v));var d=void 0;Z(a)?d=dee[a]:ae(a)&&(d=a),d&&e.setData(i.downSample(i.mapDimension(u.dim),1/v,d,pee))}}}}}function gee(t){t.registerChartView(vee),t.registerSeriesModel(XJ),t.registerLayout(wv("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,ZF("line"))}var qF=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return Vi(null,this,{useEncodeDefaulter:!0})},e.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(h,v){if(h.type==="category"&&n!=null){var d=h.getTicksCoords(),p=o[v],y=n[v]==="x1"||n[v]==="y1";if(y&&(p+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[y?1:0]);return}for(var g=void 0,m=void 0,_=1,S=0;Sp){m=(w+g)/2;break}S===1&&(_=x-d[0].tickValue)}m==null&&(g?g&&(m=d[d.length-1].coord):m=d[0].coord),s[v]=h.toGlobalCoord(m)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=a.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(at);at.registerClass(qF);const Fg=qF;var yee=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return Vi(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},e.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=ko(Fg.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(Fg);const mee=yee;var _ee=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),See=function(t){N(e,t);function e(r){var n=t.call(this,r)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new _ee},e.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,c=n.startAngle,f=n.endAngle,h=n.clockwise,v=Math.PI*2,d=h?f-cMath.PI/2&&cs)return!0;s=f}return!1},e.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},e.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}))}},e.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})},e.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.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){Mh(a,r,pe(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Qe),oP={cartesian2d:function(t,e){var r=e.width<0?-1:1,n=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,a=t.y+t.height,o=A1(e.x,t.x),s=M1(e.x+e.width,i),l=A1(e.y,t.y),u=M1(e.y+e.height,a),c=si?s:o,e.y=f&&l>a?u:l,e.width=c?0:s-o,e.height=f?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),c||f},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}var i=M1(e.r,t.r),a=A1(e.r0,t.r0);e.r=i,e.r0=a;var o=i-a<0;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},sP={cartesian2d:function(t,e,r,n,i,a,o,s,l){var u=new Ne({shape:F({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(t,e,r,n,i,a,o,s,l){var u=!i&&l?Vg:Dr,c=new u({shape:n,z2:1});c.name="item";var f=KF(i);if(c.calculateTextPosition=xee(f,{isRoundCap:u===Vg}),a){var h=c.shape,v=i?"r":"endAngle",d={};h[v]=i?n.r0:n.startAngle,d[v]=n[v],(s?Ge:lt)(c,{shape:d},a)}return c}};function Tee(t,e){var r=t.get("realtimeSort",!0),n=e.getBaseAxis();if(r&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function lP(t,e,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?Ge:lt)(r,{shape:l},e,i,null);var c=e?t.baseAxis.model:null;(o?Ge:lt)(r,{shape:u},c,i)}function uP(t,e){for(var r=0;r0?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(t,e,r){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function Dee(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function KF(t){return function(e){var r=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(t)}function fP(t,e,r,n,i,a,o,s){var l=e.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var c=t.shape,f=Rs(n.getModel("itemStyle"),c,!0);F(c,f),t.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var h=n.getShallow("cursor");h&&t.attr("cursor",h);var v=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=Wt(n);sr(t,d,{labelFetcher:a,labelDataIndex:r,defaultText:zu(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=t.getTextContent();if(s&&p){var y=n.get(["label","position"]);t.textConfig.inside=y==="middle"?!0:null,wee(t,y==="outside"?v:y,KF(o),n.get(["label","rotate"]))}f5(p,d,a.getRawValue(r),function(m){return GF(e,m)});var g=n.getModel(["emphasis"]);yt(t,g.get("focus"),g.get("blurScope"),g.get("disabled")),or(t,n),Dee(i)&&(t.style.fill="none",t.style.stroke="none",M(t.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function Lee(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,a)}var Pee=function(){function t(){}return t}(),hP=function(t){N(e,t);function e(r){var n=t.call(this,r)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new Pee},e.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?r:null},30,!1);function Iee(t,e,r){for(var n=t.baseDimIdx,i=1-n,a=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,f=a.length/3;c=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function QF(t,e,r){if(hl(r,"cartesian2d")){var n=e,i=r.getArea();return{x:t?n.x:i.x,y:t?i.y:n.y,width:t?n.width:i.width,height:t?i.height:n.height}}else{var i=r.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:a.r0,r:t?i.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:Math.PI*2}}}function Eee(t,e,r){var n=t.type==="polar"?Dr:Ne;return new n({shape:QF(e,r,t),silent:!0,z2:0})}const Ree=Cee;function kee(t){t.registerChartView(Ree),t.registerSeriesModel(mee),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,ye(rF,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,nF("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,ZF("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var n=e.componentType||"series";r.eachComponent({mainType:n,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}var Rd=Math.PI*2,pP=Math.PI/180;function JF(t,e){return It(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function eV(t,e){var r=JF(t,e),n=t.get("center"),i=t.get("radius");G(i)||(i=[0,i]);var a=j(r.width,e.getWidth()),o=j(r.height,e.getHeight()),s=Math.min(a,o),l=j(i[0],s/2),u=j(i[1],s/2),c,f,h=t.coordinateSystem;if(h){var v=h.dataToPoint(n);c=v[0]||0,f=v[1]||0}else G(n)||(n=[n,n]),c=j(n[0],a)+r.x,f=j(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function Oee(t,e,r){e.eachSeriesByType(t,function(n){var i=n.getData(),a=i.mapDimension("value"),o=JF(n,r),s=eV(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,h=-n.get("startAngle")*pP,v=n.get("minAngle")*pP,d=0;i.each(a,function(A){!isNaN(A)&&d++});var p=i.getSum(a),y=Math.PI/(p||d)*2,g=n.get("clockwise"),m=n.get("roseType"),_=n.get("stillShowZeroSum"),S=i.getDataExtent(a);S[0]=0;var w=Rd,x=0,b=h,C=g?1:-1;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(A,D){var L;if(isNaN(A)){i.setItemLayout(D,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:l,cy:u,r0:f,r:m?NaN:c});return}m!=="area"?L=p===0&&_?y:A*y:L=Rd/d,Lr?g:y,w=Math.abs(_.label.y-r);if(w>=S.maxY){var x=_.label.x-e-_.len2*i,b=n+_.len,C=Math.abs(x)t.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var p=n.getBoundingRect();a.width=p.width;var y=(n.style.margin||0)+2.1;a.height=p.height+y,a.y-=(a.height-f)/2}}}function D1(t){return t.position==="center"}function zee(t){var e=t.getData(),r=[],n,i,a=!1,o=(t.get("minShowLabelAngle")||0)*Nee,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,f=s.y,h=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var b in x.states)if(x.states[b].ignore===!1)return!0;return!1}e.each(function(x){var b=e.getItemGraphicEl(x),C=b.shape,T=b.getTextContent(),A=b.getTextGuideLine(),D=e.getItemModel(x),L=D.getModel("label"),P=L.get("position")||D.get(["emphasis","label","position"]),I=L.get("distanceToLabelLine"),E=L.get("alignTo"),k=j(L.get("edgeDistance"),u),B=L.get("bleedMargin"),R=D.getModel("labelLine"),O=R.get("length");O=j(O,u);var z=R.get("length2");if(z=j(z,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":Y>0?"left":"right"}var ct=Math.PI,ot=0,mt=L.get("rotate");if(Fe(mt))ot=mt*(ct/180);else if(P==="center")ot=0;else if(mt==="radial"||mt===!0){var sn=Y<0?-V+ct:-V;ot=sn}else if(mt==="tangential"&&P!=="outside"&&P!=="outer"){var Jt=Math.atan2(Y,re);Jt<0&&(Jt=ct*2+Jt);var No=re>0;No&&(Jt=ct+Jt),ot=Jt-ct}if(a=!!ot,T.x=te,T.y=ve,T.rotation=ot,T.setStyle({verticalAlign:"middle"}),ue){T.setStyle({align:me});var Ta=T.states.select;Ta&&(Ta.x+=T.x,Ta.y+=T.y)}else{var fi=T.getBoundingRect().clone();fi.applyTransform(T.getComputedTransform());var Ca=(T.style.margin||0)+2.1;fi.y-=Ca/2,fi.height+=Ca,r.push({label:T,labelLine:A,position:P,len:O,len2:z,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new we(Y,re),linePoints:Me,textAlign:me,labelDistance:I,labelAlignTo:E,edgeDistance:k,bleedMargin:B,rect:fi,unconstrainedWidth:fi.width,labelStyleWidth:T.style.width})}b.setTextConfig({inside:ue})}}),!a&&t.get("avoidLabelOverlap")&&Bee(r,n,i,l,u,h,c,f);for(var p=0;p0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=a.r0}},e.type="pie",e}(Qe);const Gee=Vee;function vc(t,e,r){e=G(e)&&{coordDimensions:e}||F({encodeDefine:t.getEncode()},e);var n=t.getSource(),i=fc(n,e).dimensions,a=new gr(i,t);return a.initData(n,r),a}var Hee=function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,r)},t}();const Cv=Hee;var Uee=Ve(),Wee=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Cv(Q(this.getData,this),Q(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return vc(this,{coordDimensions:["value"],encodeDefaulter:ye(DC,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),i=Uee(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=nz(o,n.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){Ks(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},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(at);const $ee=Wee;function Yee(t){return{seriesType:t,reset:function(e,r){var n=e.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(Fe(o)&&!isNaN(o)&&o<0)})}}}function jee(t){t.registerChartView(Gee),t.registerSeriesModel($ee),g3("pie",t.registerAction),t.registerLayout(ye(Oee,"pie")),t.registerProcessor(bv("pie")),t.registerProcessor(Yee("pie"))}var Xee=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r,n){return Vi(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(at);const Zee=Xee;var rV=4,qee=function(){function t(){}return t}(),Kee=function(t){N(e,t);function e(r){var n=t.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new qee},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.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]=0;u--){var c=u*2,f=a[c]-s/2,h=a[c+1]-l/2;if(r>=f&&n>=h&&r<=f+s&&n<=h+l)return u}return-1},e.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},e.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,c=-1/0,f=-1/0,h=0;h=0&&(u.dataIndex=f+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();const Jee=Qee;var ete=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,{clipShape:this._getClipShape(r)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},e.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=wv("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},e.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},e.prototype._getClipShape=function(r){var n=r.coordinateSystem,i=n&&n.getArea&&n.getArea();return r.get("clip",!0)?i:null},e.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 Jee:new xv,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Qe);const tte=ete;var rte=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(ke);const nte=rte;var Yx=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Pt).models[0]},e.type="cartesian2dAxis",e}(ke);Ct(Yx,hc);var nV={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},ite=Se({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},nV),uT=Se({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},nV),ate=Se({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},uT),ote=oe({logBase:10},uT);const iV={category:ite,value:uT,time:ate,log:ote};var ste={value:1,category:1,time:1,log:1};function Fu(t,e,r,n){M(ste,function(i,a){var o=Se(Se({},iV[a],!0),n,!0),s=function(l){N(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var h=Ph(this),v=h?ic(c):{},d=f.getTheme();Se(c,d.get(a+"Axis")),Se(c,this.getDefaultOption()),c.type=yP(c),h&&wo(c,v,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=zx.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+a,u.defaultOption=o,u}(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",yP)}function yP(t){return t.type||(t.data?"category":"value")}var lte=function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return H(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Ye(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t}();const ute=lte;var jx=["x","y"];function mP(t){return t.type==="interval"||t.type==="time"}var cte=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=jx,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!mP(r)||!mP(n))){var i=r.getExtent(),a=n.getExtent(),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 c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,h=o[0]-i[0]*c,v=o[1]-a[0]*f,d=this._transform=[c,0,0,f,h,v];this._invTransform=ul([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.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]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new Ce(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.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 Kt(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},e.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},e.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return Kt(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},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(){var r=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(r[0],r[1]),a=Math.min(n[0],n[1]),o=Math.max(r[0],r[1])-i,s=Math.max(n[0],n[1])-a;return new Ce(i,a,o,s)},e}(ute),fte=function(t){N(e,t);function e(r,n,i,a,o){var s=t.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.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},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e}(zn);const hte=fte;function Xx(t,e,r){r=r||{};var n=t.coordinateSystem,i=e.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=e.get("offset")||0,d=u==="x"?[f[2]-v,f[3]+v]:[f[0]-v,f[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(p,d[1]),d[0])}a.position=[u==="y"?d[h[l]]:f[0],u==="x"?d[h[l]]:f[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var y={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=y[s],a.labelOffset=o?d[h[s]]-d[h.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Vt(r.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var g=e.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-g:g,a.z2=1,a}function _P(t){return t.get("coordinateSystem")==="cartesian2d"}function SP(t){var e={xAxisModel:null,yAxisModel:null};return M(e,function(r,n){var i=n.replace(/Model$/,""),a=t.getReferringComponents(i,Pt).models[0];e[n]=a}),e}var L1=Math.log;function aV(t,e,r){var n=bo.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=cF(t,e),u=l.extent,c=l.fixMin,f=l.fixMax;if(t.type==="log"){var h=L1(t.base);u=[L1(u[0])/h,L1(u[1])/h]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var v=n.getExtent.call(t);c&&(u[0]=v[0]),f&&(u[1]=v[1]);var d=n.getInterval.call(t),p=u[0],y=u[1];if(c&&f)d=(y-p)/o;else if(c)for(y=u[0]+d*o;yu[0]&&isFinite(p)&&isFinite(u[0]);)d=p1(d),p=u[1]-d*o;else{var g=t.getTicks().length-1;g>o&&(d=p1(d));var m=d*o;y=Math.ceil(u[1]/d)*d,p=gt(y-m),p<0&&u[0]>=0?(p=0,y=gt(m)):y>0&&u[1]<=0&&(y=0,p=-gt(m))}var _=(i[0].value-a[0].value)/s,S=(i[o].value-a[o].value)/s;n.setExtent.call(t,p+d*_,y+d*S),n.setInterval.call(t,d),(_||S)&&n.setNiceExtent.call(t,p+d,y-d)}var vte=function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=jx,this._initCartesian(e,r,n),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var n=this._axesMap;this._updateScale(e,this.model);function i(o){var s,l=Ie(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var h=+l[f],v=o[h],d=v.model,p=v.scale;Fx(p)&&d.get("alignTicks")&&d.get("interval")==null?c.push(v):(rl(p,d),Fx(p)&&(s=v))}c.length&&(s||(s=c.pop(),rl(s.scale,s.model)),M(c,function(y){aV(y.scale,y.model,s.scale)}))}}i(n.x),i(n.y);var a={};M(n.x,function(o){xP(n,"y",o,a)}),M(n.y,function(o){xP(n,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var i=e.getBoxLayoutParams(),a=!n&&e.get("containLabel"),o=It(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(M(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=vQ(u);if(c){var f=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+h,u.position==="top"?o.y+=c.height+h:u.position==="left"&&(o.x+=c.width+h)}}}),l()),M(this._coordsList,function(u){u.calcAffineTransform()});function l(){M(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(f[h],f[1-h]),dte(u,c?o.x:o.y)})}},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}se(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):wh(i-Qa)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t}(),bP={axisLine:function(t,e,r,n){var i=e.get(["axisLine","show"]);if(i==="auto"&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),!!i){var a=e.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(Kt(s,s,o),Kt(l,l,o));var c=F({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Gt({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Ou(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var h=e.get(["axisLine","symbol"]);if(h!=null){var v=e.get(["axisLine","symbolSize"]);Z(h)&&(h=[h,h]),(Z(v)||Fe(v))&&(v=[v,v]);var d=cc(e.get(["axisLine","symbolOffset"])||0,v),p=v[0],y=v[1];M([{rotate:t.rotation+Math.PI/2,offset:d[0],r:0},{rotate:t.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,m){if(h[m]!=="none"&&h[m]!=null){var _=Mt(h[m],-p/2,-y/2,p,y,c.stroke,!0),S=g.r+g.offset,w=u?l:s;_.attr({rotation:g.rotate,x:w[0]+S*Math.cos(t.rotation),y:w[1]-S*Math.sin(t.rotation),silent:!0,z2:11}),r.add(_)}})}}},axisTickLabel:function(t,e,r,n){var i=mte(r,n,e,t),a=Ste(r,n,e,t);if(yte(e,a,i),_te(r,n,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=bF(H(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));AF(o)}},axisName:function(t,e,r,n){var i=Vt(t.axisName,e.get("name"));if(i){var a=e.get("nameLocation"),o=t.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,TP(a)?t.labelOffset+o*l:0],h,v=e.get("nameRotate");v!=null&&(v=v*Qa/180);var d;TP(a)?h=Hs.innerTextLayout(t.rotation,v??t.rotation,o):(h=gte(t.rotation,a,v||0,u),d=t.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),y=e.get("nameTruncate",!0)||{},g=y.ellipsis,m=Vt(t.nameTruncateMaxWidth,y.maxWidth,d),_=new Oe({x:f[0],y:f[1],rotation:h.rotation,silent:Hs.isLabelSilent(e),style:tt(s,{text:i,font:p,overflow:"truncate",width:m,ellipsis:g,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(tc({el:_,componentModel:e,itemName:i}),_.__fullText=i,_.anid="name",e.get("triggerEvent")){var S=Hs.makeAxisEventDataBase(e);S.targetType="axisName",S.name=i,pe(_).eventData=S}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function gte(t,e,r,n){var i=eC(r-t),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return wh(i-Qa/2)?(o=l?"bottom":"top",a="center"):wh(i-Qa*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",iQa/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function yte(t,e,r){if(!fF(t.axis)){var n=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);e=e||[],r=r||[];var a=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=r[0],c=r[1],f=r[r.length-1],h=r[r.length-2];n===!1?(fn(a),fn(u)):CP(a,o)&&(n?(fn(o),fn(c)):(fn(a),fn(u))),i===!1?(fn(s),fn(f)):CP(l,s)&&(i?(fn(l),fn(h)):(fn(s),fn(f)))}}function fn(t){t&&(t.ignore=!0)}function CP(t,e){var r=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(!(!r||!n)){var i=av([]);return Eo(i,i,-t.rotation),r.applyTransform(Ri([],i,t.getLocalTransform())),n.applyTransform(Ri([],i,e.getLocalTransform())),r.intersect(n)}}function TP(t){return t==="middle"||t==="center"}function oV(t,e,r,n,i){for(var a=[],o=[],s=[],l=0;l=0||t===e}function Ate(t){var e=cT(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=Zx(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=oe({color:d.color},l));var y=Se(le(d),{boundaryGap:r,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:p,triggerEvent:h},!1);if(Z(c)){var g=y.name;y.name=c.replace("{value}",g??"")}else ae(c)&&(y.name=c(y.name,y));var m=new qe(y,null,this.ecModel);return Ct(m,hc.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=v},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Se({lineStyle:{color:"#bbb"}},$c.axisLine),axisLabel:kd($c.axisLabel,!1),axisTick:kd($c.axisTick,!1),splitLine:kd($c.splitLine,!0),splitArea:kd($c.splitArea,!0),indicator:[]},e}(ke);const Hte=Gte;var Ute=["axisLine","axisTickLabel","axisName"],Wte=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=this.group;a.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},e.prototype._buildAxes=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes(),a=H(i,function(o){var s=o.model.get("showName")?o.name:"",l=new ma(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});M(a,function(o){M(Ute,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),h=l.get("color"),v=u.get("color"),d=G(h)?h:[h],p=G(v)?v:[v],y=[],g=[];function m(E,k,B){var R=B%k.length;return E[R]=E[R]||[],R}if(a==="circle")for(var _=i[0].getTicksCoords(),S=n.cx,w=n.cy,x=0;x<_.length;x++){if(c){var b=m(y,d,x);y[b].push(new li({shape:{cx:S,cy:w,r:_[x].coord}}))}if(f&&x<_.length-1){var b=m(g,p,x);g[b].push(new cv({shape:{cx:S,cy:w,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var C,T=H(i,function(E,k){var B=E.getTicksCoords();return C=C==null?B.length-1:Math.min(B.length-1,C),H(B,function(R){return n.coordToPoint(R.coord,k)})}),A=[],x=0;x<=C;x++){for(var D=[],L=0;L3?1.4:o>1?1.2:1.1,c=a>0?u:1/u;E1(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var f=Math.abs(a),h=(a>0?1:-1)*(f>3?.4:f>1?.15:.05);E1(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(r){if(!IP(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;E1(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},e}(kn);function E1(t,e,r,n,i){t.pointerChecker&&t.pointerChecker(n,i.originX,i.originY)&&(va(n.event),hV(t,e,r,n,i))}function hV(t,e,r,n,i){i.isAvailableBehavior=Q(Dp,null,r,n),t.trigger(e,i)}function Dp(t,e,r){var n=r[t];return!t||n&&(!Z(n)||e.event[n+"Key"])}const Tv=ere;function hT(t,e,r){var n=t.target;n.x+=e,n.y+=r,n.dirty()}function vT(t,e,r,n){var i=t.target,a=t.zoomLimit,o=t.zoom=t.zoom||1;if(o*=e,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/t.zoom;t.zoom=o,i.x-=(r-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var tre={axisPointer:1,tooltip:1,brush:1};function gm(t,e,r){var n=e.getComponentByElement(t.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!tre.hasOwnProperty(n.mainType)&&i&&i.model!==r}function vV(t){if(Z(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}var r=t;for(r.nodeType===9&&(r=r.firstChild);r.nodeName.toLowerCase()!=="svg"||r.nodeType!==1;)r=r.nextSibling;return r}var R1,Gg={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},EP=Ie(Gg),Hg={"alignment-baseline":"textBaseline","stop-color":"stopColor"},RP=Ie(Hg),rre=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(e,r){r=r||{};var n=vV(e);this._defsUsePending=[];var i=new fe;this._root=i;var a=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||r.width),l=parseFloat(n.getAttribute("height")||r.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),jr(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;are(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var h=ym(o);h.length>=4&&(c={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(c&&s!=null&&l!=null&&(f=pV(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var v=i;i=new fe,i.add(v),v.scaleX=v.scaleY=f.scale,v.x=f.x,v.y=f.y}return!r.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new Ne({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:a}},t.prototype._parseNode=function(e,r,n,i,a,o){var s=e.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=r;else{if(!a){var c=R1[s];if(c&&ee(R1,s)){l=c.call(this,e,r);var f=e.getAttribute("name");if(f){var h={name:f,namedFrom:null,svgNodeTagLower:s,el:l};n.push(h),s==="g"&&(u=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});r.add(l)}}var v=kP[s];if(v&&ee(kP,s)){var d=v.call(this,e),p=e.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var y=e.firstChild;y;)y.nodeType===1?this._parseNode(y,l,n,u,a,o):y.nodeType===3&&o&&this._parseText(y,l),y=y.nextSibling},t.prototype._parseText=function(e,r){var n=new Ch({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});hn(r,n),jr(e,n,this._defsUsePending,!1,!1),nre(n,r);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,r.add(n),n},t.internalField=function(){R1={g:function(e,r){var n=new fe;return hn(r,n),jr(e,n,this._defsUsePending,!1,!1),n},rect:function(e,r){var n=new Ne;return hn(r,n),jr(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,r){var n=new li;return hn(r,n),jr(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,r){var n=new Gt;return hn(r,n),jr(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,r){var n=new Xy;return hn(r,n),jr(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,r){var n=e.getAttribute("points"),i;n&&(i=BP(n));var a=new Lr({shape:{points:i||[]},silent:!0});return hn(r,a),jr(e,a,this._defsUsePending,!1,!1),a},polyline:function(e,r){var n=e.getAttribute("points"),i;n&&(i=BP(n));var a=new Er({shape:{points:i||[]},silent:!0});return hn(r,a),jr(e,a,this._defsUsePending,!1,!1),a},image:function(e,r){var n=new Qt;return hn(r,n),jr(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,r){var n=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new fe;return hn(r,s),jr(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,r){var n=e.getAttribute("x"),i=e.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new fe;return hn(r,s),jr(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(e,r){var n=e.getAttribute("d")||"",i=Uz(n);return hn(r,i),jr(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),t}(),kP={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),r=parseInt(t.getAttribute("y1")||"0",10),n=parseInt(t.getAttribute("x2")||"10",10),i=parseInt(t.getAttribute("y2")||"0",10),a=new Qu(e,r,n,i);return OP(t,a),NP(t,a),a},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),r=parseInt(t.getAttribute("cy")||"0",10),n=parseInt(t.getAttribute("r")||"0",10),i=new vC(e,r,n);return OP(t,i),NP(t,i),i}};function OP(t,e){var r=t.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(e.global=!0)}function NP(t,e){for(var r=t.firstChild;r;){if(r.nodeType===1&&r.nodeName.toLocaleLowerCase()==="stop"){var n=r.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var a={};dV(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function hn(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),oe(e.__inheritedStyle,t.__inheritedStyle))}function BP(t){for(var e=ym(t),r=[],n=0;n0;a-=2){var o=n[a],s=n[a-1],l=ym(o);switch(i=i||rn(),s){case"translate":oi(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":zy(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Eo(i,i,-parseFloat(l[0])*k1);break;case"skewX":var u=Math.tan(parseFloat(l[0])*k1);Ri(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*k1);Ri(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}e.setLocalTransform(i)}}var FP=/([^\s:;]+)\s*:\s*([^:;]+)/g;function dV(t,e,r){var n=t.getAttribute("style");if(n){FP.lastIndex=0;for(var i;(i=FP.exec(n))!=null;){var a=i[1],o=ee(Gg,a)?Gg[a]:null;o&&(e[o]=i[2]);var s=ee(Hg,a)?Hg[a]:null;s&&(r[s]=i[2])}}}function ure(t,e,r){for(var n=0;n0,y={api:n,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(y):l.resourceType==="geoSVG"&&this._buildSVG(y),this._updateController(e,r,n),this._updateMapSelectHandler(e,u,n,i)},t.prototype._buildGeoJSON=function(e){var r=this._regionsGroupByName=ie(),n=ie(),i=this._regionsGroup,a=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(v,d){return d&&(v=d(v)),v&&[v[0]*a.scaleX+a.x,v[1]*a.scaleY+a.y]}function f(v){for(var d=[],p=!u&&l&&l.project,y=0;y=0)&&(h=i);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;sr(e,Wt(n),{labelFetcher:h,labelDataIndex:f,defaultText:r},v);var d=e.getTextContent();if(d&&(gV(d).ignore=d.ignore,e.textConfig&&o)){var p=e.getBoundingRect().clone();e.textConfig.layoutRect=p,e.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function WP(t,e,r,n,i,a){t.data?t.data.setItemGraphicEl(a,e):pe(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:r,region:n&&n.option||{}}}function $P(t,e,r,n,i){t.data||tc({el:e,componentModel:i,itemName:r,itemTooltipOption:n.get("tooltip")})}function YP(t,e,r,n,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return yt(e,o,a.get("blurScope"),a.get("disabled")),t.isGeo&&pj(e,i,r),o}function jP(t,e,r){var n=[],i;function a(){i=[]}function o(){i.length&&(n.push(i),i=[])}var s=e({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!r&&s.polygonStart(),M(t,function(l){s.lineStart();for(var u=0;u-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(at);const Ire=Pre;function Ere(t,e){var r={};return M(t,function(n){n.each(n.mapDimension("value"),function(i,a){var o="ec-"+n.getName(a);r[o]=r[o]||[],isNaN(i)||r[o].push(i)})}),t[0].map(t[0].mapDimension("value"),function(n,i){for(var a="ec-"+t[0].getName(i),o=0,s=1/0,l=-1/0,u=r[a].length,c=0;c1?(S.width=_,S.height=_/y):(S.height=_,S.width=_*y),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var w=t.getBoxLayoutParams();w.aspect=y,S=It(w,{width:d,height:p})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}function Bre(t,e){M(e.get("geoCoord"),function(r,n){t.addGeoCoord(n,r)})}var zre=function(){function t(){this.dimensions=mV}return t.prototype.create=function(e,r){var n=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new KP(l+s,l,F({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=QP,u.resize(o,r)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var a={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),M(a,function(o,s){var l=H(o,function(c){return c.get("nameMap")}),u=new KP(s,s,F({nameMap:ky(l)},i(o[0])));u.zoomLimit=Vt.apply(null,H(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=QP,u.resize(o[0],r),M(o,function(c){c.coordinateSystem=u,Bre(u,c)})}),n},t.prototype.getFilledRegions=function(e,r,n,i){for(var a=(e||[]).slice(),o=ie(),s=0;s=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(s)}}function jre(t,e){var r=t.isExpand?t.children:[],n=t.parentNode.children,i=t.hierNode.i?n[t.hierNode.i-1]:null;if(r.length){qre(t);var a=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;i?(t.hierNode.prelim=i.hierNode.prelim+e(t,i),t.hierNode.modifier=t.hierNode.prelim-a):t.hierNode.prelim=a}else i&&(t.hierNode.prelim=i.hierNode.prelim+e(t,i));t.parentNode.hierNode.defaultAncestor=Kre(t,i,t.parentNode.hierNode.defaultAncestor||n[0],e)}function Xre(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function eI(t){return arguments.length?t:ene}function pf(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function Zre(t,e){return It(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function qre(t){for(var e=t.children,r=e.length,n=0,i=0;--r>=0;){var a=e[r];a.hierNode.prelim+=n,a.hierNode.modifier+=n,i+=a.hierNode.change,n+=a.hierNode.shift+i}}function Kre(t,e,r,n){if(e){for(var i=t,a=t,o=a.parentNode.children[0],s=e,l=i.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=O1(s),a=N1(a),s&&a;){i=O1(i),o=N1(o),i.hierNode.ancestor=t;var h=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);h>0&&(Jre(Qre(s,t,r),t,h),u+=h,l+=h),f+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!O1(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!N1(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=t)}return r}function O1(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function N1(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function Qre(t,e,r){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:r}function Jre(t,e,r){var n=r/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=r,e.hierNode.modifier+=r,e.hierNode.prelim+=r,t.hierNode.change+=n}function ene(t,e){return t.parentNode===e.parentNode?1:2}var tne=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),rne=function(t){N(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new tne},e.prototype.buildPath=function(r,n){var i=n.childPoints,a=i.length,o=n.parentPoint,s=i[0],l=i[a-1];if(a===1){r.moveTo(o[0],o[1]),r.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,h=j(n.forkPosition,1),v=[];v[c]=o[c],v[f]=o[f]+(l[f]-o[f])*h,r.moveTo(o[0],o[1]),r.lineTo(v[0],v[1]),r.moveTo(s[0],s[1]),v[c]=s[c],r.lineTo(v[0],v[1]),v[c]=l[c],r.lineTo(v[0],v[1]),r.lineTo(l[0],l[1]);for(var d=1;dm.x,w||(S=S-Math.PI));var b=w?"left":"right",C=s.getModel("label"),T=C.get("rotate"),A=T*(Math.PI/180),D=y.getTextContent();D&&(y.setTextConfig({position:C.get("position")||b,rotation:T==null?-S:A,origin:"center"}),D.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),P=L==="relative"?ph(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;P&&(pe(r).focus=P),ine(i,o,c,r,d,v,p,n),r.__edge&&(r.onHoverStateChange=function(I){if(I!=="blur"){var E=o.parentNode&&t.getItemGraphicEl(o.parentNode.dataIndex);E&&E.hoverState===uv||mg(r.__edge,I)}})}function ine(t,e,r,n,i,a,o,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),f=t.getOrient(),h=t.get(["lineStyle","curveness"]),v=t.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=n.__edge;if(u==="curve")e.parentNode&&e.parentNode!==r&&(p||(p=n.__edge=new fv({shape:Qx(c,f,h,i,i)})),Ge(p,{shape:Qx(c,f,h,a,o)},t));else if(u==="polyline"&&c==="orthogonal"&&e!==r&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var y=e.children,g=[],m=0;mr&&(r=i.height)}this.height=r+1},t.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var r=0,n=this.children,i=n.length;r=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,r)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(e)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(e,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,r)},t.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,r=0;r=0){var n=r.getData().tree.root,i=t.targetNode;if(Z(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var a=t.targetNodeId;if(a!=null&&(i=n.getNodeById(a)))return{node:i}}}function TV(t){for(var e=[];t;)t=t.parentNode,t&&e.push(t);return e.reverse()}function mT(t,e){var r=TV(t);return Te(r,e)>=0}function mm(t,e){for(var r=[];t;){var n=t.dataIndex;r.push({name:t.name,dataIndex:n,value:e.getRawValue(n)}),t=t.parentNode}return r.reverse(),r}var pne=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return e.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},i=r.leaves||{},a=new qe(i,this,this.ecModel),o=yT.createTree(n,this,s);function s(f){f.wrapMethod("getItemModel",function(h,v){var d=o.getNodeByDataIndex(v);return d&&d.children.length&&d.isExpand||(h.parentModel=a),h})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=r.expandAndCollapse,c=u&&r.initialTreeDepth>=0?r.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var h=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=h&&h.collapsed!=null?!h.collapsed:f.depth<=c}),o.data},e.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},e.prototype.setZoom=function(r){this.option.zoom=r},e.prototype.setCenter=function(r){this.option.center=r},e.prototype.formatTooltip=function(r,n,i){for(var a=this.getData().tree,o=a.root.children[0],s=a.getNodeByDataIndex(r),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return $t("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(r){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=mm(i,this),n.collapsed=!i.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(at);const gne=pne;function yne(t,e,r){for(var n=[t],i=[],a;a=n.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s=0;a--)r.push(i[a])}}function mne(t,e){t.eachSeriesByType("tree",function(r){_ne(r,e)})}function _ne(t,e){var r=Zre(t,e);t.layoutInfo=r;var n=t.get("layout"),i=0,a=0,o=null;n==="radial"?(i=2*Math.PI,a=Math.min(r.height,r.width)/2,o=eI(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(i=r.width,a=r.height,o=eI());var s=t.getData().tree.root,l=s.children[0];if(l){Yre(s),yne(l,jre,o),s.hierNode.modifier=-l.hierNode.prelim,jc(l,Xre);var u=l,c=l,f=l;jc(l,function(_){var S=_.getLayout().x;Sc.getLayout().x&&(c=_),_.depth>f.depth&&(f=_)});var h=u===c?1:o(u,c)/2,v=h-u.getLayout().x,d=0,p=0,y=0,g=0;if(n==="radial")d=i/(c.getLayout().x+h+v),p=a/(f.depth-1||1),jc(l,function(_){y=(_.getLayout().x+v)*d,g=(_.depth-1)*p;var S=pf(y,g);_.setLayout({x:S.x,y:S.y,rawX:y,rawY:g},!0)});else{var m=t.getOrient();m==="RL"||m==="LR"?(p=a/(c.getLayout().x+h+v),d=i/(f.depth-1||1),jc(l,function(_){g=(_.getLayout().x+v)*p,y=m==="LR"?(_.depth-1)*d:i-(_.depth-1)*d,_.setLayout({x:y,y:g},!0)})):(m==="TB"||m==="BT")&&(d=i/(c.getLayout().x+h+v),p=a/(f.depth-1||1),jc(l,function(_){y=(_.getLayout().x+v)*d,g=m==="TB"?(_.depth-1)*p:a-(_.depth-1)*p,_.setLayout({x:y,y:g},!0)}))}}}function Sne(t){t.eachSeriesByType("tree",function(e){var r=e.getData(),n=r.tree;n.eachNode(function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(i.dataIndex,"style");F(s,o)})})}function xne(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,r){r.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var i=e.dataIndex,a=n.getData().tree,o=a.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,r,n){r.eachComponent({mainType:"series",subType:"tree",query:e},function(i){var a=i.coordinateSystem,o=pT(a,e,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function wne(t){t.registerChartView(ane),t.registerSeriesModel(gne),t.registerLayout(mne),t.registerVisual(Sne),xne(t)}var aI=["treemapZoomToNode","treemapRender","treemapMove"];function bne(t){for(var e=0;e1;)a=a.parentNode;var o=Ax(t.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var Cne=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.preventUsingHoverLayer=!0,r}return e.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};MV(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new qe({itemStyle:o},this,n);a=r.levels=Tne(a,n);var l=H(a||[],function(f){return new qe(f,s,n)},this),u=yT.createTree(i,this,c);function c(f){f.wrapMethod("getItemModel",function(h,v){var d=u.getNodeByDataIndex(v),p=d?l[d.depth]:null;return h.parentModel=p||s,h})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return $t("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(r){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=mm(i,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},F(this.layoutInfo,r)},e.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=ie(),this._idIndexMapCount=0);var i=n.get(r);return i==null&&n.set(r,i=this._idIndexMapCount++),i},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){AV(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(at);function MV(t){var e=0;M(t.children,function(n){MV(n);var i=n.value;G(i)&&(i=i[0]),e+=i});var r=t.value;G(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=e),r<0&&(r=0),G(t.value)?t.value[0]=r:t.value=r}function Tne(t,e){var r=Ke(e.get("color")),n=Ke(e.get(["aria","decal","decals"]));if(r){t=t||[];var i,a;M(t,function(s){var l=new qe(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(a=!0)});var o=t[0]||(t[0]={});return i||(o.color=r.slice()),!a&&n&&(o.decal=n.slice()),t}}const Ane=Cne;var Mne=8,oI=8,B1=5,Dne=function(){function t(e){this.group=new fe,e.add(this.group)}return t.prototype.render=function(e,r,n,i){var a=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!n)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,f,u),this._renderContent(e,f,s,l,u,c,i),im(o,f.pos,f.box)}},t.prototype._prepare=function(e,r,n){for(var i=e;i;i=i.parentNode){var a=Ot(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+Mne*2,r.emptyItemWidth);r.totalWidth+=s+oI,r.renderList.push({node:i,text:a,width:s})}},t.prototype._renderContent=function(e,r,n,i,a,o,s){for(var l=0,u=r.emptyItemWidth,c=e.get(["breadcrumb","height"]),f=wX(r.pos,r.box),h=r.totalWidth,v=r.renderList,d=i.getModel("itemStyle").getItemStyle(),p=v.length-1;p>=0;p--){var y=v[p],g=y.node,m=y.width,_=y.text;h>f.width&&(h-=m-u,m=u,_=null);var S=new Lr({shape:{points:Lne(l,0,m,c,p===v.length-1,p===0)},style:oe(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Oe({style:tt(a,{text:_})}),textConfig:{position:"inside"},z2:Ku*1e4,onclick:ye(s,g)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=tt(o,{text:_}),S.ensureState("emphasis").style=d,yt(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),Pne(S,e,g),l+=m+oI}},t.prototype.remove=function(){this.group.removeAll()},t}();function Lne(t,e,r,n,i,a){var o=[[i?t:t-B1,e],[t+r,e],[t+r,e+n],[i?t:t-B1,e+n]];return!a&&o.splice(2,0,[t+r+B1,e+n/2]),!i&&o.push([t,e+n/2]),o}function Pne(t,e,r){pe(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&mm(r,e)}}const Ine=Dne;var Ene=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(e,r,n,i,a){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:r,duration:n,delay:i,easing:a}),!0)},t.prototype.finished=function(e){return this._finishedCallback=e,this},t.prototype.start=function(){for(var e=this,r=this._storage.length,n=function(){r--,r<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,a=this._storage.length;ilI||Math.abs(r.dy)>lI)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+r.dx,y:i.y+r.dy,width:i.width,height:i.height}})}},e.prototype._onZoom=function(r){var n=r.originX,i=r.originY;if(this._state!=="animating"){var a=this.seriesModel.getData().tree.root;if(!a)return;var o=a.getLayout();if(!o)return;var s=new Ce(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;n-=l.x,i-=l.y;var u=rn();oi(u,u,[-n,-i]),zy(u,u,[r.scale,r.scale]),oi(u,u,[n,i]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(r){var n=this;r.on("click",function(i){if(n._state==="ready"){var a=n.seriesModel.get("nodeClick",!0);if(a){var o=n.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(a==="zoomToNode")n._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&Cg(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(r,n,i){var a=this;i||(i=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),i||(i={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Ine(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(mT(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Xc(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},e.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},e.prototype.findTarget=function(r,n){var i,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(r,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},e.type="treemap",e}(Qe);function Xc(){return{nodeGroup:[],background:[],content:[]}}function zne(t,e,r,n,i,a,o,s,l,u){if(!o)return;var c=o.getLayout(),f=t.getData(),h=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var v=c.width,d=c.height,p=c.borderWidth,y=c.invisible,g=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=c.upperHeight,w=_&&_.length,x=h.getModel("itemStyle"),b=h.getModel(["emphasis","itemStyle"]),C=h.getModel(["blur","itemStyle"]),T=h.getModel(["select","itemStyle"]),A=x.get("borderRadius")||0,D=te("nodeGroup",Jx);if(!D)return;if(l.add(D),D.x=c.x||0,D.y=c.y||0,D.markRedraw(),Ug(D).nodeWidth=v,Ug(D).nodeHeight=d,c.isAboveViewRoot)return D;var L=te("background",sI,u,One);L&&O(D,L,w&&c.upperLabelHeight);var P=h.getModel("emphasis"),I=P.get("focus"),E=P.get("blurScope"),k=P.get("disabled"),B=I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():I;if(w)Ah(D)&&Ds(D,!1),L&&(Ds(L,!k),f.setItemGraphicEl(o.dataIndex,L),yx(L,B,E));else{var R=te("content",sI,u,Nne);R&&z(D,R),L.disableMorphing=!0,L&&Ah(L)&&Ds(L,!1),Ds(D,!k),f.setItemGraphicEl(o.dataIndex,D),yx(D,B,E)}return D;function O(me,ue,De){var xe=pe(ue);if(xe.dataIndex=o.dataIndex,xe.seriesIndex=t.seriesIndex,ue.setShape({x:0,y:0,width:v,height:d,r:A}),y)V(ue);else{ue.invisible=!1;var ne=o.getVisual("style"),de=ne.stroke,rt=fI(x);rt.fill=de;var Ee=vs(b);Ee.fill=b.get("borderColor");var ct=vs(C);ct.fill=C.get("borderColor");var ot=vs(T);if(ot.fill=T.get("borderColor"),De){var mt=v-2*p;Y(ue,de,ne.opacity,{x:p,y:0,width:mt,height:S})}else ue.removeTextContent();ue.setStyle(rt),ue.ensureState("emphasis").style=Ee,ue.ensureState("blur").style=ct,ue.ensureState("select").style=ot,el(ue)}me.add(ue)}function z(me,ue){var De=pe(ue);De.dataIndex=o.dataIndex,De.seriesIndex=t.seriesIndex;var xe=Math.max(v-2*p,0),ne=Math.max(d-2*p,0);if(ue.culling=!0,ue.setShape({x:p,y:p,width:xe,height:ne,r:A}),y)V(ue);else{ue.invisible=!1;var de=o.getVisual("style"),rt=de.fill,Ee=fI(x);Ee.fill=rt,Ee.decal=de.decal;var ct=vs(b),ot=vs(C),mt=vs(T);Y(ue,rt,de.opacity,null),ue.setStyle(Ee),ue.ensureState("emphasis").style=ct,ue.ensureState("blur").style=ot,ue.ensureState("select").style=mt,el(ue)}me.add(ue)}function V(me){!me.invisible&&a.push(me)}function Y(me,ue,De,xe){var ne=h.getModel(xe?cI:uI),de=Ot(h.get("name"),null),rt=ne.getShallow("show");sr(me,Wt(h,xe?cI:uI),{defaultText:rt?de:null,inheritColor:ue,defaultOpacity:De,labelFetcher:t,labelDataIndex:o.dataIndex});var Ee=me.getTextContent();if(Ee){var ct=Ee.style,ot=Ny(ct.padding||0);xe&&(me.setTextConfig({layoutRect:xe}),Ee.disableLabelLayout=!0),Ee.beforeUpdate=function(){var sn=Math.max((xe?xe.width:me.shape.width)-ot[1]-ot[3],0),Jt=Math.max((xe?xe.height:me.shape.height)-ot[0]-ot[2],0);(ct.width!==sn||ct.height!==Jt)&&Ee.setStyle({width:sn,height:Jt})},ct.truncateMinChar=2,ct.lineOverflow="truncate",re(ct,xe,c);var mt=Ee.getState("emphasis");re(mt?mt.style:null,xe,c)}}function re(me,ue,De){var xe=me?me.text:null;if(!ue&&De.isLeafRoot&&xe!=null){var ne=t.get("drillDownIcon",!0);me.text=ne?ne+" "+xe:xe}}function te(me,ue,De,xe){var ne=m!=null&&r[me][m],de=i[me];return ne?(r[me][m]=null,ve(de,ne)):y||(ne=new ue,ne instanceof Rn&&(ne.z2=Fne(De,xe)),Me(de,ne)),e[me][g]=ne}function ve(me,ue){var De=me[g]={};ue instanceof Jx?(De.oldX=ue.x,De.oldY=ue.y):De.oldShape=F({},ue.shape)}function Me(me,ue){var De=me[g]={},xe=o.parentNode,ne=ue instanceof fe;if(xe&&(!n||n.direction==="drillDown")){var de=0,rt=0,Ee=i.background[xe.getRawIndex()];!n&&Ee&&Ee.oldShape&&(de=Ee.oldShape.width,rt=Ee.oldShape.height),ne?(De.oldX=0,De.oldY=rt):De.oldShape={x:de,y:rt,width:0,height:0}}De.fadein=!ne}}function Fne(t,e){return t*kne+e}const Vne=Bne;var Vh=M,Gne=se,Wg=-1,_T=function(){function t(e){var r=e.mappingMethod,n=e.type,i=this.option=le(e);this.type=n,this.mappingMethod=r,this._normalizeData=Wne[r];var a=t.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(z1(i),Hne(i)):r==="category"?i.categories?Une(i):z1(i,!0):(mr(r!=="linear"||i.dataExtent),z1(i))}return t.prototype.mapValueToVisual=function(e){var r=this._normalizeData(e);return this._normalizedToVisual(r,e)},t.prototype.getNormalizer=function(){return Q(this._normalizeData,this)},t.listVisualTypes=function(){return Ie(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(e,r,n){se(e)?M(e,r,n):r.call(n,e)},t.mapVisual=function(e,r,n){var i,a=G(e)?[]:se(e)?{}:(i=!0,null);return t.eachVisual(e,function(o,s){var l=r.call(n,o,s);i?a=l:a[s]=l}),a},t.retrieveVisuals=function(e){var r={},n;return e&&Vh(t.visualHandlers,function(i,a){e.hasOwnProperty(a)&&(r[a]=e[a],n=!0)}),n?r:null},t.prepareVisualTypes=function(e){if(G(e))e=e.slice();else if(Gne(e)){var r=[];Vh(e,function(n,i){r.push(i)}),e=r}else return[];return e.sort(function(n,i){return i==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),e},t.dependsOn=function(e,r){return r==="color"?!!(e&&e.indexOf(r)===0):e===r},t.findPieceIndex=function(e,r,n){for(var i,a=1/0,o=0,s=r.length;o=0;a--)n[a]==null&&(delete r[e[a]],e.pop())}function z1(t,e){var r=t.visual,n=[];se(r)?Vh(r,function(a){n.push(a)}):r!=null&&n.push(r);var i={color:1,symbol:1};!e&&n.length===1&&!i.hasOwnProperty(t.type)&&(n[1]=n[0]),DV(t,n)}function Nd(t){return{applyVisual:function(e,r,n){var i=this.mapValueToVisual(e);n("color",t(r("color"),i))},_normalizedToVisual:ew([0,1])}}function hI(t){var e=this.option.visual;return e[Math.round($e(t,[0,1],[0,e.length-1],!0))]||{}}function Zc(t){return function(e,r,n){n(t,this.mapValueToVisual(e))}}function gf(t){var e=this.option.visual;return e[this.option.loop&&t!==Wg?t%e.length:t]}function ds(){return this.option.visual[0]}function ew(t){return{linear:function(e){return $e(e,t,this.option.visual,!0)},category:gf,piecewise:function(e,r){var n=tw.call(this,r);return n==null&&(n=$e(e,t,this.option.visual,!0)),n},fixed:ds}}function tw(t){var e=this.option,r=e.pieceList;if(e.hasSpecialVisual){var n=_T.findPieceIndex(t,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function DV(t,e){return t.visual=e,t.type==="color"&&(t.parsedVisual=H(e,function(r){var n=Ar(r);return n||[0,0,0,1]})),e}var Wne={linear:function(t){return $e(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,r=_T.findPieceIndex(t,e,!0);if(r!=null)return $e(r,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return e??Wg},fixed:wt};function Bd(t,e,r){return t?e<=r:e=r.length||p===r[p.depth]){var g=qne(i,l,p,y,d,n);PV(p,g,r,n)}})}}}function jne(t,e,r){var n=F({},e),i=r.designatedVisualItemStyle;return M(["color","colorAlpha","colorSaturation"],function(a){i[a]=e[a];var o=t.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function vI(t){var e=F1(t,"color");if(e){var r=F1(t,"colorAlpha"),n=F1(t,"colorSaturation");return n&&(e=yu(e,null,null,n)),r&&(e=_h(e,r)),e}}function Xne(t,e){return e!=null?yu(e,null,null,t):null}function F1(t,e){var r=t[e];if(r!=null&&r!=="none")return r}function Zne(t,e,r,n,i,a){if(!(!a||!a.length)){var o=V1(e,"color")||i.color!=null&&i.color!=="none"&&(V1(e,"colorAlpha")||V1(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=r.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=e.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var h=new nr(f);return LV(h).drColorMappingBy=c,h}}}function V1(t,e){var r=t.get(e);return G(r)&&r.length?{name:e,range:r}:null}function qne(t,e,r,n,i,a){var o=F({},e);if(i){var s=i.type,l=s==="color"&&LV(i).drColorMappingBy,u=l==="index"?n:l==="id"?a.mapIdToIndex(r.getId()):r.getValue(t.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var Gh=Math.max,$g=Math.min,dI=Vt,ST=M,IV=["itemStyle","borderWidth"],Kne=["itemStyle","gapWidth"],Qne=["upperLabel","show"],Jne=["upperLabel","height"];const eie={seriesType:"treemap",reset:function(t,e,r,n){var i=r.getWidth(),a=r.getHeight(),o=t.option,s=It(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=j(dI(s.width,l[0]),i),c=j(dI(s.height,l[1]),a),f=n&&n.type,h=["treemapZoomToNode","treemapRootToNode"],v=Fh(n,h,t),d=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,p=t.getViewRoot(),y=TV(p);if(f!=="treemapMove"){var g=f==="treemapZoomToNode"?oie(t,v,p,u,c):d?[d.width,d.height]:[u,c],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var _={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var S={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};p.setLayout(S),EV(p,_,!1,0),S=p.getLayout(),ST(y,function(x,b){var C=(y[b+1]||p).getValue();x.setLayout(F({dataExtent:[C,C],borderWidth:0,upperHeight:0},S))})}var w=t.getData().tree.root;w.setLayout(sie(s,d,v),!0),t.setLayoutInfo(s),RV(w,new Ce(-s.x,-s.y,i,a),y,p,0)}};function EV(t,e,r,n){var i,a;if(!t.isRemoved()){var o=t.getLayout();i=o.width,a=o.height;var s=t.getModel(),l=s.get(IV),u=s.get(Kne)/2,c=kV(s),f=Math.max(l,c),h=l-u,v=f-u;t.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=Gh(i-2*h,0),a=Gh(a-h-v,0);var d=i*a,p=tie(t,s,d,e,r,n);if(p.length){var y={x:h,y:v,width:i,height:a},g=$g(i,a),m=1/0,_=[];_.area=0;for(var S=0,w=p.length;S=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/r*es[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function aie(t,e,r){for(var n=0,i=1/0,a=0,o=void 0,s=t.length;an&&(n=o));var l=t.area*t.area,u=e*e*r;return l?Gh(u*n/l,l/(u*i)):1/0}function pI(t,e,r,n,i){var a=e===r.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=r[s[a]],c=e?t.area/e:0;(i||c>r[l[o]])&&(c=r[l[o]]);for(var f=0,h=t.length;flx&&(u=lx),a=s}un&&(n=e);var a=n%2?n+2:n+3;i=[];for(var o=0;o0&&(w[0]=-w[0],w[1]=-w[1]);var b=S[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var C=-Math.atan2(S[1],S[0]);f[0].8?"left":h[0]<-.8?"right":"center",p=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":a.x=-h[0]*g+c[0],a.y=-h[1]*m+c[1],d=h[0]>.8?"right":h[0]<-.8?"left":"center",p=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=g*b+c[0],a.y=c[1]+T,d=S[0]<0?"right":"left",a.originX=-g*b,a.originY=-T;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=x[0],a.y=x[1]+T,d="center",a.originY=-T;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-g*b+f[0],a.y=f[1]+T,d=S[0]>=0?"right":"left",a.originX=g*b,a.originY=-T;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||p,align:a.__align||d})}},e}(fe);const CT=Aie;var Mie=function(){function t(e){this.group=new fe,this._LineCtor=e||CT}return t.prototype.updateData=function(e){var r=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=e,a||i.removeAll();var o=SI(e);e.diff(a).add(function(s){r._doAdd(e,s,o)}).update(function(s,l){r._doUpdate(a,e,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},t.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(r,n){r.updateLayout(e,n)},this)},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=SI(e),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r){this._progressiveEls=[];function n(s){!s.isGroup&&!Die(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0}function SI(t){var e=t.hostModel,r=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:Wt(e)}}function xI(t){return isNaN(t[0])||isNaN(t[1])}function $1(t){return t&&!xI(t[0])&&!xI(t[1])}const TT=Mie;var Y1=[],j1=[],X1=[],Il=Zt,Z1=uo,wI=Math.abs;function bI(t,e,r){for(var n=t[0],i=t[1],a=t[2],o=1/0,s,l=r*r,u=.1,c=.1;c<=.9;c+=.1){Y1[0]=Il(n[0],i[0],a[0],c),Y1[1]=Il(n[1],i[1],a[1],c);var f=wI(Z1(Y1,e)-l);f=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function q1(t,e){var r=[],n=yh,i=[[],[],[]],a=[[],[]],o=[];e/=2,t.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[Ei(u[0]),Ei(u[1])],u[2]&&u.__original.push(Ei(u[2])));var h=u.__original;if(u[2]!=null){if(vr(i[0],h[0]),vr(i[1],h[2]),vr(i[2],h[1]),c&&c!=="none"){var v=mf(s.node1),d=bI(i,h[0],v*e);n(i[0][0],i[1][0],i[2][0],d,r),i[0][0]=r[3],i[1][0]=r[4],n(i[0][1],i[1][1],i[2][1],d,r),i[0][1]=r[3],i[1][1]=r[4]}if(f&&f!=="none"){var v=mf(s.node2),d=bI(i,h[1],v*e);n(i[0][0],i[1][0],i[2][0],d,r),i[1][0]=r[1],i[2][0]=r[2],n(i[0][1],i[1][1],i[2][1],d,r),i[1][1]=r[1],i[2][1]=r[2]}vr(u[0],i[0]),vr(u[1],i[2]),vr(u[2],i[1])}else{if(vr(a[0],h[0]),vr(a[1],h[1]),Xa(o,a[1],a[0]),ll(o,o),c&&c!=="none"){var v=mf(s.node1);ug(a[0],a[0],o,v*e)}if(f&&f!=="none"){var v=mf(s.node2);ug(a[1],a[1],o,-v*e)}vr(u[0],a[0]),vr(u[1],a[1])}})}function CI(t){return t.type==="view"}var Lie=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){var i=new xv,a=new TT,o=this.group;this._controller=new Tv(n.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},e.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem;this._model=r;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(CI(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):Ge(u,c,r)}q1(r.getGraph(),yf(r));var f=r.getData();s.updateData(f);var h=r.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(r,n,i),clearTimeout(this._layoutTimeout);var v=r.forceLayout,d=r.get(["force","layoutAnimation"]);v&&this._startForceLayoutIteration(v,d);var p=r.get("layout");f.graph.eachNode(function(_){var S=_.dataIndex,w=_.getGraphicEl(),x=_.getModel();if(w){w.off("drag").off("dragend");var b=x.get("draggable");b&&w.on("drag",function(T){switch(p){case"force":v.warmUp(),!a._layouting&&a._startForceLayoutIteration(v,d),v.setFixed(S),f.setItemLayout(S,[w.x,w.y]);break;case"circular":f.setItemLayout(S,[w.x,w.y]),_.setLayout({fixed:!0},!0),bT(r,"symbolSize",_,[T.offsetX,T.offsetY]),a.updateLayout(r);break;case"none":default:f.setItemLayout(S,[w.x,w.y]),wT(r.getGraph(),r),a.updateLayout(r);break}}).on("dragend",function(){v&&v.setUnfixed(S)}),w.setDraggable(b,!!x.get("cursor"));var C=x.get(["emphasis","focus"]);C==="adjacency"&&(pe(w).focus=_.getAdjacentDataIndices())}}),f.graph.eachEdge(function(_){var S=_.getGraphicEl(),w=_.getModel().get(["emphasis","focus"]);S&&w==="adjacency"&&(pe(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var y=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),g=f.getLayout("cx"),m=f.getLayout("cy");f.graph.eachNode(function(_){zV(_,y,g,m)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(r,n){var i=this;(function a(){r.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(n?i._layoutTimeout=setTimeout(a,16):a())})})()},e.prototype._updateController=function(r,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(c,f)&&!gm(u,i,r)}),!CI(r.coordinateSystem)){o.disable();return}o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){hT(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){vT(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),q1(r.getGraph(),yf(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=yf(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},e.prototype.updateLayout=function(r){q1(r.getGraph(),yf(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Qe);const Pie=Lie;function El(t){return"_EC_"+t}var Iie=function(){function t(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(e,r){e=e==null?""+r:""+e;var n=this._nodesMap;if(!n[El(e)]){var i=new ps(e,r);return i.hostGraph=this,this.nodes.push(i),n[El(e)]=i,i}},t.prototype.getNodeByIndex=function(e){var r=this.data.getRawIndex(e);return this.nodes[r]},t.prototype.getNodeById=function(e){return this._nodesMap[El(e)]},t.prototype.addEdge=function(e,r,n){var i=this._nodesMap,a=this._edgesMap;if(Fe(e)&&(e=this.nodes[e]),Fe(r)&&(r=this.nodes[r]),e instanceof ps||(e=i[El(e)]),r instanceof ps||(r=i[El(r)]),!(!e||!r)){var o=e.id+"-"+r.id,s=new VV(e,r,n);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),r.inEdges.push(s)),e.edges.push(s),e!==r&&r.edges.push(s),this.edges.push(s),a[o]=s,s}},t.prototype.getEdgeByIndex=function(e){var r=this.edgeData.getRawIndex(e);return this.edges[r]},t.prototype.getEdge=function(e,r){e instanceof ps&&(e=e.id),r instanceof ps&&(r=r.id);var n=this._edgesMap;return this._directed?n[e+"-"+r]:n[e+"-"+r]||n[r+"-"+e]},t.prototype.eachNode=function(e,r){for(var n=this.nodes,i=n.length,a=0;a=0&&e.call(r,n[a],a)},t.prototype.eachEdge=function(e,r){for(var n=this.edges,i=n.length,a=0;a=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&e.call(r,n[a],a)},t.prototype.breadthFirstTraverse=function(e,r,n,i){if(r instanceof ps||(r=this._nodesMap[El(r)]),!!r){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a=0&&this[t][e].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[t][e].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}Ct(ps,GV("hostGraph","data"));Ct(VV,GV("hostGraph","edgeData"));const Eie=Iie;function HV(t,e,r,n,i){for(var a=new Eie(n),o=0;o "+h)),u++)}var v=r.get("coordinateSystem"),d;if(v==="cartesian2d"||v==="polar")d=Vi(t,r);else{var p=sc.get(v),y=p?p.dimensions||[]:[];Te(y,"value")<0&&y.concat(["value"]);var g=fc(t,{coordDimensions:y,encodeDefine:r.getEncode()}).dimensions;d=new gr(g,r),d.initData(t)}var m=new gr(["value"],r);return m.initData(l,s),i&&i(d,m),bV({mainData:d,struct:a,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var Rie=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new Cv(i,i),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},e.prototype.mergeOption=function(r){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(r){t.prototype.mergeDefaultAndTheme.apply(this,arguments),Ks(r,"edgeLabel",["show"])},e.prototype.getInitialData=function(r,n){var i=r.edges||r.links||[],a=r.data||r.nodes||[],o=this;if(a&&i){die(this);var s=HV(a,i,this,!0,l);return M(s.edges,function(u){pie(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,y=d.getShallow("category"),g=p[y];return g&&(g.parentModel=d.parentModel,d.parentModel=g),d});var f=qe.prototype.getModel;function h(d,p){var y=f.call(this,d,p);return y.resolveParentPath=v,y}c.wrapMethod("getItemModel",function(d){return d.resolveParentPath=v,d.getModel=h,d});function v(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(r,n,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(r,i),s=a.graph.getEdgeByIndex(r),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),$t("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=o3({series:this,dataIndex:r,multipleSeries:n});return f},e.prototype._updateCategoriesData=function(){var r=H(this.option.categories||[],function(i){return i.value!=null?i:F({value:0},i)}),n=new gr(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},e.prototype.setZoom=function(r){this.option.zoom=r},e.prototype.setCenter=function(r){this.option.center=r},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(at);const kie=Rie;var Oie={type:"graphRoam",event:"graphRoam",update:"none"};function Nie(t){t.registerChartView(Pie),t.registerSeriesModel(kie),t.registerProcessor(uie),t.registerVisual(cie),t.registerVisual(fie),t.registerLayout(gie),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,mie),t.registerLayout(Sie),t.registerCoordinateSystem("graphView",{dimensions:Av.dimensions,create:wie}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},wt),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},wt),t.registerAction(Oie,function(e,r,n){r.eachComponent({mainType:"series",query:e},function(i){var a=i.coordinateSystem,o=pT(a,e,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var Bie=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),zie=function(t){N(e,t);function e(r){var n=t.call(this,r)||this;return n.type="pointer",n}return e.prototype.getDefaultShape=function(){return new Bie},e.prototype.buildPath=function(r,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-i(l)*s*(s>=o/3?1:2),c=n.y-a(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,c),r.lineTo(n.x+i(l)*s,n.y+a(l)*s),r.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),r.lineTo(n.x-i(l)*s,n.y-a(l)*s),r.lineTo(u,c)},e}(Pe);const Fie=zie;function Vie(t,e){var r=t.get("center"),n=e.getWidth(),i=e.getHeight(),a=Math.min(n,i),o=j(r[0],e.getWidth()),s=j(r[1],e.getHeight()),l=j(t.get("radius"),a/2);return{cx:o,cy:s,r:l}}function Fd(t,e){var r=t==null?"":t+"";return e&&(Z(e)?r=e.replace("{value}",r):ae(e)&&(r=e(t))),r}var Gie=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){this.group.removeAll();var a=r.get(["axisLine","lineStyle","color"]),o=Vie(r,i);this._renderMain(r,n,i,a,o),this._data=r.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(r,n,i,a,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,c=-r.get("endAngle")/180*Math.PI,f=r.getModel("axisLine"),h=f.get("roundCap"),v=h?Vg:Dr,d=f.get("show"),p=f.getModel("lineStyle"),y=p.get("width"),g=[u,c];_z(g,!l),u=g[0],c=g[1];for(var m=c-u,_=u,S=[],w=0;d&&w=T&&(A===0?0:a[A-1][0])Math.PI/2&&(te+=Math.PI)):re==="tangential"?te=-C-Math.PI/2:Fe(re)&&(te=re*Math.PI/180),te===0?f.add(new Oe({style:tt(_,{text:O,x:V,y:Y,verticalAlign:E<-.8?"top":E>.8?"bottom":"middle",align:I<-.4?"left":I>.4?"right":"center"},{inheritColor:z}),silent:!0})):f.add(new Oe({style:tt(_,{text:O,x:V,y:Y,verticalAlign:"middle",align:"center"},{inheritColor:z}),silent:!0,originX:V,originY:Y,rotation:te}))}if(m.get("show")&&k!==S){var B=m.get("distance");B=B?B+c:c;for(var ve=0;ve<=w;ve++){I=Math.cos(C),E=Math.sin(C);var Me=new Gt({shape:{x1:I*(d-B)+h,y1:E*(d-B)+v,x2:I*(d-b-B)+h,y2:E*(d-b-B)+v},silent:!0,style:L});L.stroke==="auto"&&Me.setStyle({stroke:a((k+ve/w)/S)}),f.add(Me),C+=A}C-=A}else C+=T}},e.prototype._renderPointer=function(r,n,i,a,o,s,l,u,c){var f=this.group,h=this._data,v=this._progressEls,d=[],p=r.get(["pointer","show"]),y=r.getModel("progress"),g=y.get("show"),m=r.getData(),_=m.mapDimension("value"),S=+r.get("min"),w=+r.get("max"),x=[S,w],b=[s,l];function C(A,D){var L=m.getItemModel(A),P=L.getModel("pointer"),I=j(P.get("width"),o.r),E=j(P.get("length"),o.r),k=r.get(["pointer","icon"]),B=P.get("offsetCenter"),R=j(B[0],o.r),O=j(B[1],o.r),z=P.get("keepAspect"),V;return k?V=Mt(k,R-I/2,O-E,I,E,null,z):V=new Fie({shape:{angle:-Math.PI/2,width:I,r:E,x:R,y:O}}),V.rotation=-(D+Math.PI/2),V.x=o.cx,V.y=o.cy,V}function T(A,D){var L=y.get("roundCap"),P=L?Vg:Dr,I=y.get("overlap"),E=I?y.get("width"):c/m.count(),k=I?o.r-E:o.r-(A+1)*E,B=I?o.r:o.r-A*E,R=new P({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:k,r:B}});return I&&(R.z2=w-m.get(_,A)%w),R}(g||p)&&(m.diff(h).add(function(A){var D=m.get(_,A);if(p){var L=C(A,s);lt(L,{rotation:-((isNaN(+D)?b[0]:$e(D,x,b,!0))+Math.PI/2)},r),f.add(L),m.setItemGraphicEl(A,L)}if(g){var P=T(A,s),I=y.get("clip");lt(P,{shape:{endAngle:$e(D,x,b,I)}},r),f.add(P),dx(r.seriesIndex,m.dataType,A,P),d[A]=P}}).update(function(A,D){var L=m.get(_,A);if(p){var P=h.getItemGraphicEl(D),I=P?P.rotation:s,E=C(A,I);E.rotation=I,Ge(E,{rotation:-((isNaN(+L)?b[0]:$e(L,x,b,!0))+Math.PI/2)},r),f.add(E),m.setItemGraphicEl(A,E)}if(g){var k=v[D],B=k?k.shape.endAngle:s,R=T(A,B),O=y.get("clip");Ge(R,{shape:{endAngle:$e(L,x,b,O)}},r),f.add(R),dx(r.seriesIndex,m.dataType,A,R),d[A]=R}}).execute(),m.each(function(A){var D=m.getItemModel(A),L=D.getModel("emphasis"),P=L.get("focus"),I=L.get("blurScope"),E=L.get("disabled");if(p){var k=m.getItemGraphicEl(A),B=m.getItemVisual(A,"style"),R=B.fill;if(k instanceof Qt){var O=k.style;k.useStyle(F({image:O.image,x:O.x,y:O.y,width:O.width,height:O.height},B))}else k.useStyle(B),k.type!=="pointer"&&k.setColor(R);k.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),k.style.fill==="auto"&&k.setStyle("fill",a($e(m.get(_,A),x,[0,1],!0))),k.z2EmphasisLift=0,or(k,D),yt(k,P,I,E)}if(g){var z=d[A];z.useStyle(m.getItemVisual(A,"style")),z.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),z.z2EmphasisLift=0,or(z,D),yt(z,P,I,E)}}),this._progressEls=d)},e.prototype._renderAnchor=function(r,n){var i=r.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),c=Mt(s,n.cx-o/2+j(l[0],n.r),n.cy-o/2+j(l[1],n.r),o,o,null,u);c.z2=i.get("showAbove")?1:0,c.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(r,n,i,a,o){var s=this,l=r.getData(),u=l.mapDimension("value"),c=+r.get("min"),f=+r.get("max"),h=new fe,v=[],d=[],p=r.isAnimationEnabled(),y=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(g){v[g]=new Oe({silent:!0}),d[g]=new Oe({silent:!0})}).update(function(g,m){v[g]=s._titleEls[m],d[g]=s._detailEls[m]}).execute(),l.each(function(g){var m=l.getItemModel(g),_=l.get(u,g),S=new fe,w=a($e(_,[c,f],[0,1],!0)),x=m.getModel("title");if(x.get("show")){var b=x.get("offsetCenter"),C=o.cx+j(b[0],o.r),T=o.cy+j(b[1],o.r),A=v[g];A.attr({z2:y?0:2,style:tt(x,{x:C,y:T,text:l.getName(g),align:"center",verticalAlign:"middle"},{inheritColor:w})}),S.add(A)}var D=m.getModel("detail");if(D.get("show")){var L=D.get("offsetCenter"),P=o.cx+j(L[0],o.r),I=o.cy+j(L[1],o.r),E=j(D.get("width"),o.r),k=j(D.get("height"),o.r),B=r.get(["progress","show"])?l.getItemVisual(g,"style").fill:w,A=d[g],R=D.get("formatter");A.attr({z2:y?0:2,style:tt(D,{x:P,y:I,text:Fd(_,R),width:isNaN(E)?null:E,height:isNaN(k)?null:k,align:"center",verticalAlign:"middle"},{inheritColor:B})}),f5(A,{normal:D},_,function(z){return Fd(z,R)}),p&&h5(A,g,l,r,{getFormattedLabel:function(z,V,Y,re,te,ve){return Fd(ve?ve.interpolatedValue:_,R)}}),S.add(A)}h.add(S)}),this.group.add(h),this._titleEls=v,this._detailEls=d},e.type="gauge",e}(Qe);const Hie=Gie;var Uie=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.visualStyleAccessPath="itemStyle",r}return e.prototype.getInitialData=function(r,n){return vc(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(at);const Wie=Uie;function $ie(t){t.registerChartView(Hie),t.registerSeriesModel(Wie)}var Yie=["itemStyle","opacity"],jie=function(t){N(e,t);function e(r,n){var i=t.call(this)||this,a=i,o=new Er,s=new Oe;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(r,n,!0),i}return e.prototype.updateData=function(r,n,i){var a=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),c=s.get(Yie);c=c??1,i||ui(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,lt(a,{style:{opacity:c}},o,n)):Ge(a,{style:{opacity:c},shape:{points:l.points}},o,n),or(a,s),this._updateLabel(r,n),yt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),c=u.label,f=r.getItemVisual(n,"style"),h=f.fill;sr(o,Wt(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:f.opacity,defaultText:r.getName(n)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),i.setTextConfig({local:!0,inside:!!c.inside,insideStroke:h,outsideFill:h});var v=c.linePoints;a.setShape({points:v}),i.textGuideLineConfig={anchor:v?new we(v[0][0],v[0][1]):null},Ge(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),nT(i,iT(l),{stroke:h})},e}(Lr),Xie=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,n,i){var a=r.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new jie(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(a,l),s.add(c),a.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);Mh(u,r,l)}).execute(),this._data=a},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Qe);const Zie=Xie;var qie=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Cv(Q(this.getData,this),Q(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.getInitialData=function(r,n){return vc(this,{coordDimensions:["value"],encodeDefaulter:ye(DC,this)})},e.prototype._defaultLabelLine=function(r){Ks(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},e.prototype.getDataParams=function(r){var n=this.getData(),i=t.prototype.getDataParams.call(this,r),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,r)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(at);const Kie=qie;function Qie(t,e){return It(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Jie(t,e){for(var r=t.mapDimension("value"),n=t.mapArray(r,function(l){return l}),i=[],a=e==="ascending",o=0,s=t.count();omae)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!(this._mouseDownPoint||!Q1(this,"mousemove"))){var e=this._model,r=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function Q1(t,e){var r=t._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===e}const xae=_ae;var wae=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(r){var n=this.option;r&&Se(n,r,!0),this._initDimensions()},e.prototype.contains=function(r,n){var i=r.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},e.prototype.setAxisExpand=function(r){M(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},e.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],i=Ye(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);M(i,function(a){r.push("dim"+a.get("dim")),n.push(a.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(ke);const bae=wae;var Cae=function(t){N(e,t);function e(r,n,i,a,o){var s=t.call(this,r,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(zn);const Tae=Cae;function dl(t,e,r,n,i,a){t=t||0;var o=r[1]-r[0];if(i!=null&&(i=Rl(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(e[1]-e[0]);s=Rl(s,[0,o]),i=a=Rl(s,[i,a]),n=0}e[0]=Rl(e[0],r),e[1]=Rl(e[1],r);var l=J1(e,n);e[n]+=t;var u=i||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,e[n]=Rl(e[n],c);var f;return f=J1(e,n),i!=null&&(f.sign!==l.sign||f.spana&&(e[1-n]=e[n]+f.sign*a),e}function J1(t,e){var r=t[e]-t[1-e];return{span:Math.abs(r),sign:r>0?-1:r<0?1:e?-1:1}}function Rl(t,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,t))}var e_=M,WV=Math.min,$V=Math.max,MI=Math.floor,Aae=Math.ceil,DI=gt,Mae=Math.PI,Dae=function(){function t(e,r,n){this.type="parallel",this._axesMap=ie(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,r,n)}return t.prototype._init=function(e,r,n){var i=e.dimensions,a=e.parallelAxisIndex;e_(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new Tae(o,mv(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},t.prototype.update=function(e,r){this._updateAxesFromSeries(this._model,e)},t.prototype.containPoint=function(e){var r=this._makeLayoutInfo(),n=r.axisBase,i=r.layoutBase,a=r.pixelDimIndex,o=e[1-a],s=e[a];return o>=n&&o<=n+r.axisLength&&s>=i&&s<=i+r.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(e,r){r.eachSeries(function(n){if(e.contains(n,r)){var i=n.getData();e_(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),rl(o.scale,o.model)},this)}},this)},t.prototype.resize=function(e,r){this._rect=It(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var e=this._model,r=this._rect,n=["x","y"],i=["width","height"],a=e.get("layout"),o=a==="horizontal"?0:1,s=r[i[o]],l=[0,s],u=this.dimensions.length,c=Vd(e.get("axisExpandWidth"),l),f=Vd(e.get("axisExpandCount")||0,[0,u]),h=e.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,v=e.get("axisExpandWindow"),d;if(v)d=Vd(v[1]-v[0],l),v[1]=v[0]+d;else{d=Vd(c*(f-1),l);var p=e.get("axisExpandCenter")||MI(u/2);v=[c*p-d/2],v[1]=v[0]+d}var y=(s-d)/(u-f);y<3&&(y=0);var g=[MI(DI(v[0]/c,1))+1,Aae(DI(v[1]/c,1))-1],m=y/c*v[0];return{layout:a,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[i[1-o]],axisExpandable:h,axisExpandWidth:c,axisCollapseWidth:y,axisExpandWindow:v,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:m}},t.prototype._layoutAxes=function(){var e=this._rect,r=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;r.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),e_(n,function(o,s){var l=(i.axisExpandable?Pae:Lae)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:Mae/2,vertical:0},f=[u[a].x+e.x,u[a].y+e.y],h=c[a],v=rn();Eo(v,v,h),oi(v,v,f),this._axesLayout[o]={position:f,rotation:h,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},t.prototype.getAxis=function(e){return this._axesMap.get(e)},t.prototype.dataToPoint=function(e,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(e),r)},t.prototype.eachActiveState=function(e,r,n,i){n==null&&(n=0),i==null&&(i=e.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];M(o,function(y){s.push(e.mapDimension(y)),l.push(a.get(y).model)});for(var u=this.hasAxisBrushed(),c=n;ca*(1-f[0])?(u="jump",l=s-a*(1-f[2])):(l=s-a*f[1])>=0&&(l=s-a*(1-f[1]))<=0&&(l=0),l*=r.axisExpandWidth/c,l?dl(l,i,o,"all"):u="none";else{var v=i[1]-i[0],d=o[1]*s/v;i=[$V(0,d-v/2)],i[1]=WV(o[1],i[0]+v),i[0]=i[1]-v}return{axisExpandWindow:i,behavior:u}},t}();function Vd(t,e){return WV($V(t,e[0]),e[1])}function Lae(t,e){var r=e.layoutLength/(e.axisCount-1);return{position:r*t,axisNameAvailableWidth:r,axisLabelShow:!0}}function Pae(t,e){var r=e.layoutLength,n=e.axisExpandWidth,i=e.axisCount,a=e.axisCollapseWidth,o=e.winInnerIndices,s,l=a,u=!1,c;return t=0;i--)Qr(n[i])},e.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=r&&r<=i[1])return"active"}else for(var a=0,o=n.length;aBae}function QV(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function JV(t,e,r,n){var i=new fe;return i.add(new Ne({name:"main",style:LT(r),silent:!0,draggable:!0,cursor:"move",drift:ye(EI,t,e,i,["n","s","w","e"]),ondragend:ye(il,e,{isEnd:!0})})),M(n,function(a){i.add(new Ne({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ye(EI,t,e,i,a),ondragend:ye(il,e,{isEnd:!0})}))}),i}function e4(t,e,r,n){var i=n.brushStyle.lineWidth||0,a=Vu(i,zae),o=r[0][0],s=r[1][0],l=o-i/2,u=s-i/2,c=r[0][1],f=r[1][1],h=c-a+i/2,v=f-a+i/2,d=c-o,p=f-s,y=d+i,g=p+i;Ui(t,e,"main",o,s,d,p),n.transformable&&(Ui(t,e,"w",l,u,a,g),Ui(t,e,"e",h,u,a,g),Ui(t,e,"n",l,u,y,a),Ui(t,e,"s",l,v,y,a),Ui(t,e,"nw",l,u,a,a),Ui(t,e,"ne",h,u,a,a),Ui(t,e,"sw",l,v,a,a),Ui(t,e,"se",h,v,a,a))}function ow(t,e){var r=e.__brushOption,n=r.transformable,i=e.childAt(0);i.useStyle(LT(r)),i.attr({silent:!n,cursor:n?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=e.childOfName(a.join("")),s=a.length===1?sw(t,a[0]):$ae(t,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?Vae[s]+"-resize":null})})}function Ui(t,e,r,n,i,a,o){var s=e.childOfName(r);s&&s.setShape(jae(PT(t,e,[[n,i],[n+a,i+o]])))}function LT(t){return oe({strokeNoScale:!0},t.brushStyle)}function t4(t,e,r,n){var i=[Uh(t,r),Uh(e,n)],a=[Vu(t,r),Vu(e,n)];return[[i[0],a[0]],[i[1],a[1]]]}function Wae(t){return ho(t.group)}function sw(t,e){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=Qy(r[e],Wae(t));return n[i]}function $ae(t,e){var r=[sw(t,e[0]),sw(t,e[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function EI(t,e,r,n,i,a){var o=r.__brushOption,s=t.toRectRange(o.range),l=r4(e,i,a);M(n,function(u){var c=Fae[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=t.fromRectRange(t4(s[0][0],s[1][0],s[0][1],s[1][1])),AT(e,r),il(e,{isEnd:!1})}function Yae(t,e,r,n){var i=e.__brushOption.range,a=r4(t,r,n);M(i,function(o){o[0]+=a[0],o[1]+=a[1]}),AT(t,e),il(t,{isEnd:!1})}function r4(t,e,r){var n=t.group,i=n.transformCoordToLocal(e,r),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function PT(t,e,r){var n=KV(t,e);return n&&n!==nl?n.clipPath(r,t._transform):le(r)}function jae(t){var e=Uh(t[0][0],t[1][0]),r=Uh(t[0][1],t[1][1]),n=Vu(t[0][0],t[1][0]),i=Vu(t[0][1],t[1][1]);return{x:e,y:r,width:n-e,height:i-r}}function Xae(t,e,r){if(!(!t._brushType||qae(t,e.offsetX,e.offsetY))){var n=t._zr,i=t._covers,a=DT(t,e,r);if(!t._dragging)for(var o=0;on.getWidth()||r<0||r>n.getHeight()}var Sm={lineX:OI(0),lineY:OI(1),rect:{createCover:function(t,e){function r(n){return n}return JV({toRectRange:r,fromRectRange:r},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=QV(t);return t4(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,r,n){e4(t,e,r,n)},updateCommon:ow,contain:uw},polygon:{createCover:function(t,e){var r=new fe;return r.add(new Er({name:"main",style:LT(e),silent:!0})),r},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Lr({name:"main",draggable:!0,drift:ye(Yae,t,e),ondragend:ye(il,t,{isEnd:!0})}))},updateCoverShape:function(t,e,r,n){e.childAt(0).setShape({points:PT(t,e,r)})},updateCommon:ow,contain:uw}};function OI(t){return{createCover:function(e,r){return JV({toRectRange:function(n){var i=[n,[0,100]];return t&&i.reverse(),i},fromRectRange:function(n){return n[t]}},e,r,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var r=QV(e),n=Uh(r[0][t],r[1][t]),i=Vu(r[0][t],r[1][t]);return[n,i]},updateCoverShape:function(e,r,n,i){var a,o=KV(e,r);if(o!==nl&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(t);else{var s=e._zr;a=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[n,a];t&&l.reverse(),e4(e,r,l,i)},updateCommon:ow,contain:uw}}const IT=Hae;function i4(t){return t=ET(t),function(e){return yC(e,t)}}function a4(t,e){return t=ET(t),function(r){var n=e??r,i=n?t.width:t.height,a=n?t.x:t.y;return[a,a+(i||0)]}}function o4(t,e,r){var n=ET(t);return function(i,a){return n.contain(a[0],a[1])&&!gm(i,e,r)}}function ET(t){return Ce.create(t)}var Kae=["axisLine","axisTickLabel","axisName"],Qae=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){t.prototype.init.apply(this,arguments),(this._brushController=new IT(n.getZr())).on("brush",Q(this._onBrush,this))},e.prototype.render=function(r,n,i,a){if(!Jae(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new fe,this.group.add(this._axisGroup),!!r.get("show")){var s=toe(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,h=l.getAxisLayout(f),v=F({strokeContainThreshold:c},h),d=new ma(r,v);M(Kae,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(v,u,r,s,c,i),vv(o,this._axisGroup,r)}}},e.prototype._refreshBrushController=function(r,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=Ce.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:i4(f),isTargetByCursor:o4(f,s,a),getLinearBrushOtherExtent:a4(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(eoe(i))},e.prototype._onBrush=function(r){var n=r.areas,i=this.axisModel,a=i.axis,o=H(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(ft);function Jae(t,e,r){return r&&r.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:r})[0]===t}function eoe(t){var e=t.axis;return H(t.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(r[0],!0),e.dataToCoord(r[1],!0)]}})}function toe(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}const roe=Qae;var noe={type:"axisAreaSelect",event:"axisAreaSelected"};function ioe(t){t.registerAction(noe,function(e,r){r.eachComponent({mainType:"parallelAxis",query:e},function(n){n.axis.model.setActiveIntervals(e.intervals)})}),t.registerAction("parallelAxisExpand",function(e,r){r.eachComponent({mainType:"parallel",query:e},function(n){n.setAxisExpand(e)})})}var aoe={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function s4(t){t.registerComponentView(xae),t.registerComponentModel(bae),t.registerCoordinateSystem("parallel",kae),t.registerPreprocessor(pae),t.registerComponentModel(LI),t.registerComponentView(roe),Fu(t,"parallel",LI,aoe),ioe(t)}function ooe(t){Ae(s4),t.registerChartView(sae),t.registerSeriesModel(fae),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,dae)}var soe=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return t}(),loe=function(t){N(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new soe},e.prototype.buildPath=function(r,n){var i=n.extent;r.moveTo(n.x1,n.y1),r.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(r.lineTo(n.x2+i,n.y2),r.bezierCurveTo(n.cpx2+i,n.cpy2,n.cpx1+i,n.cpy1,n.x1+i,n.y1)):(r.lineTo(n.x2,n.y2+i),r.bezierCurveTo(n.cpx2,n.cpy2+i,n.cpx1,n.cpy1+i,n.x1,n.y1+i)),r.closePath()},e.prototype.highlight=function(){da(this)},e.prototype.downplay=function(){pa(this)},e}(Pe),uoe=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._focusAdjacencyDisabled=!1,r}return e.prototype.render=function(r,n,i){var a=this,o=r.getGraph(),s=this.group,l=r.layoutInfo,u=l.width,c=l.height,f=r.getData(),h=r.getData("edge"),v=r.get("orient");this._model=r,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(d){var p=new loe,y=pe(p);y.dataIndex=d.dataIndex,y.seriesIndex=r.seriesIndex,y.dataType="edge";var g=d.getModel(),m=g.getModel("lineStyle"),_=m.get("curveness"),S=d.node1.getLayout(),w=d.node1.getModel(),x=w.get("localX"),b=w.get("localY"),C=d.node2.getLayout(),T=d.node2.getModel(),A=T.get("localX"),D=T.get("localY"),L=d.getLayout(),P,I,E,k,B,R,O,z;switch(p.shape.extent=Math.max(1,L.dy),p.shape.orient=v,v==="vertical"?(P=(x!=null?x*u:S.x)+L.sy,I=(b!=null?b*c:S.y)+S.dy,E=(A!=null?A*u:C.x)+L.ty,k=D!=null?D*c:C.y,B=P,R=I*(1-_)+k*_,O=E,z=I*_+k*(1-_)):(P=(x!=null?x*u:S.x)+S.dx,I=(b!=null?b*c:S.y)+L.sy,E=A!=null?A*u:C.x,k=(D!=null?D*c:C.y)+L.ty,B=P*(1-_)+E*_,R=I,O=P*_+E*(1-_),z=k),p.setShape({x1:P,y1:I,x2:E,y2:k,cpx1:B,cpy1:R,cpx2:O,cpy2:z}),p.useStyle(m.getItemStyle()),p.style.fill){case"source":p.style.fill=d.node1.getVisual("color"),p.style.decal=d.node1.getVisual("style").decal;break;case"target":p.style.fill=d.node2.getVisual("color"),p.style.decal=d.node2.getVisual("style").decal;break;case"gradient":var V=d.node1.getVisual("color"),Y=d.node2.getVisual("color");Z(V)&&Z(Y)&&(p.style.fill=new Qu(0,0,+(v==="horizontal"),+(v==="vertical"),[{color:V,offset:0},{color:Y,offset:1}]))}sr(p,Wt(g,"edgeLabel"),{labelFetcher:r,labelDataIndex:d.dataIndex,defaultText:""+g.get("value")}),p.setTextConfig({position:"inside"});var re=g.getModel("emphasis");or(p,g,"lineStyle",function(ve){return ve.getItemStyle()}),s.add(p),h.setItemGraphicEl(d.dataIndex,p);var te=re.get("focus");yt(p,te==="adjacency"?d.getAdjacentDataIndices():te,re.get("blurScope"),re.get("disabled")),pe(p).dataType="edge"}),o.eachNode(function(d){var p=d.getLayout(),y=d.getModel(),g=y.get("localX"),m=y.get("localY"),_=y.getModel("emphasis"),S=new Ne({shape:{x:g!=null?g*u:p.x,y:m!=null?m*c:p.y,width:p.dx,height:p.dy},style:y.getModel("itemStyle").getItemStyle(),z2:10});sr(S,Wt(y),{labelFetcher:r,labelDataIndex:d.dataIndex,defaultText:d.id}),S.disableLabelAnimation=!0,S.setStyle("fill",d.getVisual("color")),S.setStyle("decal",d.getVisual("style").decal),or(S,y),s.add(S),f.setItemGraphicEl(d.dataIndex,S),pe(S).dataType="node";var w=_.get("focus");yt(S,w==="adjacency"?d.getAdjacentDataIndices():w,_.get("blurScope"),_.get("disabled"))}),f.eachItemGraphicEl(function(d,p){var y=f.getItemModel(p);y.get("draggable")&&(d.drift=function(g,m){a._focusAdjacencyDisabled=!0,this.shape.x+=g,this.shape.y+=m,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:f.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/c})},d.ondragend=function(){a._focusAdjacencyDisabled=!1},d.draggable=!0,d.cursor="move")}),!this._data&&r.isAnimationEnabled()&&s.setClipPath(coe(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Qe);function coe(t,e,r){var n=new Ne({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return lt(n,{shape:{width:t.width+20}},e,r),n}const foe=uoe;var hoe=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){var i=r.edges||r.links,a=r.data||r.nodes,o=r.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new qe(o[l],this,n));if(a&&i){var u=HV(a,i,this,!0,c);return u.data}function c(f,h){f.wrapMethod("getItemModel",function(v,d){var p=v.parentModel,y=p.getData().getItemLayout(d);if(y){var g=y.depth,m=p.levelModels[g];m&&(v.parentModel=m)}return v}),h.wrapMethod("getItemModel",function(v,d){var p=v.parentModel,y=p.getGraph().getEdgeByIndex(d),g=y.node1.getLayout();if(g){var m=g.depth,_=p.levelModels[m];_&&(v.parentModel=_)}return v})}},e.prototype.setNodePosition=function(r,n){var i=this.option.data||this.option.nodes,a=i[r];a.localX=n[0],a.localY=n[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(r,n,i){function a(v){return isNaN(v)||v==null}if(i==="edge"){var o=this.getDataParams(r,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return $t("nameValue",{name:u,value:l,noValue:a(l)})}else{var c=this.getGraph().getNodeByIndex(r),f=c.getLayout().value,h=this.getDataParams(r,i).data.name;return $t("nameValue",{name:h!=null?h+"":null,value:f,noValue:a(f)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(r,n){var i=t.prototype.getDataParams.call(this,r,n);if(i.value==null&&n==="node"){var a=this.getGraph().getNodeByIndex(r),o=a.getLayout().value;i.value=o}return i},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(at);const voe=hoe;function doe(t,e){t.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),i=r.get("nodeGap"),a=poe(r,e);r.layoutInfo=a;var o=a.width,s=a.height,l=r.getGraph(),u=l.nodes,c=l.edges;yoe(u);var f=Ye(u,function(p){return p.getLayout().value===0}),h=f.length!==0?0:r.get("layoutIterations"),v=r.get("orient"),d=r.get("nodeAlign");goe(u,c,n,i,o,s,h,v,d)})}function poe(t,e){return It(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function goe(t,e,r,n,i,a,o,s,l){moe(t,e,r,i,a,s,l),woe(t,e,a,i,n,o,s),Ioe(t,s)}function yoe(t){M(t,function(e){var r=go(e.outEdges,Yg),n=go(e.inEdges,Yg),i=e.getValue()||0,a=Math.max(r,n,i);e.setLayout({value:a},!0)})}function moe(t,e,r,n,i,a,o){for(var s=[],l=[],u=[],c=[],f=0,h=0;h=0;g&&y.depth>v&&(v=y.depth),p.setLayout({depth:g?y.depth:f},!0),a==="vertical"?p.setLayout({dy:r},!0):p.setLayout({dx:r},!0);for(var m=0;mf-1?v:f-1;o&&o!=="left"&&_oe(t,o,a,b);var C=a==="vertical"?(i-r)/b:(n-r)/b;xoe(t,C,a)}function l4(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return e.depth!=null&&e.depth>=0}function _oe(t,e,r,n){if(e==="right"){for(var i=[],a=t,o=0;a.length;){for(var s=0;s0;a--)l*=.99,Toe(s,l,o),t_(s,i,r,n,o),Poe(s,l,o),t_(s,i,r,n,o)}function boe(t,e){var r=[],n=e==="vertical"?"y":"x",i=cx(t,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),M(i.keys,function(a){r.push(i.buckets.get(a))}),r}function Coe(t,e,r,n,i,a){var o=1/0;M(t,function(s){var l=s.length,u=0;M(s,function(f){u+=f.getLayout().value});var c=a==="vertical"?(n-(l-1)*i)/u:(r-(l-1)*i)/u;c0&&(s=l.getLayout()[a]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]+l.getLayout()[h]+e;var d=i==="vertical"?n:r;if(u=c-e-d,u>0){s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var v=f-2;v>=0;--v)l=o[v],u=l.getLayout()[a]+l.getLayout()[h]+e-c,u>0&&(s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]}})}function Toe(t,e,r){M(t.slice().reverse(),function(n){M(n,function(i){if(i.outEdges.length){var a=go(i.outEdges,Aoe,r)/go(i.outEdges,Yg);if(isNaN(a)){var o=i.outEdges.length;a=o?go(i.outEdges,Moe,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-Co(i,r))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-Co(i,r))*e;i.setLayout({y:l},!0)}}})})}function Aoe(t,e){return Co(t.node2,e)*t.getValue()}function Moe(t,e){return Co(t.node2,e)}function Doe(t,e){return Co(t.node1,e)*t.getValue()}function Loe(t,e){return Co(t.node1,e)}function Co(t,e){return e==="vertical"?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function Yg(t){return t.getValue()}function go(t,e,r){for(var n=0,i=t.length,a=-1;++ao&&(o=l)}),M(n,function(s){var l=new nr({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&M(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Roe(t){t.registerChartView(foe),t.registerSeriesModel(voe),t.registerLayout(doe),t.registerVisual(Eoe),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,r){r.eachComponent({mainType:"series",subType:"sankey",query:e},function(n){n.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var u4=function(){function t(){}return t.prototype.getInitialData=function(e,r){var n,i=r.getComponent("xAxis",this.get("xAxisIndex")),a=r.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l;o==="category"?(e.layout="horizontal",n=i.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",n=a.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],h=u[1-c],v=[i,a],d=v[c].get("type"),p=v[1-c].get("type"),y=e.data;if(y&&l){var g=[];M(y,function(S,w){var x;G(S)?(x=S.slice(),S.unshift(w)):G(S.value)?(x=F({},S),x.value=x.value.slice(),S.value.unshift(w)):x=S,g.push(x)}),e.data=g}var m=this.defaultValueDimensions,_=[{name:f,type:kg(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:kg(p),dimsDef:m.slice()}];return vc(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:ye(I5,_,this)})},t.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},t}(),c4=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(at);Ct(c4,u4,!0);const koe=c4;var Ooe=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=r.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=r.get("layout")==="horizontal"?1:0;a.diff(s).add(function(u){if(a.hasValue(u)){var c=a.getItemLayout(u),f=NI(c,a,u,l,!0);a.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!a.hasValue(u)){o.remove(f);return}var h=a.getItemLayout(u);f?(ui(f),f4(h,f,a,u)):f=NI(h,a,u,l),o.add(f),a.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=a},e.prototype.remove=function(r){var n=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(a){a&&n.remove(a)})},e.type="boxplot",e}(Qe),Noe=function(){function t(){}return t}(),Boe=function(t){N(e,t);function e(r){var n=t.call(this,r)||this;return n.type="boxplotBoxPath",n}return e.prototype.getDefaultShape=function(){return new Noe},e.prototype.buildPath=function(r,n){var i=n.points,a=0;for(r.moveTo(i[a][0],i[a][1]),a++;a<4;a++)r.lineTo(i[a][0],i[a][1]);for(r.closePath();ap){var S=[g,_];n.push(S)}}}return{boxData:r,outliers:n}}var $oe={type:"echarts:boxplot",transform:function(e){var r=e.upstream;if(r.sourceFormat!==_r){var n="";Ue(n)}var i=Woe(r.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Yoe(t){t.registerSeriesModel(koe),t.registerChartView(Foe),t.registerLayout(Voe),t.registerTransform($oe)}var joe=["color","borderColor"],Xoe=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},e.prototype.incrementalPrepareRender=function(r,n,i){this._clear(),this._updateDrawMode(r)},e.prototype.incrementalRender=function(r,n,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,n):this._incrementalRenderNormal(r,n)},e.prototype.eachRendered=function(r){Ro(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(r){var n=r.getData(),i=this._data,a=this.group,o=n.getLayout("isSimpleBox"),s=r.get("clip",!0),l=r.coordinateSystem,u=l.getArea&&l.getArea();this._data||a.removeAll(),n.diff(i).add(function(c){if(n.hasValue(c)){var f=n.getItemLayout(c);if(s&&BI(u,f))return;var h=r_(f,c,!0);lt(h,{shape:{points:f.ends}},r,c),n_(h,n,c,o),a.add(h),n.setItemGraphicEl(c,h)}}).update(function(c,f){var h=i.getItemGraphicEl(f);if(!n.hasValue(c)){a.remove(h);return}var v=n.getItemLayout(c);if(s&&BI(u,v)){a.remove(h);return}h?(Ge(h,{shape:{points:v.ends}},r,c),ui(h)):h=r_(v),n_(h,n,c,o),a.add(h),n.setItemGraphicEl(c,h)}).remove(function(c){var f=i.getItemGraphicEl(c);f&&a.remove(f)}).execute(),this._data=n},e.prototype._renderLarge=function(r){this._clear(),zI(r,this.group);var n=r.get("clip",!0)?pm(r.coordinateSystem,!1,r):null;n?this.group.setClipPath(n):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(r,n){for(var i=n.getData(),a=i.getLayout("isSimpleBox"),o;(o=r.next())!=null;){var s=i.getItemLayout(o),l=r_(s);n_(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(r,n){zI(n,this.group,this._progressiveEls,!0)},e.prototype.remove=function(r){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Qe),Zoe=function(){function t(){}return t}(),qoe=function(t){N(e,t);function e(r){var n=t.call(this,r)||this;return n.type="normalCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new Zoe},e.prototype.buildPath=function(r,n){var i=n.points;this.__simpleBox?(r.moveTo(i[4][0],i[4][1]),r.lineTo(i[6][0],i[6][1])):(r.moveTo(i[0][0],i[0][1]),r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]),r.lineTo(i[3][0],i[3][1]),r.closePath(),r.moveTo(i[4][0],i[4][1]),r.lineTo(i[5][0],i[5][1]),r.moveTo(i[6][0],i[6][1]),r.lineTo(i[7][0],i[7][1]))},e}(Pe);function r_(t,e,r){var n=t.ends;return new qoe({shape:{points:r?Koe(n,t):n},z2:100})}function BI(t,e){for(var r=!0,n=0;n0?"borderColor":"borderColor0"])||r.get(["itemStyle",t>0?"color":"color0"]);t===0&&(i=r.get(["itemStyle","borderColorDoji"]));var a=r.getModel("itemStyle").getItemStyle(joe);e.useStyle(a),e.style.fill=null,e.style.stroke=i}const Joe=Xoe;var h4=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(r,n,i){var a=n.getItemLayout(r);return a&&i.rect(a.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(at);Ct(h4,u4,!0);const ese=h4;function tse(t){!t||!G(t.series)||M(t.series,function(e){se(e)&&e.type==="k"&&(e.type="candlestick")})}var rse=["itemStyle","borderColor"],nse=["itemStyle","borderColor0"],ise=["itemStyle","borderColorDoji"],ase=["itemStyle","color"],ose=["itemStyle","color0"],sse={seriesType:"candlestick",plan:lc(),performRawSeries:!0,reset:function(t,e){function r(a,o){return o.get(a>0?ase:ose)}function n(a,o){return o.get(a===0?ise:a>0?rse:nse)}if(!e.isSeriesFiltered(t)){var i=t.pipelineContext.large;return!i&&{progress:function(a,o){for(var s;(s=a.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=r(u,l),c.stroke=n(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");F(f,c)}}}}}};const lse=sse;var use={seriesType:"candlestick",plan:lc(),reset:function(t){var e=t.coordinateSystem,r=t.getData(),n=cse(t,r),i=0,a=1,o=["x","y"],s=r.getDimensionIndex(r.mapDimension(o[i])),l=H(r.mapDimensionsAll(o[a]),r.getDimensionIndex,r),u=l[0],c=l[1],f=l[2],h=l[3];if(r.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:t.pipelineContext.large?d:v};function v(p,y){for(var g,m=y.getStore();(g=p.next())!=null;){var _=m.get(s,g),S=m.get(u,g),w=m.get(c,g),x=m.get(f,g),b=m.get(h,g),C=Math.min(S,w),T=Math.max(S,w),A=B(C,_),D=B(T,_),L=B(x,_),P=B(b,_),I=[];R(I,D,0),R(I,A,1),I.push(z(P),z(D),z(L),z(A));var E=y.getItemModel(g),k=!!E.get(["itemStyle","borderColorDoji"]);y.setItemLayout(g,{sign:FI(m,g,S,w,c,k),initBaseline:S>w?D[a]:A[a],ends:I,brushRect:O(x,b,_)})}function B(V,Y){var re=[];return re[i]=Y,re[a]=V,isNaN(Y)||isNaN(V)?[NaN,NaN]:e.dataToPoint(re)}function R(V,Y,re){var te=Y.slice(),ve=Y.slice();te[i]=bp(te[i]+n/2,1,!1),ve[i]=bp(ve[i]-n/2,1,!0),re?V.push(te,ve):V.push(ve,te)}function O(V,Y,re){var te=B(V,re),ve=B(Y,re);return te[i]-=n/2,ve[i]-=n/2,{x:te[0],y:te[1],width:n,height:ve[1]-te[1]}}function z(V){return V[i]=bp(V[i],1),V}}function d(p,y){for(var g=Mi(p.count*4),m=0,_,S=[],w=[],x,b=y.getStore(),C=!!t.get(["itemStyle","borderColorDoji"]);(x=p.next())!=null;){var T=b.get(s,x),A=b.get(u,x),D=b.get(c,x),L=b.get(f,x),P=b.get(h,x);if(isNaN(T)||isNaN(L)||isNaN(P)){g[m++]=NaN,m+=3;continue}g[m++]=FI(b,x,A,D,c,C),S[i]=T,S[a]=L,_=e.dataToPoint(S,null,w),g[m++]=_?_[0]:NaN,g[m++]=_?_[1]:NaN,S[a]=P,_=e.dataToPoint(S,null,w),g[m++]=_?_[1]:NaN}y.setLayout("largePoints",g)}}};function FI(t,e,r,n,i,a){var o;return r>n?o=-1:r0?t.get(i,e-1)<=n?1:-1:1,o}function cse(t,e){var r=t.getBaseAxis(),n,i=r.type==="category"?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/e.count()),a=j(be(t.get("barMaxWidth"),i),i),o=j(be(t.get("barMinWidth"),1),i),s=t.get("barWidth");return s!=null?j(s,i):Math.max(Math.min(i/2,a),o)}const fse=use;function hse(t){t.registerChartView(Joe),t.registerSeriesModel(ese),t.registerPreprocessor(tse),t.registerVisual(lse),t.registerLayout(fse)}function VI(t,e){var r=e.rippleEffectColor||e.color;t.eachChild(function(n){n.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?r:null,fill:e.brushType==="fill"?r:null}})})}var vse=function(t){N(e,t);function e(r,n){var i=t.call(this)||this,a=new Sv(r,n),o=new fe;return i.add(a),i.add(o),i.updateData(r,n),i}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(r){for(var n=r.symbolType,i=r.color,a=r.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(a)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){a.stopAnimation();var h=void 0;ae(f)?h=f(i):h=f,a.__t>0&&(h=-s*a.__t),this._animateSymbol(a,s,h,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(r,n,i,a,o){if(n>0){r.__t=0;var s=this,l=r.animate("",a).when(o?n*2:n,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(r)});a||l.done(function(){s.remove(r)}),l.start()}},e.prototype._getLineLength=function(r){return Ki(r.__p1,r.__cp1)+Ki(r.__cp1,r.__p2)},e.prototype._updateAnimationPoints=function(r,n){r.__p1=n[0],r.__p2=n[1],r.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},e.prototype.updateData=function(r,n,i){this.childAt(0).updateData(r,n,i),this._updateEffectSymbol(r,n)},e.prototype._updateSymbolPosition=function(r){var n=r.__p1,i=r.__p2,a=r.__cp1,o=r.__t<1?r.__t:2-r.__t,s=[r.x,r.y],l=s.slice(),u=Zt,c=ZS;s[0]=u(n[0],a[0],i[0],o),s[1]=u(n[1],a[1],i[1],o);var f=r.__t<1?c(n[0],a[0],i[0],o):c(i[0],a[0],n[0],1-o),h=r.__t<1?c(n[1],a[1],i[1],o):c(i[1],a[1],n[1],1-o);r.rotation=-Math.atan2(h,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(r.__lastT!==void 0&&r.__lastT=0&&!(a[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;ln);l++);l=Math.min(l-1,o-2)}var c=(n-a[l])/(a[l+1]-a[l]),f=i[l],h=i[l+1];r.x=f[0]*(1-c)+c*h[0],r.y=f[1]*(1-c)+c*h[1];var v=r.__t<1?h[0]-f[0]:f[0]-h[0],d=r.__t<1?h[1]-f[1]:f[1]-h[1];r.rotation=-Math.atan2(d,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},e}(v4);const bse=wse;var Cse=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),Tse=function(t){N(e,t);function e(r){var n=t.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Cse},e.prototype.buildPath=function(r,n){var i=n.segs,a=n.curveness,o;if(n.polyline)for(o=this._off;o0){r.moveTo(i[o++],i[o++]);for(var l=1;l0){var v=(u+f)/2-(c-h)*a,d=(c+h)/2-(f-u)*a;r.quadraticCurveTo(v,d,f,h)}else r.lineTo(f,h)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(r,n){var i=this.shape,a=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u0)for(var f=a[u++],h=a[u++],v=1;v0){var y=(f+d)/2-(h-p)*o,g=(h+p)/2-(d-f)*o;if(Sz(f,h,y,g,d,p,s,r,n))return l}else if(Ha(f,h,d,p,s,r,n))return l;l++}return-1},e.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},e.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.segs,a=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();const Mse=Ase;var Dse={seriesType:"lines",plan:lc(),reset:function(t){var e=t.coordinateSystem;if(e){var r=t.get("polyline"),n=t.pipelineContext.large;return{progress:function(i,a){var o=[];if(n){var s=void 0,l=i.end-i.start;if(r){for(var u=0,c=i.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(a);var f=r.get("clip",!0)&&pm(r.coordinateSystem,!1,r);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateLineDraw(a,r);o.incrementalPrepareUpdate(a),this._clearLayer(i),this._finished=!1},e.prototype.incrementalRender=function(r,n,i){this._lineDraw.incrementalUpdate(r,n.getData()),this._finished=r.end===n.getData().count()},e.prototype.eachRendered=function(r){this._lineDraw&&this._lineDraw.eachRendered(r)},e.prototype.updateTransform=function(r,n,i){var a=r.getData(),o=r.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=p4.reset(r,n,i);s.progress&&s.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(i)},e.prototype._updateLineDraw=function(r,n){var i=this._lineDraw,a=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!i||a!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new Mse:new TT(o?a?bse:d4:a?v4:CT),this._hasEffet=a,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},e.prototype._showEffect=function(r){return!!r.get(["effect","show"])},e.prototype._clearLayer=function(r){var n=r.getZr(),i=n.painter.getType()==="svg";!i&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(r,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},e.prototype.dispose=function(r,n){this.remove(r,n)},e.type="lines",e}(Qe);const Pse=Lse;var Ise=typeof Uint32Array>"u"?Array:Uint32Array,Ese=typeof Float64Array>"u"?Array:Float64Array;function GI(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=H(e,function(r){var n=[r[0].coord,r[1].coord],i={coords:n};return r[0].name&&(i.fromName=r[0].name),r[1].name&&(i.toName=r[1].name),ky([i,r[0],r[1]])}))}var Rse=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return e.prototype.init=function(r){r.data=r.data||[],GI(r);var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(r){if(GI(r),r.data){var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(r){var n=this._processFlatCoordsArray(r.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=ph(this._flatCoords,n.flatCoords),this._flatCoordsOffset=ph(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),r.data=new Float32Array(n.count)),this.getRawData().appendData(r.data)},e.prototype._getCoordsFromItemModel=function(r){var n=this.getData().getItemModel(r),i=n.option instanceof Array?n.option:n.getShallow("coords");return i},e.prototype.getLineCoordsCount=function(r){return this._flatCoordsOffset?this._flatCoordsOffset[r*2+1]:this._getCoordsFromItemModel(r).length},e.prototype.getLineCoords=function(r,n){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[r*2],a=this._flatCoordsOffset[r*2+1],o=0;o ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var r=this.getModel("effect"),n=r.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:r.get("show")&&n>0?n+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(at);const kse=Rse;function Gd(t){return t instanceof Array||(t=[t,t]),t}var Ose={seriesType:"lines",reset:function(t){var e=Gd(t.get("symbol")),r=Gd(t.get("symbolSize")),n=t.getData();n.setVisual("fromSymbol",e&&e[0]),n.setVisual("toSymbol",e&&e[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]);function i(a,o){var s=a.getItemModel(o),l=Gd(s.getShallow("symbol",!0)),u=Gd(s.getShallow("symbolSize",!0));l[0]&&a.setItemVisual(o,"fromSymbol",l[0]),l[1]&&a.setItemVisual(o,"toSymbol",l[1]),u[0]&&a.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&a.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?i:null}}};const Nse=Ose;function Bse(t){t.registerChartView(Pse),t.registerSeriesModel(kse),t.registerLayout(p4),t.registerVisual(Nse)}var zse=256,Fse=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=ai.createCanvas();this.canvas=e}return t.prototype.update=function(e,r,n,i,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,h=f.getContext("2d"),v=e.length;f.width=r,f.height=n;for(var d=0;d0){var L=o(_)?l:u;_>0&&(_=_*A+C),w[x++]=L[D],w[x++]=L[D+1],w[x++]=L[D+2],w[x++]=L[D+3]*_*256}else x+=4}return h.putImageData(S,0,0),f},t.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=ai.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;e.width=n,e.height=n;var i=e.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-r,r,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),e},t.prototype._getGradient=function(e,r){for(var n=this._gradientPixels,i=n[r]||(n[r]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,s=0;s<256;s++)e[r](s/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},t}();const Vse=Fse;function Gse(t,e,r){var n=t[1]-t[0];e=H(e,function(o){return{interval:[(o.interval[0]-t[0])/n,(o.interval[1]-t[0])/n]}});var i=e.length,a=0;return function(o){var s;for(s=a;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s=e[0]&&n<=e[1]}}function HI(t){var e=t.dimensions;return e[0]==="lng"&&e[1]==="lat"}var Use=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(a=s)})}),this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(r,i,0,r.getData().count()):HI(o)&&this._renderOnGeo(o,r,a,i)},e.prototype.incrementalPrepareRender=function(r,n,i){this.group.removeAll()},e.prototype.incrementalRender=function(r,n,i,a){var o=n.coordinateSystem;o&&(HI(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,r.start,r.end,!0)))},e.prototype.eachRendered=function(r){Ro(this._progressiveEls||this.group,r)},e.prototype._renderOnCartesianAndCalendar=function(r,n,i,a,o){var s=r.coordinateSystem,l=hl(s,"cartesian2d"),u,c,f,h;if(l){var v=s.getAxis("x"),d=s.getAxis("y");u=v.getBandWidth()+.5,c=d.getBandWidth()+.5,f=v.scale.getExtent(),h=d.scale.getExtent()}for(var p=this.group,y=r.getData(),g=r.getModel(["emphasis","itemStyle"]).getItemStyle(),m=r.getModel(["blur","itemStyle"]).getItemStyle(),_=r.getModel(["select","itemStyle"]).getItemStyle(),S=r.get(["itemStyle","borderRadius"]),w=Wt(r),x=r.getModel("emphasis"),b=x.get("focus"),C=x.get("blurScope"),T=x.get("disabled"),A=l?[y.mapDimension("x"),y.mapDimension("y"),y.mapDimension("value")]:[y.mapDimension("time"),y.mapDimension("value")],D=i;Df[1]||Eh[1])continue;var k=s.dataToPoint([I,E]);L=new Ne({shape:{x:k[0]-u/2,y:k[1]-c/2,width:u,height:c},style:P})}else{if(isNaN(y.get(A[1],D)))continue;L=new Ne({z2:1,shape:s.dataToRect([y.get(A[0],D)]).contentShape,style:P})}if(y.hasItemOption){var B=y.getItemModel(D),R=B.getModel("emphasis");g=R.getModel("itemStyle").getItemStyle(),m=B.getModel(["blur","itemStyle"]).getItemStyle(),_=B.getModel(["select","itemStyle"]).getItemStyle(),S=B.get(["itemStyle","borderRadius"]),b=R.get("focus"),C=R.get("blurScope"),T=R.get("disabled"),w=Wt(B)}L.shape.r=S;var O=r.getRawValue(D),z="-";O&&O[2]!=null&&(z=O[2]+""),sr(L,w,{labelFetcher:r,labelDataIndex:D,defaultOpacity:P.opacity,defaultText:z}),L.ensureState("emphasis").style=g,L.ensureState("blur").style=m,L.ensureState("select").style=_,yt(L,b,C,T),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),p.add(L),y.setItemGraphicEl(D,L),this._progressiveEls&&this._progressiveEls.push(L)}},e.prototype._renderOnGeo=function(r,n,i,a){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new Vse;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=r.getViewRect().clone(),f=r.getRoamTransform();c.applyTransform(f);var h=Math.max(c.x,0),v=Math.max(c.y,0),d=Math.min(c.width+c.x,a.getWidth()),p=Math.min(c.height+c.y,a.getHeight()),y=d-h,g=p-v,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(b,C,T){var A=r.dataToPoint([b,C]);return A[0]-=h,A[1]-=v,A.push(T),A}),S=i.getExtent(),w=i.type==="visualMap.continuous"?Hse(S,i.option.range):Gse(S,i.getPieceList(),i.option.selected);u.update(_,y,g,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},w);var x=new Qt({style:{width:y,height:g,x:h,y:v,image:u.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(Qe);const Wse=Use;var $se=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return Vi(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var r=sc.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(at);const Yse=$se;function jse(t){t.registerChartView(Wse),t.registerSeriesModel(Yse)}var Xse=["itemStyle","borderWidth"],UI=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],o_=new li,Zse=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=this.group,o=r.getData(),s=this._data,l=r.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),h={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:r,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:UI[+c],categoryDim:UI[1-+c]};return o.diff(s).add(function(v){if(o.hasValue(v)){var d=$I(o,v),p=WI(o,v,d,h),y=YI(o,h,p);o.setItemGraphicEl(v,y),a.add(y),XI(y,h,p)}}).update(function(v,d){var p=s.getItemGraphicEl(d);if(!o.hasValue(v)){a.remove(p);return}var y=$I(o,v),g=WI(o,v,y,h),m=x4(o,g);p&&m!==p.__pictorialShapeStr&&(a.remove(p),o.setItemGraphicEl(v,null),p=null),p?rle(p,h,g):p=YI(o,h,g,!0),o.setItemGraphicEl(v,p),p.__pictorialSymbolMeta=g,a.add(p),XI(p,h,g)}).remove(function(v){var d=s.getItemGraphicEl(v);d&&jI(s,v,d.__pictorialSymbolMeta.animationModel,d)}).execute(),this._data=o,this.group},e.prototype.remove=function(r,n){var i=this.group,a=this._data;r.get("animation")?a&&a.eachItemGraphicEl(function(o){jI(a,pe(o).dataIndex,r,o)}):i.removeAll()},e.type="pictorialBar",e}(Qe);function WI(t,e,r,n){var i=t.getItemLayout(e),a=r.get("symbolRepeat"),o=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=r.get("symbolPatternSize")||2,f=r.isAnimationEnabled(),h={dataIndex:e,layout:i,itemModel:r,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?r:null,hoverScale:f&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};qse(r,a,i,n,h),Kse(t,e,i,a,o,h.boundingLength,h.pxSign,c,n,h),Qse(r,h.symbolScale,u,n,h);var v=h.symbolSize,d=cc(r.get("symbolOffset"),v);return Jse(r,v,i,a,o,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function qse(t,e,r,n,i){var a=n.valueDim,o=t.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(r[a.wh]<=0),c;if(G(o)){var f=[s_(s,o[0])-l,s_(s,o[1])-l];f[1]0?1:-1}function s_(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function Kse(t,e,r,n,i,a,o,s,l,u){var c=l.valueDim,f=l.categoryDim,h=Math.abs(r[f.wh]),v=t.getItemVisual(e,"symbolSize"),d;G(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[f.index]=j(d[f.index],h),d[c.index]=j(d[c.index],n?h:Math.abs(a)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[c.index]*=(l.isHorizontal?-1:1)*o}function Qse(t,e,r,n,i){var a=t.get(Xse)||0;a&&(o_.attr({scaleX:e[0],scaleY:e[1],rotation:r}),o_.updateTransform(),a/=o_.getLineScale(),a*=e[n.valueDim.index]),i.valueLineWidth=a||0}function Jse(t,e,r,n,i,a,o,s,l,u,c,f){var h=c.categoryDim,v=c.valueDim,d=f.pxSign,p=Math.max(e[v.index]+s,0),y=p;if(n){var g=Math.abs(l),m=Vt(t.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=j(m,e[v.index]),w=Math.max(p+S*2,0),x=_?0:S*2,b=rC(n),C=b?n:ZI((g+x)/w),T=g-C*p;S=T/2/(_?C:Math.max(C-1,1)),w=p+S*2,x=_?0:S*2,!b&&n!=="fixed"&&(C=u?ZI((Math.abs(u)+x)/w):0),y=C*w-x,f.repeatTimes=C,f.symbolMargin=S}var A=d*(y/2),D=f.pathPosition=[];D[h.index]=r[h.wh]/2,D[v.index]=o==="start"?A:o==="end"?l-A:l/2,a&&(D[0]+=a[0],D[1]+=a[1]);var L=f.bundlePosition=[];L[h.index]=r[h.xy],L[v.index]=r[v.xy];var P=f.barRectShape=F({},r);P[v.wh]=d*Math.max(Math.abs(r[v.wh]),Math.abs(D[v.index]+A)),P[h.wh]=r[h.wh];var I=f.clipShape={};I[h.xy]=-r[h.xy],I[h.wh]=c.ecSize[h.wh],I[v.xy]=0,I[v.wh]=r[v.wh]}function g4(t){var e=t.symbolPatternSize,r=Mt(t.symbolType,-e/2,-e/2,e,e);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function y4(t,e,r,n){var i=t.__pictorialBundle,a=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=e.valueDim,u=r.repeatTimes||0,c=0,f=a[e.valueDim.index]+o+r.symbolMargin*2;for(RT(t,function(p){p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,c0:g<0)&&(m=u-1-p),y[l.index]=f*(m-u/2+.5)+s[l.index],{x:y[0],y:y[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function m4(t,e,r,n){var i=t.__pictorialBundle,a=t.__pictorialMainPath;a?xu(a,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(a=t.__pictorialMainPath=g4(r),i.add(a),xu(a,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,n))}function _4(t,e,r){var n=F({},e.barRectShape),i=t.__pictorialBarRect;i?xu(i,null,{shape:n},e,r):(i=t.__pictorialBarRect=new Ne({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,t.add(i))}function S4(t,e,r,n){if(r.symbolClip){var i=t.__pictorialClipPath,a=F({},r.clipShape),o=e.valueDim,s=r.animationModel,l=r.dataIndex;if(i)Ge(i,{shape:a},s,l);else{a[o.wh]=0,i=new Ne({shape:a}),t.__pictorialBundle.setClipPath(i),t.__pictorialClipPath=i;var u={};u[o.wh]=r.clipShape[o.wh],dv[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function $I(t,e){var r=t.getItemModel(e);return r.getAnimationDelayParams=ele,r.isAnimationEnabled=tle,r}function ele(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function tle(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function YI(t,e,r,n){var i=new fe,a=new fe;return i.add(a),i.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?y4(i,e,r):m4(i,e,r),_4(i,r,n),S4(i,e,r,n),i.__pictorialShapeStr=x4(t,r),i.__pictorialSymbolMeta=r,i}function rle(t,e,r){var n=r.animationModel,i=r.dataIndex,a=t.__pictorialBundle;Ge(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?y4(t,e,r,!0):m4(t,e,r,!0),_4(t,r,!0),S4(t,e,r,!0)}function jI(t,e,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];RT(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),M(a,function(o){xo(o,{scaleX:0,scaleY:0},r,e,function(){n.parent&&n.parent.remove(n)})}),t.setItemGraphicEl(e,null)}function x4(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function RT(t,e,r){M(t.__pictorialBundle.children(),function(n){n!==t.__pictorialBarRect&&e.call(r,n)})}function xu(t,e,r,n,i,a){e&&t.attr(e),n.symbolClip&&!i?r&&t.attr(r):r&&dv[i?"updateProps":"initProps"](t,r,n.animationModel,n.dataIndex,a)}function XI(t,e,r){var n=r.dataIndex,i=r.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=a.get("focus"),f=a.get("blurScope"),h=a.get("scale");RT(t,function(p){if(p instanceof Qt){var y=p.style;p.useStyle(F({image:y.image,x:y.x,y:y.y,width:y.width,height:y.height},r.style))}else p.useStyle(r.style);var g=p.ensureState("emphasis");g.style=o,h&&(g.scaleX=p.scaleX*1.1,g.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=r.z2});var v=e.valueDim.posDesc[+(r.boundingLength>0)],d=t.__pictorialBarRect;sr(d,Wt(i),{labelFetcher:e.seriesModel,labelDataIndex:n,defaultText:zu(e.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:v}),yt(t,c,f,a.get("disabled"))}function ZI(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}const nle=Zse;var ile=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return e.prototype.getInitialData=function(r){return r.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=ko(Fg.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Fg);const ale=ile;function ole(t){t.registerChartView(nle),t.registerSeriesModel(ale),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,ye(rF,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,nF("pictorialBar"))}var sle=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._layers=[],r}return e.prototype.render=function(r,n,i){var a=r.getData(),o=this,s=this.group,l=r.getLayerSeries(),u=a.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function h(y){return y.name}var v=new ga(this._layersSeries||[],l,h,h),d=[];v.add(Q(p,this,"add")).update(Q(p,this,"update")).remove(Q(p,this,"remove")).execute();function p(y,g,m){var _=o._layers;if(y==="remove"){s.remove(_[g]);return}for(var S=[],w=[],x,b=l[g].indices,C=0;Ca&&(a=s),n.push(s)}for(var u=0;ua&&(a=f)}return{y0:i,max:a}}function dle(t){t.registerChartView(ule),t.registerSeriesModel(fle),t.registerLayout(hle),t.registerProcessor(bv("themeRiver"))}var ple=2,gle=4,yle=function(t){N(e,t);function e(r,n,i,a){var o=t.call(this)||this;o.z2=ple,o.textConfig={inside:!0},pe(o).seriesIndex=n.seriesIndex;var s=new Oe({z2:gle,silent:r.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,r,n,i,a),o}return e.prototype.updateData=function(r,n,i,a,o){this.node=n,n.piece=this,i=i||this._seriesModel,a=a||this._ecModel;var s=this;pe(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=F({},c);f.label=null;var h=n.getVisual("style");h.lineJoin="bevel";var v=n.getVisual("decal");v&&(h.decal=Bu(v,o));var d=Rs(l.getModel("itemStyle"),f,!0);F(f,d),M(Mr,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var w=Rs(S,f);w&&(_.shape=w)}),r?(s.setShape(f),s.shape.r=c.r0,lt(s,{shape:{r:c.r}},i,n.dataIndex)):(Ge(s,{shape:f},i),ui(s)),s.useStyle(h),this._updateLabel(i);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=i||this._seriesModel,this._ecModel=a||this._ecModel;var y=u.get("focus"),g=y==="ancestor"?n.getAncestorsIndices():y==="descendant"?n.getDescendantIndices():y;yt(this,g,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r){var n=this,i=this.node.getModel(),a=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,h=f.getTextContent(),v=this.node.dataIndex,d=a.get("minAngle")/180*Math.PI,p=a.get("show")&&!(d!=null&&Math.abs(s)Math.PI/2?"right":"left"):!L||L==="center"?(s===2*Math.PI&&o.r0===0?A=0:A=(o.r+o.r0)/2,L="center"):L==="left"?(A=o.r0+D,l>Math.PI/2&&(L="right")):L==="right"&&(A=o.r-D,l>Math.PI/2&&(L="left")),S.style.align=L,S.style.verticalAlign=y(m,"verticalAlign")||"middle",S.x=A*u+o.cx,S.y=A*c+o.cy;var P=y(m,"rotate"),I=0;P==="radial"?(I=ta(-l),I>Math.PI/2&&IMath.PI/2?I-=Math.PI:I<-Math.PI/2&&(I+=Math.PI)):Fe(P)&&(I=P*Math.PI/180),S.rotation=I});function y(g,m){var _=g.get(m);return _??a.get(m)}h.dirtyStyle()},e}(Dr);const KI=yle;var cw="sunburstRootToNode",QI="sunburstHighlight",mle="sunburstUnhighlight";function _le(t){t.registerAction({type:cw,update:"updateView"},function(e,r){r.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(i,a){var o=Fh(e,[cw],i);if(o){var s=i.getViewRoot();s&&(e.direction=mT(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),t.registerAction({type:QI,update:"none"},function(e,r,n){e=F({},e),r.eachComponent({mainType:"series",subType:"sunburst",query:e},i);function i(a){var o=Fh(e,[QI],a);o&&(e.dataIndex=o.node.dataIndex)}n.dispatchAction(F(e,{type:"highlight"}))}),t.registerAction({type:mle,update:"updateView"},function(e,r,n){e=F({},e),n.dispatchAction(F(e,{type:"downplay"}))})}var Sle=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i,a){var o=this;this.seriesModel=r,this.api=i,this.ecModel=n;var s=r.getData(),l=s.tree.root,u=r.getViewRoot(),c=this.group,f=r.get("renderLabelForZeroData"),h=[];u.eachNode(function(m){h.push(m)});var v=this._oldChildren||[];d(h,v),g(l,u),this._initEvents(),this._oldChildren=h;function d(m,_){if(m.length===0&&_.length===0)return;new ga(_,m,S,S).add(w).update(w).remove(ye(w,null)).execute();function S(x){return x.getId()}function w(x,b){var C=x==null?null:m[x],T=b==null?null:_[b];p(C,T)}}function p(m,_){if(!f&&m&&!m.getValue()&&(m=null),m!==l&&_!==l){if(_&&_.piece)m?(_.piece.updateData(!1,m,r,n,i),s.setItemGraphicEl(m.dataIndex,_.piece)):y(_);else if(m){var S=new KI(m,r,n,i);c.add(S),s.setItemGraphicEl(m.dataIndex,S)}}}function y(m){m&&m.piece&&(c.remove(m.piece),m.piece=null)}function g(m,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,r,n,i):(o.virtualPiece=new KI(m,r,n,i),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(n){var i=!1,a=r.seriesModel.getViewRoot();a.eachNode(function(o){if(!i&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")r._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";Cg(u,c)}}i=!0}})})},e.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:cw,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},e.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}},e.type="sunburst",e}(Qe);const xle=Sle;var wle=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.ignoreStyleOnData=!0,r}return e.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};w4(i);var a=this._levelModels=H(r.levels||[],function(l){return new qe(l,this,n)},this),o=yT.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),h=a[f.depth];return h&&(u.parentModel=h),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(r){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treePathInfo=mm(i,this),n},e.prototype.getLevelModel=function(r){return this._levelModels&&this._levelModels[r.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){AV(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(at);function w4(t){var e=0;M(t.children,function(n){w4(n);var i=n.value;G(i)&&(i=i[0]),e+=i});var r=t.value;G(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=e),r<0&&(r=0),G(t.value)?t.value[0]=r:t.value=r}const ble=wle;var JI=Math.PI/180;function Cle(t,e,r){e.eachSeriesByType(t,function(n){var i=n.get("center"),a=n.get("radius");G(a)||(a=[0,a]),G(i)||(i=[i,i]);var o=r.getWidth(),s=r.getHeight(),l=Math.min(o,s),u=j(i[0],o),c=j(i[1],s),f=j(a[0],l/2),h=j(a[1],l/2),v=-n.get("startAngle")*JI,d=n.get("minAngle")*JI,p=n.getData().tree.root,y=n.getViewRoot(),g=y.depth,m=n.get("sort");m!=null&&b4(y,m);var _=0;M(y.children,function(k){!isNaN(k.getValue())&&_++});var S=y.getValue(),w=Math.PI/(S||_)*2,x=y.depth>0,b=y.height-(x?-1:1),C=(h-f)/(b||1),T=n.get("clockwise"),A=n.get("stillShowZeroSum"),D=T?1:-1,L=function(k,B){if(k){var R=B;if(k!==p){var O=k.getValue(),z=S===0&&A?w:O*w;z1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",e);return n.depth>1&&Z(s)&&(s=vg(s,(n.depth-1)/(a-1)*.5)),s}t.eachSeriesByType("sunburst",function(n){var i=n.getData(),a=i.tree;a.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=r(o,n,a.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");F(u,l)})})}function Mle(t){t.registerChartView(xle),t.registerSeriesModel(ble),t.registerLayout(ye(Cle,"sunburst")),t.registerProcessor(ye(bv,"sunburst")),t.registerVisual(Ale),_le(t)}var eE={color:"fill",borderColor:"stroke"},Dle={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},oa=Ve(),Lle=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(r,n){return Vi(null,this)},e.prototype.getDataParams=function(r,n,i){var a=t.prototype.getDataParams.call(this,r,n);return i&&(a.info=oa(i).info),a},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(at);const Ple=Lle;function Ile(t,e){return e=e||[0,0],H(["x","y"],function(r,n){var i=this.getAxis(r),a=e[n],o=t[n]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function Ele(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(r){return t.dataToPoint(r)},size:Q(Ile,t)}}}function Rle(t,e){return e=e||[0,0],H([0,1],function(r){var n=e[r],i=t[r]/2,a=[],o=[];return a[r]=n-i,o[r]=n+i,a[1-r]=o[1-r]=e[1-r],Math.abs(this.dataToPoint(a)[r]-this.dataToPoint(o)[r])},this)}function kle(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(r){return t.dataToPoint(r)},size:Q(Rle,t)}}}function Ole(t,e){var r=this.getAxis(),n=e instanceof Array?e[0]:e,i=(t instanceof Array?t[0]:t)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-i)-r.dataToCoord(n+i))}function Nle(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(r){return t.dataToPoint(r)},size:Q(Ole,t)}}}function Ble(t,e){return e=e||[0,0],H(["Radius","Angle"],function(r,n){var i="get"+r+"Axis",a=this[i](),o=e[n],s=t[n]/2,l=a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function zle(t){var e=t.getRadiusAxis(),r=t.getAngleAxis(),n=e.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:n[1],r0:n[0]},api:{coord:function(i){var a=e.dataToRadius(i[0]),o=r.dataToAngle(i[1]),s=t.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:Q(Ble,t)}}}function Fle(t){var e=t.getRect(),r=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,i){return t.dataToPoint(n,i)}}}}function C4(t,e,r,n){return t&&(t.legacy||t.legacy!==!1&&!r&&!n&&e!=="tspan"&&(e==="text"||ee(t,"text")))}function T4(t,e,r){var n=t,i,a,o;if(e==="text")o=n;else{o={},ee(n,"text")&&(o.text=n.text),ee(n,"rich")&&(o.rich=n.rich),ee(n,"textFill")&&(o.fill=n.textFill),ee(n,"textStroke")&&(o.stroke=n.textStroke),ee(n,"fontFamily")&&(o.fontFamily=n.fontFamily),ee(n,"fontSize")&&(o.fontSize=n.fontSize),ee(n,"fontStyle")&&(o.fontStyle=n.fontStyle),ee(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=ee(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),ee(n,"textPosition")&&(i.position=n.textPosition),ee(n,"textOffset")&&(i.offset=n.textOffset),ee(n,"textRotation")&&(i.rotation=n.textRotation),ee(n,"textDistance")&&(i.distance=n.textDistance)}return tE(o,t),M(o.rich,function(l){tE(l,l)}),{textConfig:i,textContent:a}}function tE(t,e){e&&(e.font=e.textFont||e.font,ee(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),ee(e,"textAlign")&&(t.align=e.textAlign),ee(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),ee(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),ee(e,"textWidth")&&(t.width=e.textWidth),ee(e,"textHeight")&&(t.height=e.textHeight),ee(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),ee(e,"textPadding")&&(t.padding=e.textPadding),ee(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),ee(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),ee(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),ee(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),ee(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),ee(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),ee(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function rE(t,e,r){var n=t;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var i=n.textPosition.indexOf("inside")>=0,a=t.fill||"#000";nE(n,e);var o=n.textFill==null;return i?o&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=a),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=t.fill||r.outsideFill||"#000"),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=e.text,n.rich=e.rich,M(e.rich,function(s){nE(s,s)}),n}function nE(t,e){e&&(ee(e,"fill")&&(t.textFill=e.fill),ee(e,"stroke")&&(t.textStroke=e.fill),ee(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),ee(e,"font")&&(t.font=e.font),ee(e,"fontStyle")&&(t.fontStyle=e.fontStyle),ee(e,"fontWeight")&&(t.fontWeight=e.fontWeight),ee(e,"fontSize")&&(t.fontSize=e.fontSize),ee(e,"fontFamily")&&(t.fontFamily=e.fontFamily),ee(e,"align")&&(t.textAlign=e.align),ee(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),ee(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),ee(e,"width")&&(t.textWidth=e.width),ee(e,"height")&&(t.textHeight=e.height),ee(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),ee(e,"padding")&&(t.textPadding=e.padding),ee(e,"borderColor")&&(t.textBorderColor=e.borderColor),ee(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),ee(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),ee(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),ee(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),ee(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),ee(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),ee(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),ee(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),ee(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),ee(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var A4={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},iE=Ie(A4);En(Oi,function(t,e){return t[e]=1,t},{});Oi.join(", ");var jg=["","style","shape","extra"],Gu=Ve();function kT(t,e,r,n,i){var a=t+"Animation",o=Ju(t,n,i)||{},s=Gu(e).userDuring;return o.duration>0&&(o.during=s?Q(Wle,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=t),F(o,r[a]),o}function Lp(t,e,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=Gu(t),u=e.style;l.userDuring=e.during;var c={},f={};if(Yle(t,e,f),oE("shape",e,f),oE("extra",e,f),!a&&s&&($le(t,e,c),aE("shape",t,e,c),aE("extra",t,e,c),jle(t,e,u,c)),f.style=u,Vle(t,f,o),Hle(t,e),s)if(a){var h={};M(jg,function(d){var p=d?e[d]:e;p&&p.enterFrom&&(d&&(h[d]=h[d]||{}),F(d?h[d]:h,p.enterFrom))});var v=kT("enter",t,e,r,i);v.duration>0&&t.animateFrom(h,v)}else Gle(t,e,i||0,r,c);M4(t,e),u?t.dirty():t.markRedraw()}function M4(t,e){for(var r=Gu(t).leaveToProps,n=0;n0&&t.animateFrom(i,a)}}function Hle(t,e){ee(e,"silent")&&(t.silent=e.silent),ee(e,"ignore")&&(t.ignore=e.ignore),t instanceof Rn&&ee(e,"invisible")&&(t.invisible=e.invisible),t instanceof Pe&&ee(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var mi={},Ule={setTransform:function(t,e){return mi.el[t]=e,this},getTransform:function(t){return mi.el[t]},setShape:function(t,e){var r=mi.el,n=r.shape||(r.shape={});return n[t]=e,r.dirtyShape&&r.dirtyShape(),this},getShape:function(t){var e=mi.el.shape;if(e)return e[t]},setStyle:function(t,e){var r=mi.el,n=r.style;return n&&(n[t]=e,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(t){var e=mi.el.style;if(e)return e[t]},setExtra:function(t,e){var r=mi.el.extra||(mi.el.extra={});return r[t]=e,this},getExtra:function(t){var e=mi.el.extra;if(e)return e[t]}};function Wle(){var t=this,e=t.el;if(e){var r=Gu(e).userDuring,n=t.userDuring;if(r!==n){t.el=t.userDuring=null;return}mi.el=e,n(Ule)}}function aE(t,e,r,n){var i=r[t];if(i){var a=e[t],o;if(a){var s=r.transition,l=i.transition;if(l)if(!o&&(o=n[t]={}),Us(l))F(o,a);else for(var u=Ke(l),c=0;c=0){!o&&(o=n[t]={});for(var v=Ie(a),c=0;c=0)){var h=t.getAnimationStyleProps(),v=h?h.style:null;if(v){!a&&(a=n.style={});for(var d=Ie(r),u=0;u=0?e.getStore().get(B,E):void 0}var R=e.get(k.name,E),O=k&&k.ordinalMeta;return O?O.categories[R]:R}function x(I,E){E==null&&(E=u);var k=e.getItemVisual(E,"style"),B=k&&k.fill,R=k&&k.opacity,O=m(E,Ja).getItemStyle();B!=null&&(O.fill=B),R!=null&&(O.opacity=R);var z={inheritColor:Z(B)?B:"#000"},V=_(E,Ja),Y=tt(V,null,z,!1,!0);Y.text=V.getShallow("show")?be(t.getFormattedLabel(E,Ja),zu(e,E)):null;var re=wg(V,z,!1);return T(I,O),O=rE(O,Y,re),I&&C(O,I),O.legacy=!0,O}function b(I,E){E==null&&(E=u);var k=m(E,sa).getItemStyle(),B=_(E,sa),R=tt(B,null,null,!0,!0);R.text=B.getShallow("show")?Ii(t.getFormattedLabel(E,sa),t.getFormattedLabel(E,Ja),zu(e,E)):null;var O=wg(B,null,!0);return T(I,k),k=rE(k,R,O),I&&C(k,I),k.legacy=!0,k}function C(I,E){for(var k in E)ee(E,k)&&(I[k]=E[k])}function T(I,E){I&&(I.textFill&&(E.textFill=I.textFill),I.textPosition&&(E.textPosition=I.textPosition))}function A(I,E){if(E==null&&(E=u),ee(eE,I)){var k=e.getItemVisual(E,"style");return k?k[eE[I]]:null}if(ee(Dle,I))return e.getItemVisual(E,I)}function D(I){if(a.type==="cartesian2d"){var E=a.getBaseAxis();return YK(oe({axis:E},I))}}function L(){return r.getCurrentSeriesIndices()}function P(I){return c5(I,r)}}function iue(t){var e={};return M(t.dimensions,function(r){var n=t.getDimensionInfo(r);if(!n.isExtraCoord){var i=n.coordDim,a=e[i]=e[i]||[];a[n.coordDimIndex]=t.getDimensionIndex(r)}}),e}function f_(t,e,r,n,i,a,o){if(!n){a.remove(e);return}var s=FT(t,e,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&yt(s,n.focus,n.blurScope,n.emphasisDisabled),s}function FT(t,e,r,n,i,a){var o=-1,s=e;e&&I4(e,n,i)&&(o=Te(a.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=BT(n),s&&Jle(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),vn.normal.cfg=vn.normal.conOpt=vn.emphasis.cfg=vn.emphasis.conOpt=vn.blur.cfg=vn.blur.conOpt=vn.select.cfg=vn.select.conOpt=null,vn.isLegacy=!1,oue(u,r,n,i,l,vn),aue(u,r,n,i,l),zT(t,u,r,n,vn,i,l),ee(n,"info")&&(oa(u).info=n.info);for(var c=0;c=0?a.replaceAt(u,o):a.add(u),u}function I4(t,e,r){var n=oa(t),i=e.type,a=e.shape,o=e.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&fue(a)&&E4(a)!==n.customPathData||i==="image"&&ee(o,"image")&&o.image!==n.customImagePath}function aue(t,e,r,n,i){var a=r.clipPath;if(a===!1)t&&t.getClipPath()&&t.removeClipPath();else if(a){var o=t.getClipPath();o&&I4(o,a,n)&&(o=null),o||(o=BT(a),t.setClipPath(o)),zT(null,o,e,a,null,n,i)}}function oue(t,e,r,n,i,a){if(!t.isGroup){lE(r,null,a),lE(r,sa,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=t.getTextContent();if(o===!1)c&&t.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=BT(o),t.setTextContent(c)),zT(null,c,e,o,null,n,i);for(var f=o&&o.style,h=0;h=c;v--){var d=e.childAt(v);lue(e,d,i)}}}function lue(t,e,r){e&&xm(e,oa(t).option,r)}function uue(t){new ga(t.oldChildren,t.newChildren,uE,uE,t).add(cE).update(cE).remove(cue).execute()}function uE(t,e){var r=t&&t.name;return r??Kle+e}function cE(t,e){var r=this.context,n=t!=null?r.newChildren[t]:null,i=e!=null?r.oldChildren[e]:null;FT(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function cue(t){var e=this.context,r=e.oldChildren[t];r&&xm(r,oa(r).option,e.seriesModel)}function E4(t){return t&&(t.pathData||t.d)}function fue(t){return t&&(ee(t,"pathData")||ee(t,"d"))}function hue(t){t.registerChartView(tue),t.registerSeriesModel(Ple)}var _s=Ve(),fE=le,h_=Q,vue=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,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,e,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new fe,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),n.getZr().add(s);else{var h=ye(hE,r,f);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,r)}dE(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),i=e.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&&i.getBandWidth()>s)return!0;if(o){var l=cT(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,i,a){},t.prototype.createPointerEl=function(e,r,n,i){var a=r.pointer;if(a){var o=_s(e).pointerEl=new dv[a.type](fE(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,i){if(r.label){var a=_s(e).labelEl=new Oe(fE(r.label));e.add(a),vE(a,i)}},t.prototype.updatePointerEl=function(e,r,n){var i=_s(e).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,i){var a=_s(e).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),vE(a,i))},t.prototype._renderHandle=function(e){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=ec(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){va(u.event)},onmousedown:h_(this._onHandleDragMove,this,0,0),drift:h_(this._onHandleDragMove,this),ondragend:h_(this._onHandleDragEnd,this)}),n.add(i)),dE(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");G(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,uc(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){hE(this._axisPointerModel,!r&&this._moveAnimation,this._handle,v_(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(v_(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(v_(i)),_s(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){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}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.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),Eh(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return n=n||0,{x:e[n],y:e[1-n],width:r[n],height:r[1-n]}},t}();function hE(t,e,r,n){R4(_s(r).lastProp,n)||(_s(r).lastProp=n,e?Ge(r,n,t):(r.stopAnimation(),r.attr(n)))}function R4(t,e){if(se(t)&&se(e)){var r=!0;return M(e,function(n,i){r=r&&R4(t[i],n)}),!!r}else return t===e}function vE(t,e){t[e.get(["label","show"])?"show":"hide"]()}function v_(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function dE(t,e,r){var n=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}const GT=vue;function HT(t){var e=t.get("type"),r=t.getModel(e+"Style"),n;return e==="line"?(n=r.getLineStyle(),n.fill=null):e==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function k4(t,e,r,n,i){var a=r.get("value"),o=O4(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=fl(s.get("padding")||0),u=s.getFont(),c=sv(o,u),f=i.position,h=c.width+l[1]+l[3],v=c.height+l[0]+l[2],d=i.align;d==="right"&&(f[0]-=h),d==="center"&&(f[0]-=h/2);var p=i.verticalAlign;p==="bottom"&&(f[1]-=v),p==="middle"&&(f[1]-=v/2),due(f,h,v,n);var y=s.get("backgroundColor");(!y||y==="auto")&&(y=e.get(["axisLine","lineStyle","color"])),t.label={x:f[0],y:f[1],style:tt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function due(t,e,r,n){var i=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function O4(t,e,r,n,i){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:i.precision}),o=i.formatter;if(o){var s={value:tT(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};M(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),Z(o)?a=o.replace("{value}",a):ae(o)&&(a=o(s))}return a}function UT(t,e,r){var n=rn();return Eo(n,n,r.rotation),oi(n,n,r.position),ni([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function N4(t,e,r,n,i,a){var o=ma.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),k4(e,n,i,a,{position:UT(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function WT(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function B4(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function pE(t,e,r,n,i,a){return{cx:t,cy:e,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var pue=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=gE(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=HT(a),v=gue[u](s,f,c);v.style=h,r.graphicKey=v.type,r.pointer=v}var d=Xx(l.model,i);N4(n,r,d,i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=Xx(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=UT(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=gE(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var h=(u[1]+u[0])/2,v=[h,h];v[c]=f[c];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:v,tooltipOption:d[c]}},e}(GT);function gE(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var gue={line:function(t,e,r){var n=WT([e,r[0]],[e,r[1]],yE(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r){var n=Math.max(1,t.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:B4([e-n/2,r[0]],[n,i],yE(t))}}};function yE(t){return t.dim==="x"?0:1}const yue=pue;var mue=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(ke);const _ue=mue;var ra=Ve(),Sue=M;function z4(t,e,r){if(!ze.node){var n=e.getZr();ra(n).records||(ra(n).records={}),xue(n,e);var i=ra(n).records[t]||(ra(n).records[t]={});i.handler=r}}function xue(t,e){if(ra(t).initialized)return;ra(t).initialized=!0,r("click",ye(mE,"click")),r("mousemove",ye(mE,"mousemove")),r("globalout",bue);function r(n,i){t.on(n,function(a){var o=Cue(e);Sue(ra(t).records,function(s){s&&i(s,a,o.dispatchAction)}),wue(o.pendings,e)})}}function wue(t,e){var r=t.showTip.length,n=t.hideTip.length,i;r?i=t.showTip[r-1]:n&&(i=t.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function bue(t,e,r){t.handler("leave",null,r)}function mE(t,e,r,n){e.handler(t,r,n)}function Cue(t){var e={showTip:[],hideTip:[]},r=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function vw(t,e){if(!ze.node){var r=e.getZr(),n=(ra(r).records||{})[t];n&&(ra(r).records[t]=null)}}var Tue=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";z4("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})})},e.prototype.remove=function(r,n){vw("axisPointer",n)},e.prototype.dispose=function(r,n){vw("axisPointer",n)},e.type="axisPointer",e}(ft);const Aue=Tue;function F4(t,e){var r=[],n=t.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Qs(a,t);if(o==null||o<0||G(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,h=u.dim,v=f==="x"||f==="radius"?1:0,d=a.mapDimension(h),p=[];p[v]=a.get(d,o),p[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(a.getValues(H(l.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),r=[y.x+y.width/2,y.y+y.height/2]}return{point:r,el:s}}var _E=Ve();function Mue(t,e,r){var n=t.currTrigger,i=[t.x,t.y],a=t,o=t.dispatchAction||Q(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Pp(i)&&(i=F4({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Pp(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||Pp(i),h={},v={},d={list:[],map:{}},p={showPointer:ye(Lue,v),showTooltip:ye(Pue,d)};M(s.coordSysMap,function(g,m){var _=l||g.containPoint(i);M(s.coordSysAxesInfo[m],function(S,w){var x=S.axis,b=kue(u,S);if(!f&&_&&(!u||b)){var C=b&&b.value;C==null&&!l&&(C=x.pointToData(i)),C!=null&&SE(S,C,p,!1,h)}})});var y={};return M(c,function(g,m){var _=g.linkGroup;_&&!v[m]&&M(_.axesInfo,function(S,w){var x=v[w];if(S!==g&&x){var b=x.value;_.mapper&&(b=g.axis.scale.parse(_.mapper(b,xE(S),xE(g)))),y[g.key]=b}})}),M(y,function(g,m){SE(c[m],g,p,!0,h)}),Iue(v,c,h),Eue(d,i,t,o),Rue(c,o,r),h}}function SE(t,e,r,n,i){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=Due(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&F(i,s[0]),!n&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function Due(t,e){var r=e.axis,n=r.dim,i=t,a=[],o=Number.MAX_VALUE,s=-1;return M(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(c,t,r);h=v.dataIndices,f=v.nestestValue}else{if(h=l.getData().indicesOfNearest(c[0],t,r.type==="category"?.5:null),!h.length)return;f=l.getData().get(c[0],h[0])}if(!(f==null||!isFinite(f))){var d=t-f,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,i=f,a.length=0),M(h,function(y){a.push({seriesIndex:l.seriesIndex,dataIndexInside:y,dataIndex:l.getData().getRawIndex(y)})}))}}),{payloadBatch:a,snapToValue:i}}function Lue(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function Pue(t,e,r,n){var i=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=zh(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim: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 Iue(t,e,r){var n=r.axesInfo=[];M(e,function(i,a){var o=i.axisPointerModel.option,s=t[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 Eue(t,e,r,n){if(Pp(e)||!t.list.length){n({type:"hideTip"});return}var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}function Rue(t,e,r){var n=r.getZr(),i="axisPointerLastHighlights",a=_E(n)[i]||{},o=_E(n)[i]={};M(t,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&M(f.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];M(a,function(u,c){!o[c]&&l.push(u)}),M(o,function(u,c){!a[c]&&s.push(u)}),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 kue(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function xE(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function Pp(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function Mv(t){vl.registerAxisPointerClass("CartesianAxisPointer",yue),t.registerComponentModel(_ue),t.registerComponentView(Aue),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!G(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=xte(e,r)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Mue)}function Oue(t){Ae(fV),Ae(Mv)}var Nue=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(n),h=a.get("type");if(h&&h!=="none"){var v=HT(a),d=zue[h](s,l,f,c);d.style=v,r.graphicKey=d.type,r.pointer=d}var p=a.get(["label","margin"]),y=Bue(n,i,a,l,p);k4(r,i,a,o,y)},e}(GT);function Bue(t,e,r,n,i){var a=e.axis,o=a.dataToCoord(t),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,f;if(a.dim==="radius"){var h=rn();Eo(h,h,s),oi(h,h,[n.cx,n.cy]),u=ni([o,-i],h);var v=e.getModel("axisLabel").get("rotate")||0,d=ma.innerTextLayout(s,v*Math.PI/180,-1);c=d.textAlign,f=d.textVerticalAlign}else{var p=l[1];u=n.coordToPoint([p+i,o]);var y=n.cx,g=n.cy;c=Math.abs(u[0]-y)/p<.3?"center":u[0]>y?"left":"right",f=Math.abs(u[1]-g)/p<.3?"middle":u[1]>g?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var zue={line:function(t,e,r,n){return t.dim==="angle"?{type:"Line",shape:WT(e.coordToPoint([n[0],r]),e.coordToPoint([n[1],r]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r}}},shadow:function(t,e,r,n){var i=Math.max(1,t.getBandWidth()),a=Math.PI/180;return t.dim==="angle"?{type:"Sector",shape:pE(e.cx,e.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:pE(e.cx,e.cy,r-i/2,r+i/2,0,Math.PI*2)}}};const Fue=Nue;var Vue=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.findAxisModel=function(r){var n,i=this.ecModel;return i.eachComponent(r,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(ke);const Gue=Vue;var $T=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Pt).models[0]},e.type="polarAxis",e}(ke);Ct($T,hc);var Hue=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="angleAxis",e}($T),Uue=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="radiusAxis",e}($T),YT=function(t){N(e,t);function e(r,n){return t.call(this,"radius",r,n)||this}return e.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},e}(zn);YT.prototype.dataToRadius=zn.prototype.dataToCoord;YT.prototype.radiusToData=zn.prototype.coordToData;const Wue=YT;var $ue=Ve(),jT=function(t){N(e,t);function e(r,n){return t.call(this,"angle",r,n||[0,360])||this}return e.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var r=this,n=r.getLabelModel(),i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l),c=sv(s==null?"":s+"",n.getFont(),"center","top"),f=Math.max(c.height,7),h=f/u;isNaN(h)&&(h=1/0);var v=Math.max(0,Math.floor(h)),d=$ue(r.model),p=d.lastAutoInterval,y=d.lastTickCount;return p!=null&&y!=null&&Math.abs(p-v)<=1&&Math.abs(y-o)<=1&&p>v?v=p:(d.lastTickCount=o,d.lastAutoInterval=v),v},e}(zn);jT.prototype.dataToAngle=zn.prototype.dataToCoord;jT.prototype.angleToData=zn.prototype.coordToData;const Yue=jT;var V4=["radius","angle"],jue=function(){function t(e){this.dimensions=V4,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Wue,this._angleAxis=new Yue,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(e){var r=this.pointToCoord(e);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},t.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},t.prototype.getAxis=function(e){var r="_"+e+"Axis";return this[r]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(e){var r=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===e&&r.push(n),i.scale.type===e&&r.push(i),r},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(e){var r=this._angleAxis;return e===r?this._radiusAxis:r},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(e){var r=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},t.prototype.dataToPoint=function(e,r){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],r),this._angleAxis.dataToAngle(e[1],r)])},t.prototype.pointToData=function(e,r){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],r),this._angleAxis.angleToData(n[1],r)]},t.prototype.pointToCoord=function(e){var r=e[0]-this.cx,n=e[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(r*r+n*n);r/=l,n/=l;for(var u=Math.atan2(-n,r)/Math.PI*180,c=us;)u+=c*360;return[l,u]},t.prototype.coordToPoint=function(e){var r=e[0],n=e[1]/180*Math.PI,i=Math.cos(n)*r+this.cx,a=-Math.sin(n)*r+this.cy;return[i,a]},t.prototype.getArea=function(){var e=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var i=e.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,h=this.r0;return c<=f*f&&c>=h*h}}},t.prototype.convertToPixel=function(e,r,n){var i=wE(r);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,r,n){var i=wE(r);return i===this?this.pointToData(n):null},t}();function wE(t){var e=t.seriesModel,r=t.polarModel;return r&&r.coordinateSystem||e&&e.coordinateSystem}const Xue=jue;function Zue(t,e,r){var n=e.get("center"),i=r.getWidth(),a=r.getHeight();t.cx=j(n[0],i),t.cy=j(n[1],a);var o=t.getRadiusAxis(),s=Math.min(i,a)/2,l=e.get("radius");l==null?l=[0,"100%"]:G(l)||(l=[0,l]);var u=[j(l[0],s),j(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function que(t,e){var r=this,n=r.getAngleAxis(),i=r.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),t.eachSeries(function(s){if(s.coordinateSystem===r){var l=s.getData();M(Og(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),M(Og(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),rl(n.scale,n.model),rl(i.scale,i.model),n.type==="category"&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function Kue(t){return t.mainType==="angleAxis"}function bE(t,e){if(t.type=e.get("type"),t.scale=mv(e),t.onBand=e.get("boundaryGap")&&t.type==="category",t.inverse=e.get("inverse"),Kue(e)){t.inverse=t.inverse!==e.get("clockwise");var r=e.get("startAngle");t.setExtent(r,r+(t.inverse?-360:360))}e.axis=t,t.model=e}var Que={dimensions:V4,create:function(t,e){var r=[];return t.eachComponent("polar",function(n,i){var a=new Xue(i+"");a.update=que;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");bE(o,l),bE(s,u),Zue(a,n,e),r.push(a),n.coordinateSystem=a,a.model=n}),t.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var i=n.getReferringComponents("polar",Pt).models[0];n.coordinateSystem=i.coordinateSystem}}),r}};const Jue=Que;var ece=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Hd(t,e,r){e[1]>e[0]&&(e=e.slice().reverse());var n=t.coordToPoint([e[0],r]),i=t.coordToPoint([e[1],r]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function Ud(t){var e=t.getRadiusAxis();return e.inverse?0:1}function CE(t){var e=t[0],r=t[t.length-1];e&&r&&Math.abs(Math.abs(e.coord-r.coord)-360)<1e-4&&t.pop()}var tce=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="PolarAxisPointer",r}return e.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var i=r.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=H(i.getViewLabels(),function(c){c=le(c);var f=i.scale,h=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(h),c});CE(u),CE(s),M(ece,function(c){r.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&rce[c](this.group,r,a,s,l,o,u)},this)}},e.type="angleAxis",e}(vl),rce={axisLine:function(t,e,r,n,i,a){var o=e.getModel(["axisLine","lineStyle"]),s=Ud(r),l=s?0:1,u;a[l]===0?u=new li({shape:{cx:r.cx,cy:r.cy,r:a[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new cv({shape:{cx:r.cx,cy:r.cy,r:a[s],r0:a[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,t.add(u)},axisTick:function(t,e,r,n,i,a){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[Ud(r)],u=H(n,function(c){return new Gt({shape:Hd(r,[l,l+s],c.coord)})});t.add(qr(u,{style:oe(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,r,n,i,a){if(i.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[Ud(r)],c=[],f=0;fg?"left":"right",S=Math.abs(y[1]-m)/p<.3?"middle":y[1]>m?"top":"bottom";if(s&&s[d]){var w=s[d];se(w)&&w.textStyle&&(v=new qe(w.textStyle,l,l.ecModel))}var x=new Oe({silent:ma.isLabelSilent(e),style:tt(v,{x:y[0],y:y[1],fill:v.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:_,verticalAlign:S})});if(t.add(x),c){var b=ma.makeAxisEventDataBase(e);b.targetType="axisLabel",b.value=f.rawLabel,pe(x).eventData=b}},this)},splitLine:function(t,e,r,n,i,a){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f=0?"p":"n",P=b;w&&(n[c][D]||(n[c][D]={p:b,n:b}),P=n[c][D][L]);var I=void 0,E=void 0,k=void 0,B=void 0;if(d.dim==="radius"){var R=d.dataToCoord(A)-b,O=l.dataToCoord(D);Math.abs(R)=B})}}})}function fce(t){var e={};M(t,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=H4(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),f=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=f.stacks;e[l]=f;var v=G4(n);h[v]||f.autoWidthCount++,h[v]=h[v]||{width:0,maxWidth:0};var d=j(n.get("barWidth"),c),p=j(n.get("barMaxWidth"),c),y=n.get("barGap"),g=n.get("barCategoryGap");d&&!h[v].width&&(d=Math.min(f.remainedWidth,d),h[v].width=d,f.remainedWidth-=d),p&&(h[v].maxWidth=p),y!=null&&(f.gap=y),g!=null&&(f.categoryGap=g)});var r={};return M(e,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=j(n.categoryGap,o),l=j(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),M(a,function(p,y){var g=p.maxWidth;g&&g=r.y&&e[1]<=r.y+r.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=r.y&&e[0]<=r.y+r.height},t.prototype.pointToData=function(e){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(e[r.orient==="horizontal"?0:1]))]},t.prototype.dataToPoint=function(e){var r=this.getAxis(),n=this.getRect(),i=[],a=r.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),i[a]=r.toGlobalCoord(r.dataToCoord(+e)),i[1-a]=a===0?n.y+n.height/2:n.x+n.width/2,i},t.prototype.convertToPixel=function(e,r,n){var i=TE(r);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,r,n){var i=TE(r);return i===this?this.pointToData(n):null},t}();function TE(t){var e=t.seriesModel,r=t.singleAxisModel;return r&&r.coordinateSystem||e&&e.coordinateSystem}function Cce(t,e){var r=[];return t.eachComponent("singleAxis",function(n,i){var a=new bce(n,t,e);a.name="single_"+i,a.resize(n,e),n.coordinateSystem=a,r.push(a)}),t.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var i=n.getReferringComponents("singleAxis",Pt).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),r}var Tce={create:Cce,dimensions:W4};const Ace=Tce;var AE=["x","y"],Mce=["width","height"],Dce=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.coordinateSystem,u=p_(l,1-qg(s)),c=l.dataToPoint(n)[0],f=a.get("type");if(f&&f!=="none"){var h=HT(a),v=Lce[f](s,c,u);v.style=h,r.graphicKey=v.type,r.pointer=v}var d=dw(i);N4(n,r,d,i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=dw(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=UT(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.coordinateSystem,l=qg(o),u=p_(s,l),c=[r.x,r.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=p_(s,1-l),h=(f[1]+f[0])/2,v=[h,h];return v[l]=c[l],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:v,tooltipOption:{verticalAlign:"middle"}}},e}(GT),Lce={line:function(t,e,r){var n=WT([e,r[0]],[e,r[1]],qg(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r){var n=t.getBandWidth(),i=r[1]-r[0];return{type:"Rect",shape:B4([e-n/2,r[0]],[n,i],qg(t))}}};function qg(t){return t.isHorizontal()?0:1}function p_(t,e){var r=t.getRect();return[r[AE[e]],r[AE[e]]+r[Mce[e]]]}const Pce=Dce;var Ice=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="single",e}(ft);function Ece(t){Ae(Mv),vl.registerAxisPointerClass("SingleAxisPointer",Pce),t.registerComponentView(Ice),t.registerComponentView(Sce),t.registerComponentModel(d_),Fu(t,"single",d_,d_.defaultOption),t.registerCoordinateSystem("single",Ace)}var Rce=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n,i){var a=ic(r);t.prototype.init.apply(this,arguments),ME(r,a)},e.prototype.mergeOption=function(r){t.prototype.mergeOption.apply(this,arguments),ME(this.option,r)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(ke);function ME(t,e){var r=t.cellSize,n;G(r)?n=r:n=t.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var i=H([0,1],function(a){return bX(e,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});wo(t,e,{type:"box",ignoreSize:i})}const kce=Rce;var Oce=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=this.group;a.removeAll();var o=r.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(r,s,a),this._renderLines(r,s,l,a),this._renderYearText(r,s,l,a),this._renderMonthText(r,u,l,a),this._renderWeekText(r,u,s,l,a)},e.prototype._renderDayRect=function(r,n,i){for(var a=r.coordinateSystem,o=r.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=n.start.time;u<=n.end.time;u=a.getNextNDay(u,1).time){var c=a.dataToRect([u],!1).tl,f=new Ne({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});i.add(f)}},e.prototype._renderLines=function(r,n,i,a){var o=this,s=r.coordinateSystem,l=r.getModel(["splitLine","lineStyle"]).getLineStyle(),u=r.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=n.start,h=0;f.time<=n.end.time;h++){d(f.formatedDate),h===0&&(f=s.getDateInfo(n.start.y+"-"+n.start.m));var v=f.date;v.setMonth(v.getMonth()+1),f=s.getDateInfo(v)}d(s.getNextNDay(n.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToRect([p],!1).tl);var y=o._getLinePointsOfOneWeek(r,p,i);o._tlpoints.push(y[0]),o._blpoints.push(y[y.length-1]),u&&o._drawSplitline(y,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,i),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,i),l,a)},e.prototype._getEdgesPoints=function(r,n,i){var a=[r[0].slice(),r[r.length-1].slice()],o=i==="horizontal"?0:1;return a[0][o]=a[0][o]-n/2,a[1][o]=a[1][o]+n/2,a},e.prototype._drawSplitline=function(r,n,i){var a=new Er({z2:20,shape:{points:r},style:n});i.add(a)},e.prototype._getLinePointsOfOneWeek=function(r,n,i){for(var a=r.coordinateSystem,o=a.getDateInfo(n),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),c=a.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[i==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(r,n){return Z(r)&&r?_X(r,n):ae(r)?r(n):n.nameMap},e.prototype._yearTextPositionControl=function(r,n,i,a,o){var s=n[0],l=n[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(a==="left"||a==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(r,n,i,a){var o=r.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,h=i==="horizontal"?0:1,v={top:[c,u[h][1]],bottom:[c,u[1-h][1]],left:[u[1-h][0],f],right:[u[h][0],f]},d=n.start.y;+n.end.y>+n.start.y&&(d=d+"-"+n.end.y);var p=o.get("formatter"),y={start:n.start.y,end:n.end.y,nameMap:d},g=this._formatterLabel(p,y),m=new Oe({z2:30,style:tt(o,{text:g})});m.attr(this._yearTextPositionControl(m,v[l],i,l,s)),a.add(m)}},e.prototype._monthTextPositionControl=function(r,n,i,a,o){var s="left",l="top",u=r[0],c=r[1];return i==="horizontal"?(c=c+o,n&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),a==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(r,n,i,a){var o=r.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||Z(s))&&(s&&(n=bx(s)||n),s=n.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,v=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=c==="center",p=0;p=i.start.time&&n.times.end.time&&r.reverse(),r},t.prototype._getRangeInfo=function(e){var r=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],n;r[0].time>r[1].time&&(n=!0,r.reverse());var i=Math.floor(r[1].time/g_)-Math.floor(r[0].time/g_)+1,a=new Date(r[0].time),o=a.getDate(),s=r[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-r[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-r[1].time)*u>0;)i-=u,a.setDate(l-u);var c=Math.floor((i+r[0].day+6)/7),f=n?-c+1:c-1;return n&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:i,weeks:c,nthWeek:f,fweek:r[0].day,lweek:r[1].day}},t.prototype._getDateByWeeksAndDay=function(e,r,n){var i=this._getRangeInfo(n);if(e>i.weeks||e===0&&ri.lweek)return null;var a=(e-1)*7-i.fweek+r,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},t.create=function(e,r){var n=[];return e.eachComponent("calendar",function(i){var a=new t(i);n.push(a),i.coordinateSystem=a}),e.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=n[i.get("calendarIndex")||0])}),n},t.dimensions=["time","value"],t}();function DE(t){var e=t.calendarModel,r=t.seriesModel,n=e?e.coordinateSystem:r?r.coordinateSystem:null;return n}const zce=Bce;function Fce(t){t.registerComponentModel(kce),t.registerComponentView(Nce),t.registerCoordinateSystem("calendar",zce)}function Vce(t,e){var r=t.existing;if(e.id=t.keyInfo.id,!e.type&&r&&(e.type=r.type),e.parentId==null){var n=e.parentOption;n?e.parentId=n.id:r&&(e.parentId=r.parentId)}e.parentOption=null}function LE(t,e){var r;return M(e,function(n){t[n]!=null&&t[n]!=="auto"&&(r=!0)}),r}function Gce(t,e,r){var n=F({},r),i=t[e],a=r.$action||"merge";a==="merge"?i?(Se(i,n,!0),wo(i,n,{ignoreSize:!0}),A5(r,i),Wd(r,i),Wd(r,i,"shape"),Wd(r,i,"style"),Wd(r,i,"extra"),r.clipPath=i.clipPath):t[e]=n:a==="replace"?t[e]=n:a==="remove"&&i&&(t[e]=null)}var $4=["transition","enterFrom","leaveTo"],Hce=$4.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Wd(t,e,r){if(r&&(!t[r]&&e[r]&&(t[r]={}),t=t[r],e=e[r]),!(!t||!e))for(var n=r?$4:Hce,i=0;i=0;c--){var f=i[c],h=Ot(f.id,null),v=h!=null?o.get(h):null;if(v){var d=v.parent,g=_n(d),m=d===a?{width:s,height:l}:{width:g.width,height:g.height},_={},S=im(v,f,m,null,{hv:f.hv,boundingMode:f.bounding},_);if(!_n(v).isNew&&S){for(var w=f.transition,x={},b=0;b=0)?x[C]=T:v[C]=T}Ge(v,x,r,0)}else v.attr(_)}}},e.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){Ip(i,_n(i).option,n,r._lastGraphicModel)}),this._elMap=ie()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(ft);function pw(t){var e=ee(PE,t)?PE[t]:Ky(t),r=new e({});return _n(r).type=t,r}function IE(t,e,r,n){var i=pw(r);return e.add(i),n.set(t,i),_n(i).id=t,_n(i).isNew=!0,i}function Ip(t,e,r,n){var i=t&&t.parent;i&&(t.type==="group"&&t.traverse(function(a){Ip(a,e,r,n)}),xm(t,e,n),r.removeKey(_n(t).id))}function EE(t,e,r,n){t.isGroup||M([["cursor",Rn.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];ee(e,a)?t[a]=be(e[a],i[1]):t[a]==null&&(t[a]=i[1])}),M(Ie(e),function(i){if(i.indexOf("on")===0){var a=e[i];t[i]=ae(a)?a:null}}),ee(e,"draggable")&&(t.draggable=e.draggable),e.name!=null&&(t.name=e.name),e.id!=null&&(t.id=e.id)}function Yce(t){return t=F({},t),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(T5),function(e){delete t[e]}),t}function jce(t,e,r){var n=pe(t).eventData;!t.silent&&!t.ignore&&!n&&(n=pe(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),n&&(n.info=r.info)}function Xce(t){t.registerComponentModel(Wce),t.registerComponentView($ce),t.registerPreprocessor(function(e){var r=e.graphic;G(r)?!r[0]||!r[0].elements?e.graphic=[{elements:r}]:e.graphic=[e.graphic[0]]:r&&!r.elements&&(e.graphic=[{elements:[r]}])})}var RE=["x","y","radius","angle","single"],Zce=["cartesian2d","polar","singleAxis"];function qce(t){var e=t.get("coordinateSystem");return Te(Zce,e)>=0}function eo(t){return t+"Axis"}function Kce(t,e){var r=ie(),n=[],i=ie();t.eachComponent({mainType:"dataZoom",query:e},function(c){i.get(c.uid)||s(c)});var a;do a=!1,t.eachComponent("dataZoom",o);while(a);function o(c){!i.get(c.uid)&&l(c)&&(s(c),a=!0)}function s(c){i.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(h,v){var d=r.get(h);d&&d[v]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,h){(r.get(f)||r.set(f,[]))[h]=!0})}return n}function Y4(t){var e=t.ecModel,r={infoList:[],infoMap:ie()};return t.eachTargetAxis(function(n,i){var a=e.getComponent(eo(n),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(a)}}}),r}var y_=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},t}(),Qce=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return e.prototype.init=function(r,n,i){var a=kE(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},e.prototype.mergeOption=function(r){var n=kE(r);Se(this.option,r,!0),Se(this.settledOption,n,!0),this._doInit(n)},e.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var i=this.settledOption;M([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=ie(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return M(RE,function(i){var a=this.getReferringComponents(eo(i),rY);if(a.specified){n=!0;var o=new y_;M(a.models,function(s){o.add(s.componentIndex)}),r.set(i,o)}},this),n},e.prototype._fillAutoTargetAxisByOrient=function(r,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var h=new y_;if(h.add(f.componentIndex),r.set(c,h),a=!1,c==="x"||c==="y"){var v=f.getReferringComponents("grid",Pt).models[0];v&&M(u,function(d){f.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",Pt).models[0]&&h.add(d.componentIndex)})}}}a&&M(RE,function(u){if(a){var c=i.findComponents({mainType:eo(u),filter:function(h){return h.get("type",!0)==="category"}});if(c[0]){var f=new y_;f.add(c[0].componentIndex),r.set(u,f),a=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(r){var n=this._rangePropMode,i=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(a,o){var s=r[a[0]]!=null,l=r[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,i){r==null&&(r=this.ecModel.getComponent(eo(n),i))},this),r},e.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(i,a){M(i.indexList,function(o){r.call(n,a,o)})})},e.prototype.getAxisProxy=function(r,n){var i=this.getAxisModel(r,n);if(i)return i.__dzAxisProxy},e.prototype.getAxisModel=function(r,n){var i=this._targetAxisInfoMap.get(r);if(i&&i.indexMap[n])return this.ecModel.getComponent(eo(r),n)},e.prototype.setRawRange=function(r){var n=this.option,i=this.settledOption;M([["start","startValue"],["end","endValue"]],function(a){(r[a[0]]!=null||r[a[1]]!=null)&&(n[a[0]]=i[a[0]]=r[a[0]],n[a[1]]=i[a[1]]=r[a[1]])},this),this._updateRangeUse(r)},e.prototype.setCalculatedRange=function(r){var n=this.option;M(["start","startValue","end","endValue"],function(i){n[i]=r[i]})},e.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},e.prototype.getValueRange=function(r,n){if(r==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;ao[1];if(_&&!S&&!w)return!0;_&&(y=!0),S&&(d=!0),w&&(p=!0)}return y&&d&&p})}else Hl(c,function(v){if(a==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});Hl(c,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},t.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;Hl(["min","max"],function(i){var a=r.get(i+"Span"),o=r.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=$e(n[0]+o,n,[0,100],!0):a!=null&&(o=$e(a,[0,100],n,!0)-n[0]),e[i+"Span"]=a,e[i+"ValueSpan"]=o},this)},t.prototype._setAxisModel=function(){var e=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var i=Jb(n,[0,500]);i=Math.min(i,20);var a=e.axis.scale.rawExtentInfo;r[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),r[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},t}();function afe(t,e,r){var n=[1/0,-1/0];Hl(r,function(o){pQ(n,o.getData(),e)});var i=t.getAxisModel(),a=uF(i.axis.scale,i,n).calculate();return[a.min,a.max]}const ofe=ife;var sfe={getTargetSeries:function(t){function e(i){t.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=t.getComponent(eo(o),s);i(o,s,l,a)})})}e(function(i,a,o,s){o.__dzAxisProxy=null});var r=[];e(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new ofe(i,a,s,t),r.push(o.__dzAxisProxy))});var n=ie();return M(r,function(i){M(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(t,e){t.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).reset(r)}),r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).filterData(r,e)})}),t.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();r.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};const lfe=sfe;function ufe(t){t.registerAction("dataZoom",function(e,r){var n=Kce(r,e);M(n,function(i){i.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var NE=!1;function ZT(t){NE||(NE=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,lfe),ufe(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function cfe(t){t.registerComponentModel(efe),t.registerComponentView(nfe),ZT(t)}var bn=function(){function t(){}return t}(),j4={};function Ul(t,e){j4[t]=e}function X4(t){return j4[t]}var ffe=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;M(this.option.feature,function(n,i){var a=X4(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(r)),Se(n,a.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(ke);const hfe=ffe;function vfe(t,e,r){var n=e.getBoxLayoutParams(),i=e.get("padding"),a={width:r.getWidth(),height:r.getHeight()},o=It(n,a,i);Fs(e.get("orient"),t,e.get("itemGap"),o.width,o.height),im(t,n,a,i)}function Z4(t,e){var r=fl(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),t=new Ne({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1}),t}var dfe=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(r,n,i,a){var o=this.group;if(o.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",u=r.get("feature")||{},c=this._features||(this._features={}),f=[];M(u,function(d,p){f.push(p)}),new ga(this._featureNames||[],f).add(h).update(h).remove(ye(h,null)).execute(),this._featureNames=f;function h(d,p){var y=f[d],g=f[p],m=u[y],_=new qe(m,r,r.ecModel),S;if(a&&a.newTitle!=null&&a.featureName===y&&(m.title=a.newTitle),y&&!g){if(pfe(y))S={onclick:_.option.onclick,featureName:y};else{var w=X4(y);if(!w)return;S=new w}c[y]=S}else if(S=c[g],!S)return;S.uid=nc("toolbox-feature"),S.model=_,S.ecModel=n,S.api=i;var x=S instanceof bn;if(!y&&g){x&&S.dispose&&S.dispose(n,i);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(n,i);return}v(_,S,y),_.setIconStatus=function(b,C){var T=this.option,A=this.iconPaths;T.iconStatus=T.iconStatus||{},T.iconStatus[b]=C,A[b]&&(C==="emphasis"?da:pa)(A[b])},S instanceof bn&&S.render&&S.render(_,n,i,a)}function v(d,p,y){var g=d.getModel("iconStyle"),m=d.getModel(["emphasis","iconStyle"]),_=p instanceof bn&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},w,x;Z(_)?(w={},w[y]=_):w=_,Z(S)?(x={},x[y]=S):x=S;var b=d.iconPaths={};M(w,function(C,T){var A=ec(C,{},{x:-s/2,y:-s/2,width:s,height:s});A.setStyle(g.getItemStyle());var D=A.ensureState("emphasis");D.style=m.getItemStyle();var L=new Oe({style:{text:x[T],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});A.setTextContent(L),tc({el:A,componentModel:r,itemName:T,formatterParamsExtra:{title:x[T]}}),A.__title=x[T],A.on("mouseover",function(){var P=m.getItemStyle(),I=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:m.get("textFill")||P.fill||P.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),A.setTextConfig({position:m.get("textPosition")||I}),L.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",T])!=="emphasis"&&i.leaveEmphasis(this),L.hide()}),(d.get(["iconStatus",T])==="emphasis"?da:pa)(A),o.add(A),A.on("click",Q(p.onclick,p,n,i,T)),b[T]=A})}vfe(o,r,i),o.add(Z4(o.getBoundingRect(),r)),l||o.eachChild(function(d){var p=d.__title,y=d.ensureState("emphasis"),g=y.textConfig||(y.textConfig={}),m=d.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!ae(_)&&p){var S=_.style||(_.style={}),w=sv(p,Oe.makeFont(S)),x=d.x+o.x,b=d.y+o.y+s,C=!1;b+w.height>i.getHeight()&&(g.position="top",C=!0);var T=C?-5-w.height:s+10;x+w.width/2>i.getWidth()?(g.position=["100%",T],S.align="right"):x-w.width/2<0&&(g.position=[0,T],S.align="left")}})},e.prototype.updateView=function(r,n,i,a){M(this._features,function(o){o instanceof bn&&o.updateView&&o.updateView(o.model,n,i,a)})},e.prototype.remove=function(r,n){M(this._features,function(i){i instanceof bn&&i.remove&&i.remove(r,n)}),this.group.removeAll()},e.prototype.dispose=function(r,n){M(this._features,function(i){i instanceof bn&&i.dispose&&i.dispose(r,n)})},e.type="toolbox",e}(ft);function pfe(t){return t.indexOf("my")===0}const gfe=dfe;var yfe=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(r,n){var i=this.model,a=i.get("name")||r.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=ze.browser;if(ae(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=a+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,d=o?decodeURIComponent(h[1]):h[1];v&&(d=window.atob(d));var p=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var y=d.length,g=new Uint8Array(y);y--;)g[y]=d.charCodeAt(y);var m=new Blob([g]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,w=S.document;w.open("image/svg+xml","replace"),w.write(d),w.close(),S.focus(),w.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=i.get("lang"),b='',C=window.open();C.document.write(b),C.document.title=a}},e.getDefaultOption=function(r){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},e}(bn);const mfe=yfe;var BE="__ec_magicType_stack__",_fe=[["line","bar"],["stack"]],Sfe=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),i={};return M(r.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},e.getDefaultOption=function(r){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},e.prototype.onclick=function(r,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(zE[i]){var s={series:[]},l=function(f){var h=f.subType,v=f.id,d=zE[i](h,v,f,a);d&&(oe(d,f.option),s.series.push(d));var p=f.coordinateSystem;if(p&&p.type==="cartesian2d"&&(i==="line"||i==="bar")){var y=p.getAxesByScale("ordinal")[0];if(y){var g=y.dim,m=g+"Axis",_=f.getReferringComponents(m,Pt).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var w=0;w<=S;w++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=i==="bar"}}};M(_fe,function(f){Te(f,i)>=0&&M(f,function(h){a.setIconStatus(h,"normal")})}),a.setIconStatus(i,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=i;i==="stack"&&(u=Se({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(bn),zE={line:function(t,e,r,n){if(t==="bar")return Se({id:e,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(t,e,r,n){if(t==="line")return Se({id:e,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(t,e,r,n){var i=r.get("stack")===BE;if(t==="line"||t==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Se({id:e,stack:i?"":BE},n.get(["option","stack"])||{},!0)}};ci({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});const xfe=Sfe;var wm=new Array(60).join("-"),Hu=" ";function wfe(t){var e={},r=[],n=[];return t.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(i)}else r.push(i)}else r.push(i)}),{seriesGroupByCategoryAxis:e,other:r,meta:n}}function bfe(t){var e=[];return M(t,function(r,n){var i=r.categoryAxis,a=r.valueAxis,o=a.dim,s=[" "].concat(H(r.series,function(v){return v.name})),l=[i.model.getCategories()];M(r.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Hu)],c=0;c=0)return!0}var gw=new RegExp("["+Hu+"]+","g");function Mfe(t){for(var e=t.split(/\n+/g),r=Kg(e.shift()).split(gw),n=[],i=H(r,function(l){return{name:l,data:[]}}),a=0;a=0;a--){var o=r[a];if(o[i])break}if(a<0){var s=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();r[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),r.push(e)}function kfe(t){var e=qT(t),r=e[e.length-1];e.length>1&&e.pop();var n={};return q4(r,function(i,a){for(var o=e.length-1;o>=0;o--)if(i=e[o][a],i){n[a]=i;break}}),n}function Ofe(t){K4(t).snapshots=null}function Nfe(t){return qT(t).length}function qT(t){var e=K4(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Bfe=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(r,n){Ofe(r),n.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(r){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:r.getLocaleModel().get(["toolbox","restore","title"])};return n},e}(bn);ci({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});const zfe=Bfe;var Ffe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Vfe=function(){function t(e,r,n){var i=this;this._targetInfoList=[];var a=FE(r,e);M(Gfe,function(o,s){(!n||!n.include||Te(n.include,s)>=0)&&o(a,i._targetInfoList)})}return t.prototype.setOutputRanges=function(e,r){return this.matchOutputRanges(e,r,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=m_[n.brushType](0,a,i);n.__rangeOffset={offset:UE[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},t.prototype.matchOutputRanges=function(e,r,n){M(e,function(i){var a=this.findTargetInfo(i,r);a&&a!==!0&&M(a.coordSyses,function(o){var s=m_[i.brushType](1,o,i.range,!0);n(i,s.values,o,r)})},this)},t.prototype.setInputRanges=function(e,r){M(e,function(n){var i=this.findTargetInfo(n,r);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=m_[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?UE[n.brushType](a.values,o.offset,Hfe(a.xyMinMax,o.xyMinMax)):a.values}},this)},t.prototype.makePanelOpts=function(e,r){return H(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:i4(i),isTargetByCursor:o4(i,e,n.coordSysModel),getLinearBrushOtherExtent:a4(i)}})},t.prototype.controlSeries=function(e,r,n){var i=this.findTargetInfo(e,n);return i===!0||i&&Te(i.coordSyses,r.coordinateSystem)>=0},t.prototype.findTargetInfo=function(e,r){for(var n=this._targetInfoList,i=FE(r,e),a=0;at[1]&&t.reverse(),t}function FE(t,e){return Of(t,e,{includeMainTypes:Ffe})}var Gfe={grid:function(t,e){var r=t.xAxisModels,n=t.yAxisModels,i=t.gridModels,a=ie(),o={},s={};!r&&!n&&!i||(M(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),M(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),M(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,c=[];M(u.getCartesians(),function(f,h){(Te(r,f.getAxis("x").model)>=0||Te(n,f.getAxis("y").model)>=0)&&c.push(f)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:GE.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(t,e){M(t.geoModels,function(r){var n=r.coordinateSystem;e.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:GE.geo})})}},VE=[function(t,e){var r=t.xAxisModel,n=t.yAxisModel,i=t.gridModel;return!i&&r&&(i=r.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===e.gridModel},function(t,e){var r=t.geoModel;return r&&r===e.geoModel}],GE={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(ho(t)),e}},m_={lineX:ye(HE,0),lineY:ye(HE,1),rect:function(t,e,r,n){var i=t?e.pointToData([r[0][0],r[1][0]],n):e.dataToPoint([r[0][0],r[1][0]],n),a=t?e.pointToData([r[0][1],r[1][1]],n):e.dataToPoint([r[0][1],r[1][1]],n),o=[yw([i[0],a[0]]),yw([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(t,e,r,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=H(r,function(o){var s=t?e.pointToData(o,n):e.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function HE(t,e,r,n){var i=r.getAxis(["x","y"][t]),a=yw(H([0,1],function(s){return e?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[t]=a,o[1-t]=[NaN,NaN],{values:a,xyMinMax:o}}var UE={lineX:ye(WE,0),lineY:ye(WE,1),rect:function(t,e,r){return[[t[0][0]-r[0]*e[0][0],t[0][1]-r[0]*e[0][1]],[t[1][0]-r[1]*e[1][0],t[1][1]-r[1]*e[1][1]]]},polygon:function(t,e,r){return H(t,function(n,i){return[n[0]-r[0]*e[i][0],n[1]-r[1]*e[i][1]]})}};function WE(t,e,r,n){return[e[0]-n[t]*r[0],e[1]-n[t]*r[1]]}function Hfe(t,e){var r=$E(t),n=$E(e),i=[r[0]/n[0],r[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function $E(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}const KT=Vfe;var mw=M,Ufe=K9("toolbox-dataZoom_"),Wfe=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(r,n,i,a){this._brushController||(this._brushController=new IT(i.getZr()),this._brushController.on("brush",Q(this._onBrush,this)).mount()),jfe(r,n,this,a,i),Yfe(r,n)},e.prototype.onclick=function(r,n,i){$fe[i].call(this)},e.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new KT(QT(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(u,c,f){if(f.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[h],f,c)}}),Rfe(a,i),this._dispatchZoomAction(i);function s(u,c,f){var h=c.getAxis(u),v=h.model,d=l(u,v,a),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(f=dl(0,f.slice(),h.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(i[d.id]={dataZoomId:d.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var h;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,c.componentIndex);d&&(h=v)}),h}},e.prototype._dispatchZoomAction=function(r){var n=[];mw(r,function(i,a){n.push(le(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},e.getDefaultOption=function(r){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},e}(bn),$fe={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(kfe(this.ecModel))}};function QT(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function Yfe(t,e){t.setIconStatus("back",Nfe(e)>1?"emphasis":"normal")}function jfe(t,e,r,n,i){var a=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=a,t.setIconStatus("zoom",a?"emphasis":"normal");var o=new KT(QT(t),e,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()}:!1)}LX("dataZoom",function(t){var e=t.getComponent("toolbox",0),r=["feature","dataZoom"];if(!e||e.get(r)==null)return;var n=e.getModel(r),i=[],a=QT(n),o=Of(t,a);mw(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),mw(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:Ufe+u+f};h[c]=f,i.push(h)}return i});const Xfe=Wfe;function Zfe(t){t.registerComponentModel(hfe),t.registerComponentView(gfe),Ul("saveAsImage",mfe),Ul("magicType",xfe),Ul("dataView",Efe),Ul("dataZoom",Xfe),Ul("restore",zfe),Ae(cfe)}var qfe=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(ke);const Kfe=qfe;function Q4(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function J4(t){if(ze.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r-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 c=u*Math.PI/180,f=o+i,h=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),v=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-f)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=e+" 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'
'}function ihe(t,e){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+t/2+"s "+r,i="opacity"+n+",visibility"+n;return e||(n=" "+t+"s "+r,i+=ze.transformSupported?","+JT+n:",left"+n+",top"+n),ehe+":"+i}function YE(t,e,r){var n=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!ze.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=ze.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+JT+":"+o+";":[["top",0],["left",0],[eG,o]]}function ahe(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont()),r&&e.push("line-height:"+Math.round(r*3/2)+"px");var i=t.get("textShadowColor"),a=t.get("textShadowBlur")||0,o=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return i&&a&&e.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),M(["decoration","align"],function(l){var u=t.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function ohe(t,e,r){var n=[],i=t.get("transitionDuration"),a=t.get("backgroundColor"),o=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),f=a3(t,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),e&&i&&n.push(ihe(i,r)),a&&n.push("background-color:"+a),M(["width","color","radius"],function(v){var d="border-"+v,p=TC(d),y=t.get(p);y!=null&&n.push(d+":"+y+(v==="color"?"":"px"))}),n.push(ahe(c)),f!=null&&n.push("padding:"+fl(f).join("px ")+"px"),n.join(";")+";"}function jE(t,e,r,n,i){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&p7(t,o,document.body,n,i)}else{t[0]=n,t[1]=i;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var she=function(){function t(e,r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ze.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=r.getZr(),o=this._appendToBody=n&&n.appendToBody;jE(this._styleCoord,a,o,r.getWidth()/2,r.getHeight()/2),o?document.body.appendChild(i):e.appendChild(i),this._container=e;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,c=a.painter.getViewportRoot();pn(c,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){var r=this._container,n=Jfe(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=the+ohe(e,!this._firstShow,this._longHide)+YE(a[0],a[1],!0)+("border-color:"+tl(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(Z(a)&&n.get("trigger")==="item"&&!Q4(n)&&(s=nhe(n,i,a)),Z(e))o.innerHTML=e+s;else if(e){o.innerHTML="",G(e)||(e=[e]);for(var l=0;l=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||ze.node||!i.getDom())){var o=qE(a,i);this._ticket="";var s=a.dataByCoordSys,l=ghe(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 c=fhe;c.x=a.x,c.y=a.y,c.update(),pe(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},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 f=F4(a,n),h=f.point[0],v=f.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:f.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(qE(a,i))},e.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 c=u.getData(),f=qc([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.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){this._lastDataByCoordSys=null;var s,l;Ps(i,function(u){if(pe(u).dataIndex!=null)return s=u,!0;if(pe(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(r,s,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=Q(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=qc([n.tooltipOption],a),l=this._renderMode,u=[],c=$t("section",{blocks:[],noHeader:!0}),f=[],h=new n1;M(r,function(m){M(m.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!S||w==null)){var x=O4(w,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),b=$t("section",{header:x,noHeader:!An(x),sortBlocks:!0,blocks:[]});c.blocks.push(b),M(_.seriesDataIndices,function(C){var T=i.getSeriesByIndex(C.seriesIndex),A=C.dataIndexInside,D=T.getDataParams(A);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=tT(S.axis,{value:w}),D.axisValueLabel=x,D.marker=h.makeTooltipMarker("item",tl(D.color),l);var L=z2(T.formatTooltip(A,!0,null)),P=L.frag;if(P){var I=qc([T],a).get("valueFormatter");b.blocks.push(I?F({valueFormatter:I},P):P)}L.text&&f.push(L.text),u.push(D)}})}})}),c.blocks.reverse(),f.reverse();var v=n.position,d=s.get("order"),p=W2(c,h,l,d,i.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var y=l==="richText"?` + +`:"
",g=f.join(y);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],v,null,h)})},e.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=pe(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,h=u.getData(f),v=this._renderMode,d=r.positionDefault,p=qc([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),y=p.get("trigger");if(!(y!=null&&y!=="item")){var g=u.getDataParams(c,f),m=new n1;g.marker=m.makeTooltipMarker("item",tl(g.color),v);var _=z2(u.formatTooltip(c,!1,f)),S=p.get("order"),w=p.get("valueFormatter"),x=_.frag,b=x?W2(w?F({valueFormatter:w},x):x,m,v,S,a.get("useUTC"),p.get("textStyle")):_.text,C="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,b,g,C,r.offsetX,r.offsetY,r.position,r.target,m)}),i({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,i){var a=pe(n),o=a.tooltipConfig,s=o.option||{};if(Z(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(a.componentMainType,a.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=r.positionDefault,h=qc(u,this._tooltipModel,f?{position:f}:null),v=h.get("content"),d=Math.random()+"",p=new n1;this._showOrMove(h,function(){var y=le(h.get("formatterParams")||{});this._showTooltipContent(h,v,y,d,r.offsetX,r.offsetY,r.position,n,p)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var h=r.get("formatter");l=l||r.get("position");var v=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),p=d.color;if(h)if(Z(h)){var y=r.ecModel.get("useUTC"),g=G(i)?i[0]:i,m=g&&g.axisType&&g.axisType.indexOf("time")>=0;v=h,m&&(v=pv(g.axisValue,v,y)),v=AC(v,i,!0)}else if(ae(h)){var _=Q(function(S,w){S===this._ticket&&(f.setContent(w,c,r,p,l),this._updatePosition(r,l,o,s,f,i,u))},this);this._ticket=a,v=h(i,a,_)}else v=h;f.setContent(v,c,r,p,l),f.show(r,p),this._updatePosition(r,l,o,s,f,i,u)}},e.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||G(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!G(n))return{color:a||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),h=r.get("align"),v=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),ae(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,c],contentSize:f.slice()})),G(n))i=j(n[0],u),a=j(n[1],c);else if(se(n)){var p=n;p.width=f[0],p.height=f[1];var y=It(p,{width:u,height:c});i=y.x,a=y.y,h=null,v=null}else if(Z(n)&&l){var g=phe(n,d,f,r.get("borderWidth"));i=g[0],a=g[1]}else{var g=vhe(i,a,o,u,c,h?null:20,v?null:20);i=g[0],a=g[1]}if(h&&(i-=KE(h)?f[0]/2:h==="right"?f[0]:0),v&&(a-=KE(v)?f[1]/2:v==="bottom"?f[1]:0),Q4(r)){var g=dhe(i,a,o,u,c);i=g[0],a=g[1]}o.moveTo(i,a)},e.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||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&M(u,function(h,v){var d=f[v]||{},p=h.seriesDataIndices||[],y=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===y.length,o&&M(p,function(g,m){var _=y[m];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&M(h.seriesDataIndices,function(g){var m=g.seriesIndex,_=n[m],S=a[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){ze.node||!n.getDom()||(Eh(this,"_updatePosition"),this._tooltipContent.dispose(),vw("itemTooltip",n))},e.type="tooltip",e}(ft);function qc(t,e,r){var n=e.ecModel,i;r?(i=new qe(r,n,n),i=new qe(e.option,i,n)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof qe&&(o=o.get("tooltip",!0)),Z(o)&&(o={formatter:o}),o&&(i=new qe(o,i,n)))}return i}function qE(t,e){return t.dispatchAction||Q(e.dispatchAction,e)}function vhe(t,e,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(t+l+a+2>n?t-=l+a:t+=a),o!=null&&(e+u+o>i?e-=u+o:e+=o),[t,e]}function dhe(t,e,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function phe(t,e,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-a/2;break;case"top":s=e.x+u/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+o;break;case"left":s=e.x-i-o,l=e.y+c/2-a/2;break;case"right":s=e.x+u+o,l=e.y+c/2-a/2}return[s,l]}function KE(t){return t==="center"||t==="middle"}function ghe(t,e,r){var n=iC(t).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=lv(e,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 c=pe(u).tooltipConfig;if(c&&c.name===t.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const yhe=hhe;function mhe(t){Ae(Mv),t.registerComponentModel(Kfe),t.registerComponentView(yhe),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},wt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},wt)}var _he=["rect","polygon","keep","clear"];function She(t,e){var r=Ke(t?t.brush:[]);if(r.length){var n=[];M(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=t&&t.toolbox;G(i)&&(i=i[0]),i||(i={feature:{}},t.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),xhe(s),e&&!s.length&&s.push.apply(s,_he)}}function xhe(t){var e={};M(t,function(r){e[r]=1}),t.length=0,M(e,function(r,n){t.push(n)})}var QE=M;function JE(t){if(t){for(var e in t)if(t.hasOwnProperty(e))return!0}}function _w(t,e,r){var n={};return QE(e,function(a){var o=n[a]=i();QE(t[a],function(s,l){if(nr.isValidType(l)){var u={type:l,visual:s};r&&r(u,a),o[l]=new nr(u),l==="opacity"&&(u=le(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new nr(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function rG(t,e,r){var n;M(r,function(i){e.hasOwnProperty(i)&&JE(e[i])&&(n=!0)}),n&&M(r,function(i){e.hasOwnProperty(i)&&JE(e[i])?t[i]=le(e[i]):delete t[i]})}function whe(t,e,r,n,i,a){var o={};M(t,function(f){var h=nr.prepareVisualTypes(e[f]);o[f]=h});var s;function l(f){return zC(r,s,f)}function u(f,h){p3(r,s,f,h)}a==null?r.each(c):r.each([a],c);function c(f,h){s=a==null?f:h;var v=r.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var d=n.call(i,f),p=e[d],y=o[d],g=0,m=y.length;ge[0][1]&&(e[0][1]=a[0]),a[1]e[1][1]&&(e[1][1]=a[1])}return e&&iR(e)}};function iR(t){return new Ce(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var Phe=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){this.ecModel=r,this.api=n,this.model,(this._brushController=new IT(n.getZr())).on("brush",Q(this._onBrush,this)).mount()},e.prototype.render=function(r,n,i,a){this.model=r,this._updateController(r,n,i,a)},e.prototype.updateTransform=function(r,n,i,a){nG(n),this._updateController(r,n,i,a)},e.prototype.updateVisual=function(r,n,i,a){this.updateTransform(r,n,i,a)},e.prototype.updateView=function(r,n,i,a){this._updateController(r,n,i,a)},e.prototype._updateController=function(r,n,i,a){(!a||a.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(i)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(r){var n=this.model.id,i=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:le(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:le(i),$from:n})},e.type="brush",e}(ft);const Ihe=Phe;var Ehe="#ddd",Rhe=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.areas=[],r.brushOption={},r}return e.prototype.optionUpdated=function(r,n){var i=this.option;!n&&rG(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:Ehe},a.hasOwnProperty("liftZ")||(a.liftZ=5)},e.prototype.setAreas=function(r){r&&(this.areas=H(r,function(n){return aR(this.option,n)},this))},e.prototype.setBrushOption=function(r){this.brushOption=aR(this.option,r),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(ke);function aR(t,e){return Se({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new qe(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}const khe=Rhe;var Ohe=["rect","polygon","lineX","lineY","keep","clear"],Nhe=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(r,n,i){var a,o,s;n.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,M(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},e.prototype.updateView=function(r,n,i){this.render(r,n,i)},e.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),i={};return M(r.get("type",!0),function(a){n[a]&&(i[a]=n[a])}),i},e.prototype.onclick=function(r,n,i){var a=this._brushType,o=this._brushMode;i==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(r){var n={show:!0,type:Ohe.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.getLocaleModel().get(["toolbox","brush","title"])};return n},e}(bn);const Bhe=Nhe;function zhe(t){t.registerComponentView(Ihe),t.registerComponentModel(khe),t.registerPreprocessor(She),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,The),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,r){r.eachComponent({mainType:"brush",query:e},function(n){n.setAreas(e.areas)})}),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},wt),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},wt),Ul("brush",Bhe)}var Fhe=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(ke),Vhe=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.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=be(r.get("textBaseline"),r.get("textVerticalAlign")),c=new Oe({style:tt(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),h=r.get("subtext"),v=new Oe({style:tt(s,{text:h,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),p=r.get("sublink"),y=r.get("triggerEvent",!0);c.silent=!d&&!y,v.silent=!p&&!y,d&&c.on("click",function(){Cg(d,"_"+r.get("target"))}),p&&v.on("click",function(){Cg(p,"_"+r.get("subtarget"))}),pe(c).eventData=pe(v).eventData=y?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(c),h&&a.add(v);var g=a.getBoundingRect(),m=r.getBoxLayoutParams();m.width=g.width,m.height=g.height;var _=It(m,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),v.setStyle(S),g=a.getBoundingRect();var w=_.margin,x=r.getItemStyle(["color","opacity"]);x.fill=r.get("backgroundColor");var b=new Ne({shape:{x:g.x-w[3],y:g.y-w[0],width:g.width+w[1]+w[3],height:g.height+w[0]+w[2],r:r.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});a.add(b)}},e.type="title",e}(ft);function Ghe(t){t.registerComponentModel(Fhe),t.registerComponentView(Vhe)}var Hhe=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode="box",r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._initData()},e.prototype.mergeOption=function(r){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(r){this.option.autoPlay=!!r},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var r=this.option,n=r.data||[],i=r.axisType,a=this._names=[],o;i==="category"?(o=[],M(n,function(u,c){var f=Ot(qu(u),""),h;se(u)?(h=le(u),h.value=c):h=c,o.push(h),a.push(f)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new gr([{name:"value",type:s}],this);l.initData(o,a)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(ke);const oR=Hhe;var iG=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="timeline.slider",e.defaultOption=ko(oR.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(oR);Ct(iG,kC.prototype);const Uhe=iG;var Whe=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="timeline",e}(ft);const $he=Whe;var Yhe=function(t){N(e,t);function e(r,n,i,a){var o=t.call(this,r,n,i)||this;return o.type=a||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(zn);const jhe=Yhe;var S_=Math.PI,sR=Ve(),Xhe=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){this.api=n},e.prototype.render=function(r,n,i){if(this.model=r,this.api=i,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var a=this._layout(r,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,r);r.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return $t("nameValue",{noName:!0,value:c})},M(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,r)},this),this._renderAxisLabel(a,s,l,r),this._position(a,r)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(r,n){var i=r.get(["label","position"]),a=r.get("orient"),o=qhe(r,n),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:S_/2},f=a==="vertical"?o.height:o.width,h=r.getModel("controlStyle"),v=h.get("show",!0),d=v?h.get("itemSize"):0,p=v?h.get("itemGap"):0,y=d+p,g=r.get(["label","rotate"])||0;g=g*S_/180;var m,_,S,w=h.get("position",!0),x=v&&h.get("showPlayBtn",!0),b=v&&h.get("showPrevBtn",!0),C=v&&h.get("showNextBtn",!0),T=0,A=f;w==="left"||w==="bottom"?(x&&(m=[0,0],T+=y),b&&(_=[T,0],T+=y),C&&(S=[A-d,0],A-=y)):(x&&(m=[A-d,0],A-=y),b&&(_=[0,0],T+=y),C&&(S=[A-d,0],A-=y));var D=[T,A];return r.get("inverse")&&D.reverse(),{viewRect:o,mainLength:f,orient:a,rotation:c[a],labelRotation:g,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[a],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[a],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:D,controlSize:d,controlGap:p}},e.prototype._position=function(r,n){var i=this._mainGroup,a=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=rn(),l=o.x,u=o.y+o.height;oi(s,s,[-l,-u]),Eo(s,s,-S_/2),oi(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=m(o),f=m(i.getBoundingRect()),h=m(a.getBoundingRect()),v=[i.x,i.y],d=[a.x,a.y];d[0]=v[0]=c[0][0];var p=r.labelPosOpt;if(p==null||Z(p)){var y=p==="+"?0:1;_(v,f,c,1,y),_(d,h,c,1,1-y)}else{var y=p>=0?0:1;_(v,f,c,1,y),d[1]=v[1]+p}i.setPosition(v),a.setPosition(d),i.rotation=a.rotation=r.rotation,g(i),g(a);function g(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,w,x,b,C){S[b]+=x[b][C]-w[b][C]}},e.prototype._createAxis=function(r,n){var i=n.getData(),a=n.get("axisType"),o=Zhe(n,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new jhe("value",o,r.axisExtent,a);return l.model=n,l},e.prototype._createGroup=function(r){var n=this[r]=new fe;return this.group.add(n),n},e.prototype._renderAxisLine=function(r,n,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new Gt({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:F({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new Gt({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:oe({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},e.prototype._renderAxisTick=function(r,n,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],M(l,function(u){var c=i.dataToCoord(u.value),f=s.getItemModel(u.value),h=f.getModel("itemStyle"),v=f.getModel(["emphasis","itemStyle"]),d=f.getModel(["progress","itemStyle"]),p={x:c,y:0,onclick:Q(o._changeTimeline,o,u.value)},y=lR(f,h,n,p);y.ensureState("emphasis").style=v.getItemStyle(),y.ensureState("progress").style=d.getItemStyle(),fo(y);var g=pe(y);f.get("tooltip")?(g.dataIndex=u.value,g.dataModel=a):g.dataIndex=g.dataModel=null,o._tickSymbols.push(y)})},e.prototype._renderAxisLabel=function(r,n,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],M(u,function(c){var f=c.tickValue,h=l.getItemModel(f),v=h.getModel("label"),d=h.getModel(["emphasis","label"]),p=h.getModel(["progress","label"]),y=i.dataToCoord(c.tickValue),g=new Oe({x:y,y:0,rotation:r.labelRotation-r.rotation,onclick:Q(o._changeTimeline,o,f),silent:!1,style:tt(v,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});g.ensureState("emphasis").style=tt(d),g.ensureState("progress").style=tt(p),n.add(g),fo(g),sR(g).dataIndex=f,o._tickLabels.push(g)})}},e.prototype._renderControl=function(r,n,i,a){var o=r.controlSize,s=r.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),f=a.get("inverse",!0);h(r.nextBtnPosition,"next",Q(this._changeTimeline,this,f?"-":"+")),h(r.prevBtnPosition,"prev",Q(this._changeTimeline,this,f?"+":"-")),h(r.playPosition,c?"stop":"play",Q(this._handlePlayClick,this,!c),!0);function h(v,d,p,y){if(v){var g=si(be(a.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-g/2,g,g],_=Khe(a,d+"Icon",m,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:y?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,n.add(_),fo(_)}}},e.prototype._renderCurrentPointer=function(r,n,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=Q(u._handlePointerDrag,u),f.ondragend=Q(u._handlePointerDragend,u),uR(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){uR(f,u._progressLine,s,i,a)}};this._currentPointer=lR(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},e.prototype._handlePointerDrag=function(r,n,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},e.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},e.prototype._pointerChangeTimeline=function(r,n){var i=this._toAxisCoord(r)[0],a=this._axis,o=Qr(a.getExtent().slice());i>o[1]&&(i=o[1]),i=0&&(o[a]=+o[a].toFixed(h)),[o,f]}var x_={min:ye(jd,"min"),max:ye(jd,"max"),average:ye(jd,"average"),median:ye(jd,"median")};function $h(t,e){if(e){var r=t.getData(),n=t.coordinateSystem,i=n&&n.dimensions;if(!ave(e)&&!G(e.coord)&&G(i)){var a=oG(e,r,n,t);if(e=le(e),e.type&&x_[e.type]&&a.baseAxis&&a.valueAxis){var o=Te(i,a.baseAxis.dim),s=Te(i,a.valueAxis.dim),l=x_[e.type](r,a.baseDataDim,a.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!G(i))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)x_[u[c]]&&(u[c]=tA(r,r.mapDimension(i[c]),u[c]));return e}}function oG(t,e,r,n){var i={};return t.valueIndex!=null||t.valueDim!=null?(i.valueDataDim=t.valueIndex!=null?e.getDimension(t.valueIndex):t.valueDim,i.valueAxis=r.getAxis(ove(n,i.valueDataDim)),i.baseAxis=r.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=r.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function ove(t,e){var r=t.getData().getDimensionInfo(e);return r&&r.coordDim}function Yh(t,e){return t&&t.containData&&e.coord&&!xw(e)?t.containData(e.coord):!0}function sve(t,e,r){return t&&t.containZone&&e.coord&&r.coord&&!xw(e)&&!xw(r)?t.containZone(e.coord,r.coord):!0}function sG(t,e){return t?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return po(o,e[a])}:function(r,n,i,a){return po(r.value,e[a])}}function tA(t,e,r){if(r==="average"){var n=0,i=0;return t.each(e,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return r==="median"?t.getMedian(e):t.getDataExtent(e)[r==="max"?1:0]}var w_=Ve(),lve=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(){this.markerGroupMap=ie()},e.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){w_(s).keep=!1}),n.eachSeries(function(s){var l=Ao.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!w_(s).keep&&a.group.remove(s.group)})},e.prototype.markKeep=function(r){w_(r).keep=!0},e.prototype.toggleBlurSeries=function(r,n){var i=this;M(r,function(a){var o=Ao.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?kz(l):cC(l))})}})},e.type="marker",e}(ft);const rA=lve;function fR(t,e,r){var n=e.coordinateSystem;t.each(function(i){var a=t.getItemModel(i),o,s=j(a.get("x"),r.getWidth()),l=j(a.get("y"),r.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,i));else if(n){var u=t.get(n.dimensions[0],i),c=t.get(n.dimensions[1],i);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(i,o)})}var uve=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Ao.getMarkerModelFromSeries(a,"markPoint");o&&(fR(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},e.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new xv),f=cve(o,r,n);n.setData(f),fR(n.getData(),r,a),f.each(function(h){var v=f.getItemModel(h),d=v.getShallow("symbol"),p=v.getShallow("symbolSize"),y=v.getShallow("symbolRotate"),g=v.getShallow("symbolOffset"),m=v.getShallow("symbolKeepAspect");if(ae(d)||ae(p)||ae(y)||ae(g)){var _=n.getRawValue(h),S=n.getDataParams(h);ae(d)&&(d=d(_,S)),ae(p)&&(p=p(_,S)),ae(y)&&(y=y(_,S)),ae(g)&&(g=g(_,S))}var w=v.getModel("itemStyle").getItemStyle(),x=gv(l,"color");w.fill||(w.fill=x),f.setItemVisual(h,{symbol:d,symbolSize:p,symbolRotate:y,symbolOffset:g,symbolKeepAspect:m,style:w})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(h){h.traverse(function(v){pe(v).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},e.type="markPoint",e}(rA);function cve(t,e,r){var n;t?n=H(t&&t.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return F(F({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new gr(n,r),a=H(r.get("data"),ye($h,e));t&&(a=Ye(a,ye(Yh,t)));var o=sG(!!t,n);return i.initData(a,null,o),i}const fve=uve;function hve(t){t.registerComponentModel(ive),t.registerComponentView(fve),t.registerPreprocessor(function(e){eA(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var vve=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.createMarkerModelFromSeries=function(r,n,i){return new e(r,n,i)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(Ao);const dve=vve;var Xd=Ve(),pve=function(t,e,r,n){var i=t.getData(),a;if(G(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=e.getAxis(n.yAxis!=null?"y":"x"),l=Vt(n.yAxis,n.xAxis);else{var u=oG(n,i,e,t);s=u.valueAxis;var c=qC(i,u.valueDataDim);l=tA(i,c,o)}var f=s.dim==="x"?0:1,h=1-f,v=le(n),d={coord:[]};v.type=null,v.coord=[],v.coord[h]=-1/0,d.coord[h]=1/0;var p=r.get("precision");p>=0&&Fe(l)&&(l=+l.toFixed(Math.min(p,20))),v.coord[f]=d.coord[f]=l,a=[v,d,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var y=[$h(t,a[0]),$h(t,a[1]),F({},a[2])];return y[2].type=y[2].type||null,Se(y[2],y[0]),Se(y[2],y[1]),y};function Qg(t){return!isNaN(t)&&!isFinite(t)}function hR(t,e,r,n){var i=1-t,a=n.dimensions[t];return Qg(e[i])&&Qg(r[i])&&e[t]===r[t]&&n.getAxis(a).containData(e[t])}function gve(t,e){if(t.type==="cartesian2d"){var r=e[0].coord,n=e[1].coord;if(r&&n&&(hR(1,r,n,t)||hR(0,r,n,t)))return!0}return Yh(t,e[0])&&Yh(t,e[1])}function b_(t,e,r,n,i){var a=n.coordinateSystem,o=t.getItemModel(e),s,l=j(o.get("x"),i.getWidth()),u=j(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=a.dimensions,f=t.get(c[0],e),h=t.get(c[1],e);s=a.dataToPoint([f,h])}if(hl(a,"cartesian2d")){var v=a.getAxis("x"),d=a.getAxis("y"),c=a.dimensions;Qg(t.get(c[0],e))?s[0]=v.toGlobalCoord(v.getExtent()[r?0:1]):Qg(t.get(c[1],e))&&(s[1]=d.toGlobalCoord(d.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}t.setItemLayout(e,s)}var yve=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Ao.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=Xd(o).from,u=Xd(o).to;l.each(function(c){b_(l,c,!0,a,i),b_(u,c,!1,a,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},e.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new TT);this.group.add(c.group);var f=mve(o,r,n),h=f.from,v=f.to,d=f.line;Xd(n).from=h,Xd(n).to=v,n.setData(d);var p=n.get("symbol"),y=n.get("symbolSize"),g=n.get("symbolRotate"),m=n.get("symbolOffset");G(p)||(p=[p,p]),G(y)||(y=[y,y]),G(g)||(g=[g,g]),G(m)||(m=[m,m]),f.from.each(function(S){_(h,S,!0),_(v,S,!1)}),d.each(function(S){var w=d.getItemModel(S).getModel("lineStyle").getLineStyle();d.setItemLayout(S,[h.getItemLayout(S),v.getItemLayout(S)]),w.stroke==null&&(w.stroke=h.getItemVisual(S,"style").fill),d.setItemVisual(S,{fromSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(S,"symbolOffset"),fromSymbolRotate:h.getItemVisual(S,"symbolRotate"),fromSymbolSize:h.getItemVisual(S,"symbolSize"),fromSymbol:h.getItemVisual(S,"symbol"),toSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(S,"symbolOffset"),toSymbolRotate:v.getItemVisual(S,"symbolRotate"),toSymbolSize:v.getItemVisual(S,"symbolSize"),toSymbol:v.getItemVisual(S,"symbol"),style:w})}),c.updateData(d),f.line.eachItemGraphicEl(function(S){pe(S).dataModel=n,S.traverse(function(w){pe(w).dataModel=n})});function _(S,w,x){var b=S.getItemModel(w);b_(S,w,x,r,a);var C=b.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=gv(l,"color")),S.setItemVisual(w,{symbolKeepAspect:b.get("symbolKeepAspect"),symbolOffset:be(b.get("symbolOffset",!0),m[x?0:1]),symbolRotate:be(b.get("symbolRotate",!0),g[x?0:1]),symbolSize:be(b.get("symbolSize"),y[x?0:1]),symbol:be(b.get("symbol",!0),p[x?0:1]),style:C})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},e.type="markLine",e}(rA);function mve(t,e,r){var n;t?n=H(t&&t.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return F(F({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new gr(n,r),a=new gr(n,r),o=new gr([],r),s=H(r.get("data"),ye(pve,e,t,r));t&&(s=Ye(s,ye(gve,t)));var l=sG(!!t,n);return i.initData(H(s,function(u){return u[0]}),null,l),a.initData(H(s,function(u){return u[1]}),null,l),o.initData(H(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}const _ve=yve;function Sve(t){t.registerComponentModel(dve),t.registerComponentView(_ve),t.registerPreprocessor(function(e){eA(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var xve=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.createMarkerModelFromSeries=function(r,n,i){return new e(r,n,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(Ao);const wve=xve;var Zd=Ve(),bve=function(t,e,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=$h(t,i),s=$h(t,a),l=o.coord,u=s.coord;l[0]=Vt(l[0],-1/0),l[1]=Vt(l[1],-1/0),u[0]=Vt(u[0],1/0),u[1]=Vt(u[1],1/0);var c=ky([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function Jg(t){return!isNaN(t)&&!isFinite(t)}function vR(t,e,r,n){var i=1-t;return Jg(e[i])&&Jg(r[i])}function Cve(t,e){var r=e.coord[0],n=e.coord[1],i={coord:r,x:e.x0,y:e.y0},a={coord:n,x:e.x1,y:e.y1};return hl(t,"cartesian2d")?r&&n&&(vR(1,r,n)||vR(0,r,n))?!0:sve(t,i,a):Yh(t,i)||Yh(t,a)}function dR(t,e,r,n,i){var a=n.coordinateSystem,o=t.getItemModel(e),s,l=j(o.get(r[0]),i.getWidth()),u=j(o.get(r[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=t.getValues(["x0","y0"],e),f=t.getValues(["x1","y1"],e),h=a.clampData(c),v=a.clampData(f),d=[];r[0]==="x0"?d[0]=h[0]>v[0]?f[0]:c[0]:d[0]=h[0]>v[0]?c[0]:f[0],r[1]==="y0"?d[1]=h[1]>v[1]?f[1]:c[1]:d[1]=h[1]>v[1]?c[1]:f[1],s=n.getMarkerPosition(d,r,!0)}else{var p=t.get(r[0],e),y=t.get(r[1],e),g=[p,y];a.clampData&&a.clampData(g,g),s=a.dataToPoint(g,!0)}if(hl(a,"cartesian2d")){var m=a.getAxis("x"),_=a.getAxis("y"),p=t.get(r[0],e),y=t.get(r[1],e);Jg(p)?s[0]=m.toGlobalCoord(m.getExtent()[r[0]==="x0"?0:1]):Jg(y)&&(s[1]=_.toGlobalCoord(_.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var pR=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Tve=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Ao.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=H(pR,function(f){return dR(s,l,f,a,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new fe});this.group.add(c.group),this.markKeep(c);var f=Ave(o,r,n);n.setData(f),f.each(function(h){var v=H(pR,function(C){return dR(f,h,C,r,a)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,y=d.getExtent(),g=p.getExtent(),m=[d.parse(f.get("x0",h)),d.parse(f.get("x1",h))],_=[p.parse(f.get("y0",h)),p.parse(f.get("y1",h))];Qr(m),Qr(_);var S=!(y[0]>m[1]||y[1]_[1]||g[1]<_[0]),w=!S;f.setItemLayout(h,{points:v,allClipped:w});var x=f.getItemModel(h).getModel("itemStyle").getItemStyle(),b=gv(l,"color");x.fill||(x.fill=b,Z(x.fill)&&(x.fill=_h(x.fill,.4))),x.stroke||(x.stroke=b),f.setItemVisual(h,"style",x)}),f.diff(Zd(c).data).add(function(h){var v=f.getItemLayout(h);if(!v.allClipped){var d=new Lr({shape:{points:v.points}});f.setItemGraphicEl(h,d),c.group.add(d)}}).update(function(h,v){var d=Zd(c).data.getItemGraphicEl(v),p=f.getItemLayout(h);p.allClipped?d&&c.group.remove(d):(d?Ge(d,{shape:{points:p.points}},n,h):d=new Lr({shape:{points:p.points}}),f.setItemGraphicEl(h,d),c.group.add(d))}).remove(function(h){var v=Zd(c).data.getItemGraphicEl(h);c.group.remove(v)}).execute(),f.eachItemGraphicEl(function(h,v){var d=f.getItemModel(v),p=f.getItemVisual(v,"style");h.useStyle(f.getItemVisual(v,"style")),sr(h,Wt(d),{labelFetcher:n,labelDataIndex:v,defaultText:f.getName(v)||"",inheritColor:Z(p.fill)?_h(p.fill,1):"#000"}),or(h,d),yt(h,null,null,d.get(["emphasis","disabled"])),pe(h).dataModel=n}),Zd(c).data=f,c.group.silent=n.get("silent")||r.get("silent")},e.type="markArea",e}(rA);function Ave(t,e,r){var n,i,a=["x0","y0","x1","y1"];if(t){var o=H(t&&t.dimensions,function(u){var c=e.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return F(F({},f),{name:u,ordinalMeta:null})});i=H(a,function(u,c){return{name:u,type:o[c%2].type}}),n=new gr(i,r)}else i=[{name:"value",type:"float"}],n=new gr(i,r);var s=H(r.get("data"),ye(bve,e,t,r));t&&(s=Ye(s,ye(Cve,t)));var l=t?function(u,c,f,h){var v=u.coord[Math.floor(h/2)][h%2];return po(v,i[h])}:function(u,c,f,h){return po(u.value,i[h])};return n.initData(s,null,l),n.hasItemOption=!0,n}const Mve=Tve;function Dve(t){t.registerComponentModel(wve),t.registerComponentView(Mve),t.registerPreprocessor(function(e){eA(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var Lve=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},Pve=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),G(n)&&M(n,function(a,o){Z(a)&&(a={type:a}),n[o]=Se(a,Lve(i,a.type))})},e.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=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(ke);const ww=Pve;var kl=ye,bw=M,qd=fe,Ive=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new qd),this.group.add(this._selectorGroup=new qd),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.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 c=r.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},h=r.get("padding"),v=It(c,f,h),d=this.layoutInner(r,o,v,a,l,u),p=It(oe({width:d.width,height:d.height},c),f,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Z4(d,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),c=ie(),f=n.get("selectedMode"),h=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),bw(n.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===` +`)){var y=new qd;y.newline=!0,u.add(y);return}var g=i.getSeriesByName(p)[0];if(!c.get(p))if(g){var m=g.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),w=m.getVisual("style"),x=this._createItem(g,p,d,v,n,r,_,w,S,f,a);x.on("click",kl(gR,p,null,a,h)).on("mouseover",kl(Cw,g.name,null,a,h)).on("mouseout",kl(Tw,g.name,null,a,h)),c.set(p,!0)}else i.eachRawSeries(function(b){if(!c.get(p)&&b.legendVisualProvider){var C=b.legendVisualProvider;if(!C.containName(p))return;var T=C.indexOfName(p),A=C.getItemVisual(T,"style"),D=C.getItemVisual(T,"legendIcon"),L=Ar(A.fill);L&&L[3]===0&&(L[3]=.2,A=F(F({},A),{fill:ri(L,"rgba")}));var P=this._createItem(b,p,d,v,n,r,{},A,D,f,a);P.on("click",kl(gR,null,p,a,h)).on("mouseover",kl(Cw,null,p,a,h)).on("mouseout",kl(Tw,null,p,a,h)),c.set(p,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},e.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();bw(r,function(u){var c=u.type,f=new Oe({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);sr(f,{normal:h,emphasis:v},{defaultText:u.title}),fo(f)})},e.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,h){var v=r.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),y=o.isSelected(n),g=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");c=_||c||"roundRect";var S=Eve(c,a,l,u,v,y,h),w=new qd,x=a.getModel("textStyle");if(ae(r.getLegendIcon)&&(!_||_==="inherit"))w.add(r.getLegendIcon({itemWidth:d,itemHeight:p,icon:c,iconRotate:g,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var b=_==="inherit"&&r.getData().getVisual("symbol")?g==="inherit"?r.getData().getVisual("symbolRotate"):g:0;w.add(Rve({itemWidth:d,itemHeight:p,icon:c,iconRotate:b,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var C=s==="left"?d+5:-5,T=s,A=o.get("formatter"),D=n;Z(A)&&A?D=A.replace("{name}",n??""):ae(A)&&(D=A(n));var L=a.get("inactiveColor");w.add(new Oe({style:tt(x,{text:D,x:C,y:p/2,fill:y?x.getTextColor():L,align:T,verticalAlign:"middle"})}));var P=new Ne({shape:w.getBoundingRect(),invisible:!0}),I=a.getModel("tooltip");return I.get("show")&&tc({el:P,componentModel:o,itemName:n,itemTooltipOption:I.option}),w.add(P),w.eachChild(function(E){E.silent=!0}),P.silent=!f,this.getContentGroup().add(w),fo(w),w.__legendDataIndex=i,w},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Fs(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Fs("horizontal",u,r.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=r.get("selectorButtonGap",!0),p=r.getOrient().index,y=p===0?"width":"height",g=p===0?"height":"width",m=p===0?"y":"x";s==="end"?v[p]+=c[y]+d:f[p]+=h[y]+d,v[1-p]+=c[g]/2-h[g]/2,u.x=v[0],u.y=v[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[y]=c[y]+d+h[y],_[g]=Math.max(c[g],h[g]),_[m]=Math.min(0,h[m]+v[1-p]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(ft);function Eve(t,e,r,n,i,a,o){function s(y,g){y.lineWidth==="auto"&&(y.lineWidth=g.lineWidth>0?2:0),bw(y,function(m,_){y[_]==="inherit"&&(y[_]=g[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=t.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:Bu(f,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var h=e.getModel("lineStyle"),v=h.getLineStyle();if(s(v,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!a){var d=e.get("inactiveBorderWidth"),p=u[c];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function Rve(t){var e=t.icon||"roundRect",r=Mt(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function gR(t,e,r,n){Tw(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),Cw(t,e,r,n)}function lG(t){for(var e=t.getZr().storage.getDisplayList(),r,n=0,i=e.length;ni[o],y=[-v.x,-v.y];n||(y[a]=c[u]);var g=[0,0],m=[-d.x,-d.y],_=be(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var S=r.get("pageButtonPosition",!0);S==="end"?m[a]+=i[o]-d[o]:g[a]+=d[o]+_}m[1-a]+=v[s]/2-d[s]/2,c.setPosition(y),f.setPosition(g),h.setPosition(m);var w={x:0,y:0};if(w[o]=p?i[o]:v[o],w[s]=Math.max(v[s],d[s]),w[l]=Math.min(0,d[l]+m[1-a]),f.__rectSize=i[o],p){var x={x:0,y:0};x[o]=Math.max(i[o]-d[o]-_,0),x[s]=w[s],f.setClipPath(new Ne({shape:x})),f.__rectSize=x[o]}else h.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(r);return b.pageIndex!=null&&Ge(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?r:null),this._updatePageInfoView(r,b),w},e.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;M(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",h=n[f]!=null,v=i.childOfName(c);v&&(v.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),v.cursor=h?"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}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=C_[o],l=T_[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],h=c.length,v=h?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return d;var p=S(f);d.contentPosition[o]=-p.s;for(var y=u+1,g=p,m=p,_=null;y<=h;++y)_=S(c[y]),(!_&&m.e>g.s+a||_&&!w(_,g.s))&&(m.i>g.i?g=m:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),m=_;for(var y=u-1,g=p,m=p,_=null;y>=-1;--y)_=S(c[y]),(!_||!w(m,_.s))&&g.i=b&&x.s<=b+a}},e.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??a},e.type="legend.scroll",e}(uG);const Fve=zve;function Vve(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}function Gve(t){Ae(cG),t.registerComponentModel(Bve),t.registerComponentView(Fve),Vve(t)}function Hve(t){Ae(cG),Ae(Gve)}var Uve=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="dataZoom.inside",e.defaultOption=ko(Wh.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Wh);const Wve=Uve;var nA=Ve();function $ve(t,e,r){nA(t).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(e.uid);i&&(i.getRange=r)})}function Yve(t,e){for(var r=nA(t).coordSysRecordMap,n=r.keys(),i=0;in[r+e]&&(e=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function Kve(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(e,r){var n=nA(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=ie());i.each(function(a){a.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=Y4(a);M(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,jve(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ie());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){fG(i,a);return}var c=qve(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),uc(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Qve=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return e.prototype.render=function(r,n,i){if(t.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),$ve(i,r,{pan:Q(A_.pan,this),zoom:Q(A_.zoom,this),scrollMove:Q(A_.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Yve(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(XT),A_={zoom:function(t,e,r,n){var i=this.range,a=i.slice(),o=t.axisModels[0];if(o){var s=M_[e](null,[n.originX,n.originY],o,r,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(dl(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:_R(function(t,e,r,n,i,a){var o=M_[n]([a.oldX,a.oldY],[a.newX,a.newY],e,i,r);return o.signal*(t[1]-t[0])*o.pixel/o.pixelLength}),scrollMove:_R(function(t,e,r,n,i,a){var o=M_[n]([0,0],[a.scrollDelta,a.scrollDelta],e,i,r);return o.signal*(t[1]-t[0])*a.scrollDelta})};function _R(t){return function(e,r,n,i){var a=this.range,o=a.slice(),s=e.axisModels[0];if(s){var l=t(o,s,e,r,n,i);if(dl(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var M_={grid:function(t,e,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem.getRect();return t=t||[0,0],a.dim==="x"?(o.pixel=e[0]-t[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(t,e,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),r.mainType==="radiusAxis"?(o.pixel=e[0]-t[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(t,e,r,n,i){var a=r.axis,o=i.model.coordinateSystem.getRect(),s={};return t=t||[0,0],a.orient==="horizontal"?(s.pixel=e[0]-t[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};const Jve=Qve;function hG(t){ZT(t),t.registerComponentModel(Wve),t.registerComponentView(Jve),Kve(t)}var ede=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=ko(Wh.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Wh);const tde=ede;var Jc=Ne,SR=7,rde=1,D_=30,nde=7,ef="horizontal",xR="vertical",ide=5,ade=["line","bar","candlestick","scatter"],ode={easing:"cubicOut",duration:100,delay:0},sde=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._displayables={},r}return e.prototype.init=function(r,n){this.api=n,this._onBrush=Q(this._onBrush,this),this._onBrushEnd=Q(this._onBrushEnd,this)},e.prototype.render=function(r,n,i,a){if(t.prototype.render.apply(this,arguments),uc(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Eh(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new fe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},e.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,i=r.get("brushSelect"),a=i?nde:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===ef?{right:s.width-o.x-o.width,top:s.height-D_-SR-a,width:o.width,height:D_}:{right:SR,top:o.y,width:D_,height:o.height},u=ic(r.option);M(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=It(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===xR&&this._size.reverse()},e.prototype._positionGroup=function(){var r=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===ef&&!o?{scaleY:l?1:-1,scaleX:1}:i===ef&&o?{scaleY:l?1:-1,scaleX:-1}:i===xR&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=r.get("brushSelect");i.add(new Jc({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Jc({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:Q(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},e.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,i=this._shadowSize||[],a=r.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var f=o.getDataExtent(l),h=(f[1]-f[0])*.3;f=[f[0]-h,f[1]+h];var v=[0,n[1]],d=[0,n[0]],p=[[n[0],0],[0,0]],y=[],g=d[1]/(o.count()-1),m=0,_=Math.round(o.count()/n[0]),S;o.each([l],function(T,A){if(_>0&&A%_){m+=g;return}var D=T==null||isNaN(T)||T==="",L=D?0:$e(T,f,v,!0);D&&!S&&A?(p.push([p[p.length-1][0],0]),y.push([y[y.length-1][0],0])):!D&&S&&(p.push([m,0]),y.push([m,0])),p.push([m,L]),y.push([m,L]),m+=g,S=D}),u=this._shadowPolygonPts=p,c=this._shadowPolylinePts=y}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var w=this.dataZoomModel;function x(T){var A=w.getModel(T?"selectedDataBackground":"dataBackground"),D=new fe,L=new Lr({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new Er({shape:{points:c},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return D.add(L),D.add(P),D}for(var b=0;b<3;b++){var C=x(b===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},e.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();M(l,function(u){if(!i&&!(n!==!0&&Te(ade,u.get("type"))<0)){var c=a.getComponent(eo(o),s).axis,f=lde(o),h,v=u.coordinateSystem;f!=null&&v.getOtherAxis&&(h=v.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),i={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:h}}},this)},this),i}},e.prototype._renderHandle=function(){var r=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),h=n.filler=new Jc({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new Jc({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:rde,fill:"rgba(0,0,0,0)"}})),M([0,1],function(_){var S=l.get("handleIcon");!Mg[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var w=Mt(S,-1,0,2,2,null,!0);w.attr({cursor:wR(this._orient),draggable:!0,drift:Q(this._onDragMove,this,_),ondragend:Q(this._onDragEnd,this),onmouseover:Q(this._showDataInfo,this,!0),onmouseout:Q(this._showDataInfo,this,!1),z2:5});var x=w.getBoundingRect(),b=l.get("handleSize");this._handleHeight=j(b,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,w.setStyle(l.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),fo(w);var C=l.get("handleColor");C!=null&&(w.style.fill=C),o.add(i[_]=w);var T=l.getModel("textStyle");r.add(a[_]=new Oe({silent:!0,invisible:!0,style:tt(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var v=h;if(f){var d=j(l.get("moveHandleSize"),s[1]),p=n.moveHandle=new Ne({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),y=d*.8,g=n.moveHandleIcon=Mt(l.get("moveHandleIcon"),-y/2,-y/2,y,y,"#fff",!0);g.silent=!0,g.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));v=n.moveZone=new Ne({invisible:!0,shape:{y:s[1]-m,height:d+m}}),v.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(g),o.add(v)}v.attr({draggable:!0,cursor:wR(this._orient),drift:Q(this._onDragMove,this,"all"),ondragstart:Q(this._showDataInfo,this,!0),ondragend:Q(this._onDragEnd,this),onmouseover:Q(this._showDataInfo,this,!0),onmouseout:Q(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[$e(r[0],[0,100],n,!0),$e(r[1],[0,100],n,!0)]},e.prototype._updateInterval=function(r,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];dl(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?$e(s.minSpan,l,o,!0):null,s.maxSpan!=null?$e(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Qr([$e(a[0],o,l,!0),$e(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(r){var n=this._displayables,i=this._handleEnds,a=Qr(i.slice()),o=this._size;M([0,1],function(v){var d=n.handles[v],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:i[v]+(v?-1:1),y:o[1]/2-p/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],c=0;cn[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(r){var n=r.offsetX,i=r.offsetY;this._brushStart=new we(n,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Qr([$e(i.x,o,s,!0),$e(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(r){this._brushing&&(va(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},e.prototype._updateBrushRect=function(r,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new Jc({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},e.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?ode:null,start:n[0],end:n[1]})},e.prototype._findCoordRect=function(){var r,n=Y4(this.dataZoomModel).infoList;if(!r&&n.length){var i=n[0].model.coordinateSystem;r=i.getRect&&i.getRect()}if(!r){var a=this.api.getWidth(),o=this.api.getHeight();r={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return r},e.type="dataZoom.slider",e}(XT);function lde(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function wR(t){return t==="vertical"?"ns-resize":"ew-resize"}const ude=sde;function vG(t){t.registerComponentModel(tde),t.registerComponentView(ude),ZT(t)}function cde(t){Ae(hG),Ae(vG)}var fde={get:function(t,e,r){var n=le((hde[t]||{})[e]);return r&&G(n)?n[n.length-1]:n}},hde={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const dG=fde;var bR=nr.mapVisual,vde=nr.eachVisual,dde=G,CR=M,pde=Qr,gde=$e,yde=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.optionUpdated=function(r,n){var i=this.option;!n&&rG(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(r){var n=this.stateList;r=Q(r,this),this.controllerVisuals=_w(this.option.controller,n,r),this.targetVisuals=_w(this.option.target,n,r)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=Ke(r),n},e.prototype.eachTargetSeries=function(r,n){M(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&r.call(n,a)},this)},e.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(i){i===r&&(n=!0)}),n},e.prototype.formatValueText=function(r,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],G(r)&&(r=r.slice(),u=!0);var c=n?r:u?[f(r[0]),f(r[1])]:f(r);if(Z(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(ae(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?i[0]+" "+c[1]:r[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var r=this.option,n=pde([r.min,r.max]);this._dataExtent=n},e.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var i=r.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});Se(a,i),Se(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(f){dde(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,h,v){var d=f[h],p=f[v];d&&!p&&(p=f[v]={},CR(d,function(y,g){if(nr.isValidType(g)){var m=dG.get(g,"inactive",s);m!=null&&(p[g]=m,g==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function c(f){var h=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,v=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),y=p||"roundRect";CR(this.stateList,function(g){var m=this.itemSize,_=f[g];_||(_=f[g]={color:s?d:[d]}),_.symbol==null&&(_.symbol=h&&le(h)||(s?y:[y])),_.symbolSize==null&&(_.symbolSize=v&&le(v)||(s?m[0]:[m[0],m[0]])),_.symbol=bR(_.symbol,function(x){return x==="none"?y:x});var S=_.symbolSize;if(S!=null){var w=-1/0;vde(S,function(x){x>w&&(w=x)}),_.symbolSize=bR(S,function(x){return gde(x,[0,w],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(r){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(r){return null},e.prototype.getVisualMeta=function(r){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(ke);const ey=yde;var TR=[20,140],mde=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(r,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=TR[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=TR[1])},e.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):G(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),M(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},e.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},e.prototype.getSelected=function(){var r=this.getExtent(),n=Qr((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]=i[1]||r<=n[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},e.prototype.getVisualMeta=function(r){var n=AR(this,"outOfRange",this.getExtent()),i=AR(this,"inRange",this.option.range.slice()),a=[];function o(v,d){a.push({value:v,color:r(v,d)})}for(var s=0,l=0,u=i.length,c=n.length;lr[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),a},e.prototype._createBarPoints=function(r,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],r[0]],[i[0],r[0]],[i[0],r[1]],[i[0]-n[1],r[1]]]},e.prototype._createBarGroup=function(r){var n=this._orient,i=this.visualMapModel.get("inverse");return new fe(n==="horizontal"&&!i?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},e.prototype._updateHandle=function(r,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent();xde([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var h=_i(r[c],[0,l[1]],u,!0),v=this.getControllerVisual(h,"symbolSize");f.scaleX=f.scaleY=v/l[0],f.x=l[0]-v/2;var d=ni(i.handleLabelPoints[c],ho(f,this.group));s[c].setStyle({x:d[0],y:d[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(r,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var h={convertOpacityToAlpha:!0},v=this.getControllerVisual(r,"color",h),d=this.getControllerVisual(r,"symbolSize"),p=_i(r,s,u,!0),y=l[0]-d/2,g={x:f.x,y:f.y};f.y=p,f.x=y;var m=ni(c.indicatorLabelPoint,ho(f,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),w=this._orient,x=w==="horizontal";_.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:x?S:"middle",align:x?"center":S});var b={x:y,y:p,style:{fill:v}},C={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var T={duration:100,easing:"cubicInOut",additive:!0};f.x=g.x,f.y=g.y,f.animateTo(b,T),_.animateTo(C,T)}else f.attr(b),_.attr(C);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var D=0;Do[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var h=this._hoverLinkDataIndices,v=[];(n||PR(i))&&(v=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var d=eY(h,v);this._dispatchHighDown("downplay",Ep(d[0],i)),this._dispatchHighDown("highlight",Ep(d[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(Ps(r.target,function(l){var u=pe(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i=0&&(a.dimension=o,n.push(a))}}),t.getData().setVisual("visualMeta",n)}}];function Pde(t,e,r,n){for(var i=e.targetVisuals[n],a=nr.prepareVisualTypes(i),o={color:gv(t.getData(),"color")},s=0,l=a.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),t.registerAction(Mde,Dde),M(Lde,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(Ide))}function mG(t){t.registerComponentModel(_de),t.registerComponentView(Ade),yG(t)}var Ede=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._pieceList=[],r}return e.prototype.optionUpdated=function(r,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],Rde[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=le(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=H(this._pieceList,function(l){return l=le(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var r=this.option,n={},i=nr.listVisualTypes(),a=this.isCategory();M(r.pieces,function(s){M(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),M(n,function(s,l){var u=!1;M(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&M(this.stateList,function(c){(r[c]||(r[c]={}))[l]=dG.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(r,n){var i=this.option,a=this._pieceList,o=(n?i:r).selected||{};if(i.selected=o,M(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;M(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(r){this.option.selected=le(r)},e.prototype.getValueState=function(r){var n=nr.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(r){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=nr.findPieceIndex(l,i);c===r&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},e.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var i=r.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},e.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(c,f){var h=a.getRepresentValue({interval:c});f||(f=a.getValueState(h));var v=r(h,f);c[0]===-1/0?i[0]=v:c[1]===1/0?i[1]=v:n.push({value:c[0],color:v},{value:c[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return M(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:n,outerColors:i}},e.type="visualMap.piecewise",e.defaultOption=ko(ey.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(ey),Rde={splitNumber:function(t){var e=this.option,r=Math.min(e.precision,20),n=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(r)!==a&&r<5;)r++;e.precision=r,a=+a.toFixed(r),e.minOpen&&t.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,i)},this)}};function kR(t,e){var r=t.inverse;(t.orient==="vertical"?!r:r)&&e.reverse()}const kde=Ede;var Ode=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),f=c.endsText,h=Vt(n.get("showLabel",!0),!f);f&&this._renderEndsText(r,f[0],u,h,l),M(c.viewPieceList,function(v){var d=v.piece,p=new fe;p.onclick=Q(this._onItemClick,this,d),this._enableHoverLink(p,v.indexInModelPieceList);var y=n.getRepresentValue(d);if(this._createItemSymbol(p,y,[0,0,u[0],u[1]]),h){var g=this.visualMapModel.getValueState(y);p.add(new Oe({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:d.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:g==="outOfRange"?.5:1}}))}r.add(p)},this),f&&this._renderEndsText(r,f[1],u,h,l),Fs(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},e.prototype._enableHoverLink=function(r,n){var i=this;r.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:Ep(s.findTargetDataIndices(n),s)})}},e.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return gG(r,this.api,r.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},e.prototype._renderEndsText=function(r,n,i,a,o){if(n){var s=new fe,l=this.visualMapModel.textStyleModel;s.add(new Oe({style:tt(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),r.add(s)}},e.prototype._getViewData=function(){var r=this.visualMapModel,n=H(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=r.get("text"),a=r.get("orient"),o=r.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},e.prototype._createItemSymbol=function(r,n,i){r.add(Mt(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color")))},e.prototype._onItemClick=function(r){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=le(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,M(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(pG);const Nde=Ode;function _G(t){t.registerComponentModel(kde),t.registerComponentView(Nde),yG(t)}function Bde(t){Ae(mG),Ae(_G)}var zde={label:{enabled:!0},decal:{show:!1}},OR=Ve(),Fde={};function Vde(t,e){var r=t.getModel("aria");if(!r.get("enabled"))return;var n=le(zde);Se(n.label,t.getLocaleModel().get("aria"),!1),Se(r.option,n,!1),i(),a();function i(){var u=r.getModel("decal"),c=u.get("show");if(c){var f=ie();t.eachSeries(function(h){if(!h.isColorBySeries()){var v=f.get(h.type);v||(v={},f.set(h.type,v)),OR(h).scope=v}}),t.eachRawSeries(function(h){if(t.isSeriesFiltered(h))return;if(ae(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var m=Ax(h.ecModel,h.name,Fde,t.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,m))}else{var d=h.getRawData(),p={},y=OR(h).scope;v.each(function(w){var x=v.getRawIndex(w);p[x]=w});var g=d.count();d.each(function(w){var x=p[w],b=d.getName(w)||w+"",C=Ax(h.ecModel,b,y,g),T=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(T,C))})}function S(w,x){var b=w?F(F({},x),w):x;return b.dirty=!0,b}})}}function a(){var u=t.getLocaleModel().get("aria"),c=r.getModel("label");if(c.option=oe(c.option,u),!!c.get("enabled")){var f=e.getZr().dom;if(c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var h=t.getSeriesCount(),v=c.get(["data","maxCount"])||10,d=c.get(["series","maxCount"])||10,p=Math.min(h,d),y;if(!(h<1)){var g=s();if(g){var m=c.get(["general","withTitle"]);y=o(m,{title:g})}else y=c.get(["general","withoutTitle"]);var _=[],S=h>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);y+=o(S,{seriesCount:h}),t.eachSeries(function(C,T){if(T1?c.get(["series","multiple",L]):c.get(["series","single",L]),A=o(A,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var P=C.getData();if(P.count()>v){var I=c.get(["data","partialData"]);A+=o(I,{displayCnt:v})}else A+=c.get(["data","allData"]);for(var E=c.get(["data","separator","middle"]),k=c.get(["data","separator","end"]),B=[],R=0;R":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Ude=function(){function t(e){var r=this._condVal=Z(e)?new RegExp(e):_B(e)?e:null;if(r==null){var n="";Ue(n)}}return t.prototype.evaluate=function(e){var r=typeof e;return Z(r)?this._condVal.test(e):Fe(r)?this._condVal.test(e+""):!1},t}(),Wde=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),$de=function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,r=0;r2&&n.push(i),i=[P,I]}function c(P,I,E,k){su(P,E)&&su(I,k)||i.push(P,I,E,k,E,k)}function f(P,I,E,k,B,R){var O=Math.abs(I-P),z=Math.tan(O/4)*4/3,V=IC:D2&&n.push(i),n}function Mw(t,e,r,n,i,a,o,s,l,u){if(su(t,r)&&su(e,n)&&su(i,o)&&su(a,s)){l.push(o,s);return}var c=2/u,f=c*c,h=o-t,v=s-e,d=Math.sqrt(h*h+v*v);h/=d,v/=d;var p=r-t,y=n-e,g=i-o,m=a-s,_=p*p+y*y,S=g*g+m*m;if(_=0&&C=0){l.push(o,s);return}var T=[],A=[];So(t,r,i,o,.5,T),So(e,n,a,s,.5,A),Mw(T[0],A[0],T[1],A[1],T[2],A[2],T[3],A[3],l,u),Mw(T[4],A[4],T[5],A[5],T[6],A[6],T[7],A[7],l,u)}function ape(t,e){var r=Aw(t),n=[];e=e||1;for(var i=0;i0)for(var u=0;uMath.abs(u),f=xG([l,u],c?0:1,e),h=(c?s:u)/f.length,v=0;vi,o=xG([n,i],a?0:1,e),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",f=t[s]/o.length,h=0;h1?null:new we(p*l+t,p*u+e)}function lpe(t,e,r){var n=new we;we.sub(n,r,e),n.normalize();var i=new we;we.sub(i,t,e);var a=i.dot(n);return a}function Nl(t,e){var r=t[t.length-1];r&&r[0]===e[0]&&r[1]===e[1]||t.push(e)}function upe(t,e,r){for(var n=t.length,i=[],a=0;ao?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),upe(e,u,c)}function ty(t,e,r,n){if(r===1)n.push(e);else{var i=Math.floor(r/2),a=t(e);ty(t,a[0],i,n),ty(t,a[1],r-i,n)}return n}function cpe(t,e){for(var r=[],n=0;n0)for(var w=n/r,x=-n/2;x<=n/2;x+=w){for(var b=Math.sin(x),C=Math.cos(x),T=0,_=0;_0;u/=2){var c=0,f=0;(t&u)>0&&(c=1),(e&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(t=u-1-t,e=u-1-e),l=t,t=e,e=l)}return s}function iy(t){var e=1/0,r=1/0,n=-1/0,i=-1/0,a=H(t,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),r=Math.min(f,r),n=Math.max(c,n),i=Math.max(f,i),[c,f]}),o=H(a,function(s,l){return{cp:s,z:_pe(s[0],s[1],e,r,n,i),path:t[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function CG(t){return vpe(t.path,t.count)}function Dw(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Spe(t,e,r){var n=[];function i(w){for(var x=0;x=0;i--)if(!r[i].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var a=l.length,u=Math.ceil(a/2);r[i].many=l.slice(u,a),r[s].many=l.slice(0,u),s++}return r}var wpe={clone:function(t){for(var e=[],r=1-Math.pow(1-t.path.style.opacity,1/t.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;WR(t)&&(u=t,c=e),WR(e)&&(u=e,c=t);function f(g,m,_,S,w){var x=g.many,b=g.one;if(x.length===1&&!w){var C=m?x[0]:b,T=m?b:x[0];if(ry(C))f({many:[C],one:T},!0,_,S,!0);else{var A=s?oe({delay:s(_,S)},l):l;aA(C,T,A),a(C,T,C,T,A)}}else for(var D=oe({dividePath:wpe[r],individualDelay:s&&function(B,R,O,z){return s(B+_,S)}},l),L=m?Spe(x,b,D):xpe(b,x,D),P=L.fromIndividuals,I=L.toIndividuals,E=P.length,k=0;ke.length,v=u?$R(c,u):$R(h?e:t,[h?t:e]),d=0,p=0;pTG))for(var i=n.getIndices(),a=Cpe(n),o=0;o0&&S.group.traverse(function(x){x instanceof Pe&&!x.animators.length&&x.animateFrom({style:{opacity:0}},w)})})}function jR(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function XR(t){return G(t)?t.sort().join(","):t}function Ua(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function Mpe(t,e){var r=ie(),n=ie(),i=ie();return M(t.oldSeries,function(a,o){var s=t.oldDataGroupIds[o],l=t.oldData[o],u=jR(a),c=XR(u);n.set(c,{dataGroupId:s,data:l}),G(u)&&M(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),M(e.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=jR(a),u=XR(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Ua(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Ua(s),data:s}]});else if(G(l)){var f=[];M(l,function(d){var p=n.get(d);p.data&&f.push({dataGroupId:p.dataGroupId,divide:Ua(p.data),data:p.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Ua(s)}]})}else{var h=i.get(l);if(h){var v=r.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Ua(h.data)}],newSeries:[]},r.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:Ua(s)})}}}}),r}function ZR(t,e){for(var r=0;r=0&&i.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Ua(e.oldData[s]),dim:o.dimension})}),M(Ke(t.to),function(o){var s=ZR(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Ua(l),dim:o.dimension})}}),i.length>0&&a.length>0&&AG(i,a,n)}function Lpe(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,n){M(Ke(n.seriesTransition),function(i){M(Ke(i.to),function(a){for(var o=n.updatedSeries,s=0;s1&&arguments[1]!==void 0?arguments[1]:60,a=null;return function(){for(var o=this,s=arguments.length,l=new Array(s),u=0;uK.jsxs("div",{className:"relative group",children:[e,K.jsx("div",{className:"hidden group-hover:block absolute bg-[#5B5B5B] text-white text-xs px-3 py-2 rounded-sm -right-20 top-10",children:K.jsx("div",{className:"min-w-[30rem]",children:t})})]});var qn=(t=>(t.Propose="propose",t.Approve="approve",t.LedgerLogin="ledgerLogin",t.GithubLogin="githubLogin",t.GithubToken="githubToken",t))(qn||{});const ss={propose:{success:{title:"Number of successful request proposals:",desc:"Number of times a user clicks the approve request button, and a transaction successfully posts on the chain."},failed:{title:"Number of unsuccessful request proposals:",desc:"Instances where a user sends a request proposed message from the front end, but a transaction does not post on the chain."},extraInfo:"- Request proposal indicates that its the first notary to sign an allocation."},approve:{success:{title:"Number of successful request proposals:",desc:"Number of times a user clicks the approve request button, and a transaction successfully posts on the chain."},failed:{title:"Number of unsuccessful request proposals:",desc:"Instances where a user sends a request approved message from the front end, but a transaction does not post on the chain."},extraInfo:"- Request approved indicates that its the first notary to sign an allocation."},ledgerLogin:{success:{title:"Number of Ledger Logins:",desc:"Number of times users successfully link their ledger to the dashboard."},failed:{title:"Number of unsuccessful Ledger Logins:",desc:"Number of times users fail to link their ledger to the dashboard."},extraInfo:""},githubLogin:{success:{title:"Number of GitHub Logins:",desc:"Number of times users successfully initiate the GitHub login process and return to the dashboard."},failed:{title:"Number of unsuccessful GitHub Logins:",desc:"Number of times users fail to link their github account to the dashboard."},extraInfo:""},githubToken:{success:{title:"Number of GitHub Tokens Loaded:",desc:"Number of instances where users successfully login using a GitHub auth token, such as when a user logs in previously and re-logs into GitHub without needing to re-authenticate manually."},failed:{title:"Number of unsuccessful GitHub Tokens Loaded:",desc:"Number of instances fail to load github token"},extraInfo:""}},rge={[qn.Propose]:"Proposal",[qn.Approve]:"Approval",[qn.LedgerLogin]:"Ledger Login",[qn.GithubLogin]:"Github Login",[qn.GithubToken]:"Github Token Load"},Pw=({bgColor:t})=>K.jsx("span",{className:`${t} h-2 w-2 inline-block mr-1`}),QR=({data:t,n:e,bgColor:r})=>K.jsxs("div",{className:"flex items-center text-xs",children:[K.jsx(Pw,{bgColor:r}),"Total count : ",k8(t,e)]}),JR=({tab:t,setTab:e,changeTab:r})=>K.jsx("button",{onClick:()=>e(r),className:`text-xs bg-gray-100 px-2 py-1 ${t===r&&"bg-gradient-to-r from-cyan-500 to-blue-500 text-white transition duration-300"}`,children:r+"D"}),nge=({title:t})=>{var e;return K.jsxs("div",{className:"flex flex-col space-y-2 py-2",children:[K.jsxs("p",{children:[K.jsx(Pw,{bgColor:"bg-chart-blue"}),K.jsx("span",{className:"pr-1 font-semibold",children:ss[t].success.title}),K.jsx("span",{children:ss[t].success.desc})]}),K.jsxs("p",{children:[K.jsx(Pw,{bgColor:"bg-chart-orange"}),K.jsx("span",{className:"pr-1 font-semibold",children:ss[t].failed.title}),K.jsx("span",{children:ss[t].failed.desc})]}),K.jsx("p",{children:(e=ss==null?void 0:ss[t])==null?void 0:e.extraInfo})]})},PG=({graphData:t})=>{const[e,r]=J.useState(7);let n=Object.keys(t.success).map(a=>({day:a,positive:t.success[a],negative:t.failure[a]}));e===7&&(n=n.slice(7,14));const i=O8(n);return K.jsxs("div",{className:"bg-white rounded-md flex flex-col p-4 shadow-md",children:[K.jsxs("div",{className:"flex justify-between px-10 items-center z-10",children:[K.jsx("h4",{className:"text-xl font-semibold",children:rge[t.title]}),K.jsxs("div",{className:"flex space-x-2",children:[K.jsx(QR,{data:t.success,n:e,bgColor:"bg-chart-blue"}),K.jsx(QR,{data:t.failure,n:e,bgColor:"bg-chart-orange"})]}),K.jsxs("div",{className:"flex items-center space-x-4",children:[K.jsx(tge,{comp:K.jsx(nge,{title:t.title}),children:K.jsx(DW,{})}),K.jsxs("div",{children:[K.jsx(JR,{tab:e,setTab:r,changeTab:7}),K.jsx(JR,{tab:e,setTab:r,changeTab:14})]})]})]}),K.jsx(ege,{option:i})]})},ek=()=>K.jsxs("div",{className:"bg-white rounded-md flex flex-col px-16 py-8 shadow-md h-[360px]",children:[K.jsxs("div",{className:"flex justify-between",children:[K.jsx("div",{className:"w-32 bg-gray-300 animate-pulse h-9 mb-10"}),K.jsx("div",{className:"w-32 bg-gray-300 animate-pulse h-9 mb-10"}),K.jsx("div",{className:"w-32 bg-gray-300 animate-pulse h-9 mb-10"})]}),K.jsxs("div",{className:"h-[200px] flex space-x-11 items-end",children:[K.jsx("div",{className:"flex-1 h-5/6 bg-gray-300 animate-pulse"}),K.jsx("div",{className:"flex-1 h-3/6 bg-gray-300 animate-pulse"}),K.jsx("div",{className:"flex-1 h-4/6 bg-gray-300 animate-pulse"}),K.jsx("div",{className:"flex-1 h-3/6 bg-gray-300 animate-pulse"}),K.jsx("div",{className:"flex-1 h-4/6 bg-gray-300 animate-pulse"}),K.jsx("div",{className:"flex-1 h-2/6 bg-gray-300 animate-pulse"}),K.jsx("div",{className:"flex-1 h-full bg-gray-300 animate-pulse"})]})]}),IG=()=>K.jsxs("div",{className:"flex flex-col space-y-4",children:[K.jsx(ek,{}),K.jsx(ek,{})]}),ige=()=>{const t=kb({queryKey:["chart"],queryFn:fB});if(t.isLoading)return K.jsx(IG,{});const e=t.data;let r=[];if(e){const{"Request Approved":n,"Approval Failed":i,"Request Proposed":a,"Proposal Failed":o}=e;r=[{title:qn.Propose,success:a,failure:o},{title:qn.Approve,success:n,failure:i}]}return K.jsx("div",{className:"flex flex-col space-y-4",children:r.map(n=>K.jsx(PG,{graphData:n},n.title))})},age=()=>{const t=kb({queryKey:["chart"],queryFn:fB});if(t.isLoading)return K.jsx(IG,{});const e=t.data;let r=[];if(e){const n=e["Ledger Login Successful"],i=e["Ledger Login Failed"],a=e["Github Login Success"],o=e["Github Login Failed"],s=e["Loaded Github Token Successfully"],l={};for(const u in s)l[u]=0;r=[{title:qn.LedgerLogin,success:n,failure:i},{title:qn.GithubLogin,success:a,failure:o},{title:qn.GithubToken,success:s,failure:l}]}return K.jsx("div",{className:"flex flex-col space-y-4",children:r.map(n=>K.jsx(PG,{graphData:n},n.title))})},oge=()=>K.jsx("div",{children:"About Page for filplus metrics "}),sge=_W([{path:"/",element:K.jsx(V8,{}),children:[{element:K.jsx(ige,{}),index:!0},{path:"user",element:K.jsx(age,{})}]},{path:"/about",element:K.jsx(oge,{})}]),lge=new UW;k_.createRoot(document.getElementById("root")).render(K.jsx(fk.StrictMode,{children:K.jsx(i$,{client:lge,children:K.jsx(cW,{router:sge})})})); diff --git a/dist/exp.txt b/dist/exp.txt deleted file mode 100644 index d28bb66..0000000 --- a/dist/exp.txt +++ /dev/null @@ -1 +0,0 @@ -ciao \ No newline at end of file diff --git a/dist/favicon.png b/dist/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..5575c89a73bdbe21e8515fa12b3967eee1b49000 GIT binary patch literal 1052 zcmV+%1mpXOP)Dm(~=&?;8>C>e|p5*jOM6GBoF z#WZR{Sm;9I%B1EcE({A6rVDoRLb_@<#)WB!3u{`83)D1G;ztVBmP{eVNew|7Ix`eY z$1=X-;?6iTG7NVHJ)4tz?!D*!&;Ol!-noLU`04^L0{uW2=wT2S6yP366!a?aHOM7A zN!Yj*i-X%hM^G6?w9;%*iffX<1z-$M7Rm$Q2UQ?vK;H#IHqjK26vzZHiYJ@)0DNr$ zE`o;bBHopedEk{oY-|VM2i+iFg4UN1sfEZIFn}jlcLp%7EeJE_@c$z6ZF&u)H%|+F!3{-zh01ud7vkg6Hd;|8FP3Blf7;{05e0v>>U{X zLO6c|{1d_>QfNJ4b5^d^T(ujNneCsy3`c6A{o{01z%a6Mf5$B;paaiY$S^Ph651`& zLb~g5Veo1A?3SbtH};kLMfZh3MgSaB;dD5Qy)^xLyU|n8lJ^he2d)DQ0+r=_dw^5V z2pe1Q-Ac*(D}lif&}WPM%`hB4q%0<2F|H*4g610K;u35HWii+n0=l!vir?c~>&lT@ z;b?>MM!V2lqlgG64k^>G3X2J4Aue2wDmUX+6|y@79JWP#Wf`t4XUFII;q4A(d=}RK zR9ali3@7-$NCR@*Qj2*(wa=K#~zh|}5;c%e~=Zou`s4w@LI zEzf%!7J9NU3!i0eAy1bfQW$ffJ}e{#Um@K1LK39Ow#>Zq>wRB z{2*)^NF4$yc3p4WJ_IH)kJI_0EA1Qt<3Sz5AV~UoP7~moNlk!6foqu3e#sQL-Q{n7 WcGhy5Q%uPK0000 + + + + + + Fil+ Metrics + + + + +
+ + + From 9869a9bffb87282176007d63810651fcd118e7fd Mon Sep 17 00:00:00 2001 From: Fabriziogianni7 Date: Fri, 26 May 2023 15:27:03 +0200 Subject: [PATCH 09/11] removing dist --- dist/assets/fil-plus-60ab2b37.svg | 48 --------- dist/assets/index-69303858.css | 1 - dist/assets/index-746ebbe2.js | 163 ------------------------------ dist/favicon.png | Bin 1052 -> 0 bytes dist/index.html | 15 --- 5 files changed, 227 deletions(-) delete mode 100644 dist/assets/fil-plus-60ab2b37.svg delete mode 100644 dist/assets/index-69303858.css delete mode 100644 dist/assets/index-746ebbe2.js delete mode 100644 dist/favicon.png delete mode 100644 dist/index.html diff --git a/dist/assets/fil-plus-60ab2b37.svg b/dist/assets/fil-plus-60ab2b37.svg deleted file mode 100644 index e7b9221..0000000 --- a/dist/assets/fil-plus-60ab2b37.svg +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/dist/assets/index-69303858.css b/dist/assets/index-69303858.css deleted file mode 100644 index eec5341..0000000 --- a/dist/assets/index-69303858.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.-right-20{right:-5rem}.left-0{left:0px}.top-0{top:0px}.top-10{top:2.5rem}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.mb-10{margin-bottom:2.5rem}.mb-4{margin-bottom:1rem}.ml-64{margin-left:16rem}.mr-1{margin-right:.25rem}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-16{height:4rem}.h-2{height:.5rem}.h-2\/6{height:33.333333%}.h-3\/6{height:50%}.h-4\/6{height:66.666667%}.h-5\/6{height:83.333333%}.h-6{height:1.5rem}.h-9{height:2.25rem}.h-\[200px\]{height:200px}.h-\[360px\]{height:360px}.h-full{height:100%}.min-h-screen{min-height:100vh}.w-2{width:.5rem}.w-32{width:8rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-full{width:100%}.min-w-\[30rem\]{min-width:30rem}.max-w-\[1200px\]{max-width:1200px}.flex-1{flex:1 1 0%}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-between{justify-content:space-between}.space-x-11>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2.75rem * var(--tw-space-x-reverse));margin-left:calc(2.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.border-t{border-top-width:1px}.bg-\[\#5B5B5B\]{--tw-bg-opacity: 1;background-color:rgb(91 91 91 / var(--tw-bg-opacity))}.bg-\[\#E7E7E7\]{--tw-bg-opacity: 1;background-color:rgb(231 231 231 / var(--tw-bg-opacity))}.bg-chart-blue{--tw-bg-opacity: 1;background-color:rgb(33 150 243 / var(--tw-bg-opacity))}.bg-chart-orange{--tw-bg-opacity: 1;background-color:rgb(255 87 34 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-blue-500{--tw-gradient-to: #3b82f6 var(--tw-gradient-to-position)}.p-4{padding:1rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-12{padding-left:3rem;padding-right:3rem}.px-16{padding-left:4rem;padding-right:4rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pl-4{padding-left:1rem}.pr-1{padding-right:.25rem}.text-center{text-align:center}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.group:hover .group-hover\:block{display:block} diff --git a/dist/assets/index-746ebbe2.js b/dist/assets/index-746ebbe2.js deleted file mode 100644 index 3efa84d..0000000 --- a/dist/assets/index-746ebbe2.js +++ /dev/null @@ -1,163 +0,0 @@ -(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();function tk(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var rk={exports:{}},oy={},nk={exports:{}},We={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var jh=Symbol.for("react.element"),NG=Symbol.for("react.portal"),BG=Symbol.for("react.fragment"),zG=Symbol.for("react.strict_mode"),FG=Symbol.for("react.profiler"),VG=Symbol.for("react.provider"),GG=Symbol.for("react.context"),HG=Symbol.for("react.forward_ref"),UG=Symbol.for("react.suspense"),WG=Symbol.for("react.memo"),$G=Symbol.for("react.lazy"),cA=Symbol.iterator;function YG(t){return t===null||typeof t!="object"?null:(t=cA&&t[cA]||t["@@iterator"],typeof t=="function"?t:null)}var ik={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ak=Object.assign,ok={};function Wu(t,e,r){this.props=t,this.context=e,this.refs=ok,this.updater=r||ik}Wu.prototype.isReactComponent={};Wu.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Wu.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function sk(){}sk.prototype=Wu.prototype;function Iw(t,e,r){this.props=t,this.context=e,this.refs=ok,this.updater=r||ik}var Ew=Iw.prototype=new sk;Ew.constructor=Iw;ak(Ew,Wu.prototype);Ew.isPureReactComponent=!0;var fA=Array.isArray,lk=Object.prototype.hasOwnProperty,Rw={current:null},uk={key:!0,ref:!0,__self:!0,__source:!0};function ck(t,e,r){var n,i={},a=null,o=null;if(e!=null)for(n in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(a=""+e.key),e)lk.call(e,n)&&!uk.hasOwnProperty(n)&&(i[n]=e[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1>>1,Y=R[V];if(0>>1;Vi(ve,z))Mei(me,ve)?(R[V]=me,R[Me]=z,V=Me):(R[V]=ve,R[te]=z,V=te);else if(Mei(me,z))R[V]=me,R[Me]=z,V=Me;else break e}}return O}function i(R,O){var z=R.sortIndex-O.sortIndex;return z!==0?z:R.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();t.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,f=null,h=3,v=!1,d=!1,p=!1,y=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(R){for(var O=r(u);O!==null;){if(O.callback===null)n(u);else if(O.startTime<=R)n(u),O.sortIndex=O.expirationTime,e(l,O);else break;O=r(u)}}function S(R){if(p=!1,_(R),!d)if(r(l)!==null)d=!0,k(w);else{var O=r(u);O!==null&&B(S,O.startTime-R)}}function w(R,O){d=!1,p&&(p=!1,g(C),C=-1),v=!0;var z=h;try{for(_(O),f=r(l);f!==null&&(!(f.expirationTime>O)||R&&!D());){var V=f.callback;if(typeof V=="function"){f.callback=null,h=f.priorityLevel;var Y=V(f.expirationTime<=O);O=t.unstable_now(),typeof Y=="function"?f.callback=Y:f===r(l)&&n(l),_(O)}else n(l);f=r(l)}if(f!==null)var re=!0;else{var te=r(u);te!==null&&B(S,te.startTime-O),re=!1}return re}finally{f=null,h=z,v=!1}}var x=!1,b=null,C=-1,T=5,A=-1;function D(){return!(t.unstable_now()-AR||125V?(R.sortIndex=z,e(u,R),r(l)===null&&R===r(u)&&(p?(g(C),C=-1):p=!0,B(S,z-V))):(R.sortIndex=Y,e(l,R),d||v||(d=!0,k(w))),R},t.unstable_shouldYield=D,t.unstable_wrapCallback=function(R){var O=h;return function(){var z=h;h=O;try{return R.apply(this,arguments)}finally{h=z}}}})(pk);dk.exports=pk;var nH=dk.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var gk=J,tn=nH;function q(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),O_=Object.prototype.hasOwnProperty,iH=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,vA={},dA={};function aH(t){return O_.call(dA,t)?!0:O_.call(vA,t)?!1:iH.test(t)?dA[t]=!0:(vA[t]=!0,!1)}function oH(t,e,r,n){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function sH(t,e,r,n){if(e===null||typeof e>"u"||oH(t,e,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Ir(t,e,r,n,i,a,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=a,this.removeEmptyString=o}var ir={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){ir[t]=new Ir(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];ir[e]=new Ir(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){ir[t]=new Ir(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){ir[t]=new Ir(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){ir[t]=new Ir(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){ir[t]=new Ir(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){ir[t]=new Ir(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){ir[t]=new Ir(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){ir[t]=new Ir(t,5,!1,t.toLowerCase(),null,!1,!1)});var Ow=/[\-:]([a-z])/g;function Nw(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(Ow,Nw);ir[e]=new Ir(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Ow,Nw);ir[e]=new Ir(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Ow,Nw);ir[e]=new Ir(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){ir[t]=new Ir(t,1,!1,t.toLowerCase(),null,!1,!1)});ir.xlinkHref=new Ir("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){ir[t]=new Ir(t,1,!1,t.toLowerCase(),null,!0,!0)});function Bw(t,e,r,n){var i=ir.hasOwnProperty(e)?ir[e]:null;(i!==null?i.type!==0:n||!(2s||i[o]!==a[s]){var l=` -`+i[o].replace(" at new "," at ");return t.displayName&&l.includes("")&&(l=l.replace("",t.displayName)),l}while(1<=o&&0<=s);break}}}finally{Om=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?tf(t):""}function lH(t){switch(t.tag){case 5:return tf(t.type);case 16:return tf("Lazy");case 13:return tf("Suspense");case 19:return tf("SuspenseList");case 0:case 2:case 15:return t=Nm(t.type,!1),t;case 11:return t=Nm(t.type.render,!1),t;case 1:return t=Nm(t.type,!0),t;default:return""}}function F_(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case $l:return"Fragment";case Wl:return"Portal";case N_:return"Profiler";case zw:return"StrictMode";case B_:return"Suspense";case z_:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case _k:return(t.displayName||"Context")+".Consumer";case mk:return(t._context.displayName||"Context")+".Provider";case Fw:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Vw:return e=t.displayName||null,e!==null?e:F_(t.type)||"Memo";case Fa:e=t._payload,t=t._init;try{return F_(t(e))}catch{}}return null}function uH(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return F_(e);case 8:return e===zw?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function yo(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function xk(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function cH(t){var e=xk(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Rv(t){t._valueTracker||(t._valueTracker=cH(t))}function wk(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=xk(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function Rp(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function V_(t,e){var r=e.checked;return bt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function gA(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=yo(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function bk(t,e){e=e.checked,e!=null&&Bw(t,"checked",e,!1)}function G_(t,e){bk(t,e);var r=yo(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?H_(t,e.type,r):e.hasOwnProperty("defaultValue")&&H_(t,e.type,yo(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function yA(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function H_(t,e,r){(e!=="number"||Rp(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var rf=Array.isArray;function lu(t,e,r,n){if(t=t.options,e){e={};for(var i=0;i"+e.valueOf().toString()+"",e=kv.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Xf(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var _f={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fH=["Webkit","ms","Moz","O"];Object.keys(_f).forEach(function(t){fH.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),_f[e]=_f[t]})});function Mk(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||_f.hasOwnProperty(t)&&_f[t]?(""+e).trim():e+"px"}function Dk(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=Mk(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,i):t[r]=i}}var hH=bt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $_(t,e){if(e){if(hH[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(q(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(q(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(q(61))}if(e.style!=null&&typeof e.style!="object")throw Error(q(62))}}function Y_(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var j_=null;function Gw(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var X_=null,uu=null,cu=null;function SA(t){if(t=qh(t)){if(typeof X_!="function")throw Error(q(280));var e=t.stateNode;e&&(e=fy(e),X_(t.stateNode,t.type,e))}}function Lk(t){uu?cu?cu.push(t):cu=[t]:uu=t}function Pk(){if(uu){var t=uu,e=cu;if(cu=uu=null,SA(t),e)for(t=0;t>>=0,t===0?32:31-(bH(t)/CH|0)|0}var Ov=64,Nv=4194304;function nf(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Bp(t,e){var r=t.pendingLanes;if(r===0)return 0;var n=0,i=t.suspendedLanes,a=t.pingedLanes,o=r&268435455;if(o!==0){var s=o&~i;s!==0?n=nf(s):(a&=o,a!==0&&(n=nf(a)))}else o=r&~i,o!==0?n=nf(o):a!==0&&(n=nf(a));if(n===0)return 0;if(e!==0&&e!==n&&!(e&i)&&(i=n&-n,a=e&-e,i>=a||i===16&&(a&4194240)!==0))return e;if(n&4&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0r;r++)e.push(t);return e}function Xh(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Jn(e),t[e]=r}function DH(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0=xf),LA=String.fromCharCode(32),PA=!1;function qk(t,e){switch(t){case"keyup":return rU.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kk(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Yl=!1;function iU(t,e){switch(t){case"compositionend":return Kk(e);case"keypress":return e.which!==32?null:(PA=!0,LA);case"textInput":return t=e.data,t===LA&&PA?null:t;default:return null}}function aU(t,e){if(Yl)return t==="compositionend"||!Zw&&qk(t,e)?(t=Xk(),ep=Yw=Ya=null,Yl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=kA(r)}}function tO(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?tO(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function rO(){for(var t=window,e=Rp();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=Rp(t.document)}return e}function qw(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function dU(t){var e=rO(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&tO(r.ownerDocument.documentElement,r)){if(n!==null&&qw(r)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!t.extend&&a>n&&(i=n,n=a,a=i),i=OA(r,a);var o=OA(r,n);i&&o&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),a>n?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,jl=null,eS=null,bf=null,tS=!1;function NA(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;tS||jl==null||jl!==Rp(n)||(n=jl,"selectionStart"in n&&qw(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),bf&&eh(bf,n)||(bf=n,n=Vp(eS,"onSelect"),0ql||(t.current=sS[ql],sS[ql]=null,ql--)}function ht(t,e){ql++,sS[ql]=t.current,t.current=e}var mo={},yr=Do(mo),Gr=Do(!1),$s=mo;function bu(t,e){var r=t.type.contextTypes;if(!r)return mo;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=e[a];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function Hr(t){return t=t.childContextTypes,t!=null}function Hp(){dt(Gr),dt(yr)}function UA(t,e,r){if(yr.current!==mo)throw Error(q(168));ht(yr,e),ht(Gr,r)}function fO(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(q(108,uH(t)||"Unknown",i));return bt({},r,n)}function Up(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||mo,$s=yr.current,ht(yr,t),ht(Gr,Gr.current),!0}function WA(t,e,r){var n=t.stateNode;if(!n)throw Error(q(169));r?(t=fO(t,e,$s),n.__reactInternalMemoizedMergedChildContext=t,dt(Gr),dt(yr),ht(yr,t)):dt(Gr),ht(Gr,r)}var Xi=null,hy=!1,qm=!1;function hO(t){Xi===null?Xi=[t]:Xi.push(t)}function AU(t){hy=!0,hO(t)}function Lo(){if(!qm&&Xi!==null){qm=!0;var t=0,e=it;try{var r=Xi;for(it=1;t>=o,i-=o,Zi=1<<32-Jn(e)+i|r<C?(T=b,b=null):T=b.sibling;var A=h(g,b,_[C],S);if(A===null){b===null&&(b=T);break}t&&b&&A.alternate===null&&e(g,b),m=a(A,m,C),x===null?w=A:x.sibling=A,x=A,b=T}if(C===_.length)return r(g,b),pt&&ls(g,C),w;if(b===null){for(;C<_.length;C++)b=f(g,_[C],S),b!==null&&(m=a(b,m,C),x===null?w=b:x.sibling=b,x=b);return pt&&ls(g,C),w}for(b=n(g,b);C<_.length;C++)T=v(b,g,C,_[C],S),T!==null&&(t&&T.alternate!==null&&b.delete(T.key===null?C:T.key),m=a(T,m,C),x===null?w=T:x.sibling=T,x=T);return t&&b.forEach(function(D){return e(g,D)}),pt&&ls(g,C),w}function p(g,m,_,S){var w=pc(_);if(typeof w!="function")throw Error(q(150));if(_=w.call(_),_==null)throw Error(q(151));for(var x=w=null,b=m,C=m=0,T=null,A=_.next();b!==null&&!A.done;C++,A=_.next()){b.index>C?(T=b,b=null):T=b.sibling;var D=h(g,b,A.value,S);if(D===null){b===null&&(b=T);break}t&&b&&D.alternate===null&&e(g,b),m=a(D,m,C),x===null?w=D:x.sibling=D,x=D,b=T}if(A.done)return r(g,b),pt&&ls(g,C),w;if(b===null){for(;!A.done;C++,A=_.next())A=f(g,A.value,S),A!==null&&(m=a(A,m,C),x===null?w=A:x.sibling=A,x=A);return pt&&ls(g,C),w}for(b=n(g,b);!A.done;C++,A=_.next())A=v(b,g,C,A.value,S),A!==null&&(t&&A.alternate!==null&&b.delete(A.key===null?C:A.key),m=a(A,m,C),x===null?w=A:x.sibling=A,x=A);return t&&b.forEach(function(L){return e(g,L)}),pt&&ls(g,C),w}function y(g,m,_,S){if(typeof _=="object"&&_!==null&&_.type===$l&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Ev:e:{for(var w=_.key,x=m;x!==null;){if(x.key===w){if(w=_.type,w===$l){if(x.tag===7){r(g,x.sibling),m=i(x,_.props.children),m.return=g,g=m;break e}}else if(x.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Fa&&KA(w)===x.type){r(g,x.sibling),m=i(x,_.props),m.ref=Sc(g,x,_),m.return=g,g=m;break e}r(g,x);break}else e(g,x);x=x.sibling}_.type===$l?(m=Os(_.props.children,g.mode,S,_.key),m.return=g,g=m):(S=lp(_.type,_.key,_.props,null,g.mode,S),S.ref=Sc(g,m,_),S.return=g,g=S)}return o(g);case Wl:e:{for(x=_.key;m!==null;){if(m.key===x)if(m.tag===4&&m.stateNode.containerInfo===_.containerInfo&&m.stateNode.implementation===_.implementation){r(g,m.sibling),m=i(m,_.children||[]),m.return=g,g=m;break e}else{r(g,m);break}else e(g,m);m=m.sibling}m=i0(_,g.mode,S),m.return=g,g=m}return o(g);case Fa:return x=_._init,y(g,m,x(_._payload),S)}if(rf(_))return d(g,m,_,S);if(pc(_))return p(g,m,_,S);Uv(g,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,m!==null&&m.tag===6?(r(g,m.sibling),m=i(m,_),m.return=g,g=m):(r(g,m),m=n0(_,g.mode,S),m.return=g,g=m),o(g)):r(g,m)}return y}var Tu=SO(!0),xO=SO(!1),Kh={},Pi=Do(Kh),ih=Do(Kh),ah=Do(Kh);function bs(t){if(t===Kh)throw Error(q(174));return t}function ab(t,e){switch(ht(ah,e),ht(ih,t),ht(Pi,Kh),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:W_(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=W_(e,t)}dt(Pi),ht(Pi,e)}function Au(){dt(Pi),dt(ih),dt(ah)}function wO(t){bs(ah.current);var e=bs(Pi.current),r=W_(e,t.type);e!==r&&(ht(ih,t),ht(Pi,r))}function ob(t){ih.current===t&&(dt(Pi),dt(ih))}var St=Do(0);function Zp(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Km=[];function sb(){for(var t=0;tr?r:4,t(!0);var n=Qm.transition;Qm.transition={};try{t(!1),e()}finally{it=r,Qm.transition=n}}function zO(){return In().memoizedState}function PU(t,e,r){var n=so(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},FO(t))VO(e,r);else if(r=gO(t,e,r,n),r!==null){var i=Tr();ei(r,t,n,i),GO(r,e,n)}}function IU(t,e,r){var n=so(t),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(FO(t))VO(e,i);else{var a=t.alternate;if(t.lanes===0&&(a===null||a.lanes===0)&&(a=e.lastRenderedReducer,a!==null))try{var o=e.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,ii(s,o)){var l=e.interleaved;l===null?(i.next=i,nb(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}r=gO(t,e,i,n),r!==null&&(i=Tr(),ei(r,t,n,i),GO(r,e,n))}}function FO(t){var e=t.alternate;return t===xt||e!==null&&e===xt}function VO(t,e){Cf=qp=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function GO(t,e,r){if(r&4194240){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Uw(t,r)}}var Kp={readContext:Pn,useCallback:ur,useContext:ur,useEffect:ur,useImperativeHandle:ur,useInsertionEffect:ur,useLayoutEffect:ur,useMemo:ur,useReducer:ur,useRef:ur,useState:ur,useDebugValue:ur,useDeferredValue:ur,useTransition:ur,useMutableSource:ur,useSyncExternalStore:ur,useId:ur,unstable_isNewReconciler:!1},EU={readContext:Pn,useCallback:function(t,e){return Si().memoizedState=[t,e===void 0?null:e],t},useContext:Pn,useEffect:JA,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,ip(4194308,4,RO.bind(null,e,t),r)},useLayoutEffect:function(t,e){return ip(4194308,4,t,e)},useInsertionEffect:function(t,e){return ip(4,2,t,e)},useMemo:function(t,e){var r=Si();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=Si();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=PU.bind(null,xt,t),[n.memoizedState,t]},useRef:function(t){var e=Si();return t={current:t},e.memoizedState=t},useState:QA,useDebugValue:hb,useDeferredValue:function(t){return Si().memoizedState=t},useTransition:function(){var t=QA(!1),e=t[0];return t=LU.bind(null,t[1]),Si().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=xt,i=Si();if(pt){if(r===void 0)throw Error(q(407));r=r()}else{if(r=e(),qt===null)throw Error(q(349));js&30||TO(n,e,r)}i.memoizedState=r;var a={value:r,getSnapshot:e};return i.queue=a,JA(MO.bind(null,n,a,t),[t]),n.flags|=2048,lh(9,AO.bind(null,n,a,r,e),void 0,null),r},useId:function(){var t=Si(),e=qt.identifierPrefix;if(pt){var r=qi,n=Zi;r=(n&~(1<<32-Jn(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=oh++,0<\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=o.createElement(r,{is:n.is}):(t=o.createElement(r),r==="select"&&(o=t,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):t=o.createElementNS(t,r),t[wi]=e,t[nh]=n,qO(t,e,!1,!1),e.stateNode=t;e:{switch(o=Y_(r,n),r){case"dialog":vt("cancel",t),vt("close",t),i=n;break;case"iframe":case"object":case"embed":vt("load",t),i=n;break;case"video":case"audio":for(i=0;iDu&&(e.flags|=128,n=!0,xc(a,!1),e.lanes=4194304)}else{if(!n)if(t=Zp(o),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),xc(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!pt)return cr(e),null}else 2*Lt()-a.renderingStartTime>Du&&r!==1073741824&&(e.flags|=128,n=!0,xc(a,!1),e.lanes=4194304);a.isBackwards?(o.sibling=e.child,e.child=o):(r=a.last,r!==null?r.sibling=o:e.child=o,a.last=o)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Lt(),e.sibling=null,r=St.current,ht(St,n?r&1|2:r&1),e):(cr(e),null);case 22:case 23:return mb(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?Xr&1073741824&&(cr(e),e.subtreeFlags&6&&(e.flags|=8192)):cr(e),null;case 24:return null;case 25:return null}throw Error(q(156,e.tag))}function VU(t,e){switch(Qw(e),e.tag){case 1:return Hr(e.type)&&Hp(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Au(),dt(Gr),dt(yr),sb(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return ob(e),null;case 13:if(dt(St),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(q(340));Cu()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return dt(St),null;case 4:return Au(),null;case 10:return rb(e.type._context),null;case 22:case 23:return mb(),null;case 24:return null;default:return null}}var $v=!1,pr=!1,GU=typeof WeakSet=="function"?WeakSet:Set,ce=null;function eu(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Tt(t,e,n)}else r.current=null}function _S(t,e,r){try{r()}catch(n){Tt(t,e,n)}}var lM=!1;function HU(t,e){if(rS=zp,t=rO(),qw(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,s=-1,l=-1,u=0,c=0,f=t,h=null;t:for(;;){for(var v;f!==r||i!==0&&f.nodeType!==3||(s=o+i),f!==a||n!==0&&f.nodeType!==3||(l=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(v=f.firstChild)!==null;)h=f,f=v;for(;;){if(f===t)break t;if(h===r&&++u===i&&(s=o),h===a&&++c===n&&(l=o),(v=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=v}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(nS={focusedElem:t,selectionRange:r},zp=!1,ce=e;ce!==null;)if(e=ce,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ce=t;else for(;ce!==null;){e=ce;try{var d=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(d!==null){var p=d.memoizedProps,y=d.memoizedState,g=e.stateNode,m=g.getSnapshotBeforeUpdate(e.elementType===e.type?p:$n(e.type,p),y);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var _=e.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(q(163))}}catch(S){Tt(e,e.return,S)}if(t=e.sibling,t!==null){t.return=e.return,ce=t;break}ce=e.return}return d=lM,lM=!1,d}function Tf(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&t)===t){var a=i.destroy;i.destroy=void 0,a!==void 0&&_S(e,r,a)}i=i.next}while(i!==n)}}function py(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function SS(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function JO(t){var e=t.alternate;e!==null&&(t.alternate=null,JO(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[wi],delete e[nh],delete e[oS],delete e[CU],delete e[TU])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function eN(t){return t.tag===5||t.tag===3||t.tag===4}function uM(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||eN(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function xS(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=Gp));else if(n!==4&&(t=t.child,t!==null))for(xS(t,e,r),t=t.sibling;t!==null;)xS(t,e,r),t=t.sibling}function wS(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(wS(t,e,r),t=t.sibling;t!==null;)wS(t,e,r),t=t.sibling}var er=null,Xn=!1;function Ma(t,e,r){for(r=r.child;r!==null;)tN(t,e,r),r=r.sibling}function tN(t,e,r){if(Li&&typeof Li.onCommitFiberUnmount=="function")try{Li.onCommitFiberUnmount(sy,r)}catch{}switch(r.tag){case 5:pr||eu(r,e);case 6:var n=er,i=Xn;er=null,Ma(t,e,r),er=n,Xn=i,er!==null&&(Xn?(t=er,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):er.removeChild(r.stateNode));break;case 18:er!==null&&(Xn?(t=er,r=r.stateNode,t.nodeType===8?Zm(t.parentNode,r):t.nodeType===1&&Zm(t,r),Qf(t)):Zm(er,r.stateNode));break;case 4:n=er,i=Xn,er=r.stateNode.containerInfo,Xn=!0,Ma(t,e,r),er=n,Xn=i;break;case 0:case 11:case 14:case 15:if(!pr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&_S(r,e,o),i=i.next}while(i!==n)}Ma(t,e,r);break;case 1:if(!pr&&(eu(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Tt(r,e,s)}Ma(t,e,r);break;case 21:Ma(t,e,r);break;case 22:r.mode&1?(pr=(n=pr)||r.memoizedState!==null,Ma(t,e,r),pr=n):Ma(t,e,r);break;default:Ma(t,e,r)}}function cM(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new GU),e.forEach(function(n){var i=KU.bind(null,t,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Fn(t,e){var r=e.deletions;if(r!==null)for(var n=0;ni&&(i=o),n&=~a}if(n=i,n=Lt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*WU(n/1960))-n,10t?16:t,ja===null)var n=!1;else{if(t=ja,ja=null,eg=0,Xe&6)throw Error(q(331));var i=Xe;for(Xe|=4,ce=t.current;ce!==null;){var a=ce,o=a.child;if(ce.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lLt()-gb?ks(t,0):pb|=r),Ur(t,e)}function uN(t,e){e===0&&(t.mode&1?(e=Nv,Nv<<=1,!(Nv&130023424)&&(Nv=4194304)):e=1);var r=Tr();t=fa(t,e),t!==null&&(Xh(t,e,r),Ur(t,r))}function qU(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),uN(t,r)}function KU(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,i=t.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(q(314))}n!==null&&n.delete(e),uN(t,r)}var cN;cN=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||Gr.current)Vr=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return Vr=!1,zU(t,e,r);Vr=!!(t.flags&131072)}else Vr=!1,pt&&e.flags&1048576&&vO(e,$p,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;ap(t,e),t=e.pendingProps;var i=bu(e,yr.current);hu(e,r),i=ub(null,e,n,t,i,r);var a=cb();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Hr(n)?(a=!0,Up(e)):a=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ib(e),i.updater=vy,e.stateNode=i,i._reactInternals=e,hS(e,n,t,r),e=pS(null,e,n,!0,a,r)):(e.tag=0,pt&&a&&Kw(e),xr(null,e,i,r),e=e.child),e;case 16:n=e.elementType;e:{switch(ap(t,e),t=e.pendingProps,i=n._init,n=i(n._payload),e.type=n,i=e.tag=JU(n),t=$n(n,t),i){case 0:e=dS(null,e,n,t,r);break e;case 1:e=aM(null,e,n,t,r);break e;case 11:e=nM(null,e,n,t,r);break e;case 14:e=iM(null,e,n,$n(n.type,t),r);break e}throw Error(q(306,n,""))}return e;case 0:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:$n(n,i),dS(t,e,n,i,r);case 1:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:$n(n,i),aM(t,e,n,i,r);case 3:e:{if(jO(e),t===null)throw Error(q(387));n=e.pendingProps,a=e.memoizedState,i=a.element,yO(t,e),Xp(e,n,null,r);var o=e.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=a,e.memoizedState=a,e.flags&256){i=Mu(Error(q(423)),e),e=oM(t,e,n,r,i);break e}else if(n!==i){i=Mu(Error(q(424)),e),e=oM(t,e,n,r,i);break e}else for(Kr=io(e.stateNode.containerInfo.firstChild),Jr=e,pt=!0,Zn=null,r=xO(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Cu(),n===i){e=ha(t,e,r);break e}xr(t,e,n,r)}e=e.child}return e;case 5:return wO(e),t===null&&uS(e),n=e.type,i=e.pendingProps,a=t!==null?t.memoizedProps:null,o=i.children,iS(n,i)?o=null:a!==null&&iS(n,a)&&(e.flags|=32),YO(t,e),xr(t,e,o,r),e.child;case 6:return t===null&&uS(e),null;case 13:return XO(t,e,r);case 4:return ab(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Tu(e,null,n,r):xr(t,e,n,r),e.child;case 11:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:$n(n,i),nM(t,e,n,i,r);case 7:return xr(t,e,e.pendingProps,r),e.child;case 8:return xr(t,e,e.pendingProps.children,r),e.child;case 12:return xr(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(n=e.type._context,i=e.pendingProps,a=e.memoizedProps,o=i.value,ht(Yp,n._currentValue),n._currentValue=o,a!==null)if(ii(a.value,o)){if(a.children===i.children&&!Gr.current){e=ha(t,e,r);break e}}else for(a=e.child,a!==null&&(a.return=e);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=na(-1,r&-r),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),cS(a.return,r,e),s.lanes|=r;break}l=l.next}}else if(a.tag===10)o=a.type===e.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(q(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),cS(o,r,e),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===e){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}xr(t,e,i.children,r),e=e.child}return e;case 9:return i=e.type,n=e.pendingProps.children,hu(e,r),i=Pn(i),n=n(i),e.flags|=1,xr(t,e,n,r),e.child;case 14:return n=e.type,i=$n(n,e.pendingProps),i=$n(n.type,i),iM(t,e,n,i,r);case 15:return WO(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:$n(n,i),ap(t,e),e.tag=1,Hr(n)?(t=!0,Up(e)):t=!1,hu(e,r),_O(e,n,i),hS(e,n,i,r),pS(null,e,n,!0,t,r);case 19:return ZO(t,e,r);case 22:return $O(t,e,r)}throw Error(q(156,e.tag))};function fN(t,e){return Bk(t,e)}function QU(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tn(t,e,r,n){return new QU(t,e,r,n)}function Sb(t){return t=t.prototype,!(!t||!t.isReactComponent)}function JU(t){if(typeof t=="function")return Sb(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Fw)return 11;if(t===Vw)return 14}return 2}function lo(t,e){var r=t.alternate;return r===null?(r=Tn(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function lp(t,e,r,n,i,a){var o=2;if(n=t,typeof t=="function")Sb(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case $l:return Os(r.children,i,a,e);case zw:o=8,i|=8;break;case N_:return t=Tn(12,r,e,i|2),t.elementType=N_,t.lanes=a,t;case B_:return t=Tn(13,r,e,i),t.elementType=B_,t.lanes=a,t;case z_:return t=Tn(19,r,e,i),t.elementType=z_,t.lanes=a,t;case Sk:return yy(r,i,a,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case mk:o=10;break e;case _k:o=9;break e;case Fw:o=11;break e;case Vw:o=14;break e;case Fa:o=16,n=null;break e}throw Error(q(130,t==null?t:typeof t,""))}return e=Tn(o,r,e,i),e.elementType=t,e.type=n,e.lanes=a,e}function Os(t,e,r,n){return t=Tn(7,t,n,e),t.lanes=r,t}function yy(t,e,r,n){return t=Tn(22,t,n,e),t.elementType=Sk,t.lanes=r,t.stateNode={isHidden:!1},t}function n0(t,e,r){return t=Tn(6,t,null,e),t.lanes=r,t}function i0(t,e,r){return e=Tn(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function e6(t,e,r,n,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zm(0),this.expirationTimes=zm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zm(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function xb(t,e,r,n,i,a,o,s,l){return t=new e6(t,e,r,s,l),e===1?(e=1,a===!0&&(e|=8)):e=0,a=Tn(3,null,null,e),t.current=a,a.stateNode=t,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},ib(a),t}function t6(t,e,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(pN)}catch(t){console.error(t)}}pN(),vk.exports=an;var o6=vk.exports,mM=o6;k_.createRoot=mM.createRoot,k_.hydrateRoot=mM.hydrateRoot;/** - * @remix-run/router v1.6.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Je(){return Je=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function Lu(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function l6(){return Math.random().toString(36).substr(2,8)}function SM(t,e){return{usr:t.state,key:t.key,idx:e}}function ch(t,e,r,n){return r===void 0&&(r=null),Je({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?xa(e):e,{state:r,key:e&&e.key||n||l6()})}function qs(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function xa(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function u6(t,e,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:a=!1}=n,o=i.history,s=Et.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(Je({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function f(){s=Et.Pop;let y=c(),g=y==null?null:y-u;u=y,l&&l({action:s,location:p.location,delta:g})}function h(y,g){s=Et.Push;let m=ch(p.location,y,g);r&&r(m,y),u=c()+1;let _=SM(m,u),S=p.createHref(m);try{o.pushState(_,"",S)}catch{i.location.assign(S)}a&&l&&l({action:s,location:p.location,delta:1})}function v(y,g){s=Et.Replace;let m=ch(p.location,y,g);r&&r(m,y),u=c();let _=SM(m,u),S=p.createHref(m);o.replaceState(_,"",S),a&&l&&l({action:s,location:p.location,delta:0})}function d(y){let g=i.location.origin!=="null"?i.location.origin:i.location.href,m=typeof y=="string"?y:qs(y);return He(g,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,g)}let p={get action(){return s},get location(){return t(i,o)},listen(y){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(_M,f),l=y,()=>{i.removeEventListener(_M,f),l=null}},createHref(y){return e(i,y)},createURL:d,encodeLocation(y){let g=d(y);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:v,go(y){return o.go(y)}};return p}var Nt;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Nt||(Nt={}));const c6=new Set(["lazy","caseSensitive","path","id","index","children"]);function f6(t){return t.index===!0}function gN(t,e,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),t.map((i,a)=>{let o=[...r,a],s=typeof i.id=="string"?i.id:o.join("-");if(He(i.index!==!0||!i.children,"Cannot specify children on an index route"),He(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),f6(i)){let l=Je({},i,e(i),{id:s});return n[s]=l,l}else{let l=Je({},i,e(i),{id:s,children:void 0});return n[s]=l,i.children&&(l.children=gN(i.children,e,o,n)),l}})}function ru(t,e,r){r===void 0&&(r="/");let n=typeof e=="string"?xa(e):e,i=ju(n.pathname||"/",r);if(i==null)return null;let a=yN(t);h6(a);let o=null;for(let s=0;o==null&&s{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(He(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=ia([n,l.relativePath]),c=r.concat(l);a.children&&a.children.length>0&&(He(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),yN(a.children,e,c,u)),!(a.path==null&&!a.index)&&e.push({path:u,score:_6(u,a.index),routesMeta:c})};return t.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of mN(a.path))i(a,o,l)}),e}function mN(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return i?[a,""]:[a];let o=mN(n.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>t.startsWith("/")&&l===""?"/":l)}function h6(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:S6(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const v6=/^:\w+$/,d6=3,p6=2,g6=1,y6=10,m6=-2,xM=t=>t==="*";function _6(t,e){let r=t.split("/"),n=r.length;return r.some(xM)&&(n+=m6),e&&(n+=p6),r.filter(i=>!xM(i)).reduce((i,a)=>i+(v6.test(a)?d6:a===""?g6:y6),n)}function S6(t,e){return t.length===e.length&&t.slice(0,-1).every((n,i)=>n===e[i])?t[t.length-1]-e[e.length-1]:0}function x6(t,e){let{routesMeta:r}=t,n={},i="/",a=[];for(let o=0;o{if(c==="*"){let h=s[f]||"";o=a.slice(0,a.length-h.length).replace(/(.)\/+$/,"$1")}return u[c]=T6(s[f]||"",c),u},{}),pathname:a,pathnameBase:o,pattern:t}}function b6(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),Lu(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,s)=>(n.push(s),"/([^\\/]+)"));return t.endsWith("*")?(n.push("*"),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),n]}function C6(t){try{return decodeURI(t)}catch(e){return Lu(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function T6(t,e){try{return decodeURIComponent(t)}catch(r){return Lu(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+t+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),t}}function ju(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function A6(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:i=""}=typeof t=="string"?xa(t):t;return{pathname:r?r.startsWith("/")?r:M6(r,e):e,search:L6(n),hash:P6(i)}}function M6(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function a0(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function wy(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function Tb(t,e,r,n){n===void 0&&(n=!1);let i;typeof t=="string"?i=xa(t):(i=Je({},t),He(!i.pathname||!i.pathname.includes("?"),a0("?","pathname","search",i)),He(!i.pathname||!i.pathname.includes("#"),a0("#","pathname","hash",i)),He(!i.search||!i.search.includes("#"),a0("#","search","hash",i)));let a=t===""||i.pathname==="",o=a?"/":i.pathname,s;if(n||o==null)s=r;else{let f=e.length-1;if(o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),f-=1;i.pathname=h.join("/")}s=f>=0?e[f]:"/"}let l=A6(i,s),u=o&&o!=="/"&&o.endsWith("/"),c=(a||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const ia=t=>t.join("/").replace(/\/\/+/g,"/"),D6=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),L6=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,P6=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class Ab{constructor(e,r,n,i){i===void 0&&(i=!1),this.status=e,this.statusText=r||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function _N(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const SN=["post","put","patch","delete"],I6=new Set(SN),E6=["get",...SN],R6=new Set(E6),k6=new Set([301,302,303,307,308]),O6=new Set([307,308]),o0={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},N6={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},wM={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},xN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",B6=!wN,z6=t=>({hasErrorBoundary:!!t.hasErrorBoundary});function F6(t){He(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let e;if(t.mapRouteProperties)e=t.mapRouteProperties;else if(t.detectErrorBoundary){let U=t.detectErrorBoundary;e=W=>({hasErrorBoundary:U(W)})}else e=z6;let r={},n=gN(t.routes,e,void 0,r),i,a=t.basename||"/",o=Je({v7_normalizeFormMethod:!1,v7_prependBasename:!1},t.future),s=null,l=new Set,u=null,c=null,f=null,h=t.hydrationData!=null,v=ru(n,t.history.location,a),d=null;if(v==null){let U=Yn(404,{pathname:t.history.location.pathname}),{matches:W,route:X}=LM(n);v=W,d={[X.id]:U}}let p=!v.some(U=>U.route.lazy)&&(!v.some(U=>U.route.loader)||t.hydrationData!=null),y,g={historyAction:t.history.action,location:t.history.location,matches:v,initialized:p,navigation:o0,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||d,fetchers:new Map,blockers:new Map},m=Et.Pop,_=!1,S,w=!1,x=!1,b=[],C=[],T=new Map,A=0,D=-1,L=new Map,P=new Set,I=new Map,E=new Map,k=new Map,B=!1;function R(){return s=t.history.listen(U=>{let{action:W,location:X,delta:he}=U;if(B){B=!1;return}Lu(k.size===0||he!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let ge=sA({currentLocation:g.location,nextLocation:X,historyAction:W});if(ge&&he!=null){B=!0,t.history.go(he*-1),Ta(ge,{state:"blocked",location:X,proceed(){Ta(ge,{state:"proceeding",proceed:void 0,reset:void 0,location:X}),t.history.go(he)},reset(){Ca(ge),V({blockers:new Map(y.state.blockers)})}});return}return ve(W,X)}),g.initialized||ve(Et.Pop,g.location),y}function O(){s&&s(),l.clear(),S&&S.abort(),g.fetchers.forEach((U,W)=>ot(W)),g.blockers.forEach((U,W)=>Ca(W))}function z(U){return l.add(U),()=>l.delete(U)}function V(U){g=Je({},g,U),l.forEach(W=>W(g))}function Y(U,W){var X,he;let ge=g.actionData!=null&&g.navigation.formMethod!=null&&$i(g.navigation.formMethod)&&g.navigation.state==="loading"&&((X=U.state)==null?void 0:X._isRedirect)!==!0,Re;W.actionData?Object.keys(W.actionData).length>0?Re=W.actionData:Re=null:ge?Re=g.actionData:Re=null;let Be=W.loaderData?DM(g.loaderData,W.loaderData,W.matches||[],W.errors):g.loaderData;for(let[_e]of k)Ca(_e);let Le=_===!0||g.navigation.formMethod!=null&&$i(g.navigation.formMethod)&&((he=U.state)==null?void 0:he._isRedirect)!==!0;i&&(n=i,i=void 0),V(Je({},W,{actionData:Re,loaderData:Be,historyAction:m,location:U,initialized:!0,navigation:o0,revalidation:"idle",restoreScrollPosition:lA(U,W.matches||g.matches),preventScrollReset:Le,blockers:new Map(g.blockers)})),w||m===Et.Pop||(m===Et.Push?t.history.push(U,U.state):m===Et.Replace&&t.history.replace(U,U.state)),m=Et.Pop,_=!1,w=!1,x=!1,b=[],C=[]}async function re(U,W){if(typeof U=="number"){t.history.go(U);return}let X=MS(g.location,g.matches,a,o.v7_prependBasename,U,W==null?void 0:W.fromRouteId,W==null?void 0:W.relative),{path:he,submission:ge,error:Re}=bM(o.v7_normalizeFormMethod,!1,X,W),Be=g.location,Le=ch(g.location,he,W&&W.state);Le=Je({},Le,t.history.encodeLocation(Le));let _e=W&&W.replace!=null?W.replace:void 0,Ze=Et.Push;_e===!0?Ze=Et.Replace:_e===!1||ge!=null&&$i(ge.formMethod)&&ge.formAction===g.location.pathname+g.location.search&&(Ze=Et.Replace);let st=W&&"preventScrollReset"in W?W.preventScrollReset===!0:void 0,lr=sA({currentLocation:Be,nextLocation:Le,historyAction:Ze});if(lr){Ta(lr,{state:"blocked",location:Le,proceed(){Ta(lr,{state:"proceeding",proceed:void 0,reset:void 0,location:Le}),re(U,W)},reset(){Ca(lr),V({blockers:new Map(g.blockers)})}});return}return await ve(Ze,Le,{submission:ge,pendingError:Re,preventScrollReset:st,replace:W&&W.replace})}function te(){if(Ee(),V({revalidation:"loading"}),g.navigation.state!=="submitting"){if(g.navigation.state==="idle"){ve(g.historyAction,g.location,{startUninterruptedRevalidation:!0});return}ve(m||g.historyAction,g.navigation.location,{overrideNavigation:g.navigation})}}async function ve(U,W,X){S&&S.abort(),S=null,m=U,w=(X&&X.startUninterruptedRevalidation)===!0,RG(g.location,g.matches),_=(X&&X.preventScrollReset)===!0;let he=i||n,ge=X&&X.overrideNavigation,Re=ru(he,W,a);if(!Re){let Yt=Yn(404,{pathname:W.pathname}),{matches:jt,route:ln}=LM(he);Am(),Y(W,{matches:jt,loaderData:{},errors:{[ln.id]:Yt}});return}if(W6(g.location,W)&&!(X&&X.submission&&$i(X.submission.formMethod))){Y(W,{matches:Re});return}S=new AbortController;let Be=Cc(t.history,W,S.signal,X&&X.submission),Le,_e;if(X&&X.pendingError)_e={[nu(Re).route.id]:X.pendingError};else if(X&&X.submission&&$i(X.submission.formMethod)){let Yt=await Me(Be,W,X.submission,Re,{replace:X.replace});if(Yt.shortCircuited)return;Le=Yt.pendingActionData,_e=Yt.pendingActionError,ge=Je({state:"loading",location:W},X.submission),Be=new Request(Be.url,{signal:Be.signal})}let{shortCircuited:Ze,loaderData:st,errors:lr}=await me(Be,W,Re,ge,X&&X.submission,X&&X.fetcherSubmission,X&&X.replace,Le,_e);Ze||(S=null,Y(W,Je({matches:Re},Le?{actionData:Le}:{},{loaderData:st,errors:lr})))}async function Me(U,W,X,he,ge){Ee();let Re=Je({state:"submitting",location:W},X);V({navigation:Re});let Be,Le=DS(he,W);if(!Le.route.action&&!Le.route.lazy)Be={type:Nt.error,error:Yn(405,{method:U.method,pathname:W.pathname,routeId:Le.route.id})};else if(Be=await bc("action",U,Le,he,r,e,a),U.signal.aborted)return{shortCircuited:!0};if(du(Be)){let _e;return ge&&ge.replace!=null?_e=ge.replace:_e=Be.location===g.location.pathname+g.location.search,await de(g,Be,{submission:X,replace:_e}),{shortCircuited:!0}}if(Df(Be)){let _e=nu(he,Le.route.id);return(ge&&ge.replace)!==!0&&(m=Et.Push),{pendingActionData:{},pendingActionError:{[_e.route.id]:Be.error}}}if(Cs(Be))throw Yn(400,{type:"defer-action"});return{pendingActionData:{[Le.route.id]:Be.data}}}async function me(U,W,X,he,ge,Re,Be,Le,_e){let Ze=he;Ze||(Ze=Je({state:"loading",location:W,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},ge));let st=ge||Re?ge||Re:Ze.formMethod&&Ze.formAction&&Ze.formData&&Ze.formEncType?{formMethod:Ze.formMethod,formAction:Ze.formAction,formData:Ze.formData,formEncType:Ze.formEncType}:void 0,lr=i||n,[Yt,jt]=CM(t.history,g,X,st,W,x,b,C,I,lr,a,Le,_e);if(Am(_t=>!(X&&X.some(un=>un.route.id===_t))||Yt&&Yt.some(un=>un.route.id===_t)),Yt.length===0&&jt.length===0){let _t=Jt();return Y(W,Je({matches:X,loaderData:{},errors:_e||null},Le?{actionData:Le}:{},_t?{fetchers:new Map(g.fetchers)}:{})),{shortCircuited:!0}}if(!w){jt.forEach(un=>{let pl=g.fetchers.get(un.key),Im={state:"loading",data:pl&&pl.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};g.fetchers.set(un.key,Im)});let _t=Le||g.actionData;V(Je({navigation:Ze},_t?Object.keys(_t).length===0?{actionData:null}:{actionData:_t}:{},jt.length>0?{fetchers:new Map(g.fetchers)}:{}))}D=++A,jt.forEach(_t=>{_t.controller&&T.set(_t.key,_t.controller)});let ln=()=>jt.forEach(_t=>mt(_t.key));S&&S.signal.addEventListener("abort",ln);let{results:dc,loaderResults:Mm,fetcherResults:Dv}=await rt(g.matches,X,Yt,jt,U);if(U.signal.aborted)return{shortCircuited:!0};S&&S.signal.removeEventListener("abort",ln),jt.forEach(_t=>T.delete(_t.key));let Aa=PM(dc);if(Aa)return await de(g,Aa,{replace:Be}),{shortCircuited:!0};let{loaderData:Lv,errors:Dm}=MM(g,X,Yt,Mm,_e,jt,Dv,E);E.forEach((_t,un)=>{_t.subscribe(pl=>{(pl||_t.done)&&E.delete(un)})});let Lm=Jt(),Pm=No(D),Pv=Lm||Pm||jt.length>0;return Je({loaderData:Lv,errors:Dm},Pv?{fetchers:new Map(g.fetchers)}:{})}function ue(U){return g.fetchers.get(U)||N6}function De(U,W,X,he){if(B6)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");T.has(U)&&mt(U);let ge=i||n,Re=MS(g.location,g.matches,a,o.v7_prependBasename,X,W,he==null?void 0:he.relative),Be=ru(ge,Re,a);if(!Be){ct(U,W,Yn(404,{pathname:Re}));return}let{path:Le,submission:_e}=bM(o.v7_normalizeFormMethod,!0,Re,he),Ze=DS(Be,Le);if(_=(he&&he.preventScrollReset)===!0,_e&&$i(_e.formMethod)){xe(U,W,Le,Ze,Be,_e);return}I.set(U,{routeId:W,path:Le}),ne(U,W,Le,Ze,Be,_e)}async function xe(U,W,X,he,ge,Re){if(Ee(),I.delete(U),!he.route.action&&!he.route.lazy){let $r=Yn(405,{method:Re.formMethod,pathname:X,routeId:W});ct(U,W,$r);return}let Be=g.fetchers.get(U),Le=Je({state:"submitting"},Re,{data:Be&&Be.data," _hasFetcherDoneAnything ":!0});g.fetchers.set(U,Le),V({fetchers:new Map(g.fetchers)});let _e=new AbortController,Ze=Cc(t.history,X,_e.signal,Re);T.set(U,_e);let st=await bc("action",Ze,he,ge,r,e,a);if(Ze.signal.aborted){T.get(U)===_e&&T.delete(U);return}if(du(st)){T.delete(U),P.add(U);let $r=Je({state:"loading"},Re,{data:void 0," _hasFetcherDoneAnything ":!0});return g.fetchers.set(U,$r),V({fetchers:new Map(g.fetchers)}),de(g,st,{submission:Re,isFetchActionRedirect:!0})}if(Df(st)){ct(U,W,st.error);return}if(Cs(st))throw Yn(400,{type:"defer-action"});let lr=g.navigation.location||g.location,Yt=Cc(t.history,lr,_e.signal),jt=i||n,ln=g.navigation.state!=="idle"?ru(jt,g.navigation.location,a):g.matches;He(ln,"Didn't find any matches after fetcher action");let dc=++A;L.set(U,dc);let Mm=Je({state:"loading",data:st.data},Re,{" _hasFetcherDoneAnything ":!0});g.fetchers.set(U,Mm);let[Dv,Aa]=CM(t.history,g,ln,Re,lr,x,b,C,I,jt,a,{[he.route.id]:st.data},void 0);Aa.filter($r=>$r.key!==U).forEach($r=>{let Em=$r.key,uA=g.fetchers.get(Em),OG={state:"loading",data:uA&&uA.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};g.fetchers.set(Em,OG),$r.controller&&T.set(Em,$r.controller)}),V({fetchers:new Map(g.fetchers)});let Lv=()=>Aa.forEach($r=>mt($r.key));_e.signal.addEventListener("abort",Lv);let{results:Dm,loaderResults:Lm,fetcherResults:Pm}=await rt(g.matches,ln,Dv,Aa,Yt);if(_e.signal.aborted)return;_e.signal.removeEventListener("abort",Lv),L.delete(U),T.delete(U),Aa.forEach($r=>T.delete($r.key));let Pv=PM(Dm);if(Pv)return de(g,Pv);let{loaderData:_t,errors:un}=MM(g,g.matches,Dv,Lm,void 0,Aa,Pm,E),pl={state:"idle",data:st.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};g.fetchers.set(U,pl);let Im=No(dc);g.navigation.state==="loading"&&dc>D?(He(m,"Expected pending action"),S&&S.abort(),Y(g.navigation.location,{matches:ln,loaderData:_t,errors:un,fetchers:new Map(g.fetchers)})):(V(Je({errors:un,loaderData:DM(g.loaderData,_t,ln,un)},Im?{fetchers:new Map(g.fetchers)}:{})),x=!1)}async function ne(U,W,X,he,ge,Re){let Be=g.fetchers.get(U),Le=Je({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Re,{data:Be&&Be.data," _hasFetcherDoneAnything ":!0});g.fetchers.set(U,Le),V({fetchers:new Map(g.fetchers)});let _e=new AbortController,Ze=Cc(t.history,X,_e.signal);T.set(U,_e);let st=await bc("loader",Ze,he,ge,r,e,a);if(Cs(st)&&(st=await AN(st,Ze.signal,!0)||st),T.get(U)===_e&&T.delete(U),Ze.signal.aborted)return;if(du(st)){P.add(U),await de(g,st);return}if(Df(st)){let Yt=nu(g.matches,W);g.fetchers.delete(U),V({fetchers:new Map(g.fetchers),errors:{[Yt.route.id]:st.error}});return}He(!Cs(st),"Unhandled fetcher deferred data");let lr={state:"idle",data:st.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};g.fetchers.set(U,lr),V({fetchers:new Map(g.fetchers)})}async function de(U,W,X){var he;let{submission:ge,replace:Re,isFetchActionRedirect:Be}=X===void 0?{}:X;W.revalidate&&(x=!0);let Le=ch(U.location,W.location,Je({_isRedirect:!0},Be?{_isFetchActionRedirect:!0}:{}));if(He(Le,"Expected a location on the redirect navigation"),xN.test(W.location)&&wN&&typeof((he=window)==null?void 0:he.location)<"u"){let jt=t.history.createURL(W.location),ln=ju(jt.pathname,a)==null;if(window.location.origin!==jt.origin||ln){Re?window.location.replace(W.location):window.location.assign(W.location);return}}S=null;let _e=Re===!0?Et.Replace:Et.Push,{formMethod:Ze,formAction:st,formEncType:lr,formData:Yt}=U.navigation;!ge&&Ze&&st&&Yt&&lr&&(ge={formMethod:Ze,formAction:st,formEncType:lr,formData:Yt}),O6.has(W.status)&&ge&&$i(ge.formMethod)?await ve(_e,Le,{submission:Je({},ge,{formAction:W.location}),preventScrollReset:_}):Be?await ve(_e,Le,{overrideNavigation:{state:"loading",location:Le,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},fetcherSubmission:ge,preventScrollReset:_}):await ve(_e,Le,{overrideNavigation:{state:"loading",location:Le,formMethod:ge?ge.formMethod:void 0,formAction:ge?ge.formAction:void 0,formEncType:ge?ge.formEncType:void 0,formData:ge?ge.formData:void 0},preventScrollReset:_})}async function rt(U,W,X,he,ge){let Re=await Promise.all([...X.map(_e=>bc("loader",ge,_e,W,r,e,a)),...he.map(_e=>_e.matches&&_e.match&&_e.controller?bc("loader",Cc(t.history,_e.path,_e.controller.signal),_e.match,_e.matches,r,e,a):{type:Nt.error,error:Yn(404,{pathname:_e.path})})]),Be=Re.slice(0,X.length),Le=Re.slice(X.length);return await Promise.all([IM(U,X,Be,Be.map(()=>ge.signal),!1,g.loaderData),IM(U,he.map(_e=>_e.match),Le,he.map(_e=>_e.controller?_e.controller.signal:null),!0)]),{results:Re,loaderResults:Be,fetcherResults:Le}}function Ee(){x=!0,b.push(...Am()),I.forEach((U,W)=>{T.has(W)&&(C.push(W),mt(W))})}function ct(U,W,X){let he=nu(g.matches,W);ot(U),V({errors:{[he.route.id]:X},fetchers:new Map(g.fetchers)})}function ot(U){T.has(U)&&mt(U),I.delete(U),L.delete(U),P.delete(U),g.fetchers.delete(U)}function mt(U){let W=T.get(U);He(W,"Expected fetch controller: "+U),W.abort(),T.delete(U)}function sn(U){for(let W of U){let he={state:"idle",data:ue(W).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};g.fetchers.set(W,he)}}function Jt(){let U=[],W=!1;for(let X of P){let he=g.fetchers.get(X);He(he,"Expected fetcher: "+X),he.state==="loading"&&(P.delete(X),U.push(X),W=!0)}return sn(U),W}function No(U){let W=[];for(let[X,he]of L)if(he0}function fi(U,W){let X=g.blockers.get(U)||wM;return k.get(U)!==W&&k.set(U,W),X}function Ca(U){g.blockers.delete(U),k.delete(U)}function Ta(U,W){let X=g.blockers.get(U)||wM;He(X.state==="unblocked"&&W.state==="blocked"||X.state==="blocked"&&W.state==="blocked"||X.state==="blocked"&&W.state==="proceeding"||X.state==="blocked"&&W.state==="unblocked"||X.state==="proceeding"&&W.state==="unblocked","Invalid blocker state transition: "+X.state+" -> "+W.state),g.blockers.set(U,W),V({blockers:new Map(g.blockers)})}function sA(U){let{currentLocation:W,nextLocation:X,historyAction:he}=U;if(k.size===0)return;k.size>1&&Lu(!1,"A router only supports one blocker at a time");let ge=Array.from(k.entries()),[Re,Be]=ge[ge.length-1],Le=g.blockers.get(Re);if(!(Le&&Le.state==="proceeding")&&Be({currentLocation:W,nextLocation:X,historyAction:he}))return Re}function Am(U){let W=[];return E.forEach((X,he)=>{(!U||U(he))&&(X.cancel(),W.push(he),E.delete(he))}),W}function EG(U,W,X){if(u=U,f=W,c=X||(he=>he.key),!h&&g.navigation===o0){h=!0;let he=lA(g.location,g.matches);he!=null&&V({restoreScrollPosition:he})}return()=>{u=null,f=null,c=null}}function RG(U,W){if(u&&c&&f){let X=W.map(ge=>EM(ge,g.loaderData)),he=c(U,X)||U.key;u[he]=f()}}function lA(U,W){if(u&&c&&f){let X=W.map(Re=>EM(Re,g.loaderData)),he=c(U,X)||U.key,ge=u[he];if(typeof ge=="number")return ge}return null}function kG(U){i=U}return y={get basename(){return a},get state(){return g},get routes(){return n},initialize:R,subscribe:z,enableScrollRestoration:EG,navigate:re,fetch:De,revalidate:te,createHref:U=>t.history.createHref(U),encodeLocation:U=>t.history.encodeLocation(U),getFetcher:ue,deleteFetcher:ot,dispose:O,getBlocker:fi,deleteBlocker:Ca,_internalFetchControllers:T,_internalActiveDeferreds:E,_internalSetRoutes:kG},y}function V6(t){return t!=null&&"formData"in t}function MS(t,e,r,n,i,a,o){let s,l;if(a!=null&&o!=="path"){s=[];for(let c of e)if(s.push(c),c.route.id===a){l=c;break}}else s=e,l=e[e.length-1];let u=Tb(i||".",wy(s).map(c=>c.pathnameBase),ju(t.pathname,r)||t.pathname,o==="path");return i==null&&(u.search=t.search,u.hash=t.hash),(i==null||i===""||i===".")&&l&&l.route.index&&!Mb(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(u.pathname=u.pathname==="/"?r:ia([r,u.pathname])),qs(u)}function bM(t,e,r,n){if(!n||!V6(n))return{path:r};if(n.formMethod&&!j6(n.formMethod))return{path:r,error:Yn(405,{method:n.formMethod})};let i;if(n.formData){let s=n.formMethod||"get";if(i={formMethod:t?s.toUpperCase():s.toLowerCase(),formAction:TN(r),formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:n.formData},$i(i.formMethod))return{path:r,submission:i}}let a=xa(r),o=CN(n.formData);return e&&a.search&&Mb(a.search)&&o.append("index",""),a.search="?"+o,{path:qs(a),submission:i}}function G6(t,e){let r=t;if(e){let n=t.findIndex(i=>i.route.id===e);n>=0&&(r=t.slice(0,n))}return r}function CM(t,e,r,n,i,a,o,s,l,u,c,f,h){let v=h?Object.values(h)[0]:f?Object.values(f)[0]:void 0,d=t.createURL(e.location),p=t.createURL(i),y=h?Object.keys(h)[0]:void 0,m=G6(r,y).filter((S,w)=>{if(S.route.lazy)return!0;if(S.route.loader==null)return!1;if(H6(e.loaderData,e.matches[w],S)||o.some(C=>C===S.route.id))return!0;let x=e.matches[w],b=S;return TM(S,Je({currentUrl:d,currentParams:x.params,nextUrl:p,nextParams:b.params},n,{actionResult:v,defaultShouldRevalidate:a||d.pathname+d.search===p.pathname+p.search||d.search!==p.search||bN(x,b)}))}),_=[];return l.forEach((S,w)=>{if(!r.some(T=>T.route.id===S.routeId))return;let x=ru(u,S.path,c);if(!x){_.push({key:w,routeId:S.routeId,path:S.path,matches:null,match:null,controller:null});return}let b=DS(x,S.path);if(s.includes(w)){_.push({key:w,routeId:S.routeId,path:S.path,matches:x,match:b,controller:new AbortController});return}TM(b,Je({currentUrl:d,currentParams:e.matches[e.matches.length-1].params,nextUrl:p,nextParams:r[r.length-1].params},n,{actionResult:v,defaultShouldRevalidate:a}))&&_.push({key:w,routeId:S.routeId,path:S.path,matches:x,match:b,controller:new AbortController})}),[m,_]}function H6(t,e,r){let n=!e||r.route.id!==e.route.id,i=t[r.route.id]===void 0;return n||i}function bN(t,e){let r=t.route.path;return t.pathname!==e.pathname||r!=null&&r.endsWith("*")&&t.params["*"]!==e.params["*"]}function TM(t,e){if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate(e);if(typeof r=="boolean")return r}return e.defaultShouldRevalidate}async function AM(t,e,r){if(!t.lazy)return;let n=await t.lazy();if(!t.lazy)return;let i=r[t.id];He(i,"No route found in manifest");let a={};for(let o in n){let l=i[o]!==void 0&&o!=="hasErrorBoundary";Lu(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!c6.has(o)&&(a[o]=n[o])}Object.assign(i,a),Object.assign(i,Je({},e(i),{lazy:void 0}))}async function bc(t,e,r,n,i,a,o,s,l,u){s===void 0&&(s=!1),l===void 0&&(l=!1);let c,f,h,v=y=>{let g,m=new Promise((_,S)=>g=S);return h=()=>g(),e.signal.addEventListener("abort",h),Promise.race([y({request:e,params:r.params,context:u}),m])};try{let y=r.route[t];if(r.route.lazy)if(y)f=(await Promise.all([v(y),AM(r.route,a,i)]))[0];else if(await AM(r.route,a,i),y=r.route[t],y)f=await v(y);else if(t==="action"){let g=new URL(e.url),m=g.pathname+g.search;throw Yn(405,{method:e.method,pathname:m,routeId:r.route.id})}else return{type:Nt.data,data:void 0};else if(y)f=await v(y);else{let g=new URL(e.url),m=g.pathname+g.search;throw Yn(404,{pathname:m})}He(f!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please return a value or `null`.")}catch(y){c=Nt.error,f=y}finally{h&&e.signal.removeEventListener("abort",h)}if(Y6(f)){let y=f.status;if(k6.has(y)){let _=f.headers.get("Location");if(He(_,"Redirects returned/thrown from loaders/actions must have a Location header"),!xN.test(_))_=MS(new URL(e.url),n.slice(0,n.indexOf(r)+1),o,!0,_);else if(!s){let S=new URL(e.url),w=_.startsWith("//")?new URL(S.protocol+_):new URL(_),x=ju(w.pathname,o)!=null;w.origin===S.origin&&x&&(_=w.pathname+w.search+w.hash)}if(s)throw f.headers.set("Location",_),f;return{type:Nt.redirect,status:y,location:_,revalidate:f.headers.get("X-Remix-Revalidate")!==null}}if(l)throw{type:c||Nt.data,response:f};let g,m=f.headers.get("Content-Type");return m&&/\bapplication\/json\b/.test(m)?g=await f.json():g=await f.text(),c===Nt.error?{type:c,error:new Ab(y,f.statusText,g),headers:f.headers}:{type:Nt.data,data:g,statusCode:f.status,headers:f.headers}}if(c===Nt.error)return{type:c,error:f};if($6(f)){var d,p;return{type:Nt.deferred,deferredData:f,statusCode:(d=f.init)==null?void 0:d.status,headers:((p=f.init)==null?void 0:p.headers)&&new Headers(f.init.headers)}}return{type:Nt.data,data:f}}function Cc(t,e,r,n){let i=t.createURL(TN(e)).toString(),a={signal:r};if(n&&$i(n.formMethod)){let{formMethod:o,formEncType:s,formData:l}=n;a.method=o.toUpperCase(),a.body=s==="application/x-www-form-urlencoded"?CN(l):l}return new Request(i,a)}function CN(t){let e=new URLSearchParams;for(let[r,n]of t.entries())e.append(r,n instanceof File?n.name:n);return e}function U6(t,e,r,n,i){let a={},o=null,s,l=!1,u={};return r.forEach((c,f)=>{let h=e[f].route.id;if(He(!du(c),"Cannot handle redirect results in processLoaderData"),Df(c)){let v=nu(t,h),d=c.error;n&&(d=Object.values(n)[0],n=void 0),o=o||{},o[v.route.id]==null&&(o[v.route.id]=d),a[h]=void 0,l||(l=!0,s=_N(c.error)?c.error.status:500),c.headers&&(u[h]=c.headers)}else Cs(c)?(i.set(h,c.deferredData),a[h]=c.deferredData.data):a[h]=c.data,c.statusCode!=null&&c.statusCode!==200&&!l&&(s=c.statusCode),c.headers&&(u[h]=c.headers)}),n&&(o=n,a[Object.keys(n)[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:u}}function MM(t,e,r,n,i,a,o,s){let{loaderData:l,errors:u}=U6(e,r,n,i,s);for(let c=0;cn.route.id===e)+1):[...t]).reverse().find(n=>n.route.hasErrorBoundary===!0)||t[0]}function LM(t){let e=t.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function Yn(t,e){let{pathname:r,routeId:n,method:i,type:a}=e===void 0?{}:e,o="Unknown Server Error",s="Unknown @remix-run/router error";return t===400?(o="Bad Request",i&&r&&n?s="You made a "+i+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":a==="defer-action"&&(s="defer() is not supported in actions")):t===403?(o="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):t===404?(o="Not Found",s='No route matches URL "'+r+'"'):t===405&&(o="Method Not Allowed",i&&r&&n?s="You made a "+i.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":i&&(s='Invalid request method "'+i.toUpperCase()+'"')),new Ab(t||500,o,new Error(s),!0)}function PM(t){for(let e=t.length-1;e>=0;e--){let r=t[e];if(du(r))return r}}function TN(t){let e=typeof t=="string"?xa(t):t;return qs(Je({},e,{hash:""}))}function W6(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function Cs(t){return t.type===Nt.deferred}function Df(t){return t.type===Nt.error}function du(t){return(t&&t.type)===Nt.redirect}function $6(t){let e=t;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function Y6(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function j6(t){return R6.has(t.toLowerCase())}function $i(t){return I6.has(t.toLowerCase())}async function IM(t,e,r,n,i,a){for(let o=0;of.route.id===l.route.id),c=u!=null&&!bN(u,l)&&(a&&a[l.route.id])!==void 0;if(Cs(s)&&(i||c)){let f=n[o];He(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await AN(s,f,i).then(h=>{h&&(r[o]=h||r[o])})}}}async function AN(t,e,r){if(r===void 0&&(r=!1),!await t.deferredData.resolveData(e)){if(r)try{return{type:Nt.data,data:t.deferredData.unwrappedData}}catch(i){return{type:Nt.error,error:i}}return{type:Nt.data,data:t.deferredData.data}}}function Mb(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function EM(t,e){let{route:r,pathname:n,params:i}=t;return{id:r.id,pathname:n,params:i,data:e[r.id],handle:r.handle}}function DS(t,e){let r=typeof e=="string"?xa(e).search:e.search;if(t[t.length-1].route.index&&Mb(r||""))return t[t.length-1];let n=wy(t);return n[n.length-1]}/** - * React Router v6.11.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function ng(){return ng=Object.assign?Object.assign.bind():function(t){for(var e=1;es.pathnameBase)),a=J.useRef(!1);return DN(()=>{a.current=!0}),J.useCallback(function(s,l){if(l===void 0&&(l={}),!a.current)return;if(typeof s=="number"){e.go(s);return}let u=Tb(s,JSON.parse(i),n,l.relative==="path");t!=="/"&&(u.pathname=u.pathname==="/"?t:ia([t,u.pathname])),(l.replace?e.replace:e.push)(u,l.state,l)},[t,e,i,n])}const K6=J.createContext(null);function Q6(t){let e=J.useContext(Po).outlet;return e&&J.createElement(K6.Provider,{value:t},e)}function Pb(t,e){let{relative:r}=e===void 0?{}:e,{matches:n}=J.useContext(Po),{pathname:i}=Jh(),a=JSON.stringify(wy(n).map(o=>o.pathnameBase));return J.useMemo(()=>Tb(t,JSON.parse(a),i,r==="path"),[t,a,i,r])}function J6(t,e,r){Qh()||He(!1);let{navigator:n}=J.useContext(sl),{matches:i}=J.useContext(Po),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let l=Jh(),u;if(e){var c;let p=typeof e=="string"?xa(e):e;s==="/"||(c=p.pathname)!=null&&c.startsWith(s)||He(!1),u=p}else u=l;let f=u.pathname||"/",h=s==="/"?f:f.slice(s.length)||"/",v=ru(t,{pathname:h}),d=iW(v&&v.map(p=>Object.assign({},p,{params:Object.assign({},o,p.params),pathname:ia([s,n.encodeLocation?n.encodeLocation(p.pathname).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?s:ia([s,n.encodeLocation?n.encodeLocation(p.pathnameBase).pathname:p.pathnameBase])})),i,r);return e&&d?J.createElement(by.Provider,{value:{location:ng({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Et.Pop}},d):d}function eW(){let t=lW(),e=_N(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return J.createElement(J.Fragment,null,J.createElement("h2",null,"Unexpected Application Error!"),J.createElement("h3",{style:{fontStyle:"italic"}},e),r?J.createElement("pre",{style:i},r):null,a)}const tW=J.createElement(eW,null);class rW extends J.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error?J.createElement(Po.Provider,{value:this.props.routeContext},J.createElement(MN.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function nW(t){let{routeContext:e,match:r,children:n}=t,i=J.useContext(Db);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),J.createElement(Po.Provider,{value:e},n)}function iW(t,e,r){var n;if(e===void 0&&(e=[]),r===void 0&&(r=null),t==null){var i;if((i=r)!=null&&i.errors)t=r.matches;else return null}let a=t,o=(n=r)==null?void 0:n.errors;if(o!=null){let s=a.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id]));s>=0||He(!1),a=a.slice(0,Math.min(a.length,s+1))}return a.reduceRight((s,l,u)=>{let c=l.route.id?o==null?void 0:o[l.route.id]:null,f=null;r&&(f=l.route.errorElement||tW);let h=e.concat(a.slice(0,u+1)),v=()=>{let d;return c?d=f:l.route.Component?d=J.createElement(l.route.Component,null):l.route.element?d=l.route.element:d=s,J.createElement(nW,{match:l,routeContext:{outlet:s,matches:h,isDataRoute:r!=null},children:d})};return r&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?J.createElement(rW,{location:r.location,revalidation:r.revalidation,component:f,error:c,children:v(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):v()},null)}var LS;(function(t){t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate"})(LS||(LS={}));var fh;(function(t){t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId"})(fh||(fh={}));function aW(t){let e=J.useContext(Db);return e||He(!1),e}function oW(t){let e=J.useContext(Lb);return e||He(!1),e}function sW(t){let e=J.useContext(Po);return e||He(!1),e}function LN(t){let e=sW(),r=e.matches[e.matches.length-1];return r.route.id||He(!1),r.route.id}function lW(){var t;let e=J.useContext(MN),r=oW(fh.UseRouteError),n=LN(fh.UseRouteError);return e||((t=r.errors)==null?void 0:t[n])}function uW(){let{router:t}=aW(LS.UseNavigateStable),e=LN(fh.UseNavigateStable),r=J.useRef(!1);return DN(()=>{r.current=!0}),J.useCallback(function(i,a){a===void 0&&(a={}),r.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,ng({fromRouteId:e},a)))},[t,e])}function cW(t){let{fallbackElement:e,router:r}=t,[n,i]=J.useState(r.state);J.useLayoutEffect(()=>r.subscribe(i),[r,i]);let a=J.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:l=>r.navigate(l),push:(l,u,c)=>r.navigate(l,{state:u,preventScrollReset:c==null?void 0:c.preventScrollReset}),replace:(l,u,c)=>r.navigate(l,{replace:!0,state:u,preventScrollReset:c==null?void 0:c.preventScrollReset})}),[r]),o=r.basename||"/",s=J.useMemo(()=>({router:r,navigator:a,static:!1,basename:o}),[r,a,o]);return J.createElement(J.Fragment,null,J.createElement(Db.Provider,{value:s},J.createElement(Lb.Provider,{value:n},J.createElement(vW,{basename:r.basename,location:r.state.location,navigationType:r.state.historyAction,navigator:a},r.state.initialized?J.createElement(fW,{routes:r.routes,state:n}):e))),null)}function fW(t){let{routes:e,state:r}=t;return J6(e,void 0,r)}function hW(t){return Q6(t.context)}function vW(t){let{basename:e="/",children:r=null,location:n,navigationType:i=Et.Pop,navigator:a,static:o=!1}=t;Qh()&&He(!1);let s=e.replace(/^\/*/,"/"),l=J.useMemo(()=>({basename:s,navigator:a,static:o}),[s,a,o]);typeof n=="string"&&(n=xa(n));let{pathname:u="/",search:c="",hash:f="",state:h=null,key:v="default"}=n,d=J.useMemo(()=>{let p=ju(u,s);return p==null?null:{location:{pathname:p,search:c,hash:f,state:h,key:v},navigationType:i}},[s,u,c,f,h,v,i]);return d==null?null:J.createElement(sl.Provider,{value:l},J.createElement(by.Provider,{children:r,value:d}))}var RM;(function(t){t[t.pending=0]="pending",t[t.success=1]="success",t[t.error=2]="error"})(RM||(RM={}));new Promise(()=>{});function dW(t){let e={hasErrorBoundary:t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&Object.assign(e,{element:J.createElement(t.Component),Component:void 0}),t.ErrorBoundary&&Object.assign(e,{errorElement:J.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),e}/** - * React Router DOM v6.11.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Pu(){return Pu=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(r[i]=t[i]);return r}function pW(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function gW(t,e){return t.button===0&&(!e||e==="_self")&&!pW(t)}const yW=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],mW=["aria-current","caseSensitive","className","end","style","to","children"];function _W(t,e){return F6({basename:e==null?void 0:e.basename,future:Pu({},e==null?void 0:e.future,{v7_prependBasename:!0}),history:s6({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||SW(),routes:t,mapRouteProperties:dW}).initialize()}function SW(){var t;let e=(t=window)==null?void 0:t.__staticRouterHydrationData;return e&&e.errors&&(e=Pu({},e,{errors:xW(e.errors)})),e}function xW(t){if(!t)return null;let e=Object.entries(t),r={};for(let[n,i]of e)if(i&&i.__type==="RouteErrorResponse")r[n]=new Ab(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){let a=new Error(i.message);a.stack="",r[n]=a}else r[n]=i;return r}const wW=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",bW=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,IN=J.forwardRef(function(e,r){let{onClick:n,relative:i,reloadDocument:a,replace:o,state:s,target:l,to:u,preventScrollReset:c}=e,f=PN(e,yW),{basename:h}=J.useContext(sl),v,d=!1;if(typeof u=="string"&&bW.test(u)&&(v=u,wW))try{let m=new URL(window.location.href),_=u.startsWith("//")?new URL(m.protocol+u):new URL(u),S=ju(_.pathname,h);_.origin===m.origin&&S!=null?u=S+_.search+_.hash:d=!0}catch{}let p=X6(u,{relative:i}),y=CW(u,{replace:o,state:s,target:l,preventScrollReset:c,relative:i});function g(m){n&&n(m),m.defaultPrevented||y(m)}return J.createElement("a",Pu({},f,{href:v||p,onClick:d||a?n:g,ref:r,target:l}))}),kM=J.forwardRef(function(e,r){let{"aria-current":n="page",caseSensitive:i=!1,className:a="",end:o=!1,style:s,to:l,children:u}=e,c=PN(e,mW),f=Pb(l,{relative:c.relative}),h=Jh(),v=J.useContext(Lb),{navigator:d}=J.useContext(sl),p=d.encodeLocation?d.encodeLocation(f).pathname:f.pathname,y=h.pathname,g=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;i||(y=y.toLowerCase(),g=g?g.toLowerCase():null,p=p.toLowerCase());let m=y===p||!o&&y.startsWith(p)&&y.charAt(p.length)==="/",_=g!=null&&(g===p||!o&&g.startsWith(p)&&g.charAt(p.length)==="/"),S=m?n:void 0,w;typeof a=="function"?w=a({isActive:m,isPending:_}):w=[a,m?"active":null,_?"pending":null].filter(Boolean).join(" ");let x=typeof s=="function"?s({isActive:m,isPending:_}):s;return J.createElement(IN,Pu({},c,{"aria-current":S,className:w,ref:r,style:x,to:l}),typeof u=="function"?u({isActive:m,isPending:_}):u)});var OM;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmitImpl="useSubmitImpl",t.UseFetcher="useFetcher"})(OM||(OM={}));var NM;(function(t){t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(NM||(NM={}));function CW(t,e){let{target:r,replace:n,state:i,preventScrollReset:a,relative:o}=e===void 0?{}:e,s=Z6(),l=Jh(),u=Pb(t,{relative:o});return J.useCallback(c=>{if(gW(c,r)){c.preventDefault();let f=n!==void 0?n:qs(l)===qs(u);s(t,{replace:f,state:i,preventScrollReset:a,relative:o})}},[l,s,u,n,i,r,t,a,o])}const TW=()=>K.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"w-6 h-6",children:K.jsx("path",{d:"M12.378 1.602a.75.75 0 00-.756 0L3 6.632l9 5.25 9-5.25-8.622-5.03zM21.75 7.93l-9 5.25v9l8.628-5.032a.75.75 0 00.372-.648V7.93zM11.25 22.18v-9l-9-5.25v8.57a.75.75 0 00.372.648l8.628 5.033z"})}),AW=()=>K.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"w-6 h-6",children:K.jsx("path",{fillRule:"evenodd",d:"M18.685 19.097A9.723 9.723 0 0021.75 12c0-5.385-4.365-9.75-9.75-9.75S2.25 6.615 2.25 12a9.723 9.723 0 003.065 7.097A9.716 9.716 0 0012 21.75a9.716 9.716 0 006.685-2.653zm-12.54-1.285A7.486 7.486 0 0112 15a7.486 7.486 0 015.855 2.812A8.224 8.224 0 0112 20.25a8.224 8.224 0 01-5.855-2.438zM15.75 9a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z",clipRule:"evenodd"})}),MW=()=>K.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:K.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 12.75c1.148 0 2.278.08 3.383.237 1.037.146 1.866.966 1.866 2.013 0 3.728-2.35 6.75-5.25 6.75S6.75 18.728 6.75 15c0-1.046.83-1.867 1.866-2.013A24.204 24.204 0 0112 12.75zm0 0c2.883 0 5.647.508 8.207 1.44a23.91 23.91 0 01-1.152 6.06M12 12.75c-2.883 0-5.647.508-8.208 1.44.125 2.104.52 4.136 1.153 6.06M12 12.75a2.25 2.25 0 002.248-2.354M12 12.75a2.25 2.25 0 01-2.248-2.354M12 8.25c.995 0 1.971-.08 2.922-.236.403-.066.74-.358.795-.762a3.778 3.778 0 00-.399-2.25M12 8.25c-.995 0-1.97-.08-2.922-.236-.402-.066-.74-.358-.795-.762a3.734 3.734 0 01.4-2.253M12 8.25a2.25 2.25 0 00-2.248 2.146M12 8.25a2.25 2.25 0 012.248 2.146M8.683 5a6.032 6.032 0 01-1.155-1.002c.07-.63.27-1.222.574-1.747m.581 2.749A3.75 3.75 0 0115.318 5m0 0c.427-.283.815-.62 1.155-.999a4.471 4.471 0 00-.575-1.752M4.921 6a24.048 24.048 0 00-.392 3.314c1.668.546 3.416.914 5.223 1.082M19.08 6c.205 1.08.337 2.187.392 3.314a23.882 23.882 0 01-5.223 1.082"})}),DW=({style:t})=>K.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:`w-6 h-6 ${t}`,children:K.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"})});class ev{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const r={listener:e};return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const hh=typeof window>"u"||"Deno"in window;function yn(){}function LW(t,e){return typeof t=="function"?t(e):t}function PS(t){return typeof t=="number"&&t>=0&&t!==1/0}function EN(t,e){return Math.max(t+(e||0)-Date.now(),0)}function of(t,e,r){return Cy(t)?typeof e=="function"?{...r,queryKey:t,queryFn:e}:{...e,queryKey:t}:t}function Ga(t,e,r){return Cy(t)?[{...e,queryKey:t},r]:[t||{},e]}function BM(t,e){const{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:o,stale:s}=t;if(Cy(o)){if(n){if(e.queryHash!==Ib(o,e.options))return!1}else if(!ig(e.queryKey,o))return!1}if(r!=="all"){const l=e.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof s=="boolean"&&e.isStale()!==s||typeof i<"u"&&i!==e.state.fetchStatus||a&&!a(e))}function zM(t,e){const{exact:r,fetching:n,predicate:i,mutationKey:a}=t;if(Cy(a)){if(!e.options.mutationKey)return!1;if(r){if(Ts(e.options.mutationKey)!==Ts(a))return!1}else if(!ig(e.options.mutationKey,a))return!1}return!(typeof n=="boolean"&&e.state.status==="loading"!==n||i&&!i(e))}function Ib(t,e){return((e==null?void 0:e.queryKeyHashFn)||Ts)(t)}function Ts(t){return JSON.stringify(t,(e,r)=>IS(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function ig(t,e){return RN(t,e)}function RN(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?!Object.keys(e).some(r=>!RN(t[r],e[r])):!1}function kN(t,e){if(t===e)return t;const r=VM(t)&&VM(e);if(r||IS(t)&&IS(e)){const n=r?t.length:Object.keys(t).length,i=r?e:Object.keys(e),a=i.length,o=r?[]:{};let s=0;for(let l=0;l"u")return!0;const r=e.prototype;return!(!GM(r)||!r.hasOwnProperty("isPrototypeOf"))}function GM(t){return Object.prototype.toString.call(t)==="[object Object]"}function Cy(t){return Array.isArray(t)}function ON(t){return new Promise(e=>{setTimeout(e,t)})}function HM(t){ON(0).then(t)}function PW(){if(typeof AbortController=="function")return new AbortController}function ES(t,e,r){return r.isDataEqual!=null&&r.isDataEqual(t,e)?t:typeof r.structuralSharing=="function"?r.structuralSharing(t,e):r.structuralSharing!==!1?kN(t,e):e}class IW extends ev{constructor(){super(),this.setup=e=>{if(!hh&&window.addEventListener){const r=()=>e();return window.addEventListener("visibilitychange",r,!1),window.addEventListener("focus",r,!1),()=>{window.removeEventListener("visibilitychange",r),window.removeEventListener("focus",r)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var r;this.setup=e,(r=this.cleanup)==null||r.call(this),this.cleanup=e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(e){this.focused=e,e&&this.onFocus()}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const ag=new IW;class EW extends ev{constructor(){super(),this.setup=e=>{if(!hh&&window.addEventListener){const r=()=>e();return window.addEventListener("online",r,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",r)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var r;this.setup=e,(r=this.cleanup)==null||r.call(this),this.cleanup=e(n=>{typeof n=="boolean"?this.setOnline(n):this.onOnline()})}setOnline(e){this.online=e,e&&this.onOnline()}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const og=new EW;function RW(t){return Math.min(1e3*2**t,3e4)}function Ty(t){return(t??"online")==="online"?og.isOnline():!0}class NN{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}}function up(t){return t instanceof NN}function BN(t){let e=!1,r=0,n=!1,i,a,o;const s=new Promise((y,g)=>{a=y,o=g}),l=y=>{n||(v(new NN(y)),t.abort==null||t.abort())},u=()=>{e=!0},c=()=>{e=!1},f=()=>!ag.isFocused()||t.networkMode!=="always"&&!og.isOnline(),h=y=>{n||(n=!0,t.onSuccess==null||t.onSuccess(y),i==null||i(),a(y))},v=y=>{n||(n=!0,t.onError==null||t.onError(y),i==null||i(),o(y))},d=()=>new Promise(y=>{i=g=>{const m=n||!f();return m&&y(g),m},t.onPause==null||t.onPause()}).then(()=>{i=void 0,n||t.onContinue==null||t.onContinue()}),p=()=>{if(n)return;let y;try{y=t.fn()}catch(g){y=Promise.reject(g)}Promise.resolve(y).then(h).catch(g=>{var m,_;if(n)return;const S=(m=t.retry)!=null?m:3,w=(_=t.retryDelay)!=null?_:RW,x=typeof w=="function"?w(r,g):w,b=S===!0||typeof S=="number"&&r{if(f())return d()}).then(()=>{e?v(g):p()})})};return Ty(t.networkMode)?p():d().then(p),{promise:s,cancel:l,continue:()=>(i==null?void 0:i())?s:Promise.resolve(),cancelRetry:u,continueRetry:c}}const Eb=console;function kW(){let t=[],e=0,r=c=>{c()},n=c=>{c()};const i=c=>{let f;e++;try{f=c()}finally{e--,e||s()}return f},a=c=>{e?t.push(c):HM(()=>{r(c)})},o=c=>(...f)=>{a(()=>{c(...f)})},s=()=>{const c=t;t=[],c.length&&HM(()=>{n(()=>{c.forEach(f=>{r(f)})})})};return{batch:i,batchCalls:o,schedule:a,setNotifyFunction:c=>{r=c},setBatchNotifyFunction:c=>{n=c}}}const Rt=kW();class zN{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),PS(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,e??(hh?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class OW extends zN{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||Eb,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||NW(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(e,r){const n=ES(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(e,r){this.dispatch({type:"setState",state:e,setStateOptions:r})}cancel(e){var r;const n=this.promise;return(r=this.retryer)==null||r.cancel(e),n?n.then(yn).catch(yn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!EN(this.state.dataUpdatedAt,e)}onFocus(){var e;const r=this.observers.find(n=>n.shouldFetchOnWindowFocus());r&&r.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}onOnline(){var e;const r=this.observers.find(n=>n.shouldFetchOnReconnect());r&&r.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}addObserver(e){this.observers.indexOf(e)===-1&&(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.indexOf(e)!==-1&&(this.observers=this.observers.filter(r=>r!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,r){var n,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&r!=null&&r.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var a;return(a=this.retryer)==null||a.continueRetry(),this.promise}}if(e&&this.setOptions(e),!this.options.queryFn){const v=this.observers.find(d=>d.options.queryFn);v&&this.setOptions(v.options)}Array.isArray(this.options.queryKey);const o=PW(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};l(s);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn"),c={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};if(l(c),(n=this.options.behavior)==null||n.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=c.fetchOptions)==null?void 0:i.meta)){var f;this.dispatch({type:"fetch",meta:(f=c.fetchOptions)==null?void 0:f.meta})}const h=v=>{if(up(v)&&v.silent||this.dispatch({type:"error",error:v}),!up(v)){var d,p,y,g;(d=(p=this.cache.config).onError)==null||d.call(p,v,this),(y=(g=this.cache.config).onSettled)==null||y.call(g,this.state.data,v,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=BN({fn:c.fetchFn,abort:o==null?void 0:o.abort.bind(o),onSuccess:v=>{var d,p,y,g;if(typeof v>"u"){h(new Error(this.queryHash+" data is undefined"));return}this.setData(v),(d=(p=this.cache.config).onSuccess)==null||d.call(p,v,this),(y=(g=this.cache.config).onSettled)==null||y.call(g,v,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:(v,d)=>{this.dispatch({type:"failed",failureCount:v,error:d})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){const r=n=>{var i,a;switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=e.meta)!=null?i:null,fetchStatus:Ty(this.options.networkMode)?"fetching":"paused",...!n.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(a=e.dataUpdatedAt)!=null?a:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=e.error;return up(o)&&o.revert&&this.revertState?{...this.revertState}:{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=r(this.state),Rt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}function NW(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,r=typeof e<"u",n=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}class BW extends ev{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,r,n){var i;const a=r.queryKey,o=(i=r.queryHash)!=null?i:Ib(a,r);let s=this.get(o);return s||(s=new OW({cache:this,logger:e.getLogger(),queryKey:a,queryHash:o,options:e.defaultQueryOptions(r),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(s)),s}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const r=this.queriesMap[e.queryHash];r&&(e.destroy(),this.queries=this.queries.filter(n=>n!==e),r===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){Rt.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,r){const[n]=Ga(e,r);return typeof n.exact>"u"&&(n.exact=!0),this.queries.find(i=>BM(n,i))}findAll(e,r){const[n]=Ga(e,r);return Object.keys(n).length>0?this.queries.filter(i=>BM(n,i)):this.queries}notify(e){Rt.batch(()=>{this.listeners.forEach(({listener:r})=>{r(e)})})}onFocus(){Rt.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){Rt.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class zW extends zN{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||Eb,this.observers=[],this.state=e.state||FW(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.indexOf(e)===-1&&(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(r=>r!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,r;return(e=(r=this.retryer)==null?void 0:r.continue())!=null?e:this.execute()}async execute(){const e=()=>{var b;return this.retryer=BN({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(C,T)=>{this.dispatch({type:"failed",failureCount:C,error:T})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(b=this.options.retry)!=null?b:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},r=this.state.status==="loading";try{var n,i,a,o,s,l,u,c;if(!r){var f,h,v,d;this.dispatch({type:"loading",variables:this.options.variables}),await((f=(h=this.mutationCache.config).onMutate)==null?void 0:f.call(h,this.state.variables,this));const C=await((v=(d=this.options).onMutate)==null?void 0:v.call(d,this.state.variables));C!==this.state.context&&this.dispatch({type:"loading",context:C,variables:this.state.variables})}const b=await e();return await((n=(i=this.mutationCache.config).onSuccess)==null?void 0:n.call(i,b,this.state.variables,this.state.context,this)),await((a=(o=this.options).onSuccess)==null?void 0:a.call(o,b,this.state.variables,this.state.context)),await((s=(l=this.mutationCache.config).onSettled)==null?void 0:s.call(l,b,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,b,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:b}),b}catch(b){try{var p,y,g,m,_,S,w,x;throw await((p=(y=this.mutationCache.config).onError)==null?void 0:p.call(y,b,this.state.variables,this.state.context,this)),await((g=(m=this.options).onError)==null?void 0:g.call(m,b,this.state.variables,this.state.context)),await((_=(S=this.mutationCache.config).onSettled)==null?void 0:_.call(S,void 0,b,this.state.variables,this.state.context,this)),await((w=(x=this.options).onSettled)==null?void 0:w.call(x,void 0,b,this.state.variables,this.state.context)),b}finally{this.dispatch({type:"error",error:b})}}}dispatch(e){const r=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"loading":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Ty(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...n,...e.state}}};this.state=r(this.state),Rt.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function FW(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class VW extends ev{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,r,n){const i=new zW({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(r),state:n,defaultOptions:r.mutationKey?e.getMutationDefaults(r.mutationKey):void 0});return this.add(i),i}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(r=>r!==e),this.notify({type:"removed",mutation:e})}clear(){Rt.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return typeof e.exact>"u"&&(e.exact=!0),this.mutations.find(r=>zM(e,r))}findAll(e){return this.mutations.filter(r=>zM(e,r))}notify(e){Rt.batch(()=>{this.listeners.forEach(({listener:r})=>{r(e)})})}resumePausedMutations(){var e;return this.resuming=((e=this.resuming)!=null?e:Promise.resolve()).then(()=>{const r=this.mutations.filter(n=>n.state.isPaused);return Rt.batch(()=>r.reduce((n,i)=>n.then(()=>i.continue().catch(yn)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function GW(){return{onFetch:t=>{t.fetchFn=()=>{var e,r,n,i,a,o;const s=(e=t.fetchOptions)==null||(r=e.meta)==null?void 0:r.refetchPage,l=(n=t.fetchOptions)==null||(i=n.meta)==null?void 0:i.fetchMore,u=l==null?void 0:l.pageParam,c=(l==null?void 0:l.direction)==="forward",f=(l==null?void 0:l.direction)==="backward",h=((a=t.state.data)==null?void 0:a.pages)||[],v=((o=t.state.data)==null?void 0:o.pageParams)||[];let d=v,p=!1;const y=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>{var b;if((b=t.signal)!=null&&b.aborted)p=!0;else{var C;(C=t.signal)==null||C.addEventListener("abort",()=>{p=!0})}return t.signal}})},g=t.options.queryFn||(()=>Promise.reject("Missing queryFn")),m=(x,b,C,T)=>(d=T?[b,...d]:[...d,b],T?[C,...x]:[...x,C]),_=(x,b,C,T)=>{if(p)return Promise.reject("Cancelled");if(typeof C>"u"&&!b&&x.length)return Promise.resolve(x);const A={queryKey:t.queryKey,pageParam:C,meta:t.options.meta};y(A);const D=g(A);return Promise.resolve(D).then(P=>m(x,C,P,T))};let S;if(!h.length)S=_([]);else if(c){const x=typeof u<"u",b=x?u:UM(t.options,h);S=_(h,x,b)}else if(f){const x=typeof u<"u",b=x?u:HW(t.options,h);S=_(h,x,b,!0)}else{d=[];const x=typeof t.options.getNextPageParam>"u";S=(s&&h[0]?s(h[0],0,h):!0)?_([],x,v[0]):Promise.resolve(m([],v[0],h[0]));for(let C=1;C{if(s&&h[C]?s(h[C],C,h):!0){const D=x?v[C]:UM(t.options,T);return _(T,x,D)}return Promise.resolve(m(T,v[C],h[C]))})}return S.then(x=>({pages:x,pageParams:d}))}}}}function UM(t,e){return t.getNextPageParam==null?void 0:t.getNextPageParam(e[e.length-1],e)}function HW(t,e){return t.getPreviousPageParam==null?void 0:t.getPreviousPageParam(e[0],e)}class UW{constructor(e={}){this.queryCache=e.queryCache||new BW,this.mutationCache=e.mutationCache||new VW,this.logger=e.logger||Eb,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=ag.subscribe(()=>{ag.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=og.subscribe(()=>{og.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,r;this.mountCount--,this.mountCount===0&&((e=this.unsubscribeFocus)==null||e.call(this),this.unsubscribeFocus=void 0,(r=this.unsubscribeOnline)==null||r.call(this),this.unsubscribeOnline=void 0)}isFetching(e,r){const[n]=Ga(e,r);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,r){var n;return(n=this.queryCache.find(e,r))==null?void 0:n.state.data}ensureQueryData(e,r,n){const i=of(e,r,n),a=this.getQueryData(i.queryKey);return a?Promise.resolve(a):this.fetchQuery(i)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:r,state:n})=>{const i=n.data;return[r,i]})}setQueryData(e,r,n){const i=this.queryCache.find(e),a=i==null?void 0:i.state.data,o=LW(r,a);if(typeof o>"u")return;const s=of(e),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(o,{...n,manual:!0})}setQueriesData(e,r,n){return Rt.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,r,n)]))}getQueryState(e,r){var n;return(n=this.queryCache.find(e,r))==null?void 0:n.state}removeQueries(e,r){const[n]=Ga(e,r),i=this.queryCache;Rt.batch(()=>{i.findAll(n).forEach(a=>{i.remove(a)})})}resetQueries(e,r,n){const[i,a]=Ga(e,r,n),o=this.queryCache,s={type:"active",...i};return Rt.batch(()=>(o.findAll(i).forEach(l=>{l.reset()}),this.refetchQueries(s,a)))}cancelQueries(e,r,n){const[i,a={}]=Ga(e,r,n);typeof a.revert>"u"&&(a.revert=!0);const o=Rt.batch(()=>this.queryCache.findAll(i).map(s=>s.cancel(a)));return Promise.all(o).then(yn).catch(yn)}invalidateQueries(e,r,n){const[i,a]=Ga(e,r,n);return Rt.batch(()=>{var o,s;if(this.queryCache.findAll(i).forEach(u=>{u.invalidate()}),i.refetchType==="none")return Promise.resolve();const l={...i,type:(o=(s=i.refetchType)!=null?s:i.type)!=null?o:"active"};return this.refetchQueries(l,a)})}refetchQueries(e,r,n){const[i,a]=Ga(e,r,n),o=Rt.batch(()=>this.queryCache.findAll(i).filter(l=>!l.isDisabled()).map(l=>{var u;return l.fetch(void 0,{...a,cancelRefetch:(u=a==null?void 0:a.cancelRefetch)!=null?u:!0,meta:{refetchPage:i.refetchPage}})}));let s=Promise.all(o).then(yn);return a!=null&&a.throwOnError||(s=s.catch(yn)),s}fetchQuery(e,r,n){const i=of(e,r,n),a=this.defaultQueryOptions(i);typeof a.retry>"u"&&(a.retry=!1);const o=this.queryCache.build(this,a);return o.isStaleByTime(a.staleTime)?o.fetch(a):Promise.resolve(o.state.data)}prefetchQuery(e,r,n){return this.fetchQuery(e,r,n).then(yn).catch(yn)}fetchInfiniteQuery(e,r,n){const i=of(e,r,n);return i.behavior=GW(),this.fetchQuery(i)}prefetchInfiniteQuery(e,r,n){return this.fetchInfiniteQuery(e,r,n).then(yn).catch(yn)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,r){const n=this.queryDefaults.find(i=>Ts(e)===Ts(i.queryKey));n?n.defaultOptions=r:this.queryDefaults.push({queryKey:e,defaultOptions:r})}getQueryDefaults(e){if(!e)return;const r=this.queryDefaults.find(n=>ig(e,n.queryKey));return r==null?void 0:r.defaultOptions}setMutationDefaults(e,r){const n=this.mutationDefaults.find(i=>Ts(e)===Ts(i.mutationKey));n?n.defaultOptions=r:this.mutationDefaults.push({mutationKey:e,defaultOptions:r})}getMutationDefaults(e){if(!e)return;const r=this.mutationDefaults.find(n=>ig(e,n.mutationKey));return r==null?void 0:r.defaultOptions}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const r={...this.defaultOptions.queries,...this.getQueryDefaults(e==null?void 0:e.queryKey),...e,_defaulted:!0};return!r.queryHash&&r.queryKey&&(r.queryHash=Ib(r.queryKey,r)),typeof r.refetchOnReconnect>"u"&&(r.refetchOnReconnect=r.networkMode!=="always"),typeof r.useErrorBoundary>"u"&&(r.useErrorBoundary=!!r.suspense),r}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(e==null?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class WW extends ev{constructor(e,r){super(),this.client=e,this.options=r,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(r)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),WM(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return RS(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return RS(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,r){const n=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),FM(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const a=this.hasListeners();a&&$M(this.currentQuery,i,this.options,n)&&this.executeFetch(),this.updateResult(r),a&&(this.currentQuery!==i||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const o=this.computeRefetchInterval();a&&(this.currentQuery!==i||this.options.enabled!==n.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(e){const r=this.client.getQueryCache().build(this.client,e);return this.createResult(r,e)}getCurrentResult(){return this.currentResult}trackResult(e){const r={};return Object.keys(e).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})}),r}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...r}={}){return this.fetch({...r,meta:{refetchPage:e}})}fetchOptimistic(e){const r=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(e){var r;return this.executeFetch({...e,cancelRefetch:(r=e.cancelRefetch)!=null?r:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let r=this.currentQuery.fetch(this.options,e);return e!=null&&e.throwOnError||(r=r.catch(yn)),r}updateStaleTimeout(){if(this.clearStaleTimeout(),hh||this.currentResult.isStale||!PS(this.options.staleTime))return;const r=EN(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},r)}computeRefetchInterval(){var e;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(e=this.options.refetchInterval)!=null?e:!1}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!(hh||this.options.enabled===!1||!PS(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||ag.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,r){const n=this.currentQuery,i=this.options,a=this.currentResult,o=this.currentResultState,s=this.currentResultOptions,l=e!==n,u=l?e.state:this.currentQueryInitialState,c=l?this.currentResult:this.previousQueryResult,{state:f}=e;let{dataUpdatedAt:h,error:v,errorUpdatedAt:d,fetchStatus:p,status:y}=f,g=!1,m=!1,_;if(r._optimisticResults){const C=this.hasListeners(),T=!C&&WM(e,r),A=C&&$M(e,n,r,i);(T||A)&&(p=Ty(e.options.networkMode)?"fetching":"paused",h||(y="loading")),r._optimisticResults==="isRestoring"&&(p="idle")}if(r.keepPreviousData&&!f.dataUpdatedAt&&c!=null&&c.isSuccess&&y!=="error")_=c.data,h=c.dataUpdatedAt,y=c.status,g=!0;else if(r.select&&typeof f.data<"u")if(a&&f.data===(o==null?void 0:o.data)&&r.select===this.selectFn)_=this.selectResult;else try{this.selectFn=r.select,_=r.select(f.data),_=ES(a==null?void 0:a.data,_,r),this.selectResult=_,this.selectError=null}catch(C){this.selectError=C}else _=f.data;if(typeof r.placeholderData<"u"&&typeof _>"u"&&y==="loading"){let C;if(a!=null&&a.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))C=a.data;else if(C=typeof r.placeholderData=="function"?r.placeholderData():r.placeholderData,r.select&&typeof C<"u")try{C=r.select(C),this.selectError=null}catch(T){this.selectError=T}typeof C<"u"&&(y="success",_=ES(a==null?void 0:a.data,C,r),m=!0)}this.selectError&&(v=this.selectError,_=this.selectResult,d=Date.now(),y="error");const S=p==="fetching",w=y==="loading",x=y==="error";return{status:y,fetchStatus:p,isLoading:w,isSuccess:y==="success",isError:x,isInitialLoading:w&&S,data:_,dataUpdatedAt:h,error:v,errorUpdatedAt:d,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:S,isRefetching:S&&!w,isLoadingError:x&&f.dataUpdatedAt===0,isPaused:p==="paused",isPlaceholderData:m,isPreviousData:g,isRefetchError:x&&f.dataUpdatedAt!==0,isStale:Rb(e,r),refetch:this.refetch,remove:this.remove}}updateResult(e){const r=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,FM(n,r))return;this.currentResult=n;const i={cache:!0},a=()=>{if(!r)return!0;const{notifyOnChangeProps:o}=this.options;if(o==="all"||!o&&!this.trackedProps.size)return!0;const s=new Set(o??this.trackedProps);return this.options.useErrorBoundary&&s.add("error"),Object.keys(this.currentResult).some(l=>{const u=l;return this.currentResult[u]!==r[u]&&s.has(u)})};(e==null?void 0:e.listeners)!==!1&&a()&&(i.listeners=!0),this.notify({...i,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const r=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(r==null||r.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const r={};e.type==="success"?r.onSuccess=!e.manual:e.type==="error"&&!up(e.error)&&(r.onError=!0),this.updateResult(r),this.hasListeners()&&this.updateTimers()}notify(e){Rt.batch(()=>{if(e.onSuccess){var r,n,i,a;(r=(n=this.options).onSuccess)==null||r.call(n,this.currentResult.data),(i=(a=this.options).onSettled)==null||i.call(a,this.currentResult.data,null)}else if(e.onError){var o,s,l,u;(o=(s=this.options).onError)==null||o.call(s,this.currentResult.error),(l=(u=this.options).onSettled)==null||l.call(u,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function $W(t,e){return e.enabled!==!1&&!t.state.dataUpdatedAt&&!(t.state.status==="error"&&e.retryOnMount===!1)}function WM(t,e){return $W(t,e)||t.state.dataUpdatedAt>0&&RS(t,e,e.refetchOnMount)}function RS(t,e,r){if(e.enabled!==!1){const n=typeof r=="function"?r(t):r;return n==="always"||n!==!1&&Rb(t,e)}return!1}function $M(t,e,r,n){return r.enabled!==!1&&(t!==e||n.enabled===!1)&&(!r.suspense||t.state.status!=="error")&&Rb(t,r)}function Rb(t,e){return t.isStaleByTime(e.staleTime)}var FN={exports:{}},VN={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Iu=J;function YW(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var jW=typeof Object.is=="function"?Object.is:YW,XW=Iu.useState,ZW=Iu.useEffect,qW=Iu.useLayoutEffect,KW=Iu.useDebugValue;function QW(t,e){var r=e(),n=XW({inst:{value:r,getSnapshot:e}}),i=n[0].inst,a=n[1];return qW(function(){i.value=r,i.getSnapshot=e,s0(i)&&a({inst:i})},[t,r,e]),ZW(function(){return s0(i)&&a({inst:i}),t(function(){s0(i)&&a({inst:i})})},[t]),KW(r),r}function s0(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!jW(t,r)}catch{return!0}}function JW(t,e){return e()}var e$=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?JW:QW;VN.useSyncExternalStore=Iu.useSyncExternalStore!==void 0?Iu.useSyncExternalStore:e$;FN.exports=VN;var t$=FN.exports;const r$=t$.useSyncExternalStore,YM=J.createContext(void 0),GN=J.createContext(!1);function HN(t,e){return t||(e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=YM),window.ReactQueryClientContext):YM)}const n$=({context:t}={})=>{const e=J.useContext(HN(t,J.useContext(GN)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},i$=({client:t,children:e,context:r,contextSharing:n=!1})=>{J.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]);const i=HN(r,n);return J.createElement(GN.Provider,{value:!r&&n},J.createElement(i.Provider,{value:t},e))},UN=J.createContext(!1),a$=()=>J.useContext(UN);UN.Provider;function o$(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}const s$=J.createContext(o$()),l$=()=>J.useContext(s$);function u$(t,e){return typeof t=="function"?t(...e):!!t}const c$=(t,e)=>{(t.suspense||t.useErrorBoundary)&&(e.isReset()||(t.retryOnMount=!1))},f$=t=>{J.useEffect(()=>{t.clearReset()},[t])},h$=({result:t,errorResetBoundary:e,useErrorBoundary:r,query:n})=>t.isError&&!e.isReset()&&!t.isFetching&&u$(r,[t.error,n]),v$=t=>{t.suspense&&typeof t.staleTime!="number"&&(t.staleTime=1e3)},d$=(t,e)=>t.isLoading&&t.isFetching&&!e,p$=(t,e,r)=>(t==null?void 0:t.suspense)&&d$(e,r),g$=(t,e,r)=>e.fetchOptimistic(t).then(({data:n})=>{t.onSuccess==null||t.onSuccess(n),t.onSettled==null||t.onSettled(n,null)}).catch(n=>{r.clearReset(),t.onError==null||t.onError(n),t.onSettled==null||t.onSettled(void 0,n)});function y$(t,e){const r=n$({context:t.context}),n=a$(),i=l$(),a=r.defaultQueryOptions(t);a._optimisticResults=n?"isRestoring":"optimistic",a.onError&&(a.onError=Rt.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=Rt.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=Rt.batchCalls(a.onSettled)),v$(a),c$(a,i),f$(i);const[o]=J.useState(()=>new e(r,a)),s=o.getOptimisticResult(a);if(r$(J.useCallback(l=>n?()=>{}:o.subscribe(Rt.batchCalls(l)),[o,n]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),J.useEffect(()=>{o.setOptions(a,{listeners:!1})},[a,o]),p$(a,s,n))throw g$(a,o,i);if(h$({result:s,errorResetBoundary:i,useErrorBoundary:a.useErrorBoundary,query:o.getCurrentQuery()}))throw s.error;return a.notifyOnChangeProps?s:o.trackResult(s)}function kb(t,e,r){const n=of(t,e,r);return y$(n,WW)}function WN(t,e){return function(){return t.apply(e,arguments)}}const{toString:m$}=Object.prototype,{getPrototypeOf:Ob}=Object,Ay=(t=>e=>{const r=m$.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),zi=t=>(t=t.toLowerCase(),e=>Ay(e)===t),My=t=>e=>typeof e===t,{isArray:Xu}=Array,vh=My("undefined");function _$(t){return t!==null&&!vh(t)&&t.constructor!==null&&!vh(t.constructor)&&Dn(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const $N=zi("ArrayBuffer");function S$(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&$N(t.buffer),e}const x$=My("string"),Dn=My("function"),YN=My("number"),Dy=t=>t!==null&&typeof t=="object",w$=t=>t===!0||t===!1,cp=t=>{if(Ay(t)!=="object")return!1;const e=Ob(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},b$=zi("Date"),C$=zi("File"),T$=zi("Blob"),A$=zi("FileList"),M$=t=>Dy(t)&&Dn(t.pipe),D$=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Dn(t.append)&&((e=Ay(t))==="formdata"||e==="object"&&Dn(t.toString)&&t.toString()==="[object FormData]"))},L$=zi("URLSearchParams"),P$=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function tv(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,i;if(typeof t!="object"&&(t=[t]),Xu(t))for(n=0,i=t.length;n0;)if(i=r[n],e===i.toLowerCase())return i;return null}const XN=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),ZN=t=>!vh(t)&&t!==XN;function kS(){const{caseless:t}=ZN(this)&&this||{},e={},r=(n,i)=>{const a=t&&jN(e,i)||i;cp(e[a])&&cp(n)?e[a]=kS(e[a],n):cp(n)?e[a]=kS({},n):Xu(n)?e[a]=n.slice():e[a]=n};for(let n=0,i=arguments.length;n(tv(e,(i,a)=>{r&&Dn(i)?t[a]=WN(i,r):t[a]=i},{allOwnKeys:n}),t),E$=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),R$=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},k$=(t,e,r,n)=>{let i,a,o;const s={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),a=i.length;a-- >0;)o=i[a],(!n||n(o,t,e))&&!s[o]&&(e[o]=t[o],s[o]=!0);t=r!==!1&&Ob(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},O$=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},N$=t=>{if(!t)return null;if(Xu(t))return t;let e=t.length;if(!YN(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},B$=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Ob(Uint8Array)),z$=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=n.next())&&!i.done;){const a=i.value;e.call(t,a[0],a[1])}},F$=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},V$=zi("HTMLFormElement"),G$=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),jM=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),H$=zi("RegExp"),qN=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};tv(r,(i,a)=>{e(i,a,t)!==!1&&(n[a]=i)}),Object.defineProperties(t,n)},U$=t=>{qN(t,(e,r)=>{if(Dn(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(Dn(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},W$=(t,e)=>{const r={},n=i=>{i.forEach(a=>{r[a]=!0})};return Xu(t)?n(t):n(String(t).split(e)),r},$$=()=>{},Y$=(t,e)=>(t=+t,Number.isFinite(t)?t:e),l0="abcdefghijklmnopqrstuvwxyz",XM="0123456789",KN={DIGIT:XM,ALPHA:l0,ALPHA_DIGIT:l0+l0.toUpperCase()+XM},j$=(t=16,e=KN.ALPHA_DIGIT)=>{let r="";const{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r};function X$(t){return!!(t&&Dn(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Z$=t=>{const e=new Array(10),r=(n,i)=>{if(Dy(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[i]=n;const a=Xu(n)?[]:{};return tv(n,(o,s)=>{const l=r(o,i+1);!vh(l)&&(a[s]=l)}),e[i]=void 0,a}}return n};return r(t,0)},q$=zi("AsyncFunction"),K$=t=>t&&(Dy(t)||Dn(t))&&Dn(t.then)&&Dn(t.catch),$={isArray:Xu,isArrayBuffer:$N,isBuffer:_$,isFormData:D$,isArrayBufferView:S$,isString:x$,isNumber:YN,isBoolean:w$,isObject:Dy,isPlainObject:cp,isUndefined:vh,isDate:b$,isFile:C$,isBlob:T$,isRegExp:H$,isFunction:Dn,isStream:M$,isURLSearchParams:L$,isTypedArray:B$,isFileList:A$,forEach:tv,merge:kS,extend:I$,trim:P$,stripBOM:E$,inherits:R$,toFlatObject:k$,kindOf:Ay,kindOfTest:zi,endsWith:O$,toArray:N$,forEachEntry:z$,matchAll:F$,isHTMLForm:V$,hasOwnProperty:jM,hasOwnProp:jM,reduceDescriptors:qN,freezeMethods:U$,toObjectSet:W$,toCamelCase:G$,noop:$$,toFiniteNumber:Y$,findKey:jN,global:XN,isContextDefined:ZN,ALPHABET:KN,generateString:j$,isSpecCompliantForm:X$,toJSONObject:Z$,isAsyncFn:q$,isThenable:K$};function je(t,e,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}$.inherits(je,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const QN=je.prototype,JN={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{JN[t]={value:t}});Object.defineProperties(je,JN);Object.defineProperty(QN,"isAxiosError",{value:!0});je.from=(t,e,r,n,i,a)=>{const o=Object.create(QN);return $.toFlatObject(t,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),je.call(o,t.message,e,r,n,i),o.cause=t,o.name=t.name,a&&Object.assign(o,a),o};const Q$=null;function OS(t){return $.isPlainObject(t)||$.isArray(t)}function eB(t){return $.endsWith(t,"[]")?t.slice(0,-2):t}function ZM(t,e,r){return t?t.concat(e).map(function(i,a){return i=eB(i),!r&&a?"["+i+"]":i}).join(r?".":""):e}function J$(t){return $.isArray(t)&&!t.some(OS)}const e8=$.toFlatObject($,{},null,function(e){return/^is[A-Z]/.test(e)});function Ly(t,e,r){if(!$.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=$.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,y){return!$.isUndefined(y[p])});const n=r.metaTokens,i=r.visitor||c,a=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&$.isSpecCompliantForm(e);if(!$.isFunction(i))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if($.isDate(d))return d.toISOString();if(!l&&$.isBlob(d))throw new je("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(d)||$.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function c(d,p,y){let g=d;if(d&&!y&&typeof d=="object"){if($.endsWith(p,"{}"))p=n?p:p.slice(0,-2),d=JSON.stringify(d);else if($.isArray(d)&&J$(d)||($.isFileList(d)||$.endsWith(p,"[]"))&&(g=$.toArray(d)))return p=eB(p),g.forEach(function(_,S){!($.isUndefined(_)||_===null)&&e.append(o===!0?ZM([p],S,a):o===null?p:p+"[]",u(_))}),!1}return OS(d)?!0:(e.append(ZM(y,p,a),u(d)),!1)}const f=[],h=Object.assign(e8,{defaultVisitor:c,convertValue:u,isVisitable:OS});function v(d,p){if(!$.isUndefined(d)){if(f.indexOf(d)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(d),$.forEach(d,function(g,m){(!($.isUndefined(g)||g===null)&&i.call(e,g,$.isString(m)?m.trim():m,p,h))===!0&&v(g,p?p.concat(m):[m])}),f.pop()}}if(!$.isObject(t))throw new TypeError("data must be an object");return v(t),e}function qM(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Nb(t,e){this._pairs=[],t&&Ly(t,this,e)}const tB=Nb.prototype;tB.append=function(e,r){this._pairs.push([e,r])};tB.toString=function(e){const r=e?function(n){return e.call(this,n,qM)}:qM;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function t8(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rB(t,e,r){if(!e)return t;const n=r&&r.encode||t8,i=r&&r.serialize;let a;if(i?a=i(e,r):a=$.isURLSearchParams(e)?e.toString():new Nb(e,r).toString(n),a){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class r8{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){$.forEach(this.handlers,function(n){n!==null&&e(n)})}}const KM=r8,nB={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},n8=typeof URLSearchParams<"u"?URLSearchParams:Nb,i8=typeof FormData<"u"?FormData:null,a8=typeof Blob<"u"?Blob:null,o8=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),s8=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ti={isBrowser:!0,classes:{URLSearchParams:n8,FormData:i8,Blob:a8},isStandardBrowserEnv:o8,isStandardBrowserWebWorkerEnv:s8,protocols:["http","https","file","blob","url","data"]};function l8(t,e){return Ly(t,new Ti.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,a){return Ti.isNode&&$.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}function u8(t){return $.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function c8(t){const e={},r=Object.keys(t);let n;const i=r.length;let a;for(n=0;n=r.length;return o=!o&&$.isArray(i)?i.length:o,l?($.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!s):((!i[o]||!$.isObject(i[o]))&&(i[o]=[]),e(r,n,i[o],a)&&$.isArray(i[o])&&(i[o]=c8(i[o])),!s)}if($.isFormData(t)&&$.isFunction(t.entries)){const r={};return $.forEachEntry(t,(n,i)=>{e(u8(n),i,r,0)}),r}return null}const f8={"Content-Type":void 0};function h8(t,e,r){if($.isString(t))try{return(e||JSON.parse)(t),$.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const Py={transitional:nB,adapter:["xhr","http"],transformRequest:[function(e,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,a=$.isObject(e);if(a&&$.isHTMLForm(e)&&(e=new FormData(e)),$.isFormData(e))return i&&i?JSON.stringify(iB(e)):e;if($.isArrayBuffer(e)||$.isBuffer(e)||$.isStream(e)||$.isFile(e)||$.isBlob(e))return e;if($.isArrayBufferView(e))return e.buffer;if($.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return l8(e,this.formSerializer).toString();if((s=$.isFileList(e))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ly(s?{"files[]":e}:e,l&&new l,this.formSerializer)}}return a||i?(r.setContentType("application/json",!1),h8(e)):e}],transformResponse:[function(e){const r=this.transitional||Py.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(e&&$.isString(e)&&(n&&!this.responseType||i)){const o=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(s){if(o)throw s.name==="SyntaxError"?je.from(s,je.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ti.classes.FormData,Blob:Ti.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};$.forEach(["delete","get","head"],function(e){Py.headers[e]={}});$.forEach(["post","put","patch"],function(e){Py.headers[e]=$.merge(f8)});const Bb=Py,v8=$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),d8=t=>{const e={};let r,n,i;return t&&t.split(` -`).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||e[r]&&v8[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},QM=Symbol("internals");function Tc(t){return t&&String(t).trim().toLowerCase()}function fp(t){return t===!1||t==null?t:$.isArray(t)?t.map(fp):String(t)}function p8(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const g8=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function u0(t,e,r,n,i){if($.isFunction(n))return n.call(this,e,r);if(i&&(e=r),!!$.isString(e)){if($.isString(n))return e.indexOf(n)!==-1;if($.isRegExp(n))return n.test(e)}}function y8(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function m8(t,e){const r=$.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(i,a,o){return this[n].call(this,e,i,a,o)},configurable:!0})})}class Iy{constructor(e){e&&this.set(e)}set(e,r,n){const i=this;function a(s,l,u){const c=Tc(l);if(!c)throw new Error("header name must be a non-empty string");const f=$.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=fp(s))}const o=(s,l)=>$.forEach(s,(u,c)=>a(u,c,l));return $.isPlainObject(e)||e instanceof this.constructor?o(e,r):$.isString(e)&&(e=e.trim())&&!g8(e)?o(d8(e),r):e!=null&&a(r,e,n),this}get(e,r){if(e=Tc(e),e){const n=$.findKey(this,e);if(n){const i=this[n];if(!r)return i;if(r===!0)return p8(i);if($.isFunction(r))return r.call(this,i,n);if($.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=Tc(e),e){const n=$.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||u0(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let i=!1;function a(o){if(o=Tc(o),o){const s=$.findKey(n,o);s&&(!r||u0(n,n[s],s,r))&&(delete n[s],i=!0)}}return $.isArray(e)?e.forEach(a):a(e),i}clear(e){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const a=r[n];(!e||u0(this,this[a],a,e,!0))&&(delete this[a],i=!0)}return i}normalize(e){const r=this,n={};return $.forEach(this,(i,a)=>{const o=$.findKey(n,a);if(o){r[o]=fp(i),delete r[a];return}const s=e?y8(a):String(a).trim();s!==a&&delete r[a],r[s]=fp(i),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return $.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=e&&$.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(i=>n.set(i)),n}static accessor(e){const n=(this[QM]=this[QM]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=Tc(o);n[s]||(m8(i,o),n[s]=!0)}return $.isArray(e)?e.forEach(a):a(e),this}}Iy.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);$.freezeMethods(Iy.prototype);$.freezeMethods(Iy);const aa=Iy;function c0(t,e){const r=this||Bb,n=e||r,i=aa.from(n.headers);let a=n.data;return $.forEach(t,function(s){a=s.call(r,a,i.normalize(),e?e.status:void 0)}),i.normalize(),a}function aB(t){return!!(t&&t.__CANCEL__)}function rv(t,e,r){je.call(this,t??"canceled",je.ERR_CANCELED,e,r),this.name="CanceledError"}$.inherits(rv,je,{__CANCEL__:!0});function _8(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new je("Request failed with status code "+r.status,[je.ERR_BAD_REQUEST,je.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const S8=Ti.isStandardBrowserEnv?function(){return{write:function(r,n,i,a,o,s){const l=[];l.push(r+"="+encodeURIComponent(n)),$.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),$.isString(a)&&l.push("path="+a),$.isString(o)&&l.push("domain="+o),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(r){const n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function x8(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function w8(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function oB(t,e){return t&&!x8(e)?w8(t,e):e}const b8=Ti.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function i(a){let o=a;return e&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=i(window.location.href),function(o){const s=$.isString(o)?i(o):o;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}();function C8(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function T8(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i=0,a=0,o;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=n[a];o||(o=u),r[i]=l,n[i]=u;let f=a,h=0;for(;f!==i;)h+=r[f++],f=f%t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),u-o{const a=i.loaded,o=i.lengthComputable?i.total:void 0,s=a-r,l=n(s),u=a<=o;r=a;const c={loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&u?(o-a)/l:void 0,event:i};c[e?"download":"upload"]=!0,t(c)}}const A8=typeof XMLHttpRequest<"u",M8=A8&&function(t){return new Promise(function(r,n){let i=t.data;const a=aa.from(t.headers).normalize(),o=t.responseType;let s;function l(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}$.isFormData(i)&&(Ti.isStandardBrowserEnv||Ti.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(t.auth){const v=t.auth.username||"",d=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";a.set("Authorization","Basic "+btoa(v+":"+d))}const c=oB(t.baseURL,t.url);u.open(t.method.toUpperCase(),rB(c,t.params,t.paramsSerializer),!0),u.timeout=t.timeout;function f(){if(!u)return;const v=aa.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),p={data:!o||o==="text"||o==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:v,config:t,request:u};_8(function(g){r(g),l()},function(g){n(g),l()},p),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(n(new je("Request aborted",je.ECONNABORTED,t,u)),u=null)},u.onerror=function(){n(new je("Network Error",je.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let d=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const p=t.transitional||nB;t.timeoutErrorMessage&&(d=t.timeoutErrorMessage),n(new je(d,p.clarifyTimeoutError?je.ETIMEDOUT:je.ECONNABORTED,t,u)),u=null},Ti.isStandardBrowserEnv){const v=(t.withCredentials||b8(c))&&t.xsrfCookieName&&S8.read(t.xsrfCookieName);v&&a.set(t.xsrfHeaderName,v)}i===void 0&&a.setContentType(null),"setRequestHeader"in u&&$.forEach(a.toJSON(),function(d,p){u.setRequestHeader(p,d)}),$.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),o&&o!=="json"&&(u.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&u.addEventListener("progress",JM(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",JM(t.onUploadProgress)),(t.cancelToken||t.signal)&&(s=v=>{u&&(n(!v||v.type?new rv(null,t,u):v),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s)));const h=C8(c);if(h&&Ti.protocols.indexOf(h)===-1){n(new je("Unsupported protocol "+h+":",je.ERR_BAD_REQUEST,t));return}u.send(i||null)})},hp={http:Q$,xhr:M8};$.forEach(hp,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const D8={getAdapter:t=>{t=$.isArray(t)?t:[t];const{length:e}=t;let r,n;for(let i=0;it instanceof aa?t.toJSON():t;function Eu(t,e){e=e||{};const r={};function n(u,c,f){return $.isPlainObject(u)&&$.isPlainObject(c)?$.merge.call({caseless:f},u,c):$.isPlainObject(c)?$.merge({},c):$.isArray(c)?c.slice():c}function i(u,c,f){if($.isUndefined(c)){if(!$.isUndefined(u))return n(void 0,u,f)}else return n(u,c,f)}function a(u,c){if(!$.isUndefined(c))return n(void 0,c)}function o(u,c){if($.isUndefined(c)){if(!$.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function s(u,c,f){if(f in e)return n(u,c);if(f in t)return n(void 0,u)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,c)=>i(tD(u),tD(c),!0)};return $.forEach(Object.keys(Object.assign({},t,e)),function(c){const f=l[c]||i,h=f(t[c],e[c],c);$.isUndefined(h)&&f!==s||(r[c]=h)}),r}const sB="1.4.0",zb={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{zb[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const rD={};zb.transitional=function(e,r,n){function i(a,o){return"[Axios v"+sB+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return(a,o,s)=>{if(e===!1)throw new je(i(o," has been removed"+(r?" in "+r:"")),je.ERR_DEPRECATED);return r&&!rD[o]&&(rD[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(a,o,s):!0}};function L8(t,e,r){if(typeof t!="object")throw new je("options must be an object",je.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let i=n.length;for(;i-- >0;){const a=n[i],o=e[a];if(o){const s=t[a],l=s===void 0||o(s,a,t);if(l!==!0)throw new je("option "+a+" must be "+l,je.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new je("Unknown option "+a,je.ERR_BAD_OPTION)}}const NS={assertOptions:L8,validators:zb},Da=NS.validators;class sg{constructor(e){this.defaults=e,this.interceptors={request:new KM,response:new KM}}request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=Eu(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:a}=r;n!==void 0&&NS.assertOptions(n,{silentJSONParsing:Da.transitional(Da.boolean),forcedJSONParsing:Da.transitional(Da.boolean),clarifyTimeoutError:Da.transitional(Da.boolean)},!1),i!=null&&($.isFunction(i)?r.paramsSerializer={serialize:i}:NS.assertOptions(i,{encode:Da.function,serialize:Da.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o;o=a&&$.merge(a.common,a[r.method]),o&&$.forEach(["delete","get","head","post","put","patch","common"],d=>{delete a[d]}),r.headers=aa.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let c,f=0,h;if(!l){const d=[eD.bind(this),void 0];for(d.unshift.apply(d,s),d.push.apply(d,u),h=d.length,c=Promise.resolve(r);f{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](i);n._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{n.subscribe(s),a=s}).then(i);return o.cancel=function(){n.unsubscribe(a)},o},e(function(a,o,s){n.reason||(n.reason=new rv(a,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}static source(){let e;return{token:new Fb(function(i){e=i}),cancel:e}}}const P8=Fb;function I8(t){return function(r){return t.apply(null,r)}}function E8(t){return $.isObject(t)&&t.isAxiosError===!0}const BS={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(BS).forEach(([t,e])=>{BS[e]=t});const R8=BS;function lB(t){const e=new vp(t),r=WN(vp.prototype.request,e);return $.extend(r,vp.prototype,e,{allOwnKeys:!0}),$.extend(r,e,null,{allOwnKeys:!0}),r.create=function(i){return lB(Eu(t,i))},r}const Ut=lB(Bb);Ut.Axios=vp;Ut.CanceledError=rv;Ut.CancelToken=P8;Ut.isCancel=aB;Ut.VERSION=sB;Ut.toFormData=Ly;Ut.AxiosError=je;Ut.Cancel=Ut.CanceledError;Ut.all=function(e){return Promise.all(e)};Ut.spread=I8;Ut.isAxiosError=E8;Ut.mergeConfig=Eu;Ut.AxiosHeaders=aa;Ut.formToJSON=t=>iB($.isHTMLForm(t)?new FormData(t):t);Ut.HttpStatusCode=R8;Ut.default=Ut;const uB=Ut,cB={apiUri:"https://test.verification.rocks"},k8=(t,e)=>Object.values(t).slice(-e).reduce((i,a)=>i+a,0),O8=t=>({tooltip:{},grid:{left:"5%",right:"5%",top:"10%",bottom:"10%"},xAxis:{type:"category",data:t.map(e=>e.day)},yAxis:{type:"value"},series:[{name:"Success",stack:"total",type:"bar",data:t.map(e=>e.positive),itemStyle:{color:"#2196F3"}},{name:"Failure",stack:"total",type:"bar",data:t.map(e=>e.negative),itemStyle:{color:"#FF5722"}}]}),fB=async()=>{try{return(await uB.get(`${cB.apiUri}/stats/sentry/events`)).data}catch{return{}}},N8=async()=>{try{const t=`${cB.apiUri}/stats/bugs/open`;return(await uB.get(t)).data}catch(t){return console.log(t),{count:0}}},B8="/dist/assets/fil-plus-60ab2b37.svg",z8=[{name:"Blockchain",to:"",svg:K.jsx(TW,{})},{name:"User",to:"user",svg:K.jsx(AW,{})}],F8=()=>K.jsxs("nav",{className:"w-64 min-h-screen shadow-md fixed left-0 top-0 flex flex-col",children:[K.jsx(kM,{to:"/",children:K.jsx("img",{src:B8,alt:"logo",className:"h-16 w-full cursor-pointer my-5"})}),K.jsx("div",{className:"flex flex-col flex-1 px-5",children:z8.map(t=>K.jsxs(kM,{to:t.to,className:({isActive:e})=>`flex items-center space-x-4 py-3 pl-4 cursor-pointer rounded-lg hover:bg-gray-100 ${e&&"bg-gradient-to-r from-cyan-500 to-blue-500 text-white transition duration-300 shadow-md"}`,children:[K.jsx("span",{children:t.svg}),K.jsx("span",{children:t.name})]},t.name))}),K.jsx(IN,{to:"/",className:"border-t text-center py-4",children:K.jsx("span",{children:"About Fil+ Metrics"})})]});function V8(){var e;const t=kb({queryKey:["bugs"],queryFn:N8});return K.jsxs("section",{className:"flex",children:[K.jsx(F8,{}),K.jsx("main",{className:"bg-[#E7E7E7] flex-1 px-8 py-6 ml-64 min-h-screen",children:K.jsxs("div",{className:"max-w-[1200px] mx-auto",children:[K.jsx("div",{className:"bg-white rounded-md px-12 py-4 shadow-md mb-4",children:t.isLoading?"Loading...":K.jsxs("div",{className:"flex items-center space-x-4 ",children:[K.jsx(MW,{}),K.jsxs("div",{children:[" Number of open bugs : ",(e=t==null?void 0:t.data)==null?void 0:e.count]})]})}),K.jsx(hW,{})]})})]})}/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var zS=function(t,e){return zS=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},zS(t,e)};function hB(t,e){zS(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var FS=function(){return FS=Object.assign||function(e){for(var r,n=1,i=arguments.length;n"u"&&typeof self<"u"?cs.worker=!0:typeof navigator>"u"?(cs.node=!0,cs.svgSupported=!0):U8(navigator.userAgent,cs);function U8(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);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),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}const ze=cs;var Vb=12,vB="sans-serif",_o=Vb+"px "+vB,W8=20,$8=100,Y8="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function j8(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r=0)s=o*r.length;else for(var l=0;l>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;"),t.appendChild(o),r.push(o)}return r}function y7(t,e,r){for(var n=r?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),f=2*u,h=c.left,v=c.top;o.push(h,v),l=l&&a&&h===a[f]&&v===a[f+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=r?iD(s,o):iD(o,s))}function TB(t){return t.nodeName.toUpperCase()==="CANVAS"}var m7=/([&<>"'])/g,_7={"&":"&","<":"<",">":">",'"':""","'":"'"};function Cr(t){return t==null?"":(t+"").replace(m7,function(e,r){return _7[r]})}var S7=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,v0=[],x7=ze.browser.firefox&&+ze.browser.version.split(".")[0]<39;function YS(t,e,r,n){return r=r||{},n?oD(t,e,r):x7&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):oD(t,e,r),r}function oD(t,e,r){if(ze.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(TB(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if($S(v0,t,n,i)){r.zrX=v0[0],r.zrY=v0[1];return}}r.zrX=r.zrY=0}function jb(t){return t||window.event}function pn(t,e,r){if(e=jb(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&YS(t,o,e,r)}else{YS(t,e,e,r);var a=w7(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&S7.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function w7(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function jS(t,e,r,n){t.addEventListener(e,r,n)}function b7(t,e,r,n){t.removeEventListener(e,r,n)}var va=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function sD(t){return t.which===2||t.which===3}var C7=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:r,event:e},o=0,s=i.length;o1&&n&&n.length>1){var a=lD(n)/lD(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=T7(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function rn(){return[1,0,0,1,0,0]}function av(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function By(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Ri(t,e,r){var n=e[0]*r[0]+e[2]*r[1],i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function oi(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function Eo(t,e,r){var n=e[0],i=e[2],a=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(r),c=Math.cos(r);return t[0]=n*c+o*u,t[1]=-n*u+o*c,t[2]=i*c+s*u,t[3]=-i*u+c*s,t[4]=c*a+u*l,t[5]=c*l-u*a,t}function zy(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function ul(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*i)*l,t[5]=(a*i-r*s)*l,t):null}function AB(t){var e=rn();return By(e,t),e}const A7=Object.freeze(Object.defineProperty({__proto__:null,clone:AB,copy:By,create:rn,identity:av,invert:ul,mul:Ri,rotate:Eo,scale:zy,translate:oi},Symbol.toStringTag,{value:"Module"}));var M7=function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,i){e.x=r.x+n.x*i,e.y=r.y+n.y*i},t.lerp=function(e,r,n,i){var a=1-i;e.x=a*r.x+i*n.x,e.y=a*r.y+i*n.y},t}();const we=M7;var Zv=Math.min,qv=Math.max,Bo=new we,zo=new we,Fo=new we,Vo=new we,Ac=new we,Mc=new we,D7=function(){function t(e,r,n,i){n<0&&(e=e+n,n=-n),i<0&&(r=r+i,i=-i),this.x=e,this.y=r,this.width=n,this.height=i}return t.prototype.union=function(e){var r=Zv(e.x,this.x),n=Zv(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=qv(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=qv(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var r=this,n=e.width/r.width,i=e.height/r.height,a=rn();return oi(a,a,[-r.x,-r.y]),zy(a,a,[n,i]),oi(a,a,[e.x,e.y]),a},t.prototype.intersect=function(e,r){if(!e)return!1;e instanceof t||(e=t.create(e));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,c=e.y,f=e.y+e.height,h=!(ad&&(d=_,pd&&(d=S,g=n.x&&e<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,r){e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height},t.applyTransform=function(e,r,n){if(!n){e!==r&&t.copy(e,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];e.x=r.x*i+o,e.y=r.y*a+s,e.width=r.width*i,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Bo.x=Fo.x=r.x,Bo.y=Vo.y=r.y,zo.x=Vo.x=r.x+r.width,zo.y=Fo.y=r.y+r.height,Bo.transform(n),Vo.transform(n),zo.transform(n),Fo.transform(n),e.x=Zv(Bo.x,zo.x,Fo.x,Vo.x),e.y=Zv(Bo.y,zo.y,Fo.y,Vo.y);var l=qv(Bo.x,zo.x,Fo.x,Vo.x),u=qv(Bo.y,zo.y,Fo.y,Vo.y);e.width=l-e.x,e.height=u-e.y},t}();const Ce=D7;var MB="silent";function L7(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.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:P7}}function P7(){va(this.event)}var I7=function(t){ut(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(kn),Dc=function(){function t(e,r){this.x=e,this.y=r}return t}(),E7=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],p0=new Ce(0,0,0,0),DB=function(t){ut(e,t);function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new Dc(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new I7,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new h7(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(M(E7,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=LB(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 Dc(n,i):this.findHover(n,i),u=l.target,c=this.proxy;c.setCursor&&c.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)},e.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})},e.prototype.resize=function(){this._hovered=new Dc(0,0)},e.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=L7(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)}))}},e.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new Dc(r,n);if(uD(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Ce(r-u,n-u,l,l),f=a.length-1;f>=0;f--){var h=a[f];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(p0.copy(h.getBoundingRect()),h.transform&&p0.applyTransform(h.transform),p0.intersect(c)&&s.push(h))}if(s.length)for(var v=4,d=Math.PI/12,p=Math.PI*2,y=0;y4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function R7(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?MB:!0}return!1}function uD(t,e,r,n,i){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==i&&!o.ignore&&(s=R7(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==MB)){e.target=o;break}}}function LB(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}const k7=DB;var PB=32,Lc=7;function O7(t){for(var e=0;t>=PB;)e|=t&1,t>>=1;return t+e}function cD(t,e,r,n){var i=e+1;if(i===r)return 1;if(n(t[i++],t[e])<0){for(;i=0;)i++;return i-e}function N7(t,e,r){for(r--;e>>1,i(a,t[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function g0(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])>0){for(s=n-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);a(t,e[r+c])>0?o=c+1:l=c}return l}function y0(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);a(t,e[r+c])<0?l=c:o=c+1}return l}function B7(t,e){var r=Lc,n,i,a=0;t.length;var o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]i[v+1])break;c(v)}}function u(){for(;a>1;){var v=a-2;v>0&&i[v-1]=Lc||b>=Lc);if(C)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),d===1){for(g=0;g=0;g--)t[x+g]=t[w+g];t[S]=o[_];return}for(var b=r;;){var C=0,T=0,A=!1;do if(e(o[_],t[m])<0){if(t[S--]=t[m--],C++,T=0,--d===0){A=!0;break}}else if(t[S--]=o[_--],T++,C=0,--y===1){A=!0;break}while((C|T)=0;g--)t[x+g]=t[w+g];if(d===0){A=!0;break}}if(t[S--]=o[_--],--y===1){A=!0;break}if(T=y-g0(t[m],o,0,y,y-1,e),T!==0){for(S-=T,_-=T,y-=T,x=S+1,w=_+1,g=0;g=Lc||T>=Lc);if(A)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),y===1){for(S-=d,m-=d,x=S+1,w=m+1,g=d-1;g>=0;g--)t[x+g]=t[w+g];t[S]=o[_]}else{if(y===0)throw new Error;for(w=S-(y-1),g=0;gs&&(l=s),fD(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var Zr=1,sf=2,Fl=4,hD=!1;function m0(){hD||(hD=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function vD(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var z7=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=vD}return t.prototype.traverse=function(e,r){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(m0(),c.z=0),isNaN(c.z2)&&(m0(),c.z2=0),isNaN(c.zlevel)&&(m0(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=e.getDecalElement&&e.getDecalElement();f&&this._updateAndAddDisplayable(f,r,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,r,n);var v=e.getTextContent();v&&this._updateAndAddDisplayable(v,r,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();const F7=z7;var IB;IB=ze.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};const XS=IB;var pp={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-pp.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?pp.bounceIn(t*2)*.5:pp.bounceOut(t*2-1)*.5+.5}};const EB=pp;var Kv=Math.pow,co=Math.sqrt,fg=1e-8,RB=1e-4,dD=co(3),Qv=1/3,bi=Io(),wn=Io(),gu=Io();function Za(t){return t>-fg&&tfg||t<-fg}function zt(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function pD(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function hg(t,e,r,n,i,a){var o=n+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-i,c=s*s-3*o*l,f=s*l-9*o*u,h=l*l-3*s*u,v=0;if(Za(c)&&Za(f))if(Za(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var p=f*f-4*c*h;if(Za(p)){var y=f/c,d=-s/o+y,g=-y/2;d>=0&&d<=1&&(a[v++]=d),g>=0&&g<=1&&(a[v++]=g)}else if(p>0){var m=co(p),_=c*s+1.5*o*(-f+m),S=c*s+1.5*o*(-f-m);_<0?_=-Kv(-_,Qv):_=Kv(_,Qv),S<0?S=-Kv(-S,Qv):S=Kv(S,Qv);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var w=(2*c*s-3*o*f)/(2*co(c*c*c)),x=Math.acos(w)/3,b=co(c),C=Math.cos(x),d=(-s-2*b*C)/(3*o),g=(-s+b*(C+dD*Math.sin(x)))/(3*o),T=(-s+b*(C-dD*Math.sin(x)))/(3*o);d>=0&&d<=1&&(a[v++]=d),g>=0&&g<=1&&(a[v++]=g),T>=0&&T<=1&&(a[v++]=T)}}return v}function OB(t,e,r,n,i){var a=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,l=0;if(Za(o)){if(kB(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(Za(c))i[0]=-a/(2*o);else if(c>0){var f=co(c),u=(-a+f)/(2*o),h=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function So(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,l=(n-r)*i+r,u=(s-o)*i+o,c=(l-s)*i+s,f=(c-u)*i+u;a[0]=t,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=c,a[6]=l,a[7]=n}function NB(t,e,r,n,i,a,o,s,l,u,c){var f,h=.005,v=1/0,d,p,y,g;bi[0]=l,bi[1]=u;for(var m=0;m<1;m+=.05)wn[0]=zt(t,r,i,o,m),wn[1]=zt(e,n,a,s,m),y=uo(bi,wn),y=0&&y=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(Za(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=co(c),u=(-o+f)/(2*a),h=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function BB(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function yh(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function zB(t,e,r,n,i,a,o,s,l){var u,c=.005,f=1/0;bi[0]=o,bi[1]=s;for(var h=0;h<1;h+=.05){wn[0]=Zt(t,r,i,h),wn[1]=Zt(e,n,a,h);var v=uo(bi,wn);v=0&&v=1?1:hg(0,n,a,1,l,s)&&zt(0,i,o,1,s[0])}}}var W7=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||wt,this.ondestroy=e.ondestroy||wt,this.onrestart=e.onrestart||wt,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=e-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=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ae(e)?e:EB[e]||Xb(e)},t}();const $7=W7;var FB=function(){function t(e){this.value=e}return t}(),Y7=function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new FB(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),j7=function(){function t(e){this._list=new Y7,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,i=this._map,a=null;if(i[e]==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 FB(r),s.key=e,n.insertEntry(s),i[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();const ov=j7;var gD={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 ti(t){return t=Math.round(t),t<0?0:t>255?255:t}function X7(t){return t=Math.round(t),t<0?0:t>360?360:t}function mh(t){return t<0?0:t>1?1:t}function _0(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?ti(parseFloat(e)/100*255):ti(parseInt(e,10))}function Ns(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?mh(parseFloat(e)/100):mh(parseFloat(e))}function S0(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function qa(t,e,r){return t+(e-t)*r}function dn(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function qS(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var VB=new ov(20),Jv=null;function ml(t,e){Jv&&qS(Jv,e),Jv=VB.put(t,Jv||e.slice())}function Ar(t,e){if(t){e=e||[];var r=VB.get(t);if(r)return qS(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in gD)return qS(e,gD[n]),ml(t,e),e;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)){dn(e,0,0,0,1);return}return dn(e,(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),ml(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){dn(e,0,0,0,1);return}return dn(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),ml(t,e),e}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(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?dn(e,+u[0],+u[1],+u[2],1):dn(e,0,0,0,1);c=Ns(u.pop());case"rgb":if(u.length>=3)return dn(e,_0(u[0]),_0(u[1]),_0(u[2]),u.length===3?c:Ns(u[3])),ml(t,e),e;dn(e,0,0,0,1);return;case"hsla":if(u.length!==4){dn(e,0,0,0,1);return}return u[3]=Ns(u[3]),KS(u,e),ml(t,e),e;case"hsl":if(u.length!==3){dn(e,0,0,0,1);return}return KS(u,e),ml(t,e),e;default:return}}dn(e,0,0,0,1)}}function KS(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=Ns(t[1]),i=Ns(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],dn(e,ti(S0(o,a,r+1/3)*255),ti(S0(o,a,r)*255),ti(S0(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function Z7(t){if(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),a=Math.max(e,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 c=((a-e)/6+o/2)/o,f=((a-r)/6+o/2)/o,h=((a-n)/6+o/2)/o;e===a?l=h-f:r===a?l=1/3+c-h:n===a&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return t[3]!=null&&v.push(t[3]),v}}function vg(t,e){var r=Ar(t);if(r){for(var n=0;n<3;n++)e<0?r[n]=r[n]*(1-e)|0:r[n]=(255-r[n])*e+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return ri(r,r.length===4?"rgba":"rgb")}}function q7(t){var e=Ar(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Ef(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){r=r||[];var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=e[i],s=e[a],l=n-i;return r[0]=ti(qa(o[0],s[0],l)),r[1]=ti(qa(o[1],s[1],l)),r[2]=ti(qa(o[2],s[2],l)),r[3]=mh(qa(o[3],s[3],l)),r}}var K7=Ef;function Zb(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=Ar(e[i]),s=Ar(e[a]),l=n-i,u=ri([ti(qa(o[0],s[0],l)),ti(qa(o[1],s[1],l)),ti(qa(o[2],s[2],l)),mh(qa(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}var Q7=Zb;function yu(t,e,r,n){var i=Ar(t);if(t)return i=Z7(i),e!=null&&(i[0]=X7(e)),r!=null&&(i[1]=Ns(r)),n!=null&&(i[2]=Ns(n)),ri(KS(i),"rgba")}function _h(t,e){var r=Ar(t);if(r&&e!=null)return r[3]=mh(e),ri(r,"rgba")}function ri(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function Sh(t,e){var r=Ar(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}function J7(){return ri([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const e9=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:Ef,fastMapToColor:K7,lerp:Zb,lift:vg,lum:Sh,mapToColor:Q7,modifyAlpha:_h,modifyHSL:yu,parse:Ar,random:J7,stringify:ri,toHex:q7},Symbol.toStringTag,{value:"Module"}));var dg=Math.round;function xh(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var r=Ar(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}return{color:t,opacity:e??1}}var yD=1e-4;function Ka(t){return t-yD}function ed(t){return dg(t*1e3)/1e3}function QS(t){return dg(t*1e4)/1e4}function t9(t){return"matrix("+ed(t[0])+","+ed(t[1])+","+ed(t[2])+","+ed(t[3])+","+QS(t[4])+","+QS(t[5])+")"}var r9={left:"start",right:"end",center:"middle",middle:"middle"};function n9(t,e,r){return r==="top"?t+=e/2:r==="bottom"&&(t-=e/2),t}function i9(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function a9(t){var e=t.style,r=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function GB(t){return t&&!!t.image}function o9(t){return t&&!!t.svgElement}function qb(t){return GB(t)||o9(t)}function HB(t){return t.type==="linear"}function UB(t){return t.type==="radial"}function WB(t){return t&&(t.type==="linear"||t.type==="radial")}function Fy(t){return"url(#"+t+")"}function $B(t){var e=t.getGlobalScale(),r=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function YB(t){var e=t.x||0,r=t.y||0,n=(t.rotation||0)*Lf,i=be(t.scaleX,1),a=be(t.scaleY,1),o=t.skewX||0,s=t.skewY||0,l=[];return(e||r)&&l.push("translate("+e+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+dg(o*Lf)+"deg, "+dg(s*Lf)+"deg)"),l.join(" ")}var s9=function(){return ze.hasGlobalWindow&&ae(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}}(),JS=Array.prototype.slice;function Yi(t,e,r){return(e-t)*r+t}function x0(t,e,r,n){for(var i=e.length,a=0;an?e:t,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var l=a;l=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=_D,l=r;if(ar(r)){var u=f9(r);s=u,(u===1&&!Fe(r[0])||u===2&&!Fe(r[0][0]))&&(o=!0)}else if(Fe(r)&&!ku(r))s=rd;else if(Z(r))if(!isNaN(+r))s=rd;else{var c=Ar(r);c&&(l=c,s=lf)}else if(nv(r)){var f=F({},l);f.colorStops=H(r.colorStops,function(v){return{offset:v.offset,color:Ar(v.color)}}),HB(r)?s=ex:UB(r)&&(s=tx),l=f}a===0?this.valType=s:(s!==this.valType||s===_D)&&(o=!0),this.discrete=this.discrete||o;var h={time:e,value:l,rawValue:r,percent:0};return n&&(h.easing=n,h.easingFunc=ae(n)?n:EB[n]||Xb(n)),i.push(h),h},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,y){return p.time-y.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=nd(i),u=SD(i),c=0;c=0&&!(o[c].percent<=r);c--);c=h(c,s-2)}else{for(c=f;cr);c++);c=h(c-1,s-2)}d=o[c+1],v=o[c]}if(v&&d){this._lastFr=c,this._lastFrP=r;var y=d.percent-v.percent,g=y===0?1:h((r-v.percent)/y,1);d.easingFunc&&(g=d.easingFunc(g));var m=n?this._additiveValue:u?Pc:e[l];if((nd(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=g<1?v.rawValue:d.rawValue;else if(nd(a))a===yp?x0(m,v[i],d[i],g):l9(m,v[i],d[i],g);else if(SD(a)){var _=v[i],S=d[i],w=a===ex;e[l]={type:w?"linear":"radial",x:Yi(_.x,S.x,g),y:Yi(_.y,S.y,g),colorStops:H(_.colorStops,function(b,C){var T=S.colorStops[C];return{offset:Yi(b.offset,T.offset,g),color:gp(x0([],b.color,T.color,g))}}),global:S.global},w?(e[l].x2=Yi(_.x2,S.x2,g),e[l].y2=Yi(_.y2,S.y2,g)):e[l].r=Yi(_.r,S.r,g)}else if(u)x0(m,v[i],d[i],g),n||(e[l]=gp(m));else{var x=Yi(v[i],d[i],g);n?this._additiveValue=x:e[l]=x}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===rd?e[n]=e[n]+i:r===lf?(Ar(e[n],Pc),td(Pc,Pc,i,1),e[n]=gp(Pc)):r===yp?td(e[n],e[n],i,1):r===jB&&mD(e[n],e[n],i,1)},t}(),v9=function(){function t(e,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&i){Ry("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,Ie(r),n)},t.prototype.whenWithKeys=function(e,r,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,Rf(u),i),this._trackKeys.push(s)}l.addKeyframe(e,Rf(r[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t}();const Kb=v9;function iu(){return new Date().getTime()}var d9=function(t){ut(e,t);function e(r){var n=t.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 e.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},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.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}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=iu()-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())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(XS(n),!r._paused&&r.update())}XS(n)},e.prototype.start=function(){this._running||(this._time=iu(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=iu(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=iu()-this._pauseStart,this._paused=!1)},e.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},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var i=new Kb(r,n.loop);return this.addAnimator(i),i},e}(kn);const p9=d9;var g9=300,w0=ze.domSupported,b0=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=H(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:n}}(),xD={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},wD=!1;function rx(t){var e=t.pointerType;return e==="pen"||e==="touch"}function y9(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function C0(t){t&&(t.zrByTouch=!0)}function m9(t,e){return pn(t.dom,new _9(t,e),!0)}function XB(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var _9=function(){function t(e,r){this.stopPropagation=wt,this.stopImmediatePropagation=wt,this.preventDefault=wt,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t}(),Un={mousedown:function(t){t=pn(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=pn(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=pn(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=pn(this.dom,t);var e=t.toElement||t.relatedTarget;XB(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){wD=!0,t=pn(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){wD||(t=pn(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=pn(this.dom,t),C0(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Un.mousemove.call(this,t),Un.mousedown.call(this,t)},touchmove:function(t){t=pn(this.dom,t),C0(t),this.handler.processGesture(t,"change"),Un.mousemove.call(this,t)},touchend:function(t){t=pn(this.dom,t),C0(t),this.handler.processGesture(t,"end"),Un.mouseup.call(this,t),+new Date-+this.__lastTouchMomentTD||t<-TD}var Ho=[],_l=[],A0=rn(),M0=Math.abs,T9=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Go(this.rotation)||Go(this.x)||Go(this.y)||Go(this.scaleX-1)||Go(this.scaleY-1)||Go(this.skewX)||Go(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&CD(n);return}n=n||rn(),r?this.getLocalTransform(n):CD(n),e&&(r?Ri(n,e,n):By(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Ho);var n=Ho[0]<0?-1:1,i=Ho[1]<0?-1:1,a=((Ho[0]-n)*r+n)/Ho[0]||0,o=((Ho[1]-i)*r+i)/Ho[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||rn(),ul(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(Ri(_l,e.invTransform,r),r=_l);var n=this.originX,i=this.originY;(n||i)&&(A0[4]=n,A0[5]=i,Ri(_l,r,A0),_l[4]-=n,_l[5]-=i,r=_l),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],i=this.invTransform;return i&&Kt(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&Kt(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&M0(e[0]-1)>1e-10&&M0(e[3]-1)>1e-10?Math.sqrt(M0(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){qB(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,f=e.y,h=e.skewX?Math.tan(e.skewX):0,v=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var d=n+s,p=i+l;r[4]=-d*a-h*p*o,r[5]=-p*o-v*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=v*a,r[2]=h*o,u&&Eo(r,r,u),r[4]+=n+c,r[5]+=i+f,r},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Oi=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function qB(t,e){for(var r=0;r=0?parseFloat(t)/100*e:parseFloat(t):t}function gg(t,e,r){var n=e.position||"inside",i=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,c="left",f="top";if(n instanceof Array)l+=si(n[0],r.width),u+=si(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+o,u+=s,f="middle";break;case"top":l+=o/2,u-=i,c="center",f="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=o-i,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,f="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",f="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=f,t}var D0="__zr_normal__",L0=Oi.concat(["ignore"]),A9=En(Oi,function(t,e){return t[e]=!0,t},{ignore:!1}),Sl={},M9=new Ce(0,0,0,0),Qb=function(){function t(e){this.id=Ub(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){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;if(a.copyTransform(r),n.position!=null){var c=M9;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Sl,n,c):gg(Sl,n,c),a.x=Sl.x,a.y=Sl.y,o=Sl.align,s=Sl.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var h=void 0,v=void 0;f==="center"?(h=c.width*.5,v=c.height*.5):(h=si(f[0],c.width),v=si(f[1],c.height)),u=!0,a.originX=-a.x+h+(i?0:c.x),a.originY=-a.y+v+(i?0:c.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,m=void 0,_=void 0;p&&this.canBeInsideText()?(g=n.insideFill,m=n.insideStroke,(g==null||g==="auto")&&(g=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(g),_=!0)):(g=n.outsideFill,m=n.outsideStroke,(g==null||g==="auto")&&(g=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(g),_=!0)),g=g||"#000",(g!==y.fill||m!==y.stroke||_!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=g,y.stroke=m,y.autoStroke=_,y.align=o,y.verticalAlign=s,r.setDefaultTextStyle(y)),r.__dirty|=Zr,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ox:ax},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Ar(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,ri(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},F(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(se(e))for(var n=e,i=Ie(n),a=0;a0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(D0,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===D0,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(Te(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){Ry("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,h=this._textGuide;return f&&f.useState(e,r,n,c),h&&h.useState(e,r,n,c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Zr),u}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l0,d);var p=this._textContent,y=this._textGuide;p&&p.useStates(e,r,h),y&&y.useStates(e,r,h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Zr)}},t.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var i=this.currentStates.slice(),a=Te(i,e),o=Te(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,i=n.length,a=[],o=0;o0&&r.during&&a[0].during(function(d,p){r.during(p)});for(var h=0;h0||i.force&&!o.length){var C=void 0,T=void 0,A=void 0;if(s){T={},h&&(C={});for(var S=0;S<_;S++){var g=p[S];T[g]=r[g],h?C[g]=n[g]:r[g]=n[g]}}else if(h){A={};for(var S=0;S<_;S++){var g=p[S];A[g]=Rf(r[g]),L9(r,n,g)}}var w=new Kb(r,!1,!1,f?Ye(d,function(L){return L.targetName===e}):null);w.targetName=e,i.scope&&(w.scope=i.scope),h&&C&&w.whenWithKeys(0,C,p),A&&w.whenWithKeys(0,A,p),w.whenWithKeys(u??500,s?T:n,p).delay(c||0),t.addAnimator(w,e),o.push(w)}}const QB=Qb;var JB=function(t){ut(e,t);function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,i=0;i=0&&(i.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var i=Te(this._children,r);return i>=0&&this.replaceAt(n,i),this},e.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},e.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()},e.prototype.remove=function(r){var n=this.__zr,i=this._children,a=Te(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},t.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this.handler.off(e,r)},t.prototype.trigger=function(e,r){this.handler.trigger(e,r)},t.prototype.clear=function(){for(var e=this.storage.getRoots(),r=0;r0){if(t<=i)return o;if(t>=a)return s}else{if(t>=i)return o;if(t<=a)return s}else{if(t===i)return o;if(t===a)return s}return(t-i)/l*u+o}function j(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return Z(t)?V9(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function gt(t,e,r){return e==null&&(e=10),e=Math.min(Math.max(0,e),tz),t=(+t).toFixed(e),r?t:+t}function Qr(t){return t.sort(function(e,r){return e-r}),t}function Kn(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Math.round(t*e)/e===t)return r}return rz(t)}function rz(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,i=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function Jb(t,e){var r=Math.log,n=Math.LN10,i=Math.floor(r(t[1]-t[0])/n),a=Math.round(r(Math.abs(e[1]-e[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function G9(t,e,r){if(!t[e])return 0;var n=nz(t,r);return n[e]||0}function nz(t,e){var r=En(t,function(v,d){return v+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Math.pow(10,e),i=H(t,function(v){return(isNaN(v)?0:v)/r*n*100}),a=n*100,o=H(i,function(v){return Math.floor(v)}),s=En(o,function(v,d){return v+d},0),l=H(i,function(v,d){return v-o[d]});su&&(u=l[f],c=f);++o[c],l[c]=0,++s}return H(o,function(v){return v/n})}function H9(t,e){var r=Math.max(Kn(t),Kn(e)),n=t+e;return r>tz?n:gt(n,r)}var lx=9007199254740991;function eC(t){var e=Math.PI*2;return(t%e+e)%e}function wh(t){return t>-DD&&t=10&&e++,e}function tC(t,e){var r=Gy(t),n=Math.pow(10,r),i=t/n,a;return e?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,t=a*n,r>=-20?+t.toFixed(r<0?-r:0):t}function Sp(t,e){var r=(t.length-1)*e+1,n=Math.floor(r),i=+t[n-1],a=r-n;return a?i+a*(t[n]-i):i}function ux(t){t.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,r=1,n=0;n=0||a&&Te(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var vY=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],dY=Js(vY),pY=function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return dY(this,e,r)},t}(),fx=new ov(50);function gY(t){if(typeof t=="string"){var e=fx.get(t);return e&&e.image}else return t}function oC(t,e,r,n,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=fx.get(t),o={hostEl:r,cb:n,cbPayload:i};return a?(e=a.image,!Uy(e)&&a.pending.push(o)):(e=ai.loadImage(t,ED,ED),e.__zrImageSrc=t,fx.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function ED(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=en(r,e);return u>s&&(r="",u=0),s=t-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=t,i}function yz(t,e){var r=e.containerWidth,n=e.font,i=e.contentWidth;if(!r)return"";var a=en(t,n);if(a<=r)return t;for(var o=0;;o++){if(a<=i||o>=e.maxIterations){t+=e.ellipsis;break}var s=o===0?yY(t,i,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*i/a):0;t=t.substr(0,s),a=en(t,n)}return t===""&&(t=e.placeholder),t}function yY(t,e,r,n){for(var i=0,a=0,o=t.length;av&&u){var d=Math.floor(v/s);f=f.slice(0,d)}if(t&&a&&c!=null)for(var p=gz(c,i,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y=0;ys&&R0(r,t.substring(s,u),e,o),R0(r,l[2],e,o,l[1]),s=E0.lastIndex}si){w>0?(m.tokens=m.tokens.slice(0,w),y(m,S,_),r.lines=r.lines.slice(0,g+1)):r.lines=r.lines.slice(0,g);break e}var L=b.width,P=L==null||L==="auto";if(typeof L=="string"&&L.charAt(L.length-1)==="%")x.percentWidth=L,c.push(x),x.contentWidth=en(x.text,A);else{if(P){var I=b.backgroundColor,E=I&&I.image;E&&(E=gY(E),Uy(E)&&(x.width=Math.max(x.width,E.width*D/E.height)))}var k=d&&n!=null?n-S:null;k!=null&&k0&&d+n.accumWidth>n.width&&(c=e.split(` -`),u=!0),n.accumWidth=d}else{var p=mz(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+v,f=p.linesWidths,c=p.lines}}else c=e.split(` -`);for(var y=0;y=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var bY=En(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function CY(t){return wY(t)?!!bY[t]:!0}function mz(t,e,r,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,f=0;fr:i+c+v>r){c?(s||l)&&(d?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=h,u+=v,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=h,c=v)):d?(a.push(l),o.push(u),l=h,u=v):(a.push(h),o.push(v));continue}c+=v,d?(l+=h,u+=v):(l&&(s+=l,l="",u=0),s+=h)}return!a.length&&!s&&(s=t,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var hx="__zr_style_"+Math.round(Math.random()*10),Bs={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Wy={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Bs[hx]=!0;var kD=["z","z2","invisible"],TY=["invisible"],AY=function(t){ut(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=Ie(r),i=0;i1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if(id[0]=B0(i)*r+t,id[1]=N0(i)*n+e,ad[0]=B0(a)*r+t,ad[1]=N0(a)*n+e,u(s,id,ad),c(l,id,ad),i=i%Wo,i<0&&(i=i+Wo),a=a%Wo,a<0&&(a=a+Wo),i>a&&!o?a+=Wo:ii&&(od[0]=B0(v)*r+t,od[1]=N0(v)*n+e,u(s,od,s),c(l,od,l))}var et={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},$o=[],Yo=[],vi=[],La=[],di=[],pi=[],z0=Math.min,F0=Math.max,jo=Math.cos,Xo=Math.sin,Gi=Math.abs,vx=Math.PI,Ba=vx*2,V0=typeof Float32Array<"u",Ic=[];function G0(t){var e=Math.round(t/vx*1e8)/1e8;return e%2*vx}function _z(t,e){var r=G0(t[0]);r<0&&(r+=Ba);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=Ba?i=r+Ba:e&&r-i>=Ba?i=r-Ba:!e&&r>i?i=r+(Ba-G0(r-i)):e&&r0&&(this._ux=Gi(n/pg/e)||0,this._uy=Gi(n/pg/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(et.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=Gi(e-this._xi),i=Gi(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(et.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){return this._drawPendingPt(),this.addData(et.C,e,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,i,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,i){return this._drawPendingPt(),this.addData(et.Q,e,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(e,r,n,i,a,o){this._drawPendingPt(),Ic[0]=i,Ic[1]=a,_z(Ic,o),i=Ic[0],a=Ic[1];var s=a-i;return this.addData(et.A,e,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,i,a,o),this._xi=jo(a)*n+e,this._yi=Xo(a)*n+r,this},t.prototype.arcTo=function(e,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,i,a),this},t.prototype.rect=function(e,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,i),this.addData(et.R,e,r,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(et.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var r=e.length;!(this.data&&this.data.length===r)&&V0&&(this.data=new Float32Array(r));for(var n=0;nc.length&&(this._expandData(),c=this.data);for(var f=0;f0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){vi[0]=vi[1]=di[0]=di[1]=Number.MAX_VALUE,La[0]=La[1]=pi[0]=pi[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||Gi(_)>i||h===r-1)&&(p=Math.sqrt(m*m+_*_),a=y,o=g);break}case et.C:{var S=e[h++],w=e[h++],y=e[h++],g=e[h++],x=e[h++],b=e[h++];p=V7(a,o,S,w,y,g,x,b,10),a=x,o=b;break}case et.Q:{var S=e[h++],w=e[h++],y=e[h++],g=e[h++];p=H7(a,o,S,w,y,g,10),a=y,o=g;break}case et.A:var C=e[h++],T=e[h++],A=e[h++],D=e[h++],L=e[h++],P=e[h++],I=P+L;h+=1,e[h++],d&&(s=jo(L)*A+C,l=Xo(L)*D+T),p=F0(A,D)*z0(Ba,Math.abs(P)),a=jo(I)*A+C,o=Xo(I)*D+T;break;case et.R:{s=a=e[h++],l=o=e[h++];var E=e[h++],k=e[h++];p=E*2+k*2;break}case et.Z:{var m=s-a,_=l-o;p=Math.sqrt(m*m+_*_),a=s,o=l;break}}p>=0&&(u[f++]=p,c+=p)}return this._pathLen=c,c},t.prototype.rebuildPath=function(e,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,f,h,v=r<1,d,p,y=0,g=0,m,_=0,S,w;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=r*p,!m)))e:for(var x=0;x0&&(e.lineTo(S,w),_=0),b){case et.M:s=u=n[x++],l=c=n[x++],e.moveTo(u,c);break;case et.L:{f=n[x++],h=n[x++];var T=Gi(f-u),A=Gi(h-c);if(T>i||A>a){if(v){var D=d[g++];if(y+D>m){var L=(m-y)/D;e.lineTo(u*(1-L)+f*L,c*(1-L)+h*L);break e}y+=D}e.lineTo(f,h),u=f,c=h,_=0}else{var P=T*T+A*A;P>_&&(S=f,w=h,_=P)}break}case et.C:{var I=n[x++],E=n[x++],k=n[x++],B=n[x++],R=n[x++],O=n[x++];if(v){var D=d[g++];if(y+D>m){var L=(m-y)/D;So(u,I,k,R,L,$o),So(c,E,B,O,L,Yo),e.bezierCurveTo($o[1],Yo[1],$o[2],Yo[2],$o[3],Yo[3]);break e}y+=D}e.bezierCurveTo(I,E,k,B,R,O),u=R,c=O;break}case et.Q:{var I=n[x++],E=n[x++],k=n[x++],B=n[x++];if(v){var D=d[g++];if(y+D>m){var L=(m-y)/D;yh(u,I,k,L,$o),yh(c,E,B,L,Yo),e.quadraticCurveTo($o[1],Yo[1],$o[2],Yo[2]);break e}y+=D}e.quadraticCurveTo(I,E,k,B),u=k,c=B;break}case et.A:var z=n[x++],V=n[x++],Y=n[x++],re=n[x++],te=n[x++],ve=n[x++],Me=n[x++],me=!n[x++],ue=Y>re?Y:re,De=Gi(Y-re)>.001,xe=te+ve,ne=!1;if(v){var D=d[g++];y+D>m&&(xe=te+ve*(m-y)/D,ne=!0),y+=D}if(De&&e.ellipse?e.ellipse(z,V,Y,re,Me,te,xe,me):e.arc(z,V,ue,te,xe,me),ne)break e;C&&(s=jo(te)*Y+z,l=Xo(te)*re+V),u=jo(xe)*Y+z,c=Xo(xe)*re+V;break;case et.R:s=u=n[x],l=c=n[x+1],f=n[x++],h=n[x++];var de=n[x++],rt=n[x++];if(v){var D=d[g++];if(y+D>m){var Ee=m-y;e.moveTo(f,h),e.lineTo(f+z0(Ee,de),h),Ee-=de,Ee>0&&e.lineTo(f+de,h+z0(Ee,rt)),Ee-=rt,Ee>0&&e.lineTo(f+F0(de-Ee,0),h+rt),Ee-=de,Ee>0&&e.lineTo(f,h+F0(rt-Ee,0));break e}y+=D}e.rect(f,h,de,rt);break;case et.Z:if(v){var D=d[g++];if(y+D>m){var L=(m-y)/D;e.lineTo(u*(1-L)+s*L,c*(1-L)+l*L);break e}y+=D}e.closePath(),u=s,c=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.CMD=et,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();const Bi=IY;function Ha(t,e,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=t;if(o>e+s&&o>n+s||ot+s&&a>r+s||ae+f&&c>n+f&&c>a+f&&c>s+f||ct+f&&u>r+f&&u>i+f&&u>o+f||ue+u&&l>n+u&&l>a+u||lt+u&&s>r+u&&s>i+u||sr||c+ui&&(i+=Ec);var h=Math.atan2(l,s);return h<0&&(h+=Ec),h>=n&&h<=i||h+Ec>=n&&h+Ec<=i}function ji(t,e,r,n,i,a){if(a>e&&a>n||ai?s:0}var Pa=Bi.CMD,Zo=Math.PI*2,kY=1e-4;function OY(t,e){return Math.abs(t-e)e&&u>n&&u>a&&u>s||u1&&NY(),v=zt(e,n,a,s,mn[0]),h>1&&(d=zt(e,n,a,s,mn[1]))),h===2?ye&&s>n&&s>a||s=0&&u<=1){for(var c=0,f=Zt(e,n,a,u),h=0;hr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);wr[0]=-l,wr[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Zo-1e-4){n=0,i=Zo;var c=a?1:-1;return o>=wr[0]+t&&o<=wr[1]+t?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=Zo,i+=Zo);for(var h=0,v=0;v<2;v++){var d=wr[v];if(d+t>o){var p=Math.atan2(s,d),c=a?1:-1;p<0&&(p=Zo+p),(p>=n&&p<=i||p+Zo>=n&&p+Zo<=i)&&(p>Math.PI/2&&p1&&(r||(s+=ji(l,u,c,f,n,i))),y&&(l=a[d],u=a[d+1],c=l,f=u),p){case Pa.M:c=a[d++],f=a[d++],l=c,u=f;break;case Pa.L:if(r){if(Ha(l,u,a[d],a[d+1],e,n,i))return!0}else s+=ji(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Pa.C:if(r){if(EY(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=BY(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 Pa.Q:if(r){if(Sz(l,u,a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=zY(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Pa.A:var g=a[d++],m=a[d++],_=a[d++],S=a[d++],w=a[d++],x=a[d++];d+=1;var b=!!(1-a[d++]);h=Math.cos(w)*_+g,v=Math.sin(w)*S+m,y?(c=h,f=v):s+=ji(l,u,h,v,n,i);var C=(n-g)*S/_+g;if(r){if(RY(g,m,S,w,w+x,b,e,C,i))return!0}else s+=FY(g,m,S,w,w+x,b,C,i);l=Math.cos(w+x)*_+g,u=Math.sin(w+x)*S+m;break;case Pa.R:c=l=a[d++],f=u=a[d++];var T=a[d++],A=a[d++];if(h=c+T,v=f+A,r){if(Ha(c,f,h,f,e,n,i)||Ha(h,f,h,v,e,n,i)||Ha(h,v,c,v,e,n,i)||Ha(c,v,c,f,e,n,i))return!0}else s+=ji(h,f,h,v,n,i),s+=ji(c,v,c,f,n,i);break;case Pa.Z:if(r){if(Ha(l,u,c,f,e,n,i))return!0}else s+=ji(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!OY(u,f)&&(s+=ji(l,u,c,f,n,i)||0),s!==0}function VY(t,e,r){return xz(t,0,!1,e,r)}function GY(t,e,r,n){return xz(t,e,!0,r,n)}var yg=oe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Bs),HY={style:oe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Wy.style)},H0=Oi.concat(["invisible","culling","z","z2","zlevel","parent"]),UY=function(t){ut(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.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.5?ax:n>.2?C9:ox}else if(r)return ox}return ax},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Z(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Sh(r,0)0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.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&Fl)&&(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 c=this.strokeContainThreshold;u=Math.max(u,c??4)}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},e.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)),GY(s,l/u,r,n)))return!0}if(this.hasFill())return VY(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Fl,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:F(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Fl)},e.prototype.createStyle=function(r){return iv(yg,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=F({},this.shape))},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=F({},i.shape),F(u,n.shape)):(u=F({},a?this.shape:i.shape),F(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=F({},this.shape);for(var c={},f=Ie(u),h=0;h0},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return iv(WY,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=sv(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},e.initDefaultProps=function(){var r=e.prototype;r.dirtyRectTolerance=10}(),e}(Rn);wz.prototype.type="tspan";const Ch=wz;var $Y=oe({x:0,y:0},Bs),YY={style:oe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Wy.style)};function jY(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var bz=function(t){ut(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return iv($Y,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=jY(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},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return YY},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Ce(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Rn);bz.prototype.type="image";const Qt=bz;function XY(t,e){var r=e.x,n=e.y,i=e.width,a=e.height,o=e.r,s,l,u,c;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>i&&(f=s+l,s*=i/f,l*=i/f),u+c>i&&(f=u+c,u*=i/f,c*=i/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+c>a&&(f=s+c,s*=a/f,c*=a/f),t.moveTo(r+s,n),t.lineTo(r+i-l,n),l!==0&&t.arc(r+i-l,n+l,l,-Math.PI/2,0),t.lineTo(r+i,n+a-u),u!==0&&t.arc(r+i-u,n+a-u,u,0,Math.PI/2),t.lineTo(r+c,n+a),c!==0&&t.arc(r+c,n+a-c,c,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var au=Math.round;function Cz(t,e,r){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;t.x1=n,t.x2=i,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(au(n*2)===au(i*2)&&(t.x1=t.x2=Ms(n,s,!0)),au(a*2)===au(o*2)&&(t.y1=t.y2=Ms(a,s,!0))),t}}function Tz(t,e,r){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;t.x=n,t.y=i,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=Ms(n,s,!0),t.y=Ms(i,s,!0),t.width=Math.max(Ms(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(Ms(i+o,s,!1)-t.y,o===0?0:1)),t}}function Ms(t,e,r){if(!e)return t;var n=au(t*2);return(n+au(e))%2===0?n/2:(n+(r?1:-1))/2}var ZY=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),qY={},Az=function(t){ut(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new ZY},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=Tz(qY,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?XY(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Pe);Az.prototype.type="rect";const Ne=Az;var FD={fill:"#000"},VD=2,KY={style:oe({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},Wy.style)},Mz=function(t){ut(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=FD,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,L=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),P=o.calculatedLineHeight,I=0;I=0&&(I=x[P],I.align==="right");)this._placeToken(I,r,C,g,L,"right",_),T-=I.width,L-=I.width,P--;for(D+=(a-(D-y)-(m-L)-T)/2;A<=P;)I=x[A],this._placeToken(I,r,C,g,D+I.width/2,"center",_),D+=I.width,A++;g+=C}},e.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=a+i/2;c==="top"?f=a+r.height/2:c==="bottom"&&(f=a+i-r.height/2);var h=!r.isLineHolder&&U0(u);h&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var v=!!u.backgroundColor,d=r.textPadding;d&&(o=YD(o,s,d),f-=r.height/2-d[0]-r.innerHeight/2);var p=this._getOrCreateChild(Ch),y=p.createStyle();p.useStyle(y);var g=this._defaultStyle,m=!1,_=0,S=$D("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,g.fill)),w=WD("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!g.autoStroke||m)?(_=VD,g.stroke):null),x=u.textShadowBlur>0||n.textShadowBlur>0;y.text=r.text,y.x=o,y.y=f,x&&(y.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,y.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",y.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,y.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),y.textAlign=s,y.textBaseline="middle",y.font=r.font||_o,y.opacity=Ii(u.opacity,n.opacity,1),HD(y,u),w&&(y.lineWidth=Ii(u.lineWidth,n.lineWidth,_),y.lineDash=be(u.lineDash,n.lineDash),y.lineDashOffset=n.lineDashOffset||0,y.stroke=w),S&&(y.fill=S);var b=r.contentWidth,C=r.contentHeight;p.setBoundingRect(new Ce(uf(y.x,b,y.textAlign),Vl(y.y,C,y.textBaseline),b,C))},e.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,h=l&&!f,v=r.borderRadius,d=this,p,y;if(h||r.lineHeight||u&&c){p=this._getOrCreateChild(Ne),p.useStyle(p.createStyle()),p.style.fill=null;var g=p.shape;g.x=i,g.y=a,g.width=o,g.height=s,g.r=v,p.dirtyShape()}if(h){var m=p.style;m.fill=l||null,m.fillOpacity=be(r.fillOpacity,1)}else if(f){y=this._getOrCreateChild(Qt),y.onload=function(){d.dirtyStyle()};var _=y.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&c){var m=p.style;m.lineWidth=u,m.stroke=c,m.strokeOpacity=be(r.strokeOpacity,1),m.lineDash=r.borderDash,m.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||y).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=Ii(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return Lz(r)&&(n=[r.fontStyle,r.fontWeight,Dz(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&An(n)||r.textFont||r.font},e}(Rn),QY={left:!0,right:1,center:1},JY={top:1,bottom:1,middle:1},GD=["fontStyle","fontWeight","fontSize","fontFamily"];function Dz(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?Vb+"px":t+"px"}function HD(t,e){for(var r=0;r=0,a=!1;if(t instanceof Pe){var o=Pz(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(xl(s)||xl(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=F({},n),u=F({},u),u.fill=s):!xl(u.fill)&&xl(s)?(a=!0,n=F({},n),u=F({},u),u.fill=KD(s)):!xl(u.stroke)&&xl(l)&&(a||(n=F({},n),u=F({},u)),u.stroke=KD(l)),n.style=u}}if(n&&n.z2==null){a||(n=F({},n));var c=t.z2EmphasisLift;n.z2=t.z2+(c??Ku)}return n}function oj(t,e,r){if(r&&r.z2==null){r=F({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??tj)}return r}function sj(t,e,r){var n=Te(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:ij(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=F({},r),o=F({opacity:n?i:a.opacity*.1},o),r.style=o),r}function W0(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return aj(this,t,e,r);if(t==="blur")return sj(this,t,r);if(t==="select")return oj(this,t,r)}return r}function el(t){t.stateProxy=W0;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=W0),r&&(r.stateProxy=W0)}function JD(t,e){!Bz(t,e)&&!t.__highByOuter&&wa(t,Iz)}function e2(t,e){!Bz(t,e)&&!t.__highByOuter&&wa(t,Ez)}function da(t,e){t.__highByOuter|=1<<(e||0),wa(t,Iz)}function pa(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&wa(t,Ez)}function kz(t){wa(t,uC)}function cC(t){wa(t,Rz)}function Oz(t){wa(t,rj)}function Nz(t){wa(t,nj)}function Bz(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function zz(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=sC(a),s=i==="series",l=s?t.getViewOfSeriesModel(a):t.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){Rz(u)}),s&&r.push(a)),o.isBlured=!1}),M(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function px(t,e,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,c){for(var f=0;f0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function fo(t,e,r){Ds(t,!0),wa(t,el),yx(t,e,r)}function vj(t){Ds(t,!1)}function yt(t,e,r,n){n?vj(t):fo(t,e,r)}function yx(t,e,r){var n=pe(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var r2=["emphasis","blur","select"],dj={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function or(t,e,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=$0(d),s*=$0(d));var p=(i===a?-1:1)*$0((o*o*(s*s)-o*o*(v*v)-s*s*(h*h))/(o*o*(v*v)+s*s*(h*h)))||0,y=p*o*v/s,g=p*-s*h/o,m=(t+r)/2+ld(f)*y-sd(f)*g,_=(e+n)/2+sd(f)*y+ld(f)*g,S=o2([1,0],[(h-y)/o,(v-g)/s]),w=[(h-y)/o,(v-g)/s],x=[(-1*h-y)/o,(-1*v-g)/s],b=o2(w,x);if(_x(w,x)<=-1&&(b=Rc),_x(w,x)>=1&&(b=0),b<0){var C=Math.round(b/Rc*1e6)/1e6;b=Rc*2+C%2*Rc}c.addData(u,m,_,o,s,S,b,f,a)}var Sj=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,xj=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function wj(t){var e=new Bi;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=Bi.CMD,l=t.match(Sj);if(!l)return e;for(var u=0;uI*I+E*E&&(C=A,T=D),{cx:C,cy:T,x0:-c,y0:-f,x1:C*(i/w-1),y1:T*(i/w-1)}}function Lj(t){var e;if(G(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function Pj(t,e){var r,n=cf(e.r,0),i=cf(e.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=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,f=e.cy,h=!!e.clockwise,v=l2(u-l),d=v>Y0&&v%Y0;if(d>Hn&&(v=d),!(n>Hn))t.moveTo(c,f);else if(v>Y0-Hn)t.moveTo(c+n*bl(l),f+n*qo(l)),t.arc(c,f,n,l,u,!h),i>Hn&&(t.moveTo(c+i*bl(u),f+i*qo(u)),t.arc(c,f,i,u,l,h));else{var p=void 0,y=void 0,g=void 0,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0,b=void 0,C=void 0,T=void 0,A=void 0,D=void 0,L=void 0,P=void 0,I=void 0,E=n*bl(l),k=n*qo(l),B=i*bl(u),R=i*qo(u),O=v>Hn;if(O){var z=e.cornerRadius;z&&(r=Lj(z),p=r[0],y=r[1],g=r[2],m=r[3]);var V=l2(n-i)/2;if(_=gi(V,g),S=gi(V,m),w=gi(V,p),x=gi(V,y),T=b=cf(_,S),A=C=cf(w,x),(b>Hn||C>Hn)&&(D=n*bl(u),L=n*qo(u),P=i*bl(l),I=i*qo(l),vHn){var De=gi(g,T),xe=gi(m,T),ne=ud(P,I,E,k,n,De,h),de=ud(D,L,B,R,n,xe,h);t.moveTo(c+ne.cx+ne.x0,f+ne.cy+ne.y0),T0&&t.arc(c+ne.cx,f+ne.cy,De,fr(ne.y0,ne.x0),fr(ne.y1,ne.x1),!h),t.arc(c,f,n,fr(ne.cy+ne.y1,ne.cx+ne.x1),fr(de.cy+de.y1,de.cx+de.x1),!h),xe>0&&t.arc(c+de.cx,f+de.cy,xe,fr(de.y1,de.x1),fr(de.y0,de.x0),!h))}else t.moveTo(c+E,f+k),t.arc(c,f,n,l,u,!h);if(!(i>Hn)||!O)t.lineTo(c+B,f+R);else if(A>Hn){var De=gi(p,A),xe=gi(y,A),ne=ud(B,R,D,L,i,-xe,h),de=ud(E,k,P,I,i,-De,h);t.lineTo(c+ne.cx+ne.x0,f+ne.cy+ne.y0),A0&&t.arc(c+ne.cx,f+ne.cy,xe,fr(ne.y0,ne.x0),fr(ne.y1,ne.x1),!h),t.arc(c,f,i,fr(ne.cy+ne.y1,ne.cx+ne.x1),fr(de.cy+de.y1,de.cx+de.x1),h),De>0&&t.arc(c+de.cx,f+de.cy,De,fr(de.y1,de.x1),fr(de.y0,de.x0),!h))}else t.lineTo(c+B,f+R),t.arc(c,f,i,u,l,h)}t.closePath()}}}var Ij=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t}(),jz=function(t){ut(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new Ij},e.prototype.buildPath=function(r,n){Pj(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Pe);jz.prototype.type="sector";const Dr=jz;var Ej=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),Xz=function(t){ut(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new Ej},e.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)},e}(Pe);Xz.prototype.type="ring";const cv=Xz;function Rj(t,e,r,n){var i=[],a=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var h=0,v=t.length;h=2){if(n){var a=Rj(i,n,r,e.smoothConstraint);t.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],c=i[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;sQo[1]){if(s=!1,a)return s;var c=Math.abs(Qo[0]-Ko[1]),f=Math.abs(Ko[0]-Qo[1]);Math.min(c,f)>i.len()&&(c0){var f=c.duration,h=c.delay,v=c.easing,d={duration:f,delay:h||0,easing:v,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function Ge(t,e,r,n,i,a){dC("update",t,e,r,n,i,a)}function lt(t,e,r,n,i,a){dC("enter",t,e,r,n,i,a)}function mu(t){if(!t.__zr)return!0;for(var e=0;eMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function f2(t){return!t.isGroup}function qj(t){return t.shape!=null}function vv(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){f2(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return qj(o)&&(s.shape=F({},o.shape)),s}var a=n(t);e.traverse(function(o){if(f2(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Ge(o,l,r,pe(o).dataIndex)}}})}function yC(t,e){return H(t,function(r){var n=r[0];n=Sg(n,e.x),n=xg(n,e.x+e.width);var i=r[1];return i=Sg(i,e.y),i=xg(i,e.y+e.height),[n,i]})}function s5(t,e){var r=Sg(t.x,e.x),n=xg(t.x+t.width,e.x+e.width),i=Sg(t.y,e.y),a=xg(t.y+t.height,e.y+e.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function ec(t,e,r){var n=F({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),oe(i,r),new Qt(n)):hv(t.replace("path://",""),n,r,"center")}function ff(t,e,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var y=j0(v,d,c,f)/h;return!(y<0||y>1)}function j0(t,e,r,n){return t*n-r*e}function Kj(t){return t<=1e-6&&t>=-1e-6}function tc(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=Z(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&M(Ie(l),function(c){ee(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=pe(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:oe({content:n,formatterParams:s},i)}}function h2(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Ro(t,e){if(t)if(G(t))for(var r=0;r=0&&s.push(l)}),s}}function ko(t,e){return Se(Se({},t,!0),e,!0)}const cX={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"}},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:". "}}}},fX={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:"旭日图"}},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 bg="ZH",mC="EN",Dh=mC,Cp={},_C={},p5=ze.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(bg)>-1?bg:Dh}():Dh;function SC(t,e){t=t.toUpperCase(),_C[t]=new qe(e),Cp[t]=e}function hX(t){if(Z(t)){var e=Cp[t.toUpperCase()]||{};return t===bg||t===mC?le(e):Se(le(e),le(Cp[Dh]),!1)}else return Se(le(t),le(Cp[Dh]),!1)}function bx(t){return _C[t]}function vX(){return _C[Dh]}SC(mC,cX);SC(bg,fX);var xC=1e3,wC=xC*60,Ff=wC*60,Cn=Ff*24,y2=Cn*365,hf={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},hd="{yyyy}-{MM}-{dd}",m2={year:"{yyyy}",month:"{yyyy}-{MM}",day:hd,hour:hd+" "+hf.hour,minute:hd+" "+hf.minute,second:hd+" "+hf.second,millisecond:hf.none},q0=["year","month","day","hour","minute","second","millisecond"],g5=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Or(t,e){return t+="","0000".substr(0,e-t.length)+t}function _u(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function dX(t){return t===_u(t)}function pX(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function pv(t,e,r,n){var i=nn(t),a=i[bC(r)](),o=i[Su(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[em(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[Lh(r)](),f=(c-1)%12+1,h=i[tm(r)](),v=i[rm(r)](),d=i[nm(r)](),p=n instanceof qe?n:bx(n||p5)||vX(),y=p.getModel("time"),g=y.get("month"),m=y.get("monthAbbr"),_=y.get("dayOfWeek"),S=y.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,a%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,g[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,Or(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Or(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Or(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Or(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Or(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Or(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Or(d,3)).replace(/{S}/g,d+"")}function gX(t,e,r,n,i){var a=null;if(Z(r))a=r;else if(ae(r))a=r(t.value,e,{level:t.level});else{var o=F({},hf);if(t.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(G(a)){var f=t.level==null?0:t.level>=0?t.level:a.length+t.level;f=Math.min(f,a.length-1),a=a[f]}}return pv(new Date(t.value),a,i,n)}function y5(t,e){var r=nn(t),n=r[Su(e)]()+1,i=r[em(e)](),a=r[Lh(e)](),o=r[tm(e)](),s=r[rm(e)](),l=r[nm(e)](),u=l===0,c=u&&s===0,f=c&&o===0,h=f&&a===0,v=h&&i===1,d=v&&n===1;return d?"year":v?"month":h?"day":f?"hour":c?"minute":u?"second":"millisecond"}function _2(t,e,r){var n=Fe(t)?nn(t):t;switch(e=e||y5(t,r),e){case"year":return n[bC(r)]();case"half-year":return n[Su(r)]()>=6?1:0;case"quarter":return Math.floor((n[Su(r)]()+1)/4);case"month":return n[Su(r)]();case"day":return n[em(r)]();case"half-day":return n[Lh(r)]()/24;case"hour":return n[Lh(r)]();case"minute":return n[tm(r)]();case"second":return n[rm(r)]();case"millisecond":return n[nm(r)]()}}function bC(t){return t?"getUTCFullYear":"getFullYear"}function Su(t){return t?"getUTCMonth":"getMonth"}function em(t){return t?"getUTCDate":"getDate"}function Lh(t){return t?"getUTCHours":"getHours"}function tm(t){return t?"getUTCMinutes":"getMinutes"}function rm(t){return t?"getUTCSeconds":"getSeconds"}function nm(t){return t?"getUTCMilliseconds":"getMilliseconds"}function yX(t){return t?"setUTCFullYear":"setFullYear"}function m5(t){return t?"setUTCMonth":"setMonth"}function _5(t){return t?"setUTCDate":"setDate"}function S5(t){return t?"setUTCHours":"setHours"}function x5(t){return t?"setUTCMinutes":"setMinutes"}function w5(t){return t?"setUTCSeconds":"setSeconds"}function b5(t){return t?"setUTCMilliseconds":"setMilliseconds"}function mX(t,e,r,n,i,a,o,s){var l=new Oe({style:{text:t,font:e,align:r,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function CC(t){if(!rC(t))return Z(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function TC(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var fl=Ny;function Cx(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&An(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?nn(t):t;if(isNaN(+l)){if(s)return"-"}else return pv(l,n,r)}if(e==="ordinal")return lg(t)?i(t):Fe(t)&&a(t)?t+"":"-";var u=Ni(t);return a(u)?CC(u):lg(t)?i(t):typeof t=="boolean"?t+"":"-"}var S2=["a","b","c","d","e","f","g"],K0=function(t,e){return"{"+t+(e??"")+"}"};function AC(t,e,r){G(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a':'';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 SX(t,e,r){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd -yyyy`);var n=nn(e),i=r?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),l=n[i+"Hours"](),u=n[i+"Minutes"](),c=n[i+"Seconds"](),f=n[i+"Milliseconds"]();return t=t.replace("MM",Or(o,2)).replace("M",o).replace("yyyy",a).replace("yy",Or(a%100+"",2)).replace("dd",Or(s,2)).replace("d",s).replace("hh",Or(l,2)).replace("h",l).replace("mm",Or(u,2)).replace("m",u).replace("ss",Or(c,2)).replace("s",c).replace("SSS",Or(f,3)),t}function xX(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function tl(t,e){return e=e||"transparent",Z(t)?t:se(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Cg(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var Tp=M,T5=["left","right","top","bottom","width","height"],Ls=[["width","left","right"],["height","top","bottom"]];function MC(t,e,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),f=e.childAt(u+1),h=f&&f.getBoundingRect(),v,d;if(t==="horizontal"){var p=c.width+(h?-h.x+c.x:0);v=a+p,v>n||l.newline?(a=0,v=p,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var y=c.height+(h?-h.y+c.y:0);d=o+y,d>i||l.newline?(a+=s+r,o=0,d=y,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=v+r:o=d+r)})}var Fs=MC;ye(MC,"vertical");ye(MC,"horizontal");function wX(t,e,r){var n=e.width,i=e.height,a=j(t.left,n),o=j(t.top,i),s=j(t.right,n),l=j(t.bottom,i);return(isNaN(a)||isNaN(parseFloat(t.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(t.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(t.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(t.bottom)))&&(l=i),r=fl(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function It(t,e,r){r=fl(r||0);var n=e.width,i=e.height,a=j(t.left,n),o=j(t.top,i),s=j(t.right,n),l=j(t.bottom,i),u=j(t.width,n),c=j(t.height,i),f=r[2]+r[0],h=r[1]+r[3],v=t.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(c)&&(c=i-l-f-o),v!=null&&(isNaN(u)&&isNaN(c)&&(v>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=v*c),isNaN(c)&&(c=u/v)),isNaN(a)&&(a=n-s-u-h),isNaN(o)&&(o=i-l-c-f),t.left||t.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-h;break}switch(t.top||t.bottom){case"middle":case"center":o=i/2-c/2-r[0];break;case"bottom":o=i-c-f;break}a=a||0,o=o||0,isNaN(u)&&(u=n-h-a-(s||0)),isNaN(c)&&(c=i-f-o-(l||0));var d=new Ce(a+r[3],o+r[0],u,c);return d.margin=r,d}function im(t,e,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||t,a.x=t.x,a.y=t.y,!o&&!s)return!1;var u;if(l==="raw")u=t.type==="group"?new Ce(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=It(oe({width:u.width,height:u.height},e),r,n),h=o?f.x-u.x:0,v=s?f.y-u.y:0;return l==="raw"?(a.x=h,a.y=v):(a.x+=h,a.y+=v),a===t&&t.markRedraw(),!0}function bX(t,e){return t[Ls[e][0]]!=null||t[Ls[e][1]]!=null&&t[Ls[e][2]]!=null}function Ph(t){var e=t.layoutMode||t.constructor.layoutMode;return se(e)?e:e?{type:e}:null}function wo(t,e,r){var n=r&&r.ignoreSize;!G(n)&&(n=[n,n]);var i=o(Ls[0],0),a=o(Ls[1],1);u(Ls[0],t,i),u(Ls[1],t,a);function o(c,f){var h={},v=0,d={},p=0,y=2;if(Tp(c,function(_){d[_]=t[_]}),Tp(c,function(_){s(e,_)&&(h[_]=d[_]=e[_]),l(h,_)&&v++,l(d,_)&&p++}),n[f])return l(e,c[1])?d[c[2]]=null:l(e,c[2])&&(d[c[1]]=null),d;if(p===y||!v)return d;if(v>=y)return h;for(var g=0;g=0;l--)s=Se(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return lv(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),e}(qe);dz(ac,qe);Hy(ac);lX(ac);uX(ac,TX);function TX(t){var e=[];return M(ac.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=H(e,function(r){return Ai(r).main}),t!=="dataset"&&Te(e,"dataset")<=0&&e.unshift("dataset"),e}const ke=ac;var M5="";typeof navigator<"u"&&(M5=navigator.platform||"");var Cl="rgba(0, 0, 0, 0.2)";const AX={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Cl,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Cl,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Cl,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Cl,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Cl,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Cl,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:M5.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 D5=ie(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Nn="original",_r="arrayRows",Bn="objectRows",Fi="keyedColumns",vo="typedArray",L5="unknown",ki="column",oc="row",tr={Must:1,Might:2,Not:3},P5=Ve();function MX(t){P5(t).datasetMap=ie()}function I5(t,e,r){var n={},i=LC(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,l=P5(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;t=t.slice(),M(t,function(p,y){var g=se(p)?p:t[y]={name:p};g.type==="ordinal"&&c==null&&(c=y,f=d(g)),n[g.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});M(t,function(p,y){var g=p.name,m=d(p);if(c==null){var _=h.valueWayDim;v(n[g],_,m),v(o,_,m),h.valueWayDim+=m}else if(c===y)v(n[g],0,m),v(a,0,m);else{var _=h.categoryWayDim;v(n[g],_,m),v(o,_,m),h.categoryWayDim+=m}});function v(p,y,g){for(var m=0;me)return t[n];return t[r-1]}function k5(t,e,r,n,i,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?r:EX(n,o);if(c=c||r,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function RX(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var vd,kc,w2,b2="\0_ec_inner",kX=1,O5=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new qe(a),this._locale=new qe(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){var a=A2(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,A2(n))},e.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"?w2(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},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=ie(),u=n&&n.replaceMergeMainTypeMap;MX(this),M(r,function(f,h){f!=null&&(ke.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?le(f):Se(i[h],f,!0))}),u&&u.each(function(f,h){ke.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),ke.topologicalTravel(s,ke.getAllClassMainTypes(),c,this);function c(f){var h=PX(this,f,Ke(r[f])),v=a.get(f),d=v?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=uz(v,h,d);Q9(p,f,ke),i[f]=null,a.set(f,null),o.set(f,0);var y=[],g=[],m=0,_;M(p,function(S,w){var x=S.existing,b=S.newOption;if(!b)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var C=f==="series",T=ke.getClass(f,S.keyInfo.subType,!C);if(!T)return;if(f==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===T)x.name=S.keyInfo.name,x.mergeOption(b,this),x.optionUpdated(b,!1);else{var A=F({componentIndex:w},S.keyInfo);x=new T(b,this,this,A),F(x,A),S.brandNew&&(x.__requireNewView=!0),x.init(b,this,this),x.optionUpdated(null,!0)}}x?(y.push(x.option),g.push(x),m++):(y.push(void 0),g.push(void 0))},this),i[f]=y,a.set(f,g),o.set(f,m),f==="series"&&vd(this)}this._seriesIndices||vd(this)},e.prototype.getOption=function(){var r=le(this.option);return M(r,function(n,i){if(ke.hasClass(i)){for(var a=Ke(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!bh(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[b2],r},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.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=e:r==="max"?t<=e:t===e}function $X(t,e){return t.join(",")===e.join(",")}const YX=GX;var Vn=M,Ih=se,M2=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function J0(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=M2.length;r=0;y--){var g=t[y];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,v)),d>=0){var m=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&h>=0&&m>0||l==="samesign"&&h<=0&&m<0){h=H9(h,m),p=m;break}}}return n[0]=h,n[1]=p,n})})}var am=function(){function t(e){this.data=e.data||(e.sourceFormat===Fi?{}:[]),this.sourceFormat=e.sourceFormat||L5,this.seriesLayoutBy=e.seriesLayoutBy||ki,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;np&&(p=_)}v[0]=d,v[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};k2=(e={},e[_r+"_"+ki]={pure:!0,appendData:a},e[_r+"_"+oc]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Bn]={pure:!0,appendData:a},e[Fi]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},e[Nn]={appendData:a},e[vo]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s=0&&(p=o.interpolatedValue[y])}return p!=null?p+"":""})}},t.prototype.getRawValue=function(e,r){return Nu(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t}();function z2(t){var e,r;return se(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function Vf(t){return new uZ(t)}var uZ=function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.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=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(m){return!(m>=1)&&(m=1),m}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(f||v1&&n>0?s:o}};return a;function o(){return e=t?null:le},gte:function(t,e){return t>=e}},fZ=function(){function t(e,r){if(!Fe(r)){var n="";Ue(n)}this._opFn=j5[e],this._rvalFloat=Ni(r)}return t.prototype.evaluate=function(e){return Fe(e)?this._opFn(e,this._rvalFloat):this._opFn(Ni(e),this._rvalFloat)},t}(),X5=function(){function t(e,r){var n=e==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=Fe(e)?e:Ni(e),i=Fe(r)?r:Ni(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=Z(e),l=Z(r);s&&(n=l?e:0),l&&(i=s?r:0)}return ni?-this._resultLT:0},t}(),hZ=function(){function t(e,r){this._rval=r,this._isEQ=e,this._rvalTypeof=typeof r,this._rvalFloat=Ni(r)}return t.prototype.evaluate=function(e){var r=e===this._rval;if(!r){var n=typeof e;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=Ni(e)===this._rvalFloat)}return this._isEQ?r:!r},t}();function vZ(t,e){return t==="eq"||t==="ne"?new hZ(t==="eq",e):ee(j5,t)?new fZ(t,e):null}var dZ=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return po(e,r)},t}();function pZ(t,e){var r=new dZ,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==ki&&Ue(o);var s=[],l={},u=t.dimensionsDefine;if(u)M(u,function(p,y){var g=p.name,m={index:y,name:g,displayName:p.displayName};if(s.push(m),g!=null){var _="";ee(l,g)&&Ue(_),l[g]=m}});else for(var c=0;c65535?bZ:CZ}function Tl(){return[1/0,-1/0]}function TZ(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function G2(t,e,r,n,i){var a=K5[r||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;uy[1]&&(y[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=H(o,function(m){return m.property}),c=0;cg[1]&&(g[1]=y)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r=0&&r=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&ne)a=o-1;else return o}return-1},t.prototype.indicesOfNearest=function(e,r,n){var i=this._chunks,a=i[e],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=c))}return o.length=u,o},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a=f&&m<=h||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(a===2){for(var y=v[i[0]],_=v[i[1]],S=e[i[1]][0],w=e[i[1]][1],g=0;g=f&&m<=h||isNaN(m))&&(x>=S&&x<=w||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(a===1)for(var g=0;g=f&&m<=h||isNaN(m))&&(l[u++]=b)}else for(var g=0;ge[A][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(g))}return ug[1]&&(g[1]=y)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,h,v=new(Nc(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;dc&&(c=f,h=S)}D>0&&Dc-d&&(l=c-d,s.length=l);for(var p=0;pf[1]&&(f[1]=g),h[v++]=m}return a._count=v,a._indices=h,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();al&&(l=f)}return o=[s,l],this._extent[e]=o,o},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(r,n,i,a){return po(r[a],this._dimensions[a])}r1={arrayRows:e,objectRows:function(r,n,i,a){return po(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return po(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),t}();const Dx=AZ;var Q5=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(dd(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=Wr(s)?vo:Nn,a=[];var f=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=be(f.seriesLayoutBy,h.seriesLayoutBy)||null,d=be(f.sourceHeader,h.sourceHeader),p=be(f.dimensions,h.dimensions),y=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;i=y?[Mx(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var g=e;if(n){var m=this._applyTransform(r);i=m.sourceList,a=m.upstreamSignList}else{var _=g.get("source",!0);i=[Mx(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&U2(a)}var o,s=[],l=[];return M(e,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&U2(f),s.push(c),l.push(u._getVersionSign())}),n?o=xZ(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[rZ(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r1||r>0&&!t.noHeader;return M(t.blocks,function(i){var a=r3(i);a>=e&&(e=a+ +(n&&(!a||Lx(i)&&!i.noHeader)))}),e}return 0}function LZ(t,e,r,n){var i=e.noHeader,a=IZ(r3(e)),o=[],s=e.blocks||[];mr(!s||G(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ee(u,l)){var c=new X5(u[l],null);s.sort(function(d,p){return c.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(d,p){var y=e.valueFormatter,g=t3(d)(y?F(F({},t),{valueFormatter:y}):t,d,p>0?a.html:0,n);g!=null&&o.push(g)});var f=t.renderMode==="richText"?o.join(a.richText):Px(o.join(""),i?r:a.html);if(i)return f;var h=Cx(e.header,"ordinal",t.useUTC),v=e3(n,t.renderMode).nameStyle;return t.renderMode==="richText"?n3(t,h,v)+a.richText+f:Px('
'+Cr(h)+"
"+f,r)}function PZ(t,e,r,n){var i=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(S){return S=G(S)?S:[S],H(S,function(w,x){return Cx(w,G(v)?v[x]:v,u)})};if(!(a&&o)){var f=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),h=a?"":Cx(l,"ordinal",u),v=e.valueType,d=o?[]:c(e.value),p=!s||!a,y=!s&&a,g=e3(n,i),m=g.nameStyle,_=g.valueStyle;return i==="richText"?(s?"":f)+(a?"":n3(t,h,m))+(o?"":kZ(t,d,p,y,_)):Px((s?"":f)+(a?"":EZ(h,!s,m))+(o?"":RZ(d,p,y,_)),r)}}function W2(t,e,r,n,i,a){if(t){var o=t3(t),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function IZ(t){return{html:MZ[t],richText:DZ[t]}}function Px(t,e){var r='
',n="margin: "+e+"px 0 0";return'
'+t+r+"
"}function EZ(t,e,r){var n=e?"margin-left:2px":"";return''+Cr(t)+""}function RZ(t,e,r,n){var i=r?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return t=G(t)?t:[t],''+H(t,function(o){return Cr(o)}).join("  ")+""}function n3(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function kZ(t,e,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(G(e)?e.join(" "):e,a)}function i3(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return tl(n)}function a3(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var n1=function(){function t(){this.richTextStyles={},this._nextStyleNameId=az()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var i=n==="richText"?this._generateStyleName():null,a=C5({color:r,type:e,renderMode:n,markerId:i});return Z(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};G(r)?M(r,function(a){return F(n,a)}):F(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},t}();function o3(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=G(s),u=i3(e,r),c,f,h,v;if(o>1||l&&!o){var d=OZ(s,e,r,a,u);c=d.inlineValues,f=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);v=c=Nu(i,r,a[0]),f=p.type}else v=c=l?s[0]:s;var y=nC(e),g=y&&e.name||"",m=i.getName(r),_=n?g:m;return $t("section",{header:g,noHeader:n||!y,sortParam:v,blocks:[$t("nameValue",{markerType:"item",markerColor:u,name:_,noName:!An(_),value:c,valueType:f})].concat(h||[])})}function OZ(t,e,r,n,i){var a=e.getData(),o=En(t,function(f,h,v){var d=a.getDimensionInfo(v);return f=f||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?M(n,function(f){c(Nu(a,r,f),f)}):M(t,c);function c(f,h){var v=a.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push($t("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:f,valueType:v.type})):(s.push(f),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Ia=Ve();function pd(t,e){return t.getName(e)||t.getId(e)}var Ap="__universalTransitionEnabled",sm=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Vf({count:BZ,reset:zZ}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Ia(this).sourceManager=new Q5(this);a.prepareSource();var o=this.getInitialData(r,i);Y2(o,this),this.dataTask.context.data=o,Ia(this).dataBeforeProcessed=o,$2(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Ph(this),a=i?ic(r):{},o=this.subType;ke.hasClass(o)&&(o+="Series"),Se(r,n.getTheme().get(this.subType)),Se(r,this.getDefaultOption()),Ks(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&wo(r,a,i)},e.prototype.mergeOption=function(r,n){r=Se(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Ph(this);i&&wo(this.option,r,i);var a=Ia(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);Y2(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ia(this).dataBeforeProcessed=o,$2(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!Wr(r))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=PC.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.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=0&&i.push(o)}return i},e.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[pd(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Ap])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.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"){se(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(r,n)}},e.registerClass=function(r){return ke.registerClass(r)},e.protoInitialize=function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),e}(ke);Ct(sm,kC);Ct(sm,PC);dz(sm,ke);function $2(t){var e=t.name;nC(t)||(t.name=NZ(t)||e)}function NZ(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return M(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function BZ(t){return t.model.getRawData().count()}function zZ(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),FZ}function FZ(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Y2(t,e){M(ph(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,ye(VZ,e))})}function VZ(t,e){var r=Ix(t);return r&&r.setOutputEnd((e||this).count()),e}function Ix(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(t.uid))}return n}}const at=sm;var NC=function(){function t(){this.group=new fe,this.uid=nc("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){},t.prototype.updateLayout=function(e,r,n,i){},t.prototype.updateVisual=function(e,r,n,i){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t}();aC(NC);Hy(NC);const ft=NC;function lc(){var t=Ve();return function(e){var r=t(e),n=e.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 s3=Ve(),GZ=lc(),BC=function(){function t(){this.group=new fe,this.uid=nc("viewChart"),this.renderTask=Vf({plan:HZ,reset:UZ}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.highlight=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&X2(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&X2(a,i,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateLayout=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateVisual=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.eachRendered=function(e){Ro(this.group,e)},t.markUpdateMethod=function(e,r){s3(e).updateMethod=r},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function j2(t,e,r){t&&Ah(t)&&(e==="emphasis"?da:pa)(t,r)}function X2(t,e,r){var n=Qs(t,e),i=e&&e.highlightKey!=null?gj(e.highlightKey):null;n!=null?M(Ke(n),function(a){j2(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){j2(a,r,i)})}aC(BC);Hy(BC);function HZ(t){return GZ(t.model)}function UZ(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&s3(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,i),WZ[l]}var WZ={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const Qe=BC;var Tg="\0__throttleOriginMethod",Z2="\0__throttleRate",q2="\0__throttleType";function lm(t,e,r){var n,i=0,a=0,o=null,s,l,u,c;e=e||0;function f(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var h=function(){for(var v=[],d=0;d=0?f():o=setTimeout(f,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){c=v},h}function uc(t,e,r,n){var i=t[e];if(i){var a=i[Tg]||i,o=i[q2],s=i[Z2];if(s!==r||o!==n){if(r==null||!n)return t[e]=a;i=t[e]=lm(a,r,n==="debounce"),i[Tg]=a,i[q2]=n,i[Z2]=r}return i}}function Eh(t,e){var r=t[e];r&&r[Tg]&&(r.clear&&r.clear(),t[e]=r[Tg])}var K2=Ve(),Q2={itemStyle:Js(d5,!0),lineStyle:Js(v5,!0)},$Z={lineStyle:"stroke",itemStyle:"fill"};function l3(t,e){var r=t.visualStyleMapper||Q2[e];return r||(console.warn("Unknown style type '"+e+"'."),Q2.itemStyle)}function u3(t,e){var r=t.visualDrawType||$Z[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var YZ={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=l3(t,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=u3(t,n),u=o[l],c=ae(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=h,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ae(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||ae(o.stroke)?h:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=t.getDataParams(d),y=F({},o);y[l]=c(p),v.setItemVisual(d,"style",y)}}}},Bc=new qe,jZ={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=l3(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Bc.option=l[n];var u=i(Bc),c=o.ensureUniqueItemVisual(s,"style");F(c,u),Bc.option.decal&&(o.setItemVisual(s,"decal",Bc.option.decal),Bc.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},XZ={performRawSeries:!0,overallReset:function(t){var e=ie();t.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=e.get(i);a||(a={},e.set(i,a)),K2(r).scope=a}}),t.eachSeries(function(r){if(!(r.isColorBySeries()||t.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=K2(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=u3(r,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],f=a.getItemVisual(c,"colorFromPalette");if(f){var h=a.ensureUniqueItemVisual(c,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=r.getColorFromPalette(v,o,d)}})}})}},gd=Math.PI;function ZZ(t,e){e=e||{},oe(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new fe,n=new Ne({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new Oe({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Ne({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new Zy({shape:{startAngle:-gd/2,endAngle:-gd/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:gd*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:gd*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var qZ=function(){function t(e,r,n,i){this._stageTaskMap=ie(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__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}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),i=e.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=e.get("large")&&a>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?a:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var r=this,n=r._pipelineMap=ie();e.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;M(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";mr(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},t.prototype.prepareView=function(e,r,n,i){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,i){i=i||{};var a=!1,o=this;M(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,h=c.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(y){s(i,y)&&(y.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,i.block);d.each(function(y){y.perform(p)}),h.perform(p)&&(a=!0)}else f&&f.each(function(y,g){s(i,y)&&y.dirty();var m=o.getPerformArgs(y,i.block);m.skip=!l.performRawSeries&&r.isSeriesFiltered(y.context.model),o.updatePayload(y,n),y.perform(m)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=ie(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(f){var h=f.uid,v=s.set(h,o&&o.get(h)||Vf({plan:tq,reset:rq,count:iq}));v.context={model:f,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(f,v)}},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||Vf({reset:KZ});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ie(),u=e.seriesType,c=e.getTargetSeries,f=!0,h=!1,v="";mr(!e.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):c?c(n,i).each(d):(f=!1,M(n.getSeries(),d));function d(p){var y=p.uid,g=l.set(y,s&&s.get(y)||(h=!0,Vf({reset:QZ,onDirty:eq})));g.context={model:p,overallProgress:f},g.agent=o,g.__block=f,a._pipe(p,g)}h&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.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},t.wrapStageHandler=function(e,r){return ae(e)&&(e={overallReset:e,seriesType:aq(e)}),e.uid=nc("stageHandler"),r&&(e.visualType=r),e},t}();function KZ(t){t.overallReset(t.ecModel,t.api,t.payload)}function QZ(t){return t.overallProgress&&JZ}function JZ(){this.agent.dirty(),this.getDownstream().dirty()}function eq(){this.agent&&this.agent.dirty()}function tq(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function rq(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Ke(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?H(e,function(r,n){return c3(n)}):nq}var nq=c3(0);function c3(t){return function(e,r){var n=r.data,i=r.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(r.mainType=d,r[h.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},t.prototype.filter=function(e,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 c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,i,a));function c(f,h,v,d){return f[v]==null||h[d||v]===f[v]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Ex=["symbol","symbolSize","symbolRotate","symbolOffset"],rL=Ex.concat(["symbolKeepAspect"]),uq={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o=0&&Is(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function Rx(t,e,r){for(var n=e.type==="radial"?Tq(t,e,r):Cq(t,e,r),i=e.colorStops,a=0;a0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:Fe(t)?[t]:G(t)?t:null}function FC(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&Mq(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(r=H(r,function(a){return a/i}),n/=i)}return[r,n]}var Dq=new Bi(!0);function Dg(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function nL(t){return typeof t=="string"&&t!=="none"}function Lg(t){var e=t.fill;return e!=null&&e!=="none"}function iL(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function aL(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function kx(t,e,r){var n=oC(e.image,e.__image,r);if(Uy(n)){var i=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*Lf),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function Lq(t,e,r,n){var i,a=Dg(r),o=Lg(r),s=r.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||Dq,f=e.__dirty;if(!n){var h=r.fill,v=r.stroke,d=o&&!!h.colorStops,p=a&&!!v.colorStops,y=o&&!!h.image,g=a&&!!v.image,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0;(d||p)&&(x=e.getBoundingRect()),d&&(m=f?Rx(t,h,x):e.__canvasFillGradient,e.__canvasFillGradient=m),p&&(_=f?Rx(t,v,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),y&&(S=f||!e.__canvasFillPattern?kx(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=S),g&&(w=f||!e.__canvasStrokePattern?kx(t,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),d?t.fillStyle=m:y&&(S?t.fillStyle=S:o=!1),p?t.strokeStyle=_:g&&(w?t.strokeStyle=w:a=!1)}var b=e.getGlobalScale();c.setScale(b[0],b[1],e.segmentIgnoreThreshold);var C,T;t.setLineDash&&r.lineDash&&(i=FC(e),C=i[0],T=i[1]);var A=!0;(u||f&Fl)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),A=!1),c.reset(),e.buildPath(c,e.shape,n),c.toStatic(),e.pathUpdated()),A&&c.rebuildPath(t,l?s:1),C&&(t.setLineDash(C),t.lineDashOffset=T),n||(r.strokeFirst?(a&&aL(t,r),o&&iL(t,r)):(o&&iL(t,r),a&&aL(t,r))),C&&t.setLineDash([])}function Pq(t,e,r){var n=e.__image=oC(r.image,e.__image,e,e.onload);if(!(!n||!Uy(n))){var i=r.x||0,a=r.y||0,o=e.getWidth(),s=e.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,c=r.sy||0;t.drawImage(n,u,c,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,h=s-c;t.drawImage(n,u,c,f,h,i,a,o,s)}else t.drawImage(n,i,a,o,s)}}function Iq(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||_o,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=FC(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(Dg(r)&&t.strokeText(i,r.x,r.y),Lg(r)&&t.fillText(i,r.x,r.y)):(Lg(r)&&t.fillText(i,r.x,r.y),Dg(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}var oL=["shadowBlur","shadowOffsetX","shadowOffsetY"],sL=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function y3(t,e,r,n,i){var a=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){Fr(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Bs.opacity:o}(n||e.blend!==r.blend)&&(a||(Fr(t,i),a=!0),t.globalCompositeOperation=e.blend||Bs.blend);for(var s=0;s0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,i){if(!this[hr]){if(this._disposed){this.id;return}var a,o,s;if(se(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[hr]=!0,!this._model||n){var l=new YX(this._api),u=this._theme,c=this._model=new N5;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},Nx);var f={seriesTransition:s,optionChanged:!0};if(i)this[kr]={silent:a,updateParams:f},this[hr]=!1,this.getZr().wakeUp();else{try{Ml(this),Ea.update.call(this,null,f)}catch(h){throw this[kr]=null,this[hr]=!1,h}this._ssr||this._zr.flush(),this[kr]=null,this[hr]=!1,zc.call(this,a),Fc.call(this,a)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ze.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.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()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){if(ze.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return M(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},e.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 c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.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},e.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,c=-s,f=-s,h=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();M(Vs,function(_,S){if(_.group===i){var w=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(le(r)),x=_.getDom().getBoundingClientRect();l=a(x.left,l),u=a(x.top,u),c=o(x.right,c),f=o(x.bottom,f),h.push({dom:w,left:x.left,top:x.top})}}),l*=v,u*=v,c*=v,f*=v;var d=c-l,p=f-u,y=ai.createCanvas(),g=sx(y,{renderer:n?"svg":"canvas"});if(g.resize({width:d,height:p}),n){var m="";return M(h,function(_){var S=_.left-l,w=_.top-u;m+=''+_.dom+""}),g.painter.getSvgRoot().innerHTML=m,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new Ne({shape:{x:0,y:0,width:d,height:p},style:{fill:r.connectedBackgroundColor}})),M(h,function(_){var S=new Qt({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});g.add(S)}),g.refreshImmediately(),y.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n){return l1(this,"convertToPixel",r,n)},e.prototype.convertFromPixel=function(r,n){return l1(this,"convertFromPixel",r,n)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Of(i,r);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(a=a||f.containPoint(n,u))}},this)},this),!!a},e.prototype.getVisual=function(r,n){var i=this._model,a=Of(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?zC(s,l,n):gv(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;M(nK,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Ps(s,function(d){var p=pe(d);if(p&&p.dataIndex!=null){var y=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=y&&y.getDataParams(p.dataIndex,p.dataType)||{},!0}else if(p.eventData)return l=F({},p.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var h=c&&f!=null&&o.getComponent(c,f),v=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),M(Gf,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),M(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),fq(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&fz(this.getDom(),UC,"");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 Vs[n.id]},e.prototype.resize=function(r){if(!this[hr]){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[kr]&&(a==null&&(a=this[kr].silent),i=!0,this[kr]=null),this[hr]=!0;try{i&&Ml(this),Ea.update.call(this,{type:"resize",animation:F({duration:0},r&&r.animation)})}catch(o){throw this[hr]=!1,o}this[hr]=!1,zc.call(this,a),Fc.call(this,a)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(se(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!Bx[r]){var i=Bx[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=F({},r);return n.type=Gf[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(se(n)||(n={silent:!!n}),!!Ig[r.type]&&this._model){if(this[hr]){this._pendingActions.push(r);return}var i=n.silent;c1.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&ze.browser.weChat&&this._throttledZrFlush(),zc.call(this,i),Fc.call(this,i)}},e.prototype.updateLabelLayout=function(){Wn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.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()},e.internalField=function(){Ml=function(f){var h=f._scheduler;h.restorePipelines(f._model),h.prepareStageTasks(),s1(f,!0),s1(f,!1),h.plan()},s1=function(f,h){for(var v=f._model,d=f._scheduler,p=h?f._componentsViews:f._chartsViews,y=h?f._componentsMap:f._chartsMap,g=f._zr,m=f._api,_=0;_h.get("hoverLayerThreshold")&&!ze.node&&!ze.worker&&h.eachSeries(function(y){if(!y.preventUsingHoverLayer){var g=f._chartsMap[y.__viewId];g.__alive&&g.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(f,h){var v=f.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(f,h){if(!f.preventAutoZ){var v=f.get("z")||0,d=f.get("zlevel")||0;h.eachRendered(function(p){return l(p,v,d,-1/0),!0})}}function l(f,h,v,d){var p=f.getTextContent(),y=f.getTextGuideLine(),g=f.isGroup;if(g)for(var m=f.childrenRef(),_=0;_0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(g){if(g.states&&g.states.emphasis){if(mu(g))return;if(g instanceof Pe&&yj(g),g.__dirty){var m=g.prevStates;m&&g.useStates(m)}if(d){g.stateTransition=y;var _=g.getTextContent(),S=g.getTextGuideLine();_&&(_.stateTransition=y),S&&(S.stateTransition=y)}g.__dirty&&i(g)}})}SL=function(f){return new(function(h){N(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){da(d,p),cn(f)},v.prototype.leaveEmphasis=function(d,p){pa(d,p),cn(f)},v.prototype.enterBlur=function(d){kz(d),cn(f)},v.prototype.leaveBlur=function(d){cC(d),cn(f)},v.prototype.enterSelect=function(d){Oz(d),cn(f)},v.prototype.leaveSelect=function(d){Nz(d),cn(f)},v.prototype.getModel=function(){return f.getModel()},v.prototype.getViewOfComponentModel=function(d){return f.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return f.getViewOfSeriesModel(d)},v}(B5))(f)},R3=function(f){function h(v,d){for(var p=0;p=0)){wL.push(r);var a=v3.wrapStageHandler(r,i);a.__prio=e,a.__raw=r,t.push(a)}}function ZC(t,e){Bx[t]=e}function hK(t){dB({createCanvas:t})}function V3(t,e,r){var n=b3("registerMap");n&&n(t,e,r)}function vK(t){var e=b3("getMap");return e&&e(t)}var G3=SZ;Oo(GC,YZ);Oo(um,jZ);Oo(um,XZ);Oo(GC,uq);Oo(um,cq);Oo(A3,Fq);YC(F5);jC(Yq,eZ);ZC("default",ZZ);ci({type:zs,event:zs,update:zs},wt);ci({type:xp,event:xp,update:xp},wt);ci({type:Nf,event:Nf,update:Nf},wt);ci({type:wp,event:wp,update:wp},wt);ci({type:Bf,event:Bf,update:Bf},wt);$C("light",oq);$C("dark",sq);var dK={},bL=[],pK={registerPreprocessor:YC,registerProcessor:jC,registerPostInit:N3,registerPostUpdate:B3,registerUpdateLifecycle:cm,registerAction:ci,registerCoordinateSystem:z3,registerLayout:F3,registerVisual:Oo,registerTransform:G3,registerLoading:ZC,registerMap:V3,registerImpl:Gq,PRIORITY:M3,ComponentModel:ke,ComponentView:ft,SeriesModel:at,ChartView:Qe,registerComponentModel:function(t){ke.registerClass(t)},registerComponentView:function(t){ft.registerClass(t)},registerSeriesModel:function(t){at.registerClass(t)},registerChartView:function(t){Qe.registerClass(t)},registerSubTypeDefaulter:function(t,e){ke.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){ez(t,e)}};function Ae(t){if(G(t)){M(t,function(e){Ae(e)});return}Te(bL,t)>=0||(bL.push(t),ae(t)&&(t={install:t}),t.install(pK))}function Vc(t){return t==null?0:t.length||1}function CL(t){return t}var gK=function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||CL,this._newKeyGetter=i||CL,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},i=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s1&&h===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&h===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var v=0;v1)for(var s=0;s30}var Gc=se,Ra=H,bK=typeof Int32Array>"u"?Array:Int32Array,CK="e\0\0",TL=-1,TK=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],AK=["_approximateExtent"],AL,xd,Hc,Uc,v1,wd,d1,MK=function(){function t(e,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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;U3(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Nn;if(l&&!i.pure)for(var u=[],c=e;c0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[r];return a==null&&(a=this.getVisual(r),G(a)?a=a.slice():Gc(a)&&(a=F({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Gc(r)?F(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Gc(e)?F(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?F(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;dx(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){M(this._graphicEls,function(n,i){n&&e&&e.call(r,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Ra(this.dimensions,this._getDimInfo,this),this.hostModel)),v1(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];ae(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Oy(arguments)))})},t.internalField=function(){AL=function(e){var r=e._invertedIndicesMap;M(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new bK(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[r]=l}}}(),t}();const gr=MK;function DK(t,e){return fc(t,e).dimensions}function fc(t,e){IC(t)||(t=EC(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=ie(),a=[],o=PK(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Y3(o),l=n===t.dimensionsDefine,u=l?$3(t):W3(n),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,o));for(var f=ie(c),h=new q5(o),v=0;v0&&(n.name=i+(a-1)),a++,e.set(i,a)}}function PK(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return M(e,function(a){var o;se(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function IK(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var EK=function(){function t(e){this.coordSysDims=[],this.axisMap=ie(),this.categoryAxisMap=ie(),this.coordSysName=e}return t}();function RK(t){var e=t.get("coordinateSystem"),r=new EK(e),n=kK[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var kK={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",Pt).models[0],a=t.getReferringComponents("yAxis",Pt).models[0];e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),Dl(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),Dl(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",Pt).models[0];e.coordSysDims=["single"],r.set("single",i),Dl(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",Pt).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Dl(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),Dl(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var i=t.ecModel,a=i.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();M(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),Dl(u)&&(n.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Dl(t){return t.get("type")==="category"}function j3(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;OK(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,c,f,h;if(M(a,function(m,_){Z(m)&&(a[_]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!c&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(c=m))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var v=c.coordDim,d=c.type,p=0;M(a,function(m){m.coordDim===v&&p++});var y={name:f,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},g={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(h,d),g.storeDimIndex=s.ensureCalculationDimension(f,d)),o.appendCalculationDimension(y),o.appendCalculationDimension(g)):(a.push(y),a.push(g))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:f}}function OK(t){return!U3(t.schema)}function ya(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function qC(t,e){return ya(t,e)?t.getCalculationInfo("stackResultDimension"):e}function NK(t,e){var r=t.get("coordinateSystem"),n=sc.get(r),i;return e&&e.coordSysDims&&(i=H(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=kg(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function BK(t,e,r){var n,i;return r&&M(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(t[n].otherDims.itemName=0),n}function Vi(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;t?(a=!0,i=EC(t)):(i=n.getSource(),a=i.sourceFormat===Nn);var o=RK(e),s=NK(e,o),l=r.useEncodeDefaulter,u=ae(l)?l:l?ye(I5,s,e):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=fc(i,c),h=BK(f.dimensions,r.createInvertedIndices,o),v=a?null:n.getSharedDataStore(f),d=j3(e,{schema:f,store:v}),p=new gr(f,e);p.setCalculationInfo(d);var y=h!=null&&zK(i)?function(g,m,_,S){return S===h?_:this.defaultDimValueGetter(g,m,_,S)}:null;return p.hasItemOption=!1,p.initData(a?i:v,null,y),p}function zK(t){if(t.sourceFormat===Nn){var e=FK(t.data||[]);return!G(qu(e))}}function FK(t){for(var e=0;er[1]&&(r[1]=e[1])},t.prototype.unionExtentFromData=function(e,r){this.unionExtent(e.getApproximateExtent(r))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(r)||(n[1]=r)},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t}();Hy(X3);const ba=X3;var VK=0,GK=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++VK}return t.createByAxisModel=function(e){var r=e.option,n=r.data,i=n&&H(n,HK);return new t({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!Z(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,r;var i=this._getOrCreateMap();return r=i.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,i.set(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=ie(this.categories))},t}();function HK(t){return se(t)&&t.value!=null?t.value:t+""}const zx=GK;function Fx(t){return t.type==="interval"||t.type==="log"}function UK(t,e,r,n){var i={},a=t[1]-t[0],o=i.interval=tC(a/e,!0);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=Z3(o),l=i.niceTickExtent=[gt(Math.ceil(t[0]/o)*o,s),gt(Math.floor(t[1]/o)*o,s)];return WK(l,t),i}function p1(t){var e=Math.pow(10,Gy(t)),r=t/e;return r?r===2?r=3:r===3?r=5:r*=2:r=1,gt(r*e)}function Z3(t){return Kn(t)+2}function ML(t,e,r){t[e]=Math.max(Math.min(t[e],r[1]),r[0])}function WK(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),ML(t,0,e),ML(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function fm(t,e){return t>=e[0]&&t<=e[1]}function hm(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function vm(t,e){return t*(e[1]-e[0])+e[0]}var q3=function(t){N(e,t);function e(r){var n=t.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new zx({})),G(i)&&(i=new zx({categories:H(i,function(a){return se(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return e.prototype.parse=function(r){return r==null?NaN:Z(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},e.prototype.contain=function(r){return r=this.parse(r),fm(r,this._extent)&&this._ordinalMeta.categories[r]!=null},e.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),hm(r,this._extent)},e.prototype.scale=function(r){return r=Math.round(vm(r,this._extent)),this.getRawOrdinalNumber(r)},e.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},e.prototype.getMinorTicks=function(r){},e.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=Math.min(s,n.length);o=0&&r=0&&r=r},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(ba);ba.registerClass(q3);const KC=q3;var rs=gt,K3=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return e.prototype.parse=function(r){return r},e.prototype.contain=function(r){return fm(r,this._extent)},e.prototype.normalize=function(r){return hm(r,this._extent)},e.prototype.scale=function(r){return vm(r,this._extent)},e.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},e.prototype.unionExtent=function(r){var n=this._extent;r[0]n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=Z3(r)},e.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]l)return[];var c=s.length?s[s.length-1].value:a[1];return i[1]>c&&(r?s.push({value:rs(c+n,o)}):s.push({value:i[1]})),s},e.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&v0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function eF(t){var e=jK(t),r=[];return M(t,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=e[l],c=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),h=Math.abs(f[1]-f[0]);s=u?c/h*u:c}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=j(n.get("barWidth"),s),p=j(n.get("barMaxWidth"),s),y=j(n.get("barMinWidth")||(aF(n)?.5:1),s),g=n.get("barGap"),m=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:y,barGap:g,barCategoryGap:m,axisKey:JC(a),stackId:QC(n)})}),tF(r)}function tF(t){var e={};M(t,function(n,i){var a=n.axisKey,o=n.bandWidth,s=e[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var h=n.barMinWidth;h&&(l[u].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return M(e,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Ie(a).length;s=Math.max(35-l*4,15)+"%"}var u=j(s,o),c=j(n.gap,1),f=n.remainedWidth,h=n.autoWidthCount,v=(f-u)/(h+(h-1)*c);v=Math.max(v,0),M(a,function(g){var m=g.maxWidth,_=g.minWidth;if(g.width){var S=g.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),g.width=S,f-=S+c*S,h--}else{var S=v;m&&mS&&(S=_),S!==v&&(g.width=S,f-=S+c*S,h--)}}),v=(f-u)/(h+(h-1)*c),v=Math.max(v,0);var d=0,p;M(a,function(g,m){g.width||(g.width=v),p=g,d+=g.width*(1+c)}),p&&(d-=p.width*c);var y=-d/2;M(a,function(g,m){r[i][m]=r[i][m]||{bandWidth:o,offset:y,width:g.width},y+=g.width*(1+c)})}),r}function XK(t,e,r){if(t&&e){var n=t[JC(e)];return n!=null&&r!=null?n[QC(r)]:n}}function rF(t,e){var r=J3(t,e),n=eF(r);M(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=QC(i),u=n[JC(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function nF(t){return{seriesType:t,plan:lc(),reset:function(e){if(iF(e)){var r=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=e.get("showBackground",!0),u=r.mapDimension(a.dim),c=r.getCalculationInfo("stackResultDimension"),f=ya(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),h=a.isHorizontal(),v=ZK(i,a),d=aF(e),p=e.get("barMinHeight")||0,y=c&&r.getDimensionIndex(c),g=r.getLayout("size"),m=r.getLayout("offset");return{progress:function(_,S){for(var w=_.count,x=d&&Mi(w*3),b=d&&l&&Mi(w*3),C=d&&Mi(w),T=n.master.getRect(),A=h?T.width:T.height,D,L=S.getStore(),P=0;(D=_.next())!=null;){var I=L.get(f?y:o,D),E=L.get(s,D),k=v,B=void 0;f&&(B=+I-L.get(o,D));var R=void 0,O=void 0,z=void 0,V=void 0;if(h){var Y=n.dataToPoint([I,E]);if(f){var re=n.dataToPoint([B,E]);k=re[0]}R=k,O=Y[1]+m,z=Y[0]-k,V=g,Math.abs(z)>>1;t[i][1]i&&(this._approxInterval=i);var s=bd.length,l=Math.min(qK(bd,this._approxInterval,0,s),s-1);this._interval=bd[l][1],this._minLevelUnit=bd[Math.max(l-1,0)][0]},e.prototype.parse=function(r){return Fe(r)?r:+nn(r)},e.prototype.contain=function(r){return fm(this.parse(r),this._extent)},e.prototype.normalize=function(r){return hm(this.parse(r),this._extent)},e.prototype.scale=function(r){return vm(r,this._extent)},e.type="time",e}(bo),bd=[["second",xC],["minute",wC],["hour",Ff],["quarter-day",Ff*6],["half-day",Ff*12],["day",Cn*1.2],["half-week",Cn*3.5],["week",Cn*7],["month",Cn*31],["quarter",Cn*95],["half-year",y2/2],["year",y2]];function KK(t,e,r,n){var i=nn(e),a=nn(r),o=function(d){return _2(i,d,n)===_2(a,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},h=function(){return f()&&o("second")},v=function(){return h()&&o("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return h();case"millisecond":return v()}}function QK(t,e){return t/=Cn,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function JK(t){var e=30*Cn;return t/=e,t>6?6:t>3?3:t>2?2:1}function eQ(t){return t/=Ff,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function DL(t,e){return t/=e?wC:xC,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function tQ(t){return tC(t,!0)}function rQ(t,e,r){var n=new Date(t);switch(_u(e)){case"year":case"month":n[m5(r)](0);case"day":n[_5(r)](1);case"hour":n[S5(r)](0);case"minute":n[x5(r)](0);case"second":n[w5(r)](0),n[b5(r)](0)}return n.getTime()}function nQ(t,e,r,n){var i=1e4,a=g5,o=0;function s(A,D,L,P,I,E,k){for(var B=new Date(D),R=D,O=B[P]();R1&&E===0&&L.unshift({value:L[0].value-R})}}for(var E=0;E=n[0]&&m<=n[1]&&f++)}var _=(n[1]-n[0])/e;if(f>_*1.5&&h>_/1.5||(u.push(y),f>_||t===a[v]))break}c=[]}}}for(var S=Ye(H(u,function(A){return Ye(A,function(D){return D.value>=n[0]&&D.value<=n[1]&&!D.notAdd})}),function(A){return A.length>0}),w=[],x=S.length-1,v=0;v0;)a*=10;var s=[gt(oQ(n[0]/a)*a),gt(aQ(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},e.prototype.calcNiceExtent=function(r){Hf.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},e.prototype.parse=function(r){return r},e.prototype.contain=function(r){return r=Gn(r)/Gn(this.base),fm(r,this._extent)},e.prototype.normalize=function(r){return r=Gn(r)/Gn(this.base),hm(r,this._extent)},e.prototype.scale=function(r){return r=vm(r,this._extent),Cd(this.base,r)},e.type="log",e}(ba),lF=eT.prototype;lF.getMinorTicks=Hf.getMinorTicks;lF.getLabel=Hf.getLabel;function Td(t,e){return iQ(t,Kn(e))}ba.registerClass(eT);const sQ=eT;var lQ=function(){function t(e,r,n){this._prepareParams(e,r,n)}return t.prototype._prepareParams=function(e,r,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},t.prototype.modifyDataMinMax=function(e,r){this[cQ[e]]=r},t.prototype.setDeterminedMinMax=function(e,r){var n=uQ[e];this[n]=r},t.prototype.freeze=function(){this.frozen=!0},t}(),uQ={min:"_determinedMin",max:"_determinedMax"},cQ={min:"_dataMin",max:"_dataMax"};function uF(t,e,r){var n=t.rawExtentInfo;return n||(n=new lQ(t,e,r),t.rawExtentInfo=n,n)}function Ad(t,e){return e==null?null:ku(e)?NaN:t.parse(e)}function cF(t,e){var r=t.type,n=uF(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var i=n.min,a=n.max,o=e.ecModel;if(o&&r==="time"){var s=J3("bar",o),l=!1;if(M(s,function(f){l=l||f.getBaseAxis()===e.axis}),l){var u=eF(s),c=fQ(i,a,e,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function fQ(t,e,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=XK(n,r.axis);if(o===void 0)return{min:t,max:e};var s=1/0;M(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;M(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,f=1-(s+l)/a,h=c/f-c;return e+=h*(l/u),t-=h*(s/u),{min:t,max:e}}function rl(t,e){var r=e,n=cF(t,r),i=n.extent,a=r.get("splitNumber");t instanceof sQ&&(t.base=r.get("logBase"));var o=t.type,s=r.get("interval"),l=o==="interval"||o==="time";t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&t.setInterval&&t.setInterval(s)}function mv(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new KC({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new sF({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(ba.getClass(e)||bo)}}function hQ(t){var e=t.scale.getExtent(),r=e[0],n=e[1];return!(r>0&&n>0||r<0&&n<0)}function _v(t){var e=t.getLabelModel().get("formatter"),r=t.type==="category"?t.scale.getExtent()[0]:null;return t.scale.type==="time"?function(n){return function(i,a){return t.scale.getFormattedLabel(i,a,n)}}(e):Z(e)?function(n){return function(i){var a=t.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(e):ae(e)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(tT(t,i),a,i.level!=null?{level:i.level}:null)}}(e):function(n){return t.scale.getLabel(n)}}function tT(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function vQ(t){var e=t.model,r=t.scale;if(!(!e.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof KC?i=r.count():(n=r.getTicks(),i=n.length);var o=t.getLabelModel(),s=_v(t),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;ct[1]&&(t[1]=i[1])})}var hc=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t}();function gQ(t){return Vi(null,t)}var yQ={isDimensionStacked:ya,enableDataStack:j3,getStackedDimension:qC};function mQ(t,e){var r=e;e instanceof qe||(r=new qe(e));var n=mv(r);return n.setExtent(t[0],t[1]),rl(n,r),n}function _Q(t){Ct(t,hc)}function SQ(t,e){return e=e||{},tt(t,null,null,e.state!=="normal")}const xQ=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:DK,createList:gQ,createScale:mQ,createSymbol:Mt,createTextStyle:SQ,dataStack:yQ,enableHoverEmphasis:fo,getECData:pe,getLayoutRect:It,mixinAxisModelCommonMethods:_Q},Symbol.toStringTag,{value:"Module"}));var wQ=1e-8;function PL(t,e){return Math.abs(t-e)i&&(n=o,i=l)}if(n)return CQ(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return M(o,function(s){s.type==="polygon"?IL(s.exterior,i,a,r):M(s.points,function(l){IL(l,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new Ce(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},e.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var a=0,o=i.length;a>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/r,l/r])}return n}function Gx(t,e){return t=AQ(t),H(Ye(t.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new EL(o[0],o.slice(1)));break;case"MultiPolygon":M(i.coordinates,function(l){l[0]&&a.push(new EL(l[0],l.slice(1)))});break;case"LineString":a.push(new RL([i.coordinates]));break;case"MultiLineString":a.push(new RL(i.coordinates))}var s=new vF(n[e||"name"],a,n.cp);return s.properties=n,s})}const MQ=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:lx,asc:Qr,getPercentWithPrecision:G9,getPixelPrecision:Jb,getPrecision:Kn,getPrecisionSafe:rz,isNumeric:rC,isRadianAroundZero:wh,linearMap:$e,nice:tC,numericToNumber:Ni,parseDate:nn,quantile:Sp,quantity:iz,quantityExponent:Gy,reformIntervals:ux,remRadian:eC,round:gt},Symbol.toStringTag,{value:"Module"})),DQ=Object.freeze(Object.defineProperty({__proto__:null,format:pv,parse:nn},Symbol.toStringTag,{value:"Module"})),LQ=Object.freeze(Object.defineProperty({__proto__:null,Arc:Zy,BezierCurve:fv,BoundingRect:Ce,Circle:li,CompoundPath:qy,Ellipse:Xy,Group:fe,Image:Qt,IncrementalDisplayable:r5,Line:Gt,LinearGradient:Qu,Polygon:Lr,Polyline:Er,RadialGradient:vC,Rect:Ne,Ring:cv,Sector:Dr,Text:Oe,clipPointsByRect:yC,clipRectByRect:s5,createIcon:ec,extendPath:a5,extendShape:i5,getShapeClass:Ky,getTransform:ho,initProps:lt,makeImage:pC,makePath:hv,mergePath:qr,registerShape:On,resizePath:gC,updateProps:Ge},Symbol.toStringTag,{value:"Module"})),PQ=Object.freeze(Object.defineProperty({__proto__:null,addCommas:CC,capitalFirst:xX,encodeHTML:Cr,formatTime:SX,formatTpl:AC,getTextRect:mX,getTooltipMarker:C5,normalizeCssArray:fl,toCamelCase:TC,truncateText:pz},Symbol.toStringTag,{value:"Module"})),IQ=Object.freeze(Object.defineProperty({__proto__:null,bind:Q,clone:le,curry:ye,defaults:oe,each:M,extend:F,filter:Ye,indexOf:Te,inherits:Wb,isArray:G,isFunction:ae,isObject:se,isString:Z,map:H,merge:Se,reduce:En},Symbol.toStringTag,{value:"Module"}));var Oh=Ve();function EQ(t){return t.type==="category"?kQ(t):NQ(t)}function RQ(t,e){return t.type==="category"?OQ(t,e):{ticks:H(t.scale.getTicks(),function(r){return r.value})}}function kQ(t){var e=t.getLabelModel(),r=pF(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function pF(t,e){var r=gF(t,"labels"),n=rT(e),i=yF(r,n);if(i)return i;var a,o;return ae(n)?a=SF(t,n):(o=n==="auto"?BQ(t):n,a=_F(t,o)),mF(r,n,{labels:a,labelCategoryInterval:o})}function OQ(t,e){var r=gF(t,"ticks"),n=rT(e),i=yF(r,n);if(i)return i;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),ae(n))a=SF(t,n,!0);else if(n==="auto"){var s=pF(t,t.getLabelModel());o=s.labelCategoryInterval,a=H(s.labels,function(l){return l.tickValue})}else o=n,a=_F(t,o,!0);return mF(r,n,{ticks:a,tickCategoryInterval:o})}function NQ(t){var e=t.scale.getTicks(),r=_v(t);return{labels:H(e,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:t.scale.getLabel(n),tickValue:n.value}})}}function gF(t,e){return Oh(t)[e]||(Oh(t)[e]=[])}function yF(t,e){for(var r=0;r40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),h=0,v=0;l<=a[1];l+=s){var d=0,p=0,y=sv(r({value:l}),e.font,"center","top");d=y.width*1.3,p=y.height*1.3,h=Math.max(h,d,7),v=Math.max(v,p,7)}var g=h/c,m=v/f;isNaN(g)&&(g=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(g,m))),S=Oh(t.model),w=t.getExtent(),x=S.lastAutoInterval,b=S.lastTickCount;return x!=null&&b!=null&&Math.abs(x-_)<=1&&Math.abs(b-o)<=1&&x>_&&S.axisExtent0===w[0]&&S.axisExtent1===w[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=w[0],S.axisExtent1=w[1]),_}function FQ(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function _F(t,e,r){var n=_v(t),i=t.scale,a=i.getExtent(),o=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=fF(t),h=o.get("showMinLabel")||f,v=o.get("showMaxLabel")||f;h&&u!==a[0]&&p(a[0]);for(var d=u;d<=a[1];d+=l)p(d);v&&d-l!==a[1]&&p(a[1]);function p(y){var g={value:y};s.push(r?y:{formattedLabel:n(g),rawLabel:i.getLabel(g),tickValue:y})}return s}function SF(t,e,r){var n=t.scale,i=_v(t),a=[];return M(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;e(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var kL=[0,1],VQ=function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return e>=n&&e<=i},t.prototype.containData=function(e){return this.scale.contain(e)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return Jb(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&i.type==="ordinal"&&(n=n.slice(),OL(n,i.count())),$e(e,kL,n,r)},t.prototype.coordToData=function(e,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),OL(n,i.count()));var a=$e(e,n,kL,r);return this.scale.scale(a)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=RQ(this,r),i=n.ticks,a=H(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return GQ(this,a,o,e.clamp),a},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=H(n,function(a){return H(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},t.prototype.getViewLabels=function(){return EQ(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return zQ(this)},t}();function OL(t,e){var r=t[1]-t[0],n=e,i=r/n/2;t[0]+=i,t[1]-=i}function GQ(t,e,r,n){var i=e.length;if(!t.onBand||r||!i)return;var a=t.getExtent(),o,s;if(i===1)e[0].coord=a[0],o=e[1]={coord:a[0]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;M(e,function(v){v.coord-=u/2});var c=t.scale.getExtent();s=1+c[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*s},e.push(o)}var f=a[0]>a[1];h(e[0].coord,a[0])&&(n?e[0].coord=a[0]:e.shift()),n&&h(a[0],e[0].coord)&&e.unshift({coord:a[0]}),h(a[1],o.coord)&&(n?o.coord=a[1]:e.pop()),n&&h(o.coord,a[1])&&e.push({coord:a[1]});function h(v,d){return v=gt(v),d=gt(d),f?v>d:vi&&(i+=Wc);var v=Math.atan2(s,o);if(v<0&&(v+=Wc),v>=n&&v<=i||v+Wc>=n&&v+Wc<=i)return l[0]=c,l[1]=f,u-r;var d=r*Math.cos(n)+t,p=r*Math.sin(n)+e,y=r*Math.cos(i)+t,g=r*Math.sin(i)+e,m=(d-o)*(d-o)+(p-s)*(p-s),_=(y-o)*(y-o)+(g-s)*(g-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=y,l[1]=g,Math.sqrt(_))}function Ng(t,e,r,n,i,a,o,s){var l=i-t,u=a-e,c=r-t,f=n-e,h=Math.sqrt(c*c+f*f);c/=h,f/=h;var v=l*c+u*f,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=t+d*c,y=o[1]=e+d*f;return Math.sqrt((p-i)*(p-i)+(y-a)*(y-a))}function xF(t,e,r,n,i,a,o){r<0&&(t=t+r,r=-r),n<0&&(e=e+n,n=-n);var s=t+r,l=e+n,u=o[0]=Math.min(Math.max(i,t),s),c=o[1]=Math.min(Math.max(a,e),l);return Math.sqrt((u-i)*(u-i)+(c-a)*(c-a))}var jn=[];function ZQ(t,e,r){var n=xF(e.x,e.y,e.width,e.height,t.x,t.y,jn);return r.set(jn[0],jn[1]),n}function qQ(t,e,r){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,c=e.data,f=t.x,h=t.y,v=0;v0){e=e/180*Math.PI,Qn.fromArray(t[0]),nt.fromArray(t[1]),At.fromArray(t[2]),we.sub(Di,Qn,nt),we.sub(Ci,At,nt);var r=Di.len(),n=Ci.len();if(!(r<.001||n<.001)){Di.scale(1/r),Ci.scale(1/n);var i=Di.dot(Ci),a=Math.cos(e);if(a1&&we.copy(br,At),br.toArray(t[1])}}}}function KQ(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,Qn.fromArray(t[0]),nt.fromArray(t[1]),At.fromArray(t[2]),we.sub(Di,nt,Qn),we.sub(Ci,At,nt);var n=Di.len(),i=Ci.len();if(!(n<.001||i<.001)){Di.scale(1/n),Ci.scale(1/i);var a=Di.dot(e),o=Math.cos(r);if(a=l)we.copy(br,At);else{br.scaleAndAdd(Ci,s/Math.tan(Math.PI/2-c));var f=At.x!==nt.x?(br.x-nt.x)/(At.x-nt.x):(br.y-nt.y)/(At.y-nt.y);if(isNaN(f))return;f<0?we.copy(br,nt):f>1&&we.copy(br,At)}br.toArray(t[1])}}}}function BL(t,e,r,n){var i=r==="normal",a=i?t:t.ensureState(r);a.ignore=e;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?t.useStyle(s):a.style=s}function QQ(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=Ki(n[0],n[1]),a=Ki(n[1],n[2]);if(!i||!a){t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=If([],n[1],n[0],o/i),l=If([],n[1],n[2],o/a),u=If([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c0&&a&&w(-c/o,0,o);var p=t[0],y=t[o-1],g,m;_(),g<0&&x(-g,.8),m<0&&x(m,.8),_(),S(g,m,1),S(m,g,-1),_(),g<0&&b(-g),m<0&&b(m);function _(){g=p.rect[e]-n,m=i-y.rect[e]-y.rect[r]}function S(C,T,A){if(C<0){var D=Math.min(T,-C);if(D>0){w(D*A,0,o);var L=D+C;L<0&&x(-L*A,1)}else x(-C*A,1)}}function w(C,T,A){C!==0&&(u=!0);for(var D=T;D0)for(var L=0;L0;L--){var k=A[L-1]*E;w(-k,L,o)}}}function b(C){var T=C<0?-1:1;C=Math.abs(C);for(var A=Math.ceil(C/(o-1)),D=0;D0?w(A,0,D+1):w(-A,o-D-1,o),C-=A,C<=0)return}return u}function JQ(t,e,r,n){return CF(t,"x","width",e,r,n)}function TF(t,e,r,n){return CF(t,"y","height",e,r,n)}function AF(t){var e=[];t.sort(function(p,y){return y.priority-p.priority});var r=new Ce(0,0,0,0);function n(p){if(!p.ignore){var y=p.ensureState("emphasis");y.ignore==null&&(y.ignore=!1)}p.ignore=!0}for(var i=0;i=0&&n.attr(a.oldLayoutSelect),Te(h,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Ge(n,u,r,l)}else if(n.attr(u),!rc(n).valueAnimation){var f=be(n.style.opacity,1);n.style.opacity=0,lt(n,{style:{opacity:f}},r,l)}if(a.oldLayout=u,n.states.select){var v=a.oldLayoutSelect={};Md(v,u,Dd),Md(v,n.states.select,Dd)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};Md(d,u,Dd),Md(d,n.states.emphasis,Dd)}h5(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=rJ(i),o=a.oldLayout,p={points:i.shape.points};o?(i.attr({shape:o}),Ge(i,{shape:p},r)):(i.setShape(p),i.style.strokePercent=0,lt(i,{style:{strokePercent:1}},r)),a.oldLayout=p}},t}();const iJ=nJ;var _1=Ve();function aJ(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,n){var i=_1(r).labelManager;i||(i=_1(r).labelManager=new iJ),i.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,r,n){var i=_1(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}var S1=Math.sin,x1=Math.cos,MF=Math.PI,is=Math.PI*2,oJ=180/MF,sJ=function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,r){this._add("M",e,r)},t.prototype.lineTo=function(e,r){this._add("L",e,r)},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){this._add("C",e,r,n,i,a,o)},t.prototype.quadraticCurveTo=function(e,r,n,i){this._add("Q",e,r,n,i)},t.prototype.arc=function(e,r,n,i,a,o){this.ellipse(e,r,n,n,0,i,a,o)},t.prototype.ellipse=function(e,r,n,i,a,o,s,l){var u=s-o,c=!l,f=Math.abs(u),h=Ka(f-is)||(c?u>=is:-u>=is),v=u>0?u%is:u%is+is,d=!1;h?d=!0:Ka(f)?d=!1:d=v>=MF==!!c;var p=e+n*x1(o),y=r+i*S1(o);this._start&&this._add("M",p,y);var g=Math.round(a*oJ);if(h){var m=1/this._p,_=(c?1:-1)*(is-m);this._add("A",n,i,g,1,+c,e+n*x1(o+_),r+i*S1(o+_)),m>.01&&this._add("A",n,i,g,0,+c,p,y)}else{var S=e+n*x1(s),w=r+i*S1(s);this._add("A",n,i,g,+d,+c,S,w)}},t.prototype.rect=function(e,r,n,i){this._add("M",e,r),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,r,n,i,a,o,s,l,u){for(var c=[],f=this._p,h=1;h"}function gJ(t){return""}function aT(t,e){e=e||{};var r=e.newline?` -`:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return pJ(o,s)+(o!=="style"?Cr(l):l||"")+(a?""+r+H(a,function(u){return n(u)}).join(r)+r:"")+gJ(o)}return n(t)}function yJ(t,e,r){r=r||{};var n=r.newline?` -`:"",i=" {"+n,a=n+"}",o=H(Ie(t),function(l){return l+i+H(Ie(t[l]),function(u){return u+":"+t[l][u]+";"}).join(n)+a}).join(n),s=H(Ie(e),function(l){return"@keyframes "+l+i+H(Ie(e[l]),function(u){return u+i+H(Ie(e[l][u]),function(c){var f=e[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":[""].join(n)}function Ux(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function FL(t,e,r,n){return Ht("svg","root",{width:t,height:e,xmlns:LF,"xmlns:xlink":PF,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+t+" "+e:!1},r)}var VL={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},fs="transform-origin";function mJ(t,e,r){var n=F({},t.shape);F(n,e),t.buildPath(r,n);var i=new DF;return i.reset($B(t)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function _J(t,e){var r=e.originX,n=e.originY;(r||n)&&(t[fs]=r+"px "+n+"px")}var SJ={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function EF(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function xJ(t,e,r){var n=t.shape.paths,i={},a,o;if(M(n,function(l){var u=Ux(r.zrId);u.animation=!0,dm(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,h=Ie(c),v=h.length;if(v){o=h[v-1];var d=c[o];for(var p in d){var y=d[p];i[p]=i[p]||{d:""},i[p].d+=y.d||""}for(var g in f){var m=f[g].animation;m.indexOf(o)>=0&&(a=m)}}}),!!a){e.d=!1;var s=EF(i,r);return a.replace(o,s)}}function GL(t){return Z(t)?VL[t]?"cubic-bezier("+VL[t]+")":Xb(t)?t:"":""}function dm(t,e,r,n){var i=t.animators,a=i.length,o=[];if(t instanceof qy){var s=xJ(t,e,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u0}).length){var me=EF(b,r);return me+" "+m[0]+" both"}}for(var y in l){var s=p(l[y]);s&&o.push(s)}if(o.length){var g=r.zrId+"-cls-"+r.cssClassIdx++;r.cssNodes["."+g]={animation:o.join(",")},e.class=g}}var Nh=Math.round;function RF(t){return t&&Z(t.src)}function kF(t){return t&&ae(t.toDataURL)}function oT(t,e,r,n){hJ(function(i,a){var o=i==="fill"||i==="stroke";o&&WB(a)?NF(e,t,i,n):o&&qb(a)?BF(r,t,i,n):t[i]=a},e,r,!1),DJ(r,t,n)}function HL(t){return Ka(t[0]-1)&&Ka(t[1])&&Ka(t[2])&&Ka(t[3]-1)}function wJ(t){return Ka(t[4])&&Ka(t[5])}function sT(t,e,r){if(e&&!(wJ(e)&&HL(e))){var n=r?10:1e4;t.transform=HL(e)?"translate("+Nh(e[4]*n)/n+" "+Nh(e[5]*n)/n+")":t9(e)}}function UL(t,e,r){for(var n=t.points,i=[],a=0;a"u"){var y="Image width/height must been given explictly in svg-ssr renderer.";mr(h,y),mr(v,y)}else if(h==null||v==null){var g=function(A,D){if(A){var L=A.elm,P=h||D.width,I=v||D.height;A.tag==="pattern"&&(u?(I=1,P/=a.width):c&&(P=1,I/=a.height)),A.attrs.width=P,A.attrs.height=I,L&&(L.setAttribute("width",P),L.setAttribute("height",I))}},m=oC(d,null,t,function(A){l||g(x,A),g(f,A)});m&&m.width&&m.height&&(h=h||m.width,v=v||m.height)}f=Ht("image","img",{href:d,width:h,height:v}),o.width=h,o.height=v}else i.svgElement&&(f=le(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(f){var _,S;l?_=S=1:u?(S=1,_=o.width/a.width):c?(_=1,S=o.height/a.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var w=YB(i);w&&(o.patternTransform=w);var x=Ht("pattern","",o,[f]),b=aT(x),C=n.patternCache,T=C[b];T||(T=n.zrId+"-p"+n.patternIdx++,C[b]=T,o.id=T,x=n.defs[T]=Ht("pattern",T,o,[f])),e[r]=Fy(T)}}function LJ(t,e,r){var n=r.clipPathCache,i=r.defs,a=n[t.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};n[t.id]=a,i[a]=Ht("clipPath",a,o,[OF(t,r)])}e["clip-path"]=Fy(a)}function YL(t){return document.createTextNode(t)}function ms(t,e,r){t.insertBefore(e,r)}function jL(t,e){t.removeChild(e)}function XL(t,e){t.appendChild(e)}function zF(t){return t.parentNode}function FF(t){return t.nextSibling}function w1(t,e){t.textContent=e}var ZL=58,PJ=120,IJ=Ht("","");function Wx(t){return t===void 0}function xi(t){return t!==void 0}function EJ(t,e,r){for(var n={},i=e;i<=r;++i){var a=t[i].key;a!==void 0&&(n[a]=i)}return n}function df(t,e){var r=t.key===e.key,n=t.tag===e.tag;return n&&r}function Bh(t){var e,r=t.children,n=t.tag;if(xi(n)){var i=t.elm=IF(n);if(lT(IJ,t),G(r))for(e=0;ea?(d=r[l+1]==null?null:r[l+1].elm,VF(t,d,r,i,l)):zg(t,e,n,a))}function Gl(t,e){var r=e.elm=t.elm,n=t.children,i=e.children;t!==e&&(lT(t,e),Wx(e.text)?xi(n)&&xi(i)?n!==i&&RJ(r,n,i):xi(i)?(xi(t.text)&&w1(r,""),VF(r,null,i,0,i.length-1)):xi(n)?zg(r,n,0,n.length-1):xi(t.text)&&w1(r,""):t.text!==e.text&&(xi(n)&&zg(r,n,0,n.length-1),w1(r,e.text)))}function kJ(t,e){if(df(t,e))Gl(t,e);else{var r=t.elm,n=zF(r);Bh(e),n!==null&&(ms(n,e.elm,FF(r)),zg(n,[t],0,0))}return e}var OJ=0,NJ=function(){function t(e,r,n){if(this.type="svg",this.refreshHover=qL(),this.configLayer=qL(),this.storage=r,this._opts=n=F({},n),this.root=e,this._id="zr"+OJ++,this._oldVNode=FL(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=IF("svg");lT(null,this._oldVNode),i.appendChild(a),e.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",kJ(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return $L(e,Ux(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=Ux(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress;var o=[],s=this._bgVNode=BJ(n,i,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=Ht("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=H(Ie(a.defs),function(h){return a.defs[h]});if(u.length&&o.push(Ht("defs","defs",{},u)),e.animation){var c=yJ(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=Ht("style","stl",{},[],c);o.push(f)}}return FL(n,i,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},aT(this.renderToVNode({animation:be(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:be(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,r,n){for(var i=e.length,a=[],o=0,s,l,u=0,c=0;c=0&&!(h&&l&&h[p]===l[p]);p--);for(var y=d-1;y>p;y--)o--,s=a[o-1];for(var g=p+1;g=s)}}for(var f=this.__startIndex;f15)break}}I.prevElClipPaths&&g.restore()};if(m)if(m.length===0)C=y.__endIndex;else for(var A=v.dpr,D=0;D0&&e>i[0]){for(l=0;le);l++);s=n[i[l]]}if(i.splice(l+1,0,e),n[e]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.__painter=this}},t.prototype.eachLayer=function(e,r){for(var n=this._zlevelList,i=0;i0?Ld:0),this._needsManuallyCompositing),c.__builtin__||Ry("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),a=c),i.__dirty&Zr&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(f,h){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,M(this._layers,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var n=this._layerConfig;n[e]?Se(n[e],r,!0):n[e]=r;for(var i=0;i-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(at);const XJ=jJ;function zu(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Nu(t,e,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(e[a])}return n.join(" ")}var ZJ=function(t){N(e,t);function e(r,n,i,a){var o=t.call(this)||this;return o.updateData(r,n,i,a),o}return e.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=Mt(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=qJ,this._symbolType=r,this.add(s)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){da(this.childAt(0))},e.prototype.downplay=function(){pa(this.childAt(0))},e.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},e.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},e.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,n),u=o!==this._symbolType,c=a&&a.disableAnimation;if(u){var f=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,f)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(v):Ge(h,v,s,n),ui(h)}if(this._updateCommon(r,n,l,i,a),u){var h=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,lt(h,v,s,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,c,f,h,v,d,p,y,g;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,f=a.selectItemStyle,h=a.focus,v=a.blurScope,p=a.labelStatesModels,y=a.hoverScale,g=a.cursorStyle,d=a.emphasisDisabled),!a||r.hasItemOption){var m=a&&a.itemModel?a.itemModel:r.getItemModel(n),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=m.getModel(["select","itemStyle"]).getItemStyle(),c=m.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=Wt(m),y=_.getShallow("scale"),g=m.getShallow("cursor")}var S=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var w=cc(r.getItemVisual(n,"symbolOffset"),i);w&&(s.x=w[0],s.y=w[1]),g&&s.attr("cursor",g);var x=r.getItemVisual(n,"style"),b=x.fill;if(s instanceof Qt){var C=s.style;s.useStyle(F({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},x))}else s.__isEmptyBrush?s.useStyle(F({},x)):s.useStyle(x),s.style.decal=null,s.setColor(b,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var T=r.getItemVisual(n,"liftZ"),A=this._z2;T!=null?A==null&&(this._z2=s.z2,s.z2+=T):A!=null&&(s.z2=A,this._z2=null);var D=o&&o.useNameLabel;sr(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:b,defaultOpacity:x.opacity});function L(E){return D?r.getName(E):zu(r,E)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var P=s.ensureState("emphasis");P.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var I=y==null||y===!0?Math.max(1.1,3/this._sizeY):isFinite(y)&&y>0?+y:1;P.scaleX=this._sizeX*I,P.scaleY=this._sizeY*I,this.setSymbolScale(1),yt(this,h,v,d)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=pe(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&xo(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();xo(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return yv(r.getItemVisual(n,"symbolSize"))},e}(fe);function qJ(t,e){this.parent.drift(t,e)}const Sv=ZJ;function C1(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function JL(t){return t!=null&&!se(t)&&(t={isIgnore:t}),t||{}}function eP(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Wt(e),cursorStyle:e.get("cursor")}}var KJ=function(){function t(e){this.group=new fe,this._SymbolCtor=e||Sv}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=JL(r);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=eP(e),u={disableAnimation:s},c=r.getSymbolPoint||function(f){return e.getItemLayout(f)};a||n.removeAll(),e.diff(a).add(function(f){var h=c(f);if(C1(e,h,f,r)){var v=new o(e,f,l,u);v.setPosition(h),e.setItemGraphicEl(f,v),n.add(v)}}).update(function(f,h){var v=a.getItemGraphicEl(h),d=c(f);if(!C1(e,d,f,r)){n.remove(v);return}var p=e.getItemVisual(f,"symbol")||"circle",y=v&&v.getSymbolType&&v.getSymbolType();if(!v||y&&y!==p)n.remove(v),v=new o(e,f,l,u),v.setPosition(d);else{v.updateData(e,f,l,u);var g={x:d[0],y:d[1]};s?v.attr(g):Ge(v,g,i)}n.add(v),e.setItemGraphicEl(f,v)}).remove(function(f){var h=a.getItemGraphicEl(f);h&&h.fadeOut(function(){n.remove(h)},i)}).execute(),this._getSymbolPoint=c,this._data=e},t.prototype.updateLayout=function(){var e=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=e._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=eP(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n){this._progressiveEls=[],n=JL(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0?r=n[0]:n[1]<0&&(r=n[1]),r}function UF(t,e,r,n){var i=NaN;t.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=r.get(t.baseDim,n),o[1-a]=i,e.dataToPoint(o)}function JJ(t,e){var r=[];return e.diff(t).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 eee(t,e,r,n,i,a,o,s){for(var l=JJ(t,e),u=[],c=[],f=[],h=[],v=[],d=[],p=[],y=HF(i,e,o),g=t.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_=i||p<0)break;if(Gs(g,m)){if(l){p+=a;continue}break}if(p===r)t[a>0?"moveTo":"lineTo"](g,m),f=g,h=m;else{var _=g-u,S=m-c;if(_*_+S*S<.5){p+=a;continue}if(o>0){for(var w=p+a,x=e[w*2],b=e[w*2+1];x===g&&b===m&&y=n||Gs(x,b))v=g,d=m;else{A=x-u,D=b-c;var I=g-u,E=x-g,k=m-c,B=b-m,R=void 0,O=void 0;if(s==="x"){R=Math.abs(I),O=Math.abs(E);var z=A>0?1:-1;v=g-z*R*o,d=m,L=g+z*O*o,P=m}else if(s==="y"){R=Math.abs(k),O=Math.abs(B);var V=D>0?1:-1;v=g,d=m-V*R*o,L=g,P=m+V*O*o}else R=Math.sqrt(I*I+k*k),O=Math.sqrt(E*E+B*B),T=O/(O+R),v=g-A*o*(1-T),d=m-D*o*(1-T),L=g+A*o*T,P=m+D*o*T,L=ka(L,Oa(x,g)),P=ka(P,Oa(b,m)),L=Oa(L,ka(x,g)),P=Oa(P,ka(b,m)),A=L-g,D=P-m,v=g-A*R/O,d=m-D*R/O,v=ka(v,Oa(u,g)),d=ka(d,Oa(c,m)),v=Oa(v,ka(u,g)),d=Oa(d,ka(c,m)),A=g-v,D=m-d,L=g+A*O/R,P=m+D*O/R}t.bezierCurveTo(f,h,v,d,g,m),f=L,h=P}else t.lineTo(g,m)}u=g,c=m,p+=a}return y}var WF=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),tee=function(t){N(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new WF},e.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&Gs(i[o*2-2],i[o*2-1]);o--);for(;a=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[r,S]:[S,r]}s=v,l=d;break;case o.C:v=a[f++],d=a[f++],p=a[f++],y=a[f++],g=a[f++],m=a[f++];var w=u?hg(s,v,p,g,r,c):hg(l,d,y,m,r,c);if(w>0)for(var x=0;x=0){var S=u?zt(l,d,y,m,b):zt(s,v,p,g,b);return u?[r,S]:[S,r]}}s=g,l=m;break}}},e}(Pe),ree=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(WF),$F=function(t){N(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new ree},e.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&&Gs(i[s*2-2],i[s*2-1]);s--);for(;oe){a?r.push(o(a,l,e)):i&&r.push(o(i,l,0),o(i,l,e));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function aee(t,e,r){var n=t.getVisual("visualMeta");if(!(!n||!n.length||!t.count())&&e.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=t.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=e.getAxis(i),u=H(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var h=iee(u,i==="x"?r.getWidth():r.getHeight()),v=h.length;if(!v&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var d=10,p=h[0].coord-d,y=h[v-1].coord+d,g=y-p;if(g<.001)return"transparent";M(h,function(_){_.offset=(_.coord-p)/g}),h.push({offset:v?h[v-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:f[0]||"transparent"});var m=new Qu(0,0,0,0,h,!0);return m[i]=p,m[i+"2"]=y,m}}}function oee(t,e,r){var n=t.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&see(a,e))){var o=e.mapDimension(a.dim),s={};return M(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function see(t,e){var r=t.getExtent(),n=Math.abs(r[1]-r[0])/t.scale.count();isNaN(n)&&(n=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function lee(t,e){return isNaN(t)||isNaN(e)}function uee(t){for(var e=t.length/2;e>0&&lee(t[e*2-2],t[e*2-1]);e--);return e-1}function aP(t,e){return[t[e*2],t[e*2+1]]}function cee(t,e,r){for(var n=t.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function XF(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var z=p.getState("emphasis").style;z.lineWidth=+p.style.lineWidth+1}pe(p).seriesIndex=r.seriesIndex,yt(p,B,R,O);var V=iP(r.get("smooth")),Y=r.get("smoothMonotone");if(p.setShape({smooth:V,smoothMonotone:Y,connectNulls:C}),y){var re=l.getCalculationInfo("stackedOnSeries"),te=0;y.useStyle(oe(c.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),re&&(te=iP(re.get("smooth"))),y.setShape({smooth:V,stackedOnSmooth:te,smoothMonotone:Y,connectNulls:C}),or(y,r,"areaStyle"),pe(y).seriesIndex=r.seriesIndex,yt(y,B,R,O)}var ve=function(Me){a._changePolyState(Me)};l.eachItemGraphicEl(function(Me){Me&&(Me.onHoverStateChange=ve)}),this._polyline.onHoverStateChange=ve,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=f,this._step=D,this._valueOrigin=S,r.get("triggerLineEvent")&&(this.packEventData(r,p),y&&this.packEventData(r,y))},e.prototype.packEventData=function(r,n){pe(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},e.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=Qs(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 c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var h=r.get("zlevel")||0,v=r.get("z")||0;u=new Sv(o,s),u.x=c,u.y=f,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Qe.prototype.highlight.call(this,r,n,i,a)},e.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Qs(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 Qe.prototype.downplay.call(this,r,n,i,a)},e.prototype._changePolyState=function(r){var n=this._polygon;mg(this._polyline,r),n&&mg(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new tee({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new $F({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.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,c=u.get("animationDuration");ae(c)&&(c=c(null));var f=u.get("animationDelay")||0,h=ae(f)?f(null):f;r.eachItemGraphicEl(function(v,d){var p=v;if(p){var y=[v.x,v.y],g=void 0,m=void 0,_=void 0;if(i)if(o){var S=i,w=n.pointToCoord(y);a?(g=S.startAngle,m=S.endAngle,_=-w[1]/180*Math.PI):(g=S.r0,m=S.r,_=w[0])}else{var x=i;a?(g=x.x,m=x.x+x.width,_=v.x):(g=x.y+x.height,m=x.y,_=v.y)}var b=m===g?0:(_-g)/(m-g);l&&(b=1-b);var C=ae(f)?f(d):c*b+h,T=p.getSymbolPath(),A=T.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}),T.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(XF(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 Oe({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=uee(l);c>=0&&(sr(s,Wt(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,h,v){return v!=null?GF(o,v):zu(o,f)},enableTextSetter:!0},fee(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var f=i.getLayout("points"),h=i.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,y=l.getBaseAxis(),g=y.isHorizontal(),m=y.inverse,_=n.shape,S=m?g?_.x:_.y+_.height:g?_.x+_.width:_.y,w=(g?p:0)*(m?-1:1),x=(g?0:-p)*(m?-1:1),b=g?"x":"y",C=cee(f,S,b),T=C.range,A=T[1]-T[0],D=void 0;if(A>=1){if(A>1&&!v){var L=aP(f,T[0]);u.attr({x:L[0]+w,y:L[1]+x}),o&&(D=h.getRawValue(T[0]))}else{var L=c.getPointOn(S,b);L&&u.attr({x:L[0]+w,y:L[1]+x});var P=h.getRawValue(T[0]),I=h.getRawValue(T[1]);o&&(D=hz(i,d,P,I,C.t))}a.lastFrameIndex=T[0]}else{var E=r===1||a.lastFrameIndex>0?T[0]:0,L=aP(f,E);o&&(D=h.getRawValue(E)),u.attr({x:L[0]+w,y:L[1]+x})}o&&rc(u).setLabelText(D)}},e.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,h=eee(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,y=h.stackedOnNext;if(o&&(v=Na(h.current,i,o,l),d=Na(h.stackedOnCurrent,i,o,l),p=Na(h.next,i,o,l),y=Na(h.stackedOnNext,i,o,l)),nP(v,p)>3e3||c&&nP(d,y)>3e3){u.stopAnimation(),u.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:y}));return}u.shape.__points=h.current,u.shape.points=v;var g={shape:{points:p}};h.current!==v&&(g.shape.__points=h.next),u.stopAnimation(),Ge(u,g,f),c&&(c.setShape({points:v,stackedOnPoints:d}),c.stopAnimation(),Ge(c,{shape:{stackedOnPoints:y}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var m=[],_=h.status,S=0;S<_.length;S++){var w=_[S].cmd;if(w==="="){var x=r.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var b=u.shape.__points,C=0;Ce&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(f||1),v=Math.round(s/h);if(isFinite(v)&&v>1){a==="lttb"&&e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/v));var d=void 0;Z(a)?d=dee[a]:ae(a)&&(d=a),d&&e.setData(i.downSample(i.mapDimension(u.dim),1/v,d,pee))}}}}}function gee(t){t.registerChartView(vee),t.registerSeriesModel(XJ),t.registerLayout(wv("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,ZF("line"))}var qF=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return Vi(null,this,{useEncodeDefaulter:!0})},e.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(h,v){if(h.type==="category"&&n!=null){var d=h.getTicksCoords(),p=o[v],y=n[v]==="x1"||n[v]==="y1";if(y&&(p+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[y?1:0]);return}for(var g=void 0,m=void 0,_=1,S=0;Sp){m=(w+g)/2;break}S===1&&(_=x-d[0].tickValue)}m==null&&(g?g&&(m=d[d.length-1].coord):m=d[0].coord),s[v]=h.toGlobalCoord(m)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=a.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(at);at.registerClass(qF);const Fg=qF;var yee=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return Vi(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},e.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=ko(Fg.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(Fg);const mee=yee;var _ee=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),See=function(t){N(e,t);function e(r){var n=t.call(this,r)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new _ee},e.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,c=n.startAngle,f=n.endAngle,h=n.clockwise,v=Math.PI*2,d=h?f-cMath.PI/2&&cs)return!0;s=f}return!1},e.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},e.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}))}},e.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})},e.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.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){Mh(a,r,pe(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Qe),oP={cartesian2d:function(t,e){var r=e.width<0?-1:1,n=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,a=t.y+t.height,o=A1(e.x,t.x),s=M1(e.x+e.width,i),l=A1(e.y,t.y),u=M1(e.y+e.height,a),c=si?s:o,e.y=f&&l>a?u:l,e.width=c?0:s-o,e.height=f?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),c||f},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}var i=M1(e.r,t.r),a=A1(e.r0,t.r0);e.r=i,e.r0=a;var o=i-a<0;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},sP={cartesian2d:function(t,e,r,n,i,a,o,s,l){var u=new Ne({shape:F({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(t,e,r,n,i,a,o,s,l){var u=!i&&l?Vg:Dr,c=new u({shape:n,z2:1});c.name="item";var f=KF(i);if(c.calculateTextPosition=xee(f,{isRoundCap:u===Vg}),a){var h=c.shape,v=i?"r":"endAngle",d={};h[v]=i?n.r0:n.startAngle,d[v]=n[v],(s?Ge:lt)(c,{shape:d},a)}return c}};function Tee(t,e){var r=t.get("realtimeSort",!0),n=e.getBaseAxis();if(r&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function lP(t,e,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?Ge:lt)(r,{shape:l},e,i,null);var c=e?t.baseAxis.model:null;(o?Ge:lt)(r,{shape:u},c,i)}function uP(t,e){for(var r=0;r0?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(t,e,r){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function Dee(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function KF(t){return function(e){var r=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(t)}function fP(t,e,r,n,i,a,o,s){var l=e.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var c=t.shape,f=Rs(n.getModel("itemStyle"),c,!0);F(c,f),t.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var h=n.getShallow("cursor");h&&t.attr("cursor",h);var v=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=Wt(n);sr(t,d,{labelFetcher:a,labelDataIndex:r,defaultText:zu(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=t.getTextContent();if(s&&p){var y=n.get(["label","position"]);t.textConfig.inside=y==="middle"?!0:null,wee(t,y==="outside"?v:y,KF(o),n.get(["label","rotate"]))}f5(p,d,a.getRawValue(r),function(m){return GF(e,m)});var g=n.getModel(["emphasis"]);yt(t,g.get("focus"),g.get("blurScope"),g.get("disabled")),or(t,n),Dee(i)&&(t.style.fill="none",t.style.stroke="none",M(t.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function Lee(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,a)}var Pee=function(){function t(){}return t}(),hP=function(t){N(e,t);function e(r){var n=t.call(this,r)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new Pee},e.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?r:null},30,!1);function Iee(t,e,r){for(var n=t.baseDimIdx,i=1-n,a=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,f=a.length/3;c=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function QF(t,e,r){if(hl(r,"cartesian2d")){var n=e,i=r.getArea();return{x:t?n.x:i.x,y:t?i.y:n.y,width:t?n.width:i.width,height:t?i.height:n.height}}else{var i=r.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:a.r0,r:t?i.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:Math.PI*2}}}function Eee(t,e,r){var n=t.type==="polar"?Dr:Ne;return new n({shape:QF(e,r,t),silent:!0,z2:0})}const Ree=Cee;function kee(t){t.registerChartView(Ree),t.registerSeriesModel(mee),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,ye(rF,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,nF("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,ZF("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var n=e.componentType||"series";r.eachComponent({mainType:n,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}var Rd=Math.PI*2,pP=Math.PI/180;function JF(t,e){return It(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function eV(t,e){var r=JF(t,e),n=t.get("center"),i=t.get("radius");G(i)||(i=[0,i]);var a=j(r.width,e.getWidth()),o=j(r.height,e.getHeight()),s=Math.min(a,o),l=j(i[0],s/2),u=j(i[1],s/2),c,f,h=t.coordinateSystem;if(h){var v=h.dataToPoint(n);c=v[0]||0,f=v[1]||0}else G(n)||(n=[n,n]),c=j(n[0],a)+r.x,f=j(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function Oee(t,e,r){e.eachSeriesByType(t,function(n){var i=n.getData(),a=i.mapDimension("value"),o=JF(n,r),s=eV(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,h=-n.get("startAngle")*pP,v=n.get("minAngle")*pP,d=0;i.each(a,function(A){!isNaN(A)&&d++});var p=i.getSum(a),y=Math.PI/(p||d)*2,g=n.get("clockwise"),m=n.get("roseType"),_=n.get("stillShowZeroSum"),S=i.getDataExtent(a);S[0]=0;var w=Rd,x=0,b=h,C=g?1:-1;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(A,D){var L;if(isNaN(A)){i.setItemLayout(D,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:l,cy:u,r0:f,r:m?NaN:c});return}m!=="area"?L=p===0&&_?y:A*y:L=Rd/d,Lr?g:y,w=Math.abs(_.label.y-r);if(w>=S.maxY){var x=_.label.x-e-_.len2*i,b=n+_.len,C=Math.abs(x)t.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var p=n.getBoundingRect();a.width=p.width;var y=(n.style.margin||0)+2.1;a.height=p.height+y,a.y-=(a.height-f)/2}}}function D1(t){return t.position==="center"}function zee(t){var e=t.getData(),r=[],n,i,a=!1,o=(t.get("minShowLabelAngle")||0)*Nee,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,f=s.y,h=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var b in x.states)if(x.states[b].ignore===!1)return!0;return!1}e.each(function(x){var b=e.getItemGraphicEl(x),C=b.shape,T=b.getTextContent(),A=b.getTextGuideLine(),D=e.getItemModel(x),L=D.getModel("label"),P=L.get("position")||D.get(["emphasis","label","position"]),I=L.get("distanceToLabelLine"),E=L.get("alignTo"),k=j(L.get("edgeDistance"),u),B=L.get("bleedMargin"),R=D.getModel("labelLine"),O=R.get("length");O=j(O,u);var z=R.get("length2");if(z=j(z,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":Y>0?"left":"right"}var ct=Math.PI,ot=0,mt=L.get("rotate");if(Fe(mt))ot=mt*(ct/180);else if(P==="center")ot=0;else if(mt==="radial"||mt===!0){var sn=Y<0?-V+ct:-V;ot=sn}else if(mt==="tangential"&&P!=="outside"&&P!=="outer"){var Jt=Math.atan2(Y,re);Jt<0&&(Jt=ct*2+Jt);var No=re>0;No&&(Jt=ct+Jt),ot=Jt-ct}if(a=!!ot,T.x=te,T.y=ve,T.rotation=ot,T.setStyle({verticalAlign:"middle"}),ue){T.setStyle({align:me});var Ta=T.states.select;Ta&&(Ta.x+=T.x,Ta.y+=T.y)}else{var fi=T.getBoundingRect().clone();fi.applyTransform(T.getComputedTransform());var Ca=(T.style.margin||0)+2.1;fi.y-=Ca/2,fi.height+=Ca,r.push({label:T,labelLine:A,position:P,len:O,len2:z,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new we(Y,re),linePoints:Me,textAlign:me,labelDistance:I,labelAlignTo:E,edgeDistance:k,bleedMargin:B,rect:fi,unconstrainedWidth:fi.width,labelStyleWidth:T.style.width})}b.setTextConfig({inside:ue})}}),!a&&t.get("avoidLabelOverlap")&&Bee(r,n,i,l,u,h,c,f);for(var p=0;p0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=a.r0}},e.type="pie",e}(Qe);const Gee=Vee;function vc(t,e,r){e=G(e)&&{coordDimensions:e}||F({encodeDefine:t.getEncode()},e);var n=t.getSource(),i=fc(n,e).dimensions,a=new gr(i,t);return a.initData(n,r),a}var Hee=function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,r)},t}();const Cv=Hee;var Uee=Ve(),Wee=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Cv(Q(this.getData,this),Q(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return vc(this,{coordDimensions:["value"],encodeDefaulter:ye(DC,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),i=Uee(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=nz(o,n.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){Ks(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},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(at);const $ee=Wee;function Yee(t){return{seriesType:t,reset:function(e,r){var n=e.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(Fe(o)&&!isNaN(o)&&o<0)})}}}function jee(t){t.registerChartView(Gee),t.registerSeriesModel($ee),g3("pie",t.registerAction),t.registerLayout(ye(Oee,"pie")),t.registerProcessor(bv("pie")),t.registerProcessor(Yee("pie"))}var Xee=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r,n){return Vi(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(at);const Zee=Xee;var rV=4,qee=function(){function t(){}return t}(),Kee=function(t){N(e,t);function e(r){var n=t.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new qee},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.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]=0;u--){var c=u*2,f=a[c]-s/2,h=a[c+1]-l/2;if(r>=f&&n>=h&&r<=f+s&&n<=h+l)return u}return-1},e.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},e.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,c=-1/0,f=-1/0,h=0;h=0&&(u.dataIndex=f+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();const Jee=Qee;var ete=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,{clipShape:this._getClipShape(r)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},e.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=wv("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},e.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},e.prototype._getClipShape=function(r){var n=r.coordinateSystem,i=n&&n.getArea&&n.getArea();return r.get("clip",!0)?i:null},e.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 Jee:new xv,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Qe);const tte=ete;var rte=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(ke);const nte=rte;var Yx=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Pt).models[0]},e.type="cartesian2dAxis",e}(ke);Ct(Yx,hc);var nV={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},ite=Se({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},nV),uT=Se({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},nV),ate=Se({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},uT),ote=oe({logBase:10},uT);const iV={category:ite,value:uT,time:ate,log:ote};var ste={value:1,category:1,time:1,log:1};function Fu(t,e,r,n){M(ste,function(i,a){var o=Se(Se({},iV[a],!0),n,!0),s=function(l){N(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var h=Ph(this),v=h?ic(c):{},d=f.getTheme();Se(c,d.get(a+"Axis")),Se(c,this.getDefaultOption()),c.type=yP(c),h&&wo(c,v,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=zx.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+a,u.defaultOption=o,u}(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",yP)}function yP(t){return t.type||(t.data?"category":"value")}var lte=function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return H(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Ye(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t}();const ute=lte;var jx=["x","y"];function mP(t){return t.type==="interval"||t.type==="time"}var cte=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=jx,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!mP(r)||!mP(n))){var i=r.getExtent(),a=n.getExtent(),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 c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,h=o[0]-i[0]*c,v=o[1]-a[0]*f,d=this._transform=[c,0,0,f,h,v];this._invTransform=ul([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.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]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new Ce(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.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 Kt(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},e.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},e.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return Kt(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},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(){var r=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(r[0],r[1]),a=Math.min(n[0],n[1]),o=Math.max(r[0],r[1])-i,s=Math.max(n[0],n[1])-a;return new Ce(i,a,o,s)},e}(ute),fte=function(t){N(e,t);function e(r,n,i,a,o){var s=t.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.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},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e}(zn);const hte=fte;function Xx(t,e,r){r=r||{};var n=t.coordinateSystem,i=e.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=e.get("offset")||0,d=u==="x"?[f[2]-v,f[3]+v]:[f[0]-v,f[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(p,d[1]),d[0])}a.position=[u==="y"?d[h[l]]:f[0],u==="x"?d[h[l]]:f[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var y={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=y[s],a.labelOffset=o?d[h[s]]-d[h.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Vt(r.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var g=e.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-g:g,a.z2=1,a}function _P(t){return t.get("coordinateSystem")==="cartesian2d"}function SP(t){var e={xAxisModel:null,yAxisModel:null};return M(e,function(r,n){var i=n.replace(/Model$/,""),a=t.getReferringComponents(i,Pt).models[0];e[n]=a}),e}var L1=Math.log;function aV(t,e,r){var n=bo.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=cF(t,e),u=l.extent,c=l.fixMin,f=l.fixMax;if(t.type==="log"){var h=L1(t.base);u=[L1(u[0])/h,L1(u[1])/h]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var v=n.getExtent.call(t);c&&(u[0]=v[0]),f&&(u[1]=v[1]);var d=n.getInterval.call(t),p=u[0],y=u[1];if(c&&f)d=(y-p)/o;else if(c)for(y=u[0]+d*o;yu[0]&&isFinite(p)&&isFinite(u[0]);)d=p1(d),p=u[1]-d*o;else{var g=t.getTicks().length-1;g>o&&(d=p1(d));var m=d*o;y=Math.ceil(u[1]/d)*d,p=gt(y-m),p<0&&u[0]>=0?(p=0,y=gt(m)):y>0&&u[1]<=0&&(y=0,p=-gt(m))}var _=(i[0].value-a[0].value)/s,S=(i[o].value-a[o].value)/s;n.setExtent.call(t,p+d*_,y+d*S),n.setInterval.call(t,d),(_||S)&&n.setNiceExtent.call(t,p+d,y-d)}var vte=function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=jx,this._initCartesian(e,r,n),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var n=this._axesMap;this._updateScale(e,this.model);function i(o){var s,l=Ie(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var h=+l[f],v=o[h],d=v.model,p=v.scale;Fx(p)&&d.get("alignTicks")&&d.get("interval")==null?c.push(v):(rl(p,d),Fx(p)&&(s=v))}c.length&&(s||(s=c.pop(),rl(s.scale,s.model)),M(c,function(y){aV(y.scale,y.model,s.scale)}))}}i(n.x),i(n.y);var a={};M(n.x,function(o){xP(n,"y",o,a)}),M(n.y,function(o){xP(n,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var i=e.getBoxLayoutParams(),a=!n&&e.get("containLabel"),o=It(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(M(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=vQ(u);if(c){var f=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+h,u.position==="top"?o.y+=c.height+h:u.position==="left"&&(o.x+=c.width+h)}}}),l()),M(this._coordsList,function(u){u.calcAffineTransform()});function l(){M(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(f[h],f[1-h]),dte(u,c?o.x:o.y)})}},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}se(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):wh(i-Qa)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t}(),bP={axisLine:function(t,e,r,n){var i=e.get(["axisLine","show"]);if(i==="auto"&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),!!i){var a=e.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(Kt(s,s,o),Kt(l,l,o));var c=F({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Gt({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Ou(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var h=e.get(["axisLine","symbol"]);if(h!=null){var v=e.get(["axisLine","symbolSize"]);Z(h)&&(h=[h,h]),(Z(v)||Fe(v))&&(v=[v,v]);var d=cc(e.get(["axisLine","symbolOffset"])||0,v),p=v[0],y=v[1];M([{rotate:t.rotation+Math.PI/2,offset:d[0],r:0},{rotate:t.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,m){if(h[m]!=="none"&&h[m]!=null){var _=Mt(h[m],-p/2,-y/2,p,y,c.stroke,!0),S=g.r+g.offset,w=u?l:s;_.attr({rotation:g.rotate,x:w[0]+S*Math.cos(t.rotation),y:w[1]-S*Math.sin(t.rotation),silent:!0,z2:11}),r.add(_)}})}}},axisTickLabel:function(t,e,r,n){var i=mte(r,n,e,t),a=Ste(r,n,e,t);if(yte(e,a,i),_te(r,n,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=bF(H(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));AF(o)}},axisName:function(t,e,r,n){var i=Vt(t.axisName,e.get("name"));if(i){var a=e.get("nameLocation"),o=t.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,TP(a)?t.labelOffset+o*l:0],h,v=e.get("nameRotate");v!=null&&(v=v*Qa/180);var d;TP(a)?h=Hs.innerTextLayout(t.rotation,v??t.rotation,o):(h=gte(t.rotation,a,v||0,u),d=t.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),y=e.get("nameTruncate",!0)||{},g=y.ellipsis,m=Vt(t.nameTruncateMaxWidth,y.maxWidth,d),_=new Oe({x:f[0],y:f[1],rotation:h.rotation,silent:Hs.isLabelSilent(e),style:tt(s,{text:i,font:p,overflow:"truncate",width:m,ellipsis:g,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(tc({el:_,componentModel:e,itemName:i}),_.__fullText=i,_.anid="name",e.get("triggerEvent")){var S=Hs.makeAxisEventDataBase(e);S.targetType="axisName",S.name=i,pe(_).eventData=S}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function gte(t,e,r,n){var i=eC(r-t),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return wh(i-Qa/2)?(o=l?"bottom":"top",a="center"):wh(i-Qa*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",iQa/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function yte(t,e,r){if(!fF(t.axis)){var n=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);e=e||[],r=r||[];var a=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=r[0],c=r[1],f=r[r.length-1],h=r[r.length-2];n===!1?(fn(a),fn(u)):CP(a,o)&&(n?(fn(o),fn(c)):(fn(a),fn(u))),i===!1?(fn(s),fn(f)):CP(l,s)&&(i?(fn(l),fn(h)):(fn(s),fn(f)))}}function fn(t){t&&(t.ignore=!0)}function CP(t,e){var r=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(!(!r||!n)){var i=av([]);return Eo(i,i,-t.rotation),r.applyTransform(Ri([],i,t.getLocalTransform())),n.applyTransform(Ri([],i,e.getLocalTransform())),r.intersect(n)}}function TP(t){return t==="middle"||t==="center"}function oV(t,e,r,n,i){for(var a=[],o=[],s=[],l=0;l=0||t===e}function Ate(t){var e=cT(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=Zx(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=oe({color:d.color},l));var y=Se(le(d),{boundaryGap:r,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:p,triggerEvent:h},!1);if(Z(c)){var g=y.name;y.name=c.replace("{value}",g??"")}else ae(c)&&(y.name=c(y.name,y));var m=new qe(y,null,this.ecModel);return Ct(m,hc.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=v},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Se({lineStyle:{color:"#bbb"}},$c.axisLine),axisLabel:kd($c.axisLabel,!1),axisTick:kd($c.axisTick,!1),splitLine:kd($c.splitLine,!0),splitArea:kd($c.splitArea,!0),indicator:[]},e}(ke);const Hte=Gte;var Ute=["axisLine","axisTickLabel","axisName"],Wte=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=this.group;a.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},e.prototype._buildAxes=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes(),a=H(i,function(o){var s=o.model.get("showName")?o.name:"",l=new ma(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});M(a,function(o){M(Ute,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),h=l.get("color"),v=u.get("color"),d=G(h)?h:[h],p=G(v)?v:[v],y=[],g=[];function m(E,k,B){var R=B%k.length;return E[R]=E[R]||[],R}if(a==="circle")for(var _=i[0].getTicksCoords(),S=n.cx,w=n.cy,x=0;x<_.length;x++){if(c){var b=m(y,d,x);y[b].push(new li({shape:{cx:S,cy:w,r:_[x].coord}}))}if(f&&x<_.length-1){var b=m(g,p,x);g[b].push(new cv({shape:{cx:S,cy:w,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var C,T=H(i,function(E,k){var B=E.getTicksCoords();return C=C==null?B.length-1:Math.min(B.length-1,C),H(B,function(R){return n.coordToPoint(R.coord,k)})}),A=[],x=0;x<=C;x++){for(var D=[],L=0;L3?1.4:o>1?1.2:1.1,c=a>0?u:1/u;E1(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var f=Math.abs(a),h=(a>0?1:-1)*(f>3?.4:f>1?.15:.05);E1(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(r){if(!IP(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;E1(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},e}(kn);function E1(t,e,r,n,i){t.pointerChecker&&t.pointerChecker(n,i.originX,i.originY)&&(va(n.event),hV(t,e,r,n,i))}function hV(t,e,r,n,i){i.isAvailableBehavior=Q(Dp,null,r,n),t.trigger(e,i)}function Dp(t,e,r){var n=r[t];return!t||n&&(!Z(n)||e.event[n+"Key"])}const Tv=ere;function hT(t,e,r){var n=t.target;n.x+=e,n.y+=r,n.dirty()}function vT(t,e,r,n){var i=t.target,a=t.zoomLimit,o=t.zoom=t.zoom||1;if(o*=e,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/t.zoom;t.zoom=o,i.x-=(r-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var tre={axisPointer:1,tooltip:1,brush:1};function gm(t,e,r){var n=e.getComponentByElement(t.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!tre.hasOwnProperty(n.mainType)&&i&&i.model!==r}function vV(t){if(Z(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}var r=t;for(r.nodeType===9&&(r=r.firstChild);r.nodeName.toLowerCase()!=="svg"||r.nodeType!==1;)r=r.nextSibling;return r}var R1,Gg={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},EP=Ie(Gg),Hg={"alignment-baseline":"textBaseline","stop-color":"stopColor"},RP=Ie(Hg),rre=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(e,r){r=r||{};var n=vV(e);this._defsUsePending=[];var i=new fe;this._root=i;var a=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||r.width),l=parseFloat(n.getAttribute("height")||r.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),jr(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;are(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var h=ym(o);h.length>=4&&(c={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(c&&s!=null&&l!=null&&(f=pV(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var v=i;i=new fe,i.add(v),v.scaleX=v.scaleY=f.scale,v.x=f.x,v.y=f.y}return!r.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new Ne({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:a}},t.prototype._parseNode=function(e,r,n,i,a,o){var s=e.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=r;else{if(!a){var c=R1[s];if(c&&ee(R1,s)){l=c.call(this,e,r);var f=e.getAttribute("name");if(f){var h={name:f,namedFrom:null,svgNodeTagLower:s,el:l};n.push(h),s==="g"&&(u=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});r.add(l)}}var v=kP[s];if(v&&ee(kP,s)){var d=v.call(this,e),p=e.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var y=e.firstChild;y;)y.nodeType===1?this._parseNode(y,l,n,u,a,o):y.nodeType===3&&o&&this._parseText(y,l),y=y.nextSibling},t.prototype._parseText=function(e,r){var n=new Ch({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});hn(r,n),jr(e,n,this._defsUsePending,!1,!1),nre(n,r);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,r.add(n),n},t.internalField=function(){R1={g:function(e,r){var n=new fe;return hn(r,n),jr(e,n,this._defsUsePending,!1,!1),n},rect:function(e,r){var n=new Ne;return hn(r,n),jr(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,r){var n=new li;return hn(r,n),jr(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,r){var n=new Gt;return hn(r,n),jr(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,r){var n=new Xy;return hn(r,n),jr(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,r){var n=e.getAttribute("points"),i;n&&(i=BP(n));var a=new Lr({shape:{points:i||[]},silent:!0});return hn(r,a),jr(e,a,this._defsUsePending,!1,!1),a},polyline:function(e,r){var n=e.getAttribute("points"),i;n&&(i=BP(n));var a=new Er({shape:{points:i||[]},silent:!0});return hn(r,a),jr(e,a,this._defsUsePending,!1,!1),a},image:function(e,r){var n=new Qt;return hn(r,n),jr(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,r){var n=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new fe;return hn(r,s),jr(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,r){var n=e.getAttribute("x"),i=e.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new fe;return hn(r,s),jr(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(e,r){var n=e.getAttribute("d")||"",i=Uz(n);return hn(r,i),jr(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),t}(),kP={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),r=parseInt(t.getAttribute("y1")||"0",10),n=parseInt(t.getAttribute("x2")||"10",10),i=parseInt(t.getAttribute("y2")||"0",10),a=new Qu(e,r,n,i);return OP(t,a),NP(t,a),a},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),r=parseInt(t.getAttribute("cy")||"0",10),n=parseInt(t.getAttribute("r")||"0",10),i=new vC(e,r,n);return OP(t,i),NP(t,i),i}};function OP(t,e){var r=t.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(e.global=!0)}function NP(t,e){for(var r=t.firstChild;r;){if(r.nodeType===1&&r.nodeName.toLocaleLowerCase()==="stop"){var n=r.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var a={};dV(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function hn(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),oe(e.__inheritedStyle,t.__inheritedStyle))}function BP(t){for(var e=ym(t),r=[],n=0;n0;a-=2){var o=n[a],s=n[a-1],l=ym(o);switch(i=i||rn(),s){case"translate":oi(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":zy(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Eo(i,i,-parseFloat(l[0])*k1);break;case"skewX":var u=Math.tan(parseFloat(l[0])*k1);Ri(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*k1);Ri(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}e.setLocalTransform(i)}}var FP=/([^\s:;]+)\s*:\s*([^:;]+)/g;function dV(t,e,r){var n=t.getAttribute("style");if(n){FP.lastIndex=0;for(var i;(i=FP.exec(n))!=null;){var a=i[1],o=ee(Gg,a)?Gg[a]:null;o&&(e[o]=i[2]);var s=ee(Hg,a)?Hg[a]:null;s&&(r[s]=i[2])}}}function ure(t,e,r){for(var n=0;n0,y={api:n,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(y):l.resourceType==="geoSVG"&&this._buildSVG(y),this._updateController(e,r,n),this._updateMapSelectHandler(e,u,n,i)},t.prototype._buildGeoJSON=function(e){var r=this._regionsGroupByName=ie(),n=ie(),i=this._regionsGroup,a=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(v,d){return d&&(v=d(v)),v&&[v[0]*a.scaleX+a.x,v[1]*a.scaleY+a.y]}function f(v){for(var d=[],p=!u&&l&&l.project,y=0;y=0)&&(h=i);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;sr(e,Wt(n),{labelFetcher:h,labelDataIndex:f,defaultText:r},v);var d=e.getTextContent();if(d&&(gV(d).ignore=d.ignore,e.textConfig&&o)){var p=e.getBoundingRect().clone();e.textConfig.layoutRect=p,e.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function WP(t,e,r,n,i,a){t.data?t.data.setItemGraphicEl(a,e):pe(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:r,region:n&&n.option||{}}}function $P(t,e,r,n,i){t.data||tc({el:e,componentModel:i,itemName:r,itemTooltipOption:n.get("tooltip")})}function YP(t,e,r,n,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return yt(e,o,a.get("blurScope"),a.get("disabled")),t.isGeo&&pj(e,i,r),o}function jP(t,e,r){var n=[],i;function a(){i=[]}function o(){i.length&&(n.push(i),i=[])}var s=e({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!r&&s.polygonStart(),M(t,function(l){s.lineStart();for(var u=0;u-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(at);const Ire=Pre;function Ere(t,e){var r={};return M(t,function(n){n.each(n.mapDimension("value"),function(i,a){var o="ec-"+n.getName(a);r[o]=r[o]||[],isNaN(i)||r[o].push(i)})}),t[0].map(t[0].mapDimension("value"),function(n,i){for(var a="ec-"+t[0].getName(i),o=0,s=1/0,l=-1/0,u=r[a].length,c=0;c1?(S.width=_,S.height=_/y):(S.height=_,S.width=_*y),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var w=t.getBoxLayoutParams();w.aspect=y,S=It(w,{width:d,height:p})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}function Bre(t,e){M(e.get("geoCoord"),function(r,n){t.addGeoCoord(n,r)})}var zre=function(){function t(){this.dimensions=mV}return t.prototype.create=function(e,r){var n=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new KP(l+s,l,F({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=QP,u.resize(o,r)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var a={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),M(a,function(o,s){var l=H(o,function(c){return c.get("nameMap")}),u=new KP(s,s,F({nameMap:ky(l)},i(o[0])));u.zoomLimit=Vt.apply(null,H(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=QP,u.resize(o[0],r),M(o,function(c){c.coordinateSystem=u,Bre(u,c)})}),n},t.prototype.getFilledRegions=function(e,r,n,i){for(var a=(e||[]).slice(),o=ie(),s=0;s=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(s)}}function jre(t,e){var r=t.isExpand?t.children:[],n=t.parentNode.children,i=t.hierNode.i?n[t.hierNode.i-1]:null;if(r.length){qre(t);var a=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;i?(t.hierNode.prelim=i.hierNode.prelim+e(t,i),t.hierNode.modifier=t.hierNode.prelim-a):t.hierNode.prelim=a}else i&&(t.hierNode.prelim=i.hierNode.prelim+e(t,i));t.parentNode.hierNode.defaultAncestor=Kre(t,i,t.parentNode.hierNode.defaultAncestor||n[0],e)}function Xre(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function eI(t){return arguments.length?t:ene}function pf(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function Zre(t,e){return It(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function qre(t){for(var e=t.children,r=e.length,n=0,i=0;--r>=0;){var a=e[r];a.hierNode.prelim+=n,a.hierNode.modifier+=n,i+=a.hierNode.change,n+=a.hierNode.shift+i}}function Kre(t,e,r,n){if(e){for(var i=t,a=t,o=a.parentNode.children[0],s=e,l=i.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=O1(s),a=N1(a),s&&a;){i=O1(i),o=N1(o),i.hierNode.ancestor=t;var h=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);h>0&&(Jre(Qre(s,t,r),t,h),u+=h,l+=h),f+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!O1(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!N1(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=t)}return r}function O1(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function N1(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function Qre(t,e,r){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:r}function Jre(t,e,r){var n=r/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=r,e.hierNode.modifier+=r,e.hierNode.prelim+=r,t.hierNode.change+=n}function ene(t,e){return t.parentNode===e.parentNode?1:2}var tne=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),rne=function(t){N(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new tne},e.prototype.buildPath=function(r,n){var i=n.childPoints,a=i.length,o=n.parentPoint,s=i[0],l=i[a-1];if(a===1){r.moveTo(o[0],o[1]),r.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,h=j(n.forkPosition,1),v=[];v[c]=o[c],v[f]=o[f]+(l[f]-o[f])*h,r.moveTo(o[0],o[1]),r.lineTo(v[0],v[1]),r.moveTo(s[0],s[1]),v[c]=s[c],r.lineTo(v[0],v[1]),v[c]=l[c],r.lineTo(v[0],v[1]),r.lineTo(l[0],l[1]);for(var d=1;dm.x,w||(S=S-Math.PI));var b=w?"left":"right",C=s.getModel("label"),T=C.get("rotate"),A=T*(Math.PI/180),D=y.getTextContent();D&&(y.setTextConfig({position:C.get("position")||b,rotation:T==null?-S:A,origin:"center"}),D.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),P=L==="relative"?ph(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;P&&(pe(r).focus=P),ine(i,o,c,r,d,v,p,n),r.__edge&&(r.onHoverStateChange=function(I){if(I!=="blur"){var E=o.parentNode&&t.getItemGraphicEl(o.parentNode.dataIndex);E&&E.hoverState===uv||mg(r.__edge,I)}})}function ine(t,e,r,n,i,a,o,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),f=t.getOrient(),h=t.get(["lineStyle","curveness"]),v=t.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=n.__edge;if(u==="curve")e.parentNode&&e.parentNode!==r&&(p||(p=n.__edge=new fv({shape:Qx(c,f,h,i,i)})),Ge(p,{shape:Qx(c,f,h,a,o)},t));else if(u==="polyline"&&c==="orthogonal"&&e!==r&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var y=e.children,g=[],m=0;mr&&(r=i.height)}this.height=r+1},t.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var r=0,n=this.children,i=n.length;r=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,r)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(e)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(e,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,r)},t.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,r=0;r=0){var n=r.getData().tree.root,i=t.targetNode;if(Z(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var a=t.targetNodeId;if(a!=null&&(i=n.getNodeById(a)))return{node:i}}}function TV(t){for(var e=[];t;)t=t.parentNode,t&&e.push(t);return e.reverse()}function mT(t,e){var r=TV(t);return Te(r,e)>=0}function mm(t,e){for(var r=[];t;){var n=t.dataIndex;r.push({name:t.name,dataIndex:n,value:e.getRawValue(n)}),t=t.parentNode}return r.reverse(),r}var pne=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return e.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},i=r.leaves||{},a=new qe(i,this,this.ecModel),o=yT.createTree(n,this,s);function s(f){f.wrapMethod("getItemModel",function(h,v){var d=o.getNodeByDataIndex(v);return d&&d.children.length&&d.isExpand||(h.parentModel=a),h})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=r.expandAndCollapse,c=u&&r.initialTreeDepth>=0?r.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var h=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=h&&h.collapsed!=null?!h.collapsed:f.depth<=c}),o.data},e.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},e.prototype.setZoom=function(r){this.option.zoom=r},e.prototype.setCenter=function(r){this.option.center=r},e.prototype.formatTooltip=function(r,n,i){for(var a=this.getData().tree,o=a.root.children[0],s=a.getNodeByDataIndex(r),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return $t("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(r){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=mm(i,this),n.collapsed=!i.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(at);const gne=pne;function yne(t,e,r){for(var n=[t],i=[],a;a=n.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s=0;a--)r.push(i[a])}}function mne(t,e){t.eachSeriesByType("tree",function(r){_ne(r,e)})}function _ne(t,e){var r=Zre(t,e);t.layoutInfo=r;var n=t.get("layout"),i=0,a=0,o=null;n==="radial"?(i=2*Math.PI,a=Math.min(r.height,r.width)/2,o=eI(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(i=r.width,a=r.height,o=eI());var s=t.getData().tree.root,l=s.children[0];if(l){Yre(s),yne(l,jre,o),s.hierNode.modifier=-l.hierNode.prelim,jc(l,Xre);var u=l,c=l,f=l;jc(l,function(_){var S=_.getLayout().x;Sc.getLayout().x&&(c=_),_.depth>f.depth&&(f=_)});var h=u===c?1:o(u,c)/2,v=h-u.getLayout().x,d=0,p=0,y=0,g=0;if(n==="radial")d=i/(c.getLayout().x+h+v),p=a/(f.depth-1||1),jc(l,function(_){y=(_.getLayout().x+v)*d,g=(_.depth-1)*p;var S=pf(y,g);_.setLayout({x:S.x,y:S.y,rawX:y,rawY:g},!0)});else{var m=t.getOrient();m==="RL"||m==="LR"?(p=a/(c.getLayout().x+h+v),d=i/(f.depth-1||1),jc(l,function(_){g=(_.getLayout().x+v)*p,y=m==="LR"?(_.depth-1)*d:i-(_.depth-1)*d,_.setLayout({x:y,y:g},!0)})):(m==="TB"||m==="BT")&&(d=i/(c.getLayout().x+h+v),p=a/(f.depth-1||1),jc(l,function(_){y=(_.getLayout().x+v)*d,g=m==="TB"?(_.depth-1)*p:a-(_.depth-1)*p,_.setLayout({x:y,y:g},!0)}))}}}function Sne(t){t.eachSeriesByType("tree",function(e){var r=e.getData(),n=r.tree;n.eachNode(function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(i.dataIndex,"style");F(s,o)})})}function xne(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,r){r.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var i=e.dataIndex,a=n.getData().tree,o=a.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,r,n){r.eachComponent({mainType:"series",subType:"tree",query:e},function(i){var a=i.coordinateSystem,o=pT(a,e,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function wne(t){t.registerChartView(ane),t.registerSeriesModel(gne),t.registerLayout(mne),t.registerVisual(Sne),xne(t)}var aI=["treemapZoomToNode","treemapRender","treemapMove"];function bne(t){for(var e=0;e1;)a=a.parentNode;var o=Ax(t.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var Cne=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.preventUsingHoverLayer=!0,r}return e.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};MV(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new qe({itemStyle:o},this,n);a=r.levels=Tne(a,n);var l=H(a||[],function(f){return new qe(f,s,n)},this),u=yT.createTree(i,this,c);function c(f){f.wrapMethod("getItemModel",function(h,v){var d=u.getNodeByDataIndex(v),p=d?l[d.depth]:null;return h.parentModel=p||s,h})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return $t("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(r){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=mm(i,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},F(this.layoutInfo,r)},e.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=ie(),this._idIndexMapCount=0);var i=n.get(r);return i==null&&n.set(r,i=this._idIndexMapCount++),i},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){AV(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(at);function MV(t){var e=0;M(t.children,function(n){MV(n);var i=n.value;G(i)&&(i=i[0]),e+=i});var r=t.value;G(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=e),r<0&&(r=0),G(t.value)?t.value[0]=r:t.value=r}function Tne(t,e){var r=Ke(e.get("color")),n=Ke(e.get(["aria","decal","decals"]));if(r){t=t||[];var i,a;M(t,function(s){var l=new qe(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(a=!0)});var o=t[0]||(t[0]={});return i||(o.color=r.slice()),!a&&n&&(o.decal=n.slice()),t}}const Ane=Cne;var Mne=8,oI=8,B1=5,Dne=function(){function t(e){this.group=new fe,e.add(this.group)}return t.prototype.render=function(e,r,n,i){var a=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!n)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,f,u),this._renderContent(e,f,s,l,u,c,i),im(o,f.pos,f.box)}},t.prototype._prepare=function(e,r,n){for(var i=e;i;i=i.parentNode){var a=Ot(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+Mne*2,r.emptyItemWidth);r.totalWidth+=s+oI,r.renderList.push({node:i,text:a,width:s})}},t.prototype._renderContent=function(e,r,n,i,a,o,s){for(var l=0,u=r.emptyItemWidth,c=e.get(["breadcrumb","height"]),f=wX(r.pos,r.box),h=r.totalWidth,v=r.renderList,d=i.getModel("itemStyle").getItemStyle(),p=v.length-1;p>=0;p--){var y=v[p],g=y.node,m=y.width,_=y.text;h>f.width&&(h-=m-u,m=u,_=null);var S=new Lr({shape:{points:Lne(l,0,m,c,p===v.length-1,p===0)},style:oe(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Oe({style:tt(a,{text:_})}),textConfig:{position:"inside"},z2:Ku*1e4,onclick:ye(s,g)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=tt(o,{text:_}),S.ensureState("emphasis").style=d,yt(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),Pne(S,e,g),l+=m+oI}},t.prototype.remove=function(){this.group.removeAll()},t}();function Lne(t,e,r,n,i,a){var o=[[i?t:t-B1,e],[t+r,e],[t+r,e+n],[i?t:t-B1,e+n]];return!a&&o.splice(2,0,[t+r+B1,e+n/2]),!i&&o.push([t,e+n/2]),o}function Pne(t,e,r){pe(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&mm(r,e)}}const Ine=Dne;var Ene=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(e,r,n,i,a){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:r,duration:n,delay:i,easing:a}),!0)},t.prototype.finished=function(e){return this._finishedCallback=e,this},t.prototype.start=function(){for(var e=this,r=this._storage.length,n=function(){r--,r<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,a=this._storage.length;ilI||Math.abs(r.dy)>lI)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+r.dx,y:i.y+r.dy,width:i.width,height:i.height}})}},e.prototype._onZoom=function(r){var n=r.originX,i=r.originY;if(this._state!=="animating"){var a=this.seriesModel.getData().tree.root;if(!a)return;var o=a.getLayout();if(!o)return;var s=new Ce(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;n-=l.x,i-=l.y;var u=rn();oi(u,u,[-n,-i]),zy(u,u,[r.scale,r.scale]),oi(u,u,[n,i]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(r){var n=this;r.on("click",function(i){if(n._state==="ready"){var a=n.seriesModel.get("nodeClick",!0);if(a){var o=n.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(a==="zoomToNode")n._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&Cg(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(r,n,i){var a=this;i||(i=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),i||(i={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Ine(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(mT(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Xc(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},e.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},e.prototype.findTarget=function(r,n){var i,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(r,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},e.type="treemap",e}(Qe);function Xc(){return{nodeGroup:[],background:[],content:[]}}function zne(t,e,r,n,i,a,o,s,l,u){if(!o)return;var c=o.getLayout(),f=t.getData(),h=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var v=c.width,d=c.height,p=c.borderWidth,y=c.invisible,g=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=c.upperHeight,w=_&&_.length,x=h.getModel("itemStyle"),b=h.getModel(["emphasis","itemStyle"]),C=h.getModel(["blur","itemStyle"]),T=h.getModel(["select","itemStyle"]),A=x.get("borderRadius")||0,D=te("nodeGroup",Jx);if(!D)return;if(l.add(D),D.x=c.x||0,D.y=c.y||0,D.markRedraw(),Ug(D).nodeWidth=v,Ug(D).nodeHeight=d,c.isAboveViewRoot)return D;var L=te("background",sI,u,One);L&&O(D,L,w&&c.upperLabelHeight);var P=h.getModel("emphasis"),I=P.get("focus"),E=P.get("blurScope"),k=P.get("disabled"),B=I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():I;if(w)Ah(D)&&Ds(D,!1),L&&(Ds(L,!k),f.setItemGraphicEl(o.dataIndex,L),yx(L,B,E));else{var R=te("content",sI,u,Nne);R&&z(D,R),L.disableMorphing=!0,L&&Ah(L)&&Ds(L,!1),Ds(D,!k),f.setItemGraphicEl(o.dataIndex,D),yx(D,B,E)}return D;function O(me,ue,De){var xe=pe(ue);if(xe.dataIndex=o.dataIndex,xe.seriesIndex=t.seriesIndex,ue.setShape({x:0,y:0,width:v,height:d,r:A}),y)V(ue);else{ue.invisible=!1;var ne=o.getVisual("style"),de=ne.stroke,rt=fI(x);rt.fill=de;var Ee=vs(b);Ee.fill=b.get("borderColor");var ct=vs(C);ct.fill=C.get("borderColor");var ot=vs(T);if(ot.fill=T.get("borderColor"),De){var mt=v-2*p;Y(ue,de,ne.opacity,{x:p,y:0,width:mt,height:S})}else ue.removeTextContent();ue.setStyle(rt),ue.ensureState("emphasis").style=Ee,ue.ensureState("blur").style=ct,ue.ensureState("select").style=ot,el(ue)}me.add(ue)}function z(me,ue){var De=pe(ue);De.dataIndex=o.dataIndex,De.seriesIndex=t.seriesIndex;var xe=Math.max(v-2*p,0),ne=Math.max(d-2*p,0);if(ue.culling=!0,ue.setShape({x:p,y:p,width:xe,height:ne,r:A}),y)V(ue);else{ue.invisible=!1;var de=o.getVisual("style"),rt=de.fill,Ee=fI(x);Ee.fill=rt,Ee.decal=de.decal;var ct=vs(b),ot=vs(C),mt=vs(T);Y(ue,rt,de.opacity,null),ue.setStyle(Ee),ue.ensureState("emphasis").style=ct,ue.ensureState("blur").style=ot,ue.ensureState("select").style=mt,el(ue)}me.add(ue)}function V(me){!me.invisible&&a.push(me)}function Y(me,ue,De,xe){var ne=h.getModel(xe?cI:uI),de=Ot(h.get("name"),null),rt=ne.getShallow("show");sr(me,Wt(h,xe?cI:uI),{defaultText:rt?de:null,inheritColor:ue,defaultOpacity:De,labelFetcher:t,labelDataIndex:o.dataIndex});var Ee=me.getTextContent();if(Ee){var ct=Ee.style,ot=Ny(ct.padding||0);xe&&(me.setTextConfig({layoutRect:xe}),Ee.disableLabelLayout=!0),Ee.beforeUpdate=function(){var sn=Math.max((xe?xe.width:me.shape.width)-ot[1]-ot[3],0),Jt=Math.max((xe?xe.height:me.shape.height)-ot[0]-ot[2],0);(ct.width!==sn||ct.height!==Jt)&&Ee.setStyle({width:sn,height:Jt})},ct.truncateMinChar=2,ct.lineOverflow="truncate",re(ct,xe,c);var mt=Ee.getState("emphasis");re(mt?mt.style:null,xe,c)}}function re(me,ue,De){var xe=me?me.text:null;if(!ue&&De.isLeafRoot&&xe!=null){var ne=t.get("drillDownIcon",!0);me.text=ne?ne+" "+xe:xe}}function te(me,ue,De,xe){var ne=m!=null&&r[me][m],de=i[me];return ne?(r[me][m]=null,ve(de,ne)):y||(ne=new ue,ne instanceof Rn&&(ne.z2=Fne(De,xe)),Me(de,ne)),e[me][g]=ne}function ve(me,ue){var De=me[g]={};ue instanceof Jx?(De.oldX=ue.x,De.oldY=ue.y):De.oldShape=F({},ue.shape)}function Me(me,ue){var De=me[g]={},xe=o.parentNode,ne=ue instanceof fe;if(xe&&(!n||n.direction==="drillDown")){var de=0,rt=0,Ee=i.background[xe.getRawIndex()];!n&&Ee&&Ee.oldShape&&(de=Ee.oldShape.width,rt=Ee.oldShape.height),ne?(De.oldX=0,De.oldY=rt):De.oldShape={x:de,y:rt,width:0,height:0}}De.fadein=!ne}}function Fne(t,e){return t*kne+e}const Vne=Bne;var Vh=M,Gne=se,Wg=-1,_T=function(){function t(e){var r=e.mappingMethod,n=e.type,i=this.option=le(e);this.type=n,this.mappingMethod=r,this._normalizeData=Wne[r];var a=t.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(z1(i),Hne(i)):r==="category"?i.categories?Une(i):z1(i,!0):(mr(r!=="linear"||i.dataExtent),z1(i))}return t.prototype.mapValueToVisual=function(e){var r=this._normalizeData(e);return this._normalizedToVisual(r,e)},t.prototype.getNormalizer=function(){return Q(this._normalizeData,this)},t.listVisualTypes=function(){return Ie(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(e,r,n){se(e)?M(e,r,n):r.call(n,e)},t.mapVisual=function(e,r,n){var i,a=G(e)?[]:se(e)?{}:(i=!0,null);return t.eachVisual(e,function(o,s){var l=r.call(n,o,s);i?a=l:a[s]=l}),a},t.retrieveVisuals=function(e){var r={},n;return e&&Vh(t.visualHandlers,function(i,a){e.hasOwnProperty(a)&&(r[a]=e[a],n=!0)}),n?r:null},t.prepareVisualTypes=function(e){if(G(e))e=e.slice();else if(Gne(e)){var r=[];Vh(e,function(n,i){r.push(i)}),e=r}else return[];return e.sort(function(n,i){return i==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),e},t.dependsOn=function(e,r){return r==="color"?!!(e&&e.indexOf(r)===0):e===r},t.findPieceIndex=function(e,r,n){for(var i,a=1/0,o=0,s=r.length;o=0;a--)n[a]==null&&(delete r[e[a]],e.pop())}function z1(t,e){var r=t.visual,n=[];se(r)?Vh(r,function(a){n.push(a)}):r!=null&&n.push(r);var i={color:1,symbol:1};!e&&n.length===1&&!i.hasOwnProperty(t.type)&&(n[1]=n[0]),DV(t,n)}function Nd(t){return{applyVisual:function(e,r,n){var i=this.mapValueToVisual(e);n("color",t(r("color"),i))},_normalizedToVisual:ew([0,1])}}function hI(t){var e=this.option.visual;return e[Math.round($e(t,[0,1],[0,e.length-1],!0))]||{}}function Zc(t){return function(e,r,n){n(t,this.mapValueToVisual(e))}}function gf(t){var e=this.option.visual;return e[this.option.loop&&t!==Wg?t%e.length:t]}function ds(){return this.option.visual[0]}function ew(t){return{linear:function(e){return $e(e,t,this.option.visual,!0)},category:gf,piecewise:function(e,r){var n=tw.call(this,r);return n==null&&(n=$e(e,t,this.option.visual,!0)),n},fixed:ds}}function tw(t){var e=this.option,r=e.pieceList;if(e.hasSpecialVisual){var n=_T.findPieceIndex(t,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function DV(t,e){return t.visual=e,t.type==="color"&&(t.parsedVisual=H(e,function(r){var n=Ar(r);return n||[0,0,0,1]})),e}var Wne={linear:function(t){return $e(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,r=_T.findPieceIndex(t,e,!0);if(r!=null)return $e(r,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return e??Wg},fixed:wt};function Bd(t,e,r){return t?e<=r:e=r.length||p===r[p.depth]){var g=qne(i,l,p,y,d,n);PV(p,g,r,n)}})}}}function jne(t,e,r){var n=F({},e),i=r.designatedVisualItemStyle;return M(["color","colorAlpha","colorSaturation"],function(a){i[a]=e[a];var o=t.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function vI(t){var e=F1(t,"color");if(e){var r=F1(t,"colorAlpha"),n=F1(t,"colorSaturation");return n&&(e=yu(e,null,null,n)),r&&(e=_h(e,r)),e}}function Xne(t,e){return e!=null?yu(e,null,null,t):null}function F1(t,e){var r=t[e];if(r!=null&&r!=="none")return r}function Zne(t,e,r,n,i,a){if(!(!a||!a.length)){var o=V1(e,"color")||i.color!=null&&i.color!=="none"&&(V1(e,"colorAlpha")||V1(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=r.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=e.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var h=new nr(f);return LV(h).drColorMappingBy=c,h}}}function V1(t,e){var r=t.get(e);return G(r)&&r.length?{name:e,range:r}:null}function qne(t,e,r,n,i,a){var o=F({},e);if(i){var s=i.type,l=s==="color"&&LV(i).drColorMappingBy,u=l==="index"?n:l==="id"?a.mapIdToIndex(r.getId()):r.getValue(t.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var Gh=Math.max,$g=Math.min,dI=Vt,ST=M,IV=["itemStyle","borderWidth"],Kne=["itemStyle","gapWidth"],Qne=["upperLabel","show"],Jne=["upperLabel","height"];const eie={seriesType:"treemap",reset:function(t,e,r,n){var i=r.getWidth(),a=r.getHeight(),o=t.option,s=It(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=j(dI(s.width,l[0]),i),c=j(dI(s.height,l[1]),a),f=n&&n.type,h=["treemapZoomToNode","treemapRootToNode"],v=Fh(n,h,t),d=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,p=t.getViewRoot(),y=TV(p);if(f!=="treemapMove"){var g=f==="treemapZoomToNode"?oie(t,v,p,u,c):d?[d.width,d.height]:[u,c],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var _={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var S={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};p.setLayout(S),EV(p,_,!1,0),S=p.getLayout(),ST(y,function(x,b){var C=(y[b+1]||p).getValue();x.setLayout(F({dataExtent:[C,C],borderWidth:0,upperHeight:0},S))})}var w=t.getData().tree.root;w.setLayout(sie(s,d,v),!0),t.setLayoutInfo(s),RV(w,new Ce(-s.x,-s.y,i,a),y,p,0)}};function EV(t,e,r,n){var i,a;if(!t.isRemoved()){var o=t.getLayout();i=o.width,a=o.height;var s=t.getModel(),l=s.get(IV),u=s.get(Kne)/2,c=kV(s),f=Math.max(l,c),h=l-u,v=f-u;t.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=Gh(i-2*h,0),a=Gh(a-h-v,0);var d=i*a,p=tie(t,s,d,e,r,n);if(p.length){var y={x:h,y:v,width:i,height:a},g=$g(i,a),m=1/0,_=[];_.area=0;for(var S=0,w=p.length;S=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/r*es[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function aie(t,e,r){for(var n=0,i=1/0,a=0,o=void 0,s=t.length;an&&(n=o));var l=t.area*t.area,u=e*e*r;return l?Gh(u*n/l,l/(u*i)):1/0}function pI(t,e,r,n,i){var a=e===r.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=r[s[a]],c=e?t.area/e:0;(i||c>r[l[o]])&&(c=r[l[o]]);for(var f=0,h=t.length;flx&&(u=lx),a=s}un&&(n=e);var a=n%2?n+2:n+3;i=[];for(var o=0;o0&&(w[0]=-w[0],w[1]=-w[1]);var b=S[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var C=-Math.atan2(S[1],S[0]);f[0].8?"left":h[0]<-.8?"right":"center",p=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":a.x=-h[0]*g+c[0],a.y=-h[1]*m+c[1],d=h[0]>.8?"right":h[0]<-.8?"left":"center",p=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=g*b+c[0],a.y=c[1]+T,d=S[0]<0?"right":"left",a.originX=-g*b,a.originY=-T;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=x[0],a.y=x[1]+T,d="center",a.originY=-T;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-g*b+f[0],a.y=f[1]+T,d=S[0]>=0?"right":"left",a.originX=g*b,a.originY=-T;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||p,align:a.__align||d})}},e}(fe);const CT=Aie;var Mie=function(){function t(e){this.group=new fe,this._LineCtor=e||CT}return t.prototype.updateData=function(e){var r=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=e,a||i.removeAll();var o=SI(e);e.diff(a).add(function(s){r._doAdd(e,s,o)}).update(function(s,l){r._doUpdate(a,e,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},t.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(r,n){r.updateLayout(e,n)},this)},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=SI(e),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r){this._progressiveEls=[];function n(s){!s.isGroup&&!Die(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0}function SI(t){var e=t.hostModel,r=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:Wt(e)}}function xI(t){return isNaN(t[0])||isNaN(t[1])}function $1(t){return t&&!xI(t[0])&&!xI(t[1])}const TT=Mie;var Y1=[],j1=[],X1=[],Il=Zt,Z1=uo,wI=Math.abs;function bI(t,e,r){for(var n=t[0],i=t[1],a=t[2],o=1/0,s,l=r*r,u=.1,c=.1;c<=.9;c+=.1){Y1[0]=Il(n[0],i[0],a[0],c),Y1[1]=Il(n[1],i[1],a[1],c);var f=wI(Z1(Y1,e)-l);f=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function q1(t,e){var r=[],n=yh,i=[[],[],[]],a=[[],[]],o=[];e/=2,t.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[Ei(u[0]),Ei(u[1])],u[2]&&u.__original.push(Ei(u[2])));var h=u.__original;if(u[2]!=null){if(vr(i[0],h[0]),vr(i[1],h[2]),vr(i[2],h[1]),c&&c!=="none"){var v=mf(s.node1),d=bI(i,h[0],v*e);n(i[0][0],i[1][0],i[2][0],d,r),i[0][0]=r[3],i[1][0]=r[4],n(i[0][1],i[1][1],i[2][1],d,r),i[0][1]=r[3],i[1][1]=r[4]}if(f&&f!=="none"){var v=mf(s.node2),d=bI(i,h[1],v*e);n(i[0][0],i[1][0],i[2][0],d,r),i[1][0]=r[1],i[2][0]=r[2],n(i[0][1],i[1][1],i[2][1],d,r),i[1][1]=r[1],i[2][1]=r[2]}vr(u[0],i[0]),vr(u[1],i[2]),vr(u[2],i[1])}else{if(vr(a[0],h[0]),vr(a[1],h[1]),Xa(o,a[1],a[0]),ll(o,o),c&&c!=="none"){var v=mf(s.node1);ug(a[0],a[0],o,v*e)}if(f&&f!=="none"){var v=mf(s.node2);ug(a[1],a[1],o,-v*e)}vr(u[0],a[0]),vr(u[1],a[1])}})}function CI(t){return t.type==="view"}var Lie=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){var i=new xv,a=new TT,o=this.group;this._controller=new Tv(n.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},e.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem;this._model=r;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(CI(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):Ge(u,c,r)}q1(r.getGraph(),yf(r));var f=r.getData();s.updateData(f);var h=r.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(r,n,i),clearTimeout(this._layoutTimeout);var v=r.forceLayout,d=r.get(["force","layoutAnimation"]);v&&this._startForceLayoutIteration(v,d);var p=r.get("layout");f.graph.eachNode(function(_){var S=_.dataIndex,w=_.getGraphicEl(),x=_.getModel();if(w){w.off("drag").off("dragend");var b=x.get("draggable");b&&w.on("drag",function(T){switch(p){case"force":v.warmUp(),!a._layouting&&a._startForceLayoutIteration(v,d),v.setFixed(S),f.setItemLayout(S,[w.x,w.y]);break;case"circular":f.setItemLayout(S,[w.x,w.y]),_.setLayout({fixed:!0},!0),bT(r,"symbolSize",_,[T.offsetX,T.offsetY]),a.updateLayout(r);break;case"none":default:f.setItemLayout(S,[w.x,w.y]),wT(r.getGraph(),r),a.updateLayout(r);break}}).on("dragend",function(){v&&v.setUnfixed(S)}),w.setDraggable(b,!!x.get("cursor"));var C=x.get(["emphasis","focus"]);C==="adjacency"&&(pe(w).focus=_.getAdjacentDataIndices())}}),f.graph.eachEdge(function(_){var S=_.getGraphicEl(),w=_.getModel().get(["emphasis","focus"]);S&&w==="adjacency"&&(pe(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var y=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),g=f.getLayout("cx"),m=f.getLayout("cy");f.graph.eachNode(function(_){zV(_,y,g,m)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(r,n){var i=this;(function a(){r.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(n?i._layoutTimeout=setTimeout(a,16):a())})})()},e.prototype._updateController=function(r,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(c,f)&&!gm(u,i,r)}),!CI(r.coordinateSystem)){o.disable();return}o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){hT(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){vT(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),q1(r.getGraph(),yf(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=yf(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},e.prototype.updateLayout=function(r){q1(r.getGraph(),yf(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Qe);const Pie=Lie;function El(t){return"_EC_"+t}var Iie=function(){function t(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(e,r){e=e==null?""+r:""+e;var n=this._nodesMap;if(!n[El(e)]){var i=new ps(e,r);return i.hostGraph=this,this.nodes.push(i),n[El(e)]=i,i}},t.prototype.getNodeByIndex=function(e){var r=this.data.getRawIndex(e);return this.nodes[r]},t.prototype.getNodeById=function(e){return this._nodesMap[El(e)]},t.prototype.addEdge=function(e,r,n){var i=this._nodesMap,a=this._edgesMap;if(Fe(e)&&(e=this.nodes[e]),Fe(r)&&(r=this.nodes[r]),e instanceof ps||(e=i[El(e)]),r instanceof ps||(r=i[El(r)]),!(!e||!r)){var o=e.id+"-"+r.id,s=new VV(e,r,n);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),r.inEdges.push(s)),e.edges.push(s),e!==r&&r.edges.push(s),this.edges.push(s),a[o]=s,s}},t.prototype.getEdgeByIndex=function(e){var r=this.edgeData.getRawIndex(e);return this.edges[r]},t.prototype.getEdge=function(e,r){e instanceof ps&&(e=e.id),r instanceof ps&&(r=r.id);var n=this._edgesMap;return this._directed?n[e+"-"+r]:n[e+"-"+r]||n[r+"-"+e]},t.prototype.eachNode=function(e,r){for(var n=this.nodes,i=n.length,a=0;a=0&&e.call(r,n[a],a)},t.prototype.eachEdge=function(e,r){for(var n=this.edges,i=n.length,a=0;a=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&e.call(r,n[a],a)},t.prototype.breadthFirstTraverse=function(e,r,n,i){if(r instanceof ps||(r=this._nodesMap[El(r)]),!!r){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a=0&&this[t][e].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[t][e].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}Ct(ps,GV("hostGraph","data"));Ct(VV,GV("hostGraph","edgeData"));const Eie=Iie;function HV(t,e,r,n,i){for(var a=new Eie(n),o=0;o "+h)),u++)}var v=r.get("coordinateSystem"),d;if(v==="cartesian2d"||v==="polar")d=Vi(t,r);else{var p=sc.get(v),y=p?p.dimensions||[]:[];Te(y,"value")<0&&y.concat(["value"]);var g=fc(t,{coordDimensions:y,encodeDefine:r.getEncode()}).dimensions;d=new gr(g,r),d.initData(t)}var m=new gr(["value"],r);return m.initData(l,s),i&&i(d,m),bV({mainData:d,struct:a,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var Rie=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new Cv(i,i),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},e.prototype.mergeOption=function(r){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(r){t.prototype.mergeDefaultAndTheme.apply(this,arguments),Ks(r,"edgeLabel",["show"])},e.prototype.getInitialData=function(r,n){var i=r.edges||r.links||[],a=r.data||r.nodes||[],o=this;if(a&&i){die(this);var s=HV(a,i,this,!0,l);return M(s.edges,function(u){pie(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,y=d.getShallow("category"),g=p[y];return g&&(g.parentModel=d.parentModel,d.parentModel=g),d});var f=qe.prototype.getModel;function h(d,p){var y=f.call(this,d,p);return y.resolveParentPath=v,y}c.wrapMethod("getItemModel",function(d){return d.resolveParentPath=v,d.getModel=h,d});function v(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(r,n,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(r,i),s=a.graph.getEdgeByIndex(r),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),$t("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=o3({series:this,dataIndex:r,multipleSeries:n});return f},e.prototype._updateCategoriesData=function(){var r=H(this.option.categories||[],function(i){return i.value!=null?i:F({value:0},i)}),n=new gr(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},e.prototype.setZoom=function(r){this.option.zoom=r},e.prototype.setCenter=function(r){this.option.center=r},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(at);const kie=Rie;var Oie={type:"graphRoam",event:"graphRoam",update:"none"};function Nie(t){t.registerChartView(Pie),t.registerSeriesModel(kie),t.registerProcessor(uie),t.registerVisual(cie),t.registerVisual(fie),t.registerLayout(gie),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,mie),t.registerLayout(Sie),t.registerCoordinateSystem("graphView",{dimensions:Av.dimensions,create:wie}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},wt),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},wt),t.registerAction(Oie,function(e,r,n){r.eachComponent({mainType:"series",query:e},function(i){var a=i.coordinateSystem,o=pT(a,e,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var Bie=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),zie=function(t){N(e,t);function e(r){var n=t.call(this,r)||this;return n.type="pointer",n}return e.prototype.getDefaultShape=function(){return new Bie},e.prototype.buildPath=function(r,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-i(l)*s*(s>=o/3?1:2),c=n.y-a(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,c),r.lineTo(n.x+i(l)*s,n.y+a(l)*s),r.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),r.lineTo(n.x-i(l)*s,n.y-a(l)*s),r.lineTo(u,c)},e}(Pe);const Fie=zie;function Vie(t,e){var r=t.get("center"),n=e.getWidth(),i=e.getHeight(),a=Math.min(n,i),o=j(r[0],e.getWidth()),s=j(r[1],e.getHeight()),l=j(t.get("radius"),a/2);return{cx:o,cy:s,r:l}}function Fd(t,e){var r=t==null?"":t+"";return e&&(Z(e)?r=e.replace("{value}",r):ae(e)&&(r=e(t))),r}var Gie=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){this.group.removeAll();var a=r.get(["axisLine","lineStyle","color"]),o=Vie(r,i);this._renderMain(r,n,i,a,o),this._data=r.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(r,n,i,a,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,c=-r.get("endAngle")/180*Math.PI,f=r.getModel("axisLine"),h=f.get("roundCap"),v=h?Vg:Dr,d=f.get("show"),p=f.getModel("lineStyle"),y=p.get("width"),g=[u,c];_z(g,!l),u=g[0],c=g[1];for(var m=c-u,_=u,S=[],w=0;d&&w=T&&(A===0?0:a[A-1][0])Math.PI/2&&(te+=Math.PI)):re==="tangential"?te=-C-Math.PI/2:Fe(re)&&(te=re*Math.PI/180),te===0?f.add(new Oe({style:tt(_,{text:O,x:V,y:Y,verticalAlign:E<-.8?"top":E>.8?"bottom":"middle",align:I<-.4?"left":I>.4?"right":"center"},{inheritColor:z}),silent:!0})):f.add(new Oe({style:tt(_,{text:O,x:V,y:Y,verticalAlign:"middle",align:"center"},{inheritColor:z}),silent:!0,originX:V,originY:Y,rotation:te}))}if(m.get("show")&&k!==S){var B=m.get("distance");B=B?B+c:c;for(var ve=0;ve<=w;ve++){I=Math.cos(C),E=Math.sin(C);var Me=new Gt({shape:{x1:I*(d-B)+h,y1:E*(d-B)+v,x2:I*(d-b-B)+h,y2:E*(d-b-B)+v},silent:!0,style:L});L.stroke==="auto"&&Me.setStyle({stroke:a((k+ve/w)/S)}),f.add(Me),C+=A}C-=A}else C+=T}},e.prototype._renderPointer=function(r,n,i,a,o,s,l,u,c){var f=this.group,h=this._data,v=this._progressEls,d=[],p=r.get(["pointer","show"]),y=r.getModel("progress"),g=y.get("show"),m=r.getData(),_=m.mapDimension("value"),S=+r.get("min"),w=+r.get("max"),x=[S,w],b=[s,l];function C(A,D){var L=m.getItemModel(A),P=L.getModel("pointer"),I=j(P.get("width"),o.r),E=j(P.get("length"),o.r),k=r.get(["pointer","icon"]),B=P.get("offsetCenter"),R=j(B[0],o.r),O=j(B[1],o.r),z=P.get("keepAspect"),V;return k?V=Mt(k,R-I/2,O-E,I,E,null,z):V=new Fie({shape:{angle:-Math.PI/2,width:I,r:E,x:R,y:O}}),V.rotation=-(D+Math.PI/2),V.x=o.cx,V.y=o.cy,V}function T(A,D){var L=y.get("roundCap"),P=L?Vg:Dr,I=y.get("overlap"),E=I?y.get("width"):c/m.count(),k=I?o.r-E:o.r-(A+1)*E,B=I?o.r:o.r-A*E,R=new P({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:k,r:B}});return I&&(R.z2=w-m.get(_,A)%w),R}(g||p)&&(m.diff(h).add(function(A){var D=m.get(_,A);if(p){var L=C(A,s);lt(L,{rotation:-((isNaN(+D)?b[0]:$e(D,x,b,!0))+Math.PI/2)},r),f.add(L),m.setItemGraphicEl(A,L)}if(g){var P=T(A,s),I=y.get("clip");lt(P,{shape:{endAngle:$e(D,x,b,I)}},r),f.add(P),dx(r.seriesIndex,m.dataType,A,P),d[A]=P}}).update(function(A,D){var L=m.get(_,A);if(p){var P=h.getItemGraphicEl(D),I=P?P.rotation:s,E=C(A,I);E.rotation=I,Ge(E,{rotation:-((isNaN(+L)?b[0]:$e(L,x,b,!0))+Math.PI/2)},r),f.add(E),m.setItemGraphicEl(A,E)}if(g){var k=v[D],B=k?k.shape.endAngle:s,R=T(A,B),O=y.get("clip");Ge(R,{shape:{endAngle:$e(L,x,b,O)}},r),f.add(R),dx(r.seriesIndex,m.dataType,A,R),d[A]=R}}).execute(),m.each(function(A){var D=m.getItemModel(A),L=D.getModel("emphasis"),P=L.get("focus"),I=L.get("blurScope"),E=L.get("disabled");if(p){var k=m.getItemGraphicEl(A),B=m.getItemVisual(A,"style"),R=B.fill;if(k instanceof Qt){var O=k.style;k.useStyle(F({image:O.image,x:O.x,y:O.y,width:O.width,height:O.height},B))}else k.useStyle(B),k.type!=="pointer"&&k.setColor(R);k.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),k.style.fill==="auto"&&k.setStyle("fill",a($e(m.get(_,A),x,[0,1],!0))),k.z2EmphasisLift=0,or(k,D),yt(k,P,I,E)}if(g){var z=d[A];z.useStyle(m.getItemVisual(A,"style")),z.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),z.z2EmphasisLift=0,or(z,D),yt(z,P,I,E)}}),this._progressEls=d)},e.prototype._renderAnchor=function(r,n){var i=r.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),c=Mt(s,n.cx-o/2+j(l[0],n.r),n.cy-o/2+j(l[1],n.r),o,o,null,u);c.z2=i.get("showAbove")?1:0,c.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(r,n,i,a,o){var s=this,l=r.getData(),u=l.mapDimension("value"),c=+r.get("min"),f=+r.get("max"),h=new fe,v=[],d=[],p=r.isAnimationEnabled(),y=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(g){v[g]=new Oe({silent:!0}),d[g]=new Oe({silent:!0})}).update(function(g,m){v[g]=s._titleEls[m],d[g]=s._detailEls[m]}).execute(),l.each(function(g){var m=l.getItemModel(g),_=l.get(u,g),S=new fe,w=a($e(_,[c,f],[0,1],!0)),x=m.getModel("title");if(x.get("show")){var b=x.get("offsetCenter"),C=o.cx+j(b[0],o.r),T=o.cy+j(b[1],o.r),A=v[g];A.attr({z2:y?0:2,style:tt(x,{x:C,y:T,text:l.getName(g),align:"center",verticalAlign:"middle"},{inheritColor:w})}),S.add(A)}var D=m.getModel("detail");if(D.get("show")){var L=D.get("offsetCenter"),P=o.cx+j(L[0],o.r),I=o.cy+j(L[1],o.r),E=j(D.get("width"),o.r),k=j(D.get("height"),o.r),B=r.get(["progress","show"])?l.getItemVisual(g,"style").fill:w,A=d[g],R=D.get("formatter");A.attr({z2:y?0:2,style:tt(D,{x:P,y:I,text:Fd(_,R),width:isNaN(E)?null:E,height:isNaN(k)?null:k,align:"center",verticalAlign:"middle"},{inheritColor:B})}),f5(A,{normal:D},_,function(z){return Fd(z,R)}),p&&h5(A,g,l,r,{getFormattedLabel:function(z,V,Y,re,te,ve){return Fd(ve?ve.interpolatedValue:_,R)}}),S.add(A)}h.add(S)}),this.group.add(h),this._titleEls=v,this._detailEls=d},e.type="gauge",e}(Qe);const Hie=Gie;var Uie=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.visualStyleAccessPath="itemStyle",r}return e.prototype.getInitialData=function(r,n){return vc(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(at);const Wie=Uie;function $ie(t){t.registerChartView(Hie),t.registerSeriesModel(Wie)}var Yie=["itemStyle","opacity"],jie=function(t){N(e,t);function e(r,n){var i=t.call(this)||this,a=i,o=new Er,s=new Oe;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(r,n,!0),i}return e.prototype.updateData=function(r,n,i){var a=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),c=s.get(Yie);c=c??1,i||ui(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,lt(a,{style:{opacity:c}},o,n)):Ge(a,{style:{opacity:c},shape:{points:l.points}},o,n),or(a,s),this._updateLabel(r,n),yt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),c=u.label,f=r.getItemVisual(n,"style"),h=f.fill;sr(o,Wt(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:f.opacity,defaultText:r.getName(n)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),i.setTextConfig({local:!0,inside:!!c.inside,insideStroke:h,outsideFill:h});var v=c.linePoints;a.setShape({points:v}),i.textGuideLineConfig={anchor:v?new we(v[0][0],v[0][1]):null},Ge(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),nT(i,iT(l),{stroke:h})},e}(Lr),Xie=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,n,i){var a=r.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new jie(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(a,l),s.add(c),a.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);Mh(u,r,l)}).execute(),this._data=a},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Qe);const Zie=Xie;var qie=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Cv(Q(this.getData,this),Q(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.getInitialData=function(r,n){return vc(this,{coordDimensions:["value"],encodeDefaulter:ye(DC,this)})},e.prototype._defaultLabelLine=function(r){Ks(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},e.prototype.getDataParams=function(r){var n=this.getData(),i=t.prototype.getDataParams.call(this,r),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,r)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(at);const Kie=qie;function Qie(t,e){return It(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Jie(t,e){for(var r=t.mapDimension("value"),n=t.mapArray(r,function(l){return l}),i=[],a=e==="ascending",o=0,s=t.count();omae)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!(this._mouseDownPoint||!Q1(this,"mousemove"))){var e=this._model,r=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function Q1(t,e){var r=t._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===e}const xae=_ae;var wae=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(r){var n=this.option;r&&Se(n,r,!0),this._initDimensions()},e.prototype.contains=function(r,n){var i=r.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},e.prototype.setAxisExpand=function(r){M(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},e.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],i=Ye(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);M(i,function(a){r.push("dim"+a.get("dim")),n.push(a.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(ke);const bae=wae;var Cae=function(t){N(e,t);function e(r,n,i,a,o){var s=t.call(this,r,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(zn);const Tae=Cae;function dl(t,e,r,n,i,a){t=t||0;var o=r[1]-r[0];if(i!=null&&(i=Rl(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(e[1]-e[0]);s=Rl(s,[0,o]),i=a=Rl(s,[i,a]),n=0}e[0]=Rl(e[0],r),e[1]=Rl(e[1],r);var l=J1(e,n);e[n]+=t;var u=i||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,e[n]=Rl(e[n],c);var f;return f=J1(e,n),i!=null&&(f.sign!==l.sign||f.spana&&(e[1-n]=e[n]+f.sign*a),e}function J1(t,e){var r=t[e]-t[1-e];return{span:Math.abs(r),sign:r>0?-1:r<0?1:e?-1:1}}function Rl(t,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,t))}var e_=M,WV=Math.min,$V=Math.max,MI=Math.floor,Aae=Math.ceil,DI=gt,Mae=Math.PI,Dae=function(){function t(e,r,n){this.type="parallel",this._axesMap=ie(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,r,n)}return t.prototype._init=function(e,r,n){var i=e.dimensions,a=e.parallelAxisIndex;e_(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new Tae(o,mv(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},t.prototype.update=function(e,r){this._updateAxesFromSeries(this._model,e)},t.prototype.containPoint=function(e){var r=this._makeLayoutInfo(),n=r.axisBase,i=r.layoutBase,a=r.pixelDimIndex,o=e[1-a],s=e[a];return o>=n&&o<=n+r.axisLength&&s>=i&&s<=i+r.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(e,r){r.eachSeries(function(n){if(e.contains(n,r)){var i=n.getData();e_(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),rl(o.scale,o.model)},this)}},this)},t.prototype.resize=function(e,r){this._rect=It(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var e=this._model,r=this._rect,n=["x","y"],i=["width","height"],a=e.get("layout"),o=a==="horizontal"?0:1,s=r[i[o]],l=[0,s],u=this.dimensions.length,c=Vd(e.get("axisExpandWidth"),l),f=Vd(e.get("axisExpandCount")||0,[0,u]),h=e.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,v=e.get("axisExpandWindow"),d;if(v)d=Vd(v[1]-v[0],l),v[1]=v[0]+d;else{d=Vd(c*(f-1),l);var p=e.get("axisExpandCenter")||MI(u/2);v=[c*p-d/2],v[1]=v[0]+d}var y=(s-d)/(u-f);y<3&&(y=0);var g=[MI(DI(v[0]/c,1))+1,Aae(DI(v[1]/c,1))-1],m=y/c*v[0];return{layout:a,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[i[1-o]],axisExpandable:h,axisExpandWidth:c,axisCollapseWidth:y,axisExpandWindow:v,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:m}},t.prototype._layoutAxes=function(){var e=this._rect,r=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;r.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),e_(n,function(o,s){var l=(i.axisExpandable?Pae:Lae)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:Mae/2,vertical:0},f=[u[a].x+e.x,u[a].y+e.y],h=c[a],v=rn();Eo(v,v,h),oi(v,v,f),this._axesLayout[o]={position:f,rotation:h,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},t.prototype.getAxis=function(e){return this._axesMap.get(e)},t.prototype.dataToPoint=function(e,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(e),r)},t.prototype.eachActiveState=function(e,r,n,i){n==null&&(n=0),i==null&&(i=e.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];M(o,function(y){s.push(e.mapDimension(y)),l.push(a.get(y).model)});for(var u=this.hasAxisBrushed(),c=n;ca*(1-f[0])?(u="jump",l=s-a*(1-f[2])):(l=s-a*f[1])>=0&&(l=s-a*(1-f[1]))<=0&&(l=0),l*=r.axisExpandWidth/c,l?dl(l,i,o,"all"):u="none";else{var v=i[1]-i[0],d=o[1]*s/v;i=[$V(0,d-v/2)],i[1]=WV(o[1],i[0]+v),i[0]=i[1]-v}return{axisExpandWindow:i,behavior:u}},t}();function Vd(t,e){return WV($V(t,e[0]),e[1])}function Lae(t,e){var r=e.layoutLength/(e.axisCount-1);return{position:r*t,axisNameAvailableWidth:r,axisLabelShow:!0}}function Pae(t,e){var r=e.layoutLength,n=e.axisExpandWidth,i=e.axisCount,a=e.axisCollapseWidth,o=e.winInnerIndices,s,l=a,u=!1,c;return t=0;i--)Qr(n[i])},e.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=r&&r<=i[1])return"active"}else for(var a=0,o=n.length;aBae}function QV(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function JV(t,e,r,n){var i=new fe;return i.add(new Ne({name:"main",style:LT(r),silent:!0,draggable:!0,cursor:"move",drift:ye(EI,t,e,i,["n","s","w","e"]),ondragend:ye(il,e,{isEnd:!0})})),M(n,function(a){i.add(new Ne({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ye(EI,t,e,i,a),ondragend:ye(il,e,{isEnd:!0})}))}),i}function e4(t,e,r,n){var i=n.brushStyle.lineWidth||0,a=Vu(i,zae),o=r[0][0],s=r[1][0],l=o-i/2,u=s-i/2,c=r[0][1],f=r[1][1],h=c-a+i/2,v=f-a+i/2,d=c-o,p=f-s,y=d+i,g=p+i;Ui(t,e,"main",o,s,d,p),n.transformable&&(Ui(t,e,"w",l,u,a,g),Ui(t,e,"e",h,u,a,g),Ui(t,e,"n",l,u,y,a),Ui(t,e,"s",l,v,y,a),Ui(t,e,"nw",l,u,a,a),Ui(t,e,"ne",h,u,a,a),Ui(t,e,"sw",l,v,a,a),Ui(t,e,"se",h,v,a,a))}function ow(t,e){var r=e.__brushOption,n=r.transformable,i=e.childAt(0);i.useStyle(LT(r)),i.attr({silent:!n,cursor:n?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=e.childOfName(a.join("")),s=a.length===1?sw(t,a[0]):$ae(t,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?Vae[s]+"-resize":null})})}function Ui(t,e,r,n,i,a,o){var s=e.childOfName(r);s&&s.setShape(jae(PT(t,e,[[n,i],[n+a,i+o]])))}function LT(t){return oe({strokeNoScale:!0},t.brushStyle)}function t4(t,e,r,n){var i=[Uh(t,r),Uh(e,n)],a=[Vu(t,r),Vu(e,n)];return[[i[0],a[0]],[i[1],a[1]]]}function Wae(t){return ho(t.group)}function sw(t,e){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=Qy(r[e],Wae(t));return n[i]}function $ae(t,e){var r=[sw(t,e[0]),sw(t,e[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function EI(t,e,r,n,i,a){var o=r.__brushOption,s=t.toRectRange(o.range),l=r4(e,i,a);M(n,function(u){var c=Fae[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=t.fromRectRange(t4(s[0][0],s[1][0],s[0][1],s[1][1])),AT(e,r),il(e,{isEnd:!1})}function Yae(t,e,r,n){var i=e.__brushOption.range,a=r4(t,r,n);M(i,function(o){o[0]+=a[0],o[1]+=a[1]}),AT(t,e),il(t,{isEnd:!1})}function r4(t,e,r){var n=t.group,i=n.transformCoordToLocal(e,r),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function PT(t,e,r){var n=KV(t,e);return n&&n!==nl?n.clipPath(r,t._transform):le(r)}function jae(t){var e=Uh(t[0][0],t[1][0]),r=Uh(t[0][1],t[1][1]),n=Vu(t[0][0],t[1][0]),i=Vu(t[0][1],t[1][1]);return{x:e,y:r,width:n-e,height:i-r}}function Xae(t,e,r){if(!(!t._brushType||qae(t,e.offsetX,e.offsetY))){var n=t._zr,i=t._covers,a=DT(t,e,r);if(!t._dragging)for(var o=0;on.getWidth()||r<0||r>n.getHeight()}var Sm={lineX:OI(0),lineY:OI(1),rect:{createCover:function(t,e){function r(n){return n}return JV({toRectRange:r,fromRectRange:r},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=QV(t);return t4(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,r,n){e4(t,e,r,n)},updateCommon:ow,contain:uw},polygon:{createCover:function(t,e){var r=new fe;return r.add(new Er({name:"main",style:LT(e),silent:!0})),r},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Lr({name:"main",draggable:!0,drift:ye(Yae,t,e),ondragend:ye(il,t,{isEnd:!0})}))},updateCoverShape:function(t,e,r,n){e.childAt(0).setShape({points:PT(t,e,r)})},updateCommon:ow,contain:uw}};function OI(t){return{createCover:function(e,r){return JV({toRectRange:function(n){var i=[n,[0,100]];return t&&i.reverse(),i},fromRectRange:function(n){return n[t]}},e,r,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var r=QV(e),n=Uh(r[0][t],r[1][t]),i=Vu(r[0][t],r[1][t]);return[n,i]},updateCoverShape:function(e,r,n,i){var a,o=KV(e,r);if(o!==nl&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(t);else{var s=e._zr;a=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[n,a];t&&l.reverse(),e4(e,r,l,i)},updateCommon:ow,contain:uw}}const IT=Hae;function i4(t){return t=ET(t),function(e){return yC(e,t)}}function a4(t,e){return t=ET(t),function(r){var n=e??r,i=n?t.width:t.height,a=n?t.x:t.y;return[a,a+(i||0)]}}function o4(t,e,r){var n=ET(t);return function(i,a){return n.contain(a[0],a[1])&&!gm(i,e,r)}}function ET(t){return Ce.create(t)}var Kae=["axisLine","axisTickLabel","axisName"],Qae=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){t.prototype.init.apply(this,arguments),(this._brushController=new IT(n.getZr())).on("brush",Q(this._onBrush,this))},e.prototype.render=function(r,n,i,a){if(!Jae(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new fe,this.group.add(this._axisGroup),!!r.get("show")){var s=toe(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,h=l.getAxisLayout(f),v=F({strokeContainThreshold:c},h),d=new ma(r,v);M(Kae,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(v,u,r,s,c,i),vv(o,this._axisGroup,r)}}},e.prototype._refreshBrushController=function(r,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=Ce.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:i4(f),isTargetByCursor:o4(f,s,a),getLinearBrushOtherExtent:a4(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(eoe(i))},e.prototype._onBrush=function(r){var n=r.areas,i=this.axisModel,a=i.axis,o=H(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(ft);function Jae(t,e,r){return r&&r.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:r})[0]===t}function eoe(t){var e=t.axis;return H(t.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(r[0],!0),e.dataToCoord(r[1],!0)]}})}function toe(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}const roe=Qae;var noe={type:"axisAreaSelect",event:"axisAreaSelected"};function ioe(t){t.registerAction(noe,function(e,r){r.eachComponent({mainType:"parallelAxis",query:e},function(n){n.axis.model.setActiveIntervals(e.intervals)})}),t.registerAction("parallelAxisExpand",function(e,r){r.eachComponent({mainType:"parallel",query:e},function(n){n.setAxisExpand(e)})})}var aoe={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function s4(t){t.registerComponentView(xae),t.registerComponentModel(bae),t.registerCoordinateSystem("parallel",kae),t.registerPreprocessor(pae),t.registerComponentModel(LI),t.registerComponentView(roe),Fu(t,"parallel",LI,aoe),ioe(t)}function ooe(t){Ae(s4),t.registerChartView(sae),t.registerSeriesModel(fae),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,dae)}var soe=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return t}(),loe=function(t){N(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new soe},e.prototype.buildPath=function(r,n){var i=n.extent;r.moveTo(n.x1,n.y1),r.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(r.lineTo(n.x2+i,n.y2),r.bezierCurveTo(n.cpx2+i,n.cpy2,n.cpx1+i,n.cpy1,n.x1+i,n.y1)):(r.lineTo(n.x2,n.y2+i),r.bezierCurveTo(n.cpx2,n.cpy2+i,n.cpx1,n.cpy1+i,n.x1,n.y1+i)),r.closePath()},e.prototype.highlight=function(){da(this)},e.prototype.downplay=function(){pa(this)},e}(Pe),uoe=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._focusAdjacencyDisabled=!1,r}return e.prototype.render=function(r,n,i){var a=this,o=r.getGraph(),s=this.group,l=r.layoutInfo,u=l.width,c=l.height,f=r.getData(),h=r.getData("edge"),v=r.get("orient");this._model=r,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(d){var p=new loe,y=pe(p);y.dataIndex=d.dataIndex,y.seriesIndex=r.seriesIndex,y.dataType="edge";var g=d.getModel(),m=g.getModel("lineStyle"),_=m.get("curveness"),S=d.node1.getLayout(),w=d.node1.getModel(),x=w.get("localX"),b=w.get("localY"),C=d.node2.getLayout(),T=d.node2.getModel(),A=T.get("localX"),D=T.get("localY"),L=d.getLayout(),P,I,E,k,B,R,O,z;switch(p.shape.extent=Math.max(1,L.dy),p.shape.orient=v,v==="vertical"?(P=(x!=null?x*u:S.x)+L.sy,I=(b!=null?b*c:S.y)+S.dy,E=(A!=null?A*u:C.x)+L.ty,k=D!=null?D*c:C.y,B=P,R=I*(1-_)+k*_,O=E,z=I*_+k*(1-_)):(P=(x!=null?x*u:S.x)+S.dx,I=(b!=null?b*c:S.y)+L.sy,E=A!=null?A*u:C.x,k=(D!=null?D*c:C.y)+L.ty,B=P*(1-_)+E*_,R=I,O=P*_+E*(1-_),z=k),p.setShape({x1:P,y1:I,x2:E,y2:k,cpx1:B,cpy1:R,cpx2:O,cpy2:z}),p.useStyle(m.getItemStyle()),p.style.fill){case"source":p.style.fill=d.node1.getVisual("color"),p.style.decal=d.node1.getVisual("style").decal;break;case"target":p.style.fill=d.node2.getVisual("color"),p.style.decal=d.node2.getVisual("style").decal;break;case"gradient":var V=d.node1.getVisual("color"),Y=d.node2.getVisual("color");Z(V)&&Z(Y)&&(p.style.fill=new Qu(0,0,+(v==="horizontal"),+(v==="vertical"),[{color:V,offset:0},{color:Y,offset:1}]))}sr(p,Wt(g,"edgeLabel"),{labelFetcher:r,labelDataIndex:d.dataIndex,defaultText:""+g.get("value")}),p.setTextConfig({position:"inside"});var re=g.getModel("emphasis");or(p,g,"lineStyle",function(ve){return ve.getItemStyle()}),s.add(p),h.setItemGraphicEl(d.dataIndex,p);var te=re.get("focus");yt(p,te==="adjacency"?d.getAdjacentDataIndices():te,re.get("blurScope"),re.get("disabled")),pe(p).dataType="edge"}),o.eachNode(function(d){var p=d.getLayout(),y=d.getModel(),g=y.get("localX"),m=y.get("localY"),_=y.getModel("emphasis"),S=new Ne({shape:{x:g!=null?g*u:p.x,y:m!=null?m*c:p.y,width:p.dx,height:p.dy},style:y.getModel("itemStyle").getItemStyle(),z2:10});sr(S,Wt(y),{labelFetcher:r,labelDataIndex:d.dataIndex,defaultText:d.id}),S.disableLabelAnimation=!0,S.setStyle("fill",d.getVisual("color")),S.setStyle("decal",d.getVisual("style").decal),or(S,y),s.add(S),f.setItemGraphicEl(d.dataIndex,S),pe(S).dataType="node";var w=_.get("focus");yt(S,w==="adjacency"?d.getAdjacentDataIndices():w,_.get("blurScope"),_.get("disabled"))}),f.eachItemGraphicEl(function(d,p){var y=f.getItemModel(p);y.get("draggable")&&(d.drift=function(g,m){a._focusAdjacencyDisabled=!0,this.shape.x+=g,this.shape.y+=m,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:f.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/c})},d.ondragend=function(){a._focusAdjacencyDisabled=!1},d.draggable=!0,d.cursor="move")}),!this._data&&r.isAnimationEnabled()&&s.setClipPath(coe(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Qe);function coe(t,e,r){var n=new Ne({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return lt(n,{shape:{width:t.width+20}},e,r),n}const foe=uoe;var hoe=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){var i=r.edges||r.links,a=r.data||r.nodes,o=r.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new qe(o[l],this,n));if(a&&i){var u=HV(a,i,this,!0,c);return u.data}function c(f,h){f.wrapMethod("getItemModel",function(v,d){var p=v.parentModel,y=p.getData().getItemLayout(d);if(y){var g=y.depth,m=p.levelModels[g];m&&(v.parentModel=m)}return v}),h.wrapMethod("getItemModel",function(v,d){var p=v.parentModel,y=p.getGraph().getEdgeByIndex(d),g=y.node1.getLayout();if(g){var m=g.depth,_=p.levelModels[m];_&&(v.parentModel=_)}return v})}},e.prototype.setNodePosition=function(r,n){var i=this.option.data||this.option.nodes,a=i[r];a.localX=n[0],a.localY=n[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(r,n,i){function a(v){return isNaN(v)||v==null}if(i==="edge"){var o=this.getDataParams(r,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return $t("nameValue",{name:u,value:l,noValue:a(l)})}else{var c=this.getGraph().getNodeByIndex(r),f=c.getLayout().value,h=this.getDataParams(r,i).data.name;return $t("nameValue",{name:h!=null?h+"":null,value:f,noValue:a(f)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(r,n){var i=t.prototype.getDataParams.call(this,r,n);if(i.value==null&&n==="node"){var a=this.getGraph().getNodeByIndex(r),o=a.getLayout().value;i.value=o}return i},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(at);const voe=hoe;function doe(t,e){t.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),i=r.get("nodeGap"),a=poe(r,e);r.layoutInfo=a;var o=a.width,s=a.height,l=r.getGraph(),u=l.nodes,c=l.edges;yoe(u);var f=Ye(u,function(p){return p.getLayout().value===0}),h=f.length!==0?0:r.get("layoutIterations"),v=r.get("orient"),d=r.get("nodeAlign");goe(u,c,n,i,o,s,h,v,d)})}function poe(t,e){return It(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function goe(t,e,r,n,i,a,o,s,l){moe(t,e,r,i,a,s,l),woe(t,e,a,i,n,o,s),Ioe(t,s)}function yoe(t){M(t,function(e){var r=go(e.outEdges,Yg),n=go(e.inEdges,Yg),i=e.getValue()||0,a=Math.max(r,n,i);e.setLayout({value:a},!0)})}function moe(t,e,r,n,i,a,o){for(var s=[],l=[],u=[],c=[],f=0,h=0;h=0;g&&y.depth>v&&(v=y.depth),p.setLayout({depth:g?y.depth:f},!0),a==="vertical"?p.setLayout({dy:r},!0):p.setLayout({dx:r},!0);for(var m=0;mf-1?v:f-1;o&&o!=="left"&&_oe(t,o,a,b);var C=a==="vertical"?(i-r)/b:(n-r)/b;xoe(t,C,a)}function l4(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return e.depth!=null&&e.depth>=0}function _oe(t,e,r,n){if(e==="right"){for(var i=[],a=t,o=0;a.length;){for(var s=0;s0;a--)l*=.99,Toe(s,l,o),t_(s,i,r,n,o),Poe(s,l,o),t_(s,i,r,n,o)}function boe(t,e){var r=[],n=e==="vertical"?"y":"x",i=cx(t,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),M(i.keys,function(a){r.push(i.buckets.get(a))}),r}function Coe(t,e,r,n,i,a){var o=1/0;M(t,function(s){var l=s.length,u=0;M(s,function(f){u+=f.getLayout().value});var c=a==="vertical"?(n-(l-1)*i)/u:(r-(l-1)*i)/u;c0&&(s=l.getLayout()[a]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]+l.getLayout()[h]+e;var d=i==="vertical"?n:r;if(u=c-e-d,u>0){s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var v=f-2;v>=0;--v)l=o[v],u=l.getLayout()[a]+l.getLayout()[h]+e-c,u>0&&(s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]}})}function Toe(t,e,r){M(t.slice().reverse(),function(n){M(n,function(i){if(i.outEdges.length){var a=go(i.outEdges,Aoe,r)/go(i.outEdges,Yg);if(isNaN(a)){var o=i.outEdges.length;a=o?go(i.outEdges,Moe,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-Co(i,r))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-Co(i,r))*e;i.setLayout({y:l},!0)}}})})}function Aoe(t,e){return Co(t.node2,e)*t.getValue()}function Moe(t,e){return Co(t.node2,e)}function Doe(t,e){return Co(t.node1,e)*t.getValue()}function Loe(t,e){return Co(t.node1,e)}function Co(t,e){return e==="vertical"?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function Yg(t){return t.getValue()}function go(t,e,r){for(var n=0,i=t.length,a=-1;++ao&&(o=l)}),M(n,function(s){var l=new nr({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&M(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Roe(t){t.registerChartView(foe),t.registerSeriesModel(voe),t.registerLayout(doe),t.registerVisual(Eoe),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,r){r.eachComponent({mainType:"series",subType:"sankey",query:e},function(n){n.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var u4=function(){function t(){}return t.prototype.getInitialData=function(e,r){var n,i=r.getComponent("xAxis",this.get("xAxisIndex")),a=r.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l;o==="category"?(e.layout="horizontal",n=i.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",n=a.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],h=u[1-c],v=[i,a],d=v[c].get("type"),p=v[1-c].get("type"),y=e.data;if(y&&l){var g=[];M(y,function(S,w){var x;G(S)?(x=S.slice(),S.unshift(w)):G(S.value)?(x=F({},S),x.value=x.value.slice(),S.value.unshift(w)):x=S,g.push(x)}),e.data=g}var m=this.defaultValueDimensions,_=[{name:f,type:kg(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:kg(p),dimsDef:m.slice()}];return vc(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:ye(I5,_,this)})},t.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},t}(),c4=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(at);Ct(c4,u4,!0);const koe=c4;var Ooe=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=r.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=r.get("layout")==="horizontal"?1:0;a.diff(s).add(function(u){if(a.hasValue(u)){var c=a.getItemLayout(u),f=NI(c,a,u,l,!0);a.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!a.hasValue(u)){o.remove(f);return}var h=a.getItemLayout(u);f?(ui(f),f4(h,f,a,u)):f=NI(h,a,u,l),o.add(f),a.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=a},e.prototype.remove=function(r){var n=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(a){a&&n.remove(a)})},e.type="boxplot",e}(Qe),Noe=function(){function t(){}return t}(),Boe=function(t){N(e,t);function e(r){var n=t.call(this,r)||this;return n.type="boxplotBoxPath",n}return e.prototype.getDefaultShape=function(){return new Noe},e.prototype.buildPath=function(r,n){var i=n.points,a=0;for(r.moveTo(i[a][0],i[a][1]),a++;a<4;a++)r.lineTo(i[a][0],i[a][1]);for(r.closePath();ap){var S=[g,_];n.push(S)}}}return{boxData:r,outliers:n}}var $oe={type:"echarts:boxplot",transform:function(e){var r=e.upstream;if(r.sourceFormat!==_r){var n="";Ue(n)}var i=Woe(r.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Yoe(t){t.registerSeriesModel(koe),t.registerChartView(Foe),t.registerLayout(Voe),t.registerTransform($oe)}var joe=["color","borderColor"],Xoe=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},e.prototype.incrementalPrepareRender=function(r,n,i){this._clear(),this._updateDrawMode(r)},e.prototype.incrementalRender=function(r,n,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,n):this._incrementalRenderNormal(r,n)},e.prototype.eachRendered=function(r){Ro(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(r){var n=r.getData(),i=this._data,a=this.group,o=n.getLayout("isSimpleBox"),s=r.get("clip",!0),l=r.coordinateSystem,u=l.getArea&&l.getArea();this._data||a.removeAll(),n.diff(i).add(function(c){if(n.hasValue(c)){var f=n.getItemLayout(c);if(s&&BI(u,f))return;var h=r_(f,c,!0);lt(h,{shape:{points:f.ends}},r,c),n_(h,n,c,o),a.add(h),n.setItemGraphicEl(c,h)}}).update(function(c,f){var h=i.getItemGraphicEl(f);if(!n.hasValue(c)){a.remove(h);return}var v=n.getItemLayout(c);if(s&&BI(u,v)){a.remove(h);return}h?(Ge(h,{shape:{points:v.ends}},r,c),ui(h)):h=r_(v),n_(h,n,c,o),a.add(h),n.setItemGraphicEl(c,h)}).remove(function(c){var f=i.getItemGraphicEl(c);f&&a.remove(f)}).execute(),this._data=n},e.prototype._renderLarge=function(r){this._clear(),zI(r,this.group);var n=r.get("clip",!0)?pm(r.coordinateSystem,!1,r):null;n?this.group.setClipPath(n):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(r,n){for(var i=n.getData(),a=i.getLayout("isSimpleBox"),o;(o=r.next())!=null;){var s=i.getItemLayout(o),l=r_(s);n_(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(r,n){zI(n,this.group,this._progressiveEls,!0)},e.prototype.remove=function(r){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Qe),Zoe=function(){function t(){}return t}(),qoe=function(t){N(e,t);function e(r){var n=t.call(this,r)||this;return n.type="normalCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new Zoe},e.prototype.buildPath=function(r,n){var i=n.points;this.__simpleBox?(r.moveTo(i[4][0],i[4][1]),r.lineTo(i[6][0],i[6][1])):(r.moveTo(i[0][0],i[0][1]),r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]),r.lineTo(i[3][0],i[3][1]),r.closePath(),r.moveTo(i[4][0],i[4][1]),r.lineTo(i[5][0],i[5][1]),r.moveTo(i[6][0],i[6][1]),r.lineTo(i[7][0],i[7][1]))},e}(Pe);function r_(t,e,r){var n=t.ends;return new qoe({shape:{points:r?Koe(n,t):n},z2:100})}function BI(t,e){for(var r=!0,n=0;n0?"borderColor":"borderColor0"])||r.get(["itemStyle",t>0?"color":"color0"]);t===0&&(i=r.get(["itemStyle","borderColorDoji"]));var a=r.getModel("itemStyle").getItemStyle(joe);e.useStyle(a),e.style.fill=null,e.style.stroke=i}const Joe=Xoe;var h4=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(r,n,i){var a=n.getItemLayout(r);return a&&i.rect(a.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(at);Ct(h4,u4,!0);const ese=h4;function tse(t){!t||!G(t.series)||M(t.series,function(e){se(e)&&e.type==="k"&&(e.type="candlestick")})}var rse=["itemStyle","borderColor"],nse=["itemStyle","borderColor0"],ise=["itemStyle","borderColorDoji"],ase=["itemStyle","color"],ose=["itemStyle","color0"],sse={seriesType:"candlestick",plan:lc(),performRawSeries:!0,reset:function(t,e){function r(a,o){return o.get(a>0?ase:ose)}function n(a,o){return o.get(a===0?ise:a>0?rse:nse)}if(!e.isSeriesFiltered(t)){var i=t.pipelineContext.large;return!i&&{progress:function(a,o){for(var s;(s=a.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=r(u,l),c.stroke=n(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");F(f,c)}}}}}};const lse=sse;var use={seriesType:"candlestick",plan:lc(),reset:function(t){var e=t.coordinateSystem,r=t.getData(),n=cse(t,r),i=0,a=1,o=["x","y"],s=r.getDimensionIndex(r.mapDimension(o[i])),l=H(r.mapDimensionsAll(o[a]),r.getDimensionIndex,r),u=l[0],c=l[1],f=l[2],h=l[3];if(r.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:t.pipelineContext.large?d:v};function v(p,y){for(var g,m=y.getStore();(g=p.next())!=null;){var _=m.get(s,g),S=m.get(u,g),w=m.get(c,g),x=m.get(f,g),b=m.get(h,g),C=Math.min(S,w),T=Math.max(S,w),A=B(C,_),D=B(T,_),L=B(x,_),P=B(b,_),I=[];R(I,D,0),R(I,A,1),I.push(z(P),z(D),z(L),z(A));var E=y.getItemModel(g),k=!!E.get(["itemStyle","borderColorDoji"]);y.setItemLayout(g,{sign:FI(m,g,S,w,c,k),initBaseline:S>w?D[a]:A[a],ends:I,brushRect:O(x,b,_)})}function B(V,Y){var re=[];return re[i]=Y,re[a]=V,isNaN(Y)||isNaN(V)?[NaN,NaN]:e.dataToPoint(re)}function R(V,Y,re){var te=Y.slice(),ve=Y.slice();te[i]=bp(te[i]+n/2,1,!1),ve[i]=bp(ve[i]-n/2,1,!0),re?V.push(te,ve):V.push(ve,te)}function O(V,Y,re){var te=B(V,re),ve=B(Y,re);return te[i]-=n/2,ve[i]-=n/2,{x:te[0],y:te[1],width:n,height:ve[1]-te[1]}}function z(V){return V[i]=bp(V[i],1),V}}function d(p,y){for(var g=Mi(p.count*4),m=0,_,S=[],w=[],x,b=y.getStore(),C=!!t.get(["itemStyle","borderColorDoji"]);(x=p.next())!=null;){var T=b.get(s,x),A=b.get(u,x),D=b.get(c,x),L=b.get(f,x),P=b.get(h,x);if(isNaN(T)||isNaN(L)||isNaN(P)){g[m++]=NaN,m+=3;continue}g[m++]=FI(b,x,A,D,c,C),S[i]=T,S[a]=L,_=e.dataToPoint(S,null,w),g[m++]=_?_[0]:NaN,g[m++]=_?_[1]:NaN,S[a]=P,_=e.dataToPoint(S,null,w),g[m++]=_?_[1]:NaN}y.setLayout("largePoints",g)}}};function FI(t,e,r,n,i,a){var o;return r>n?o=-1:r0?t.get(i,e-1)<=n?1:-1:1,o}function cse(t,e){var r=t.getBaseAxis(),n,i=r.type==="category"?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/e.count()),a=j(be(t.get("barMaxWidth"),i),i),o=j(be(t.get("barMinWidth"),1),i),s=t.get("barWidth");return s!=null?j(s,i):Math.max(Math.min(i/2,a),o)}const fse=use;function hse(t){t.registerChartView(Joe),t.registerSeriesModel(ese),t.registerPreprocessor(tse),t.registerVisual(lse),t.registerLayout(fse)}function VI(t,e){var r=e.rippleEffectColor||e.color;t.eachChild(function(n){n.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?r:null,fill:e.brushType==="fill"?r:null}})})}var vse=function(t){N(e,t);function e(r,n){var i=t.call(this)||this,a=new Sv(r,n),o=new fe;return i.add(a),i.add(o),i.updateData(r,n),i}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(r){for(var n=r.symbolType,i=r.color,a=r.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(a)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){a.stopAnimation();var h=void 0;ae(f)?h=f(i):h=f,a.__t>0&&(h=-s*a.__t),this._animateSymbol(a,s,h,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(r,n,i,a,o){if(n>0){r.__t=0;var s=this,l=r.animate("",a).when(o?n*2:n,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(r)});a||l.done(function(){s.remove(r)}),l.start()}},e.prototype._getLineLength=function(r){return Ki(r.__p1,r.__cp1)+Ki(r.__cp1,r.__p2)},e.prototype._updateAnimationPoints=function(r,n){r.__p1=n[0],r.__p2=n[1],r.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},e.prototype.updateData=function(r,n,i){this.childAt(0).updateData(r,n,i),this._updateEffectSymbol(r,n)},e.prototype._updateSymbolPosition=function(r){var n=r.__p1,i=r.__p2,a=r.__cp1,o=r.__t<1?r.__t:2-r.__t,s=[r.x,r.y],l=s.slice(),u=Zt,c=ZS;s[0]=u(n[0],a[0],i[0],o),s[1]=u(n[1],a[1],i[1],o);var f=r.__t<1?c(n[0],a[0],i[0],o):c(i[0],a[0],n[0],1-o),h=r.__t<1?c(n[1],a[1],i[1],o):c(i[1],a[1],n[1],1-o);r.rotation=-Math.atan2(h,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(r.__lastT!==void 0&&r.__lastT=0&&!(a[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;ln);l++);l=Math.min(l-1,o-2)}var c=(n-a[l])/(a[l+1]-a[l]),f=i[l],h=i[l+1];r.x=f[0]*(1-c)+c*h[0],r.y=f[1]*(1-c)+c*h[1];var v=r.__t<1?h[0]-f[0]:f[0]-h[0],d=r.__t<1?h[1]-f[1]:f[1]-h[1];r.rotation=-Math.atan2(d,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},e}(v4);const bse=wse;var Cse=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),Tse=function(t){N(e,t);function e(r){var n=t.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Cse},e.prototype.buildPath=function(r,n){var i=n.segs,a=n.curveness,o;if(n.polyline)for(o=this._off;o0){r.moveTo(i[o++],i[o++]);for(var l=1;l0){var v=(u+f)/2-(c-h)*a,d=(c+h)/2-(f-u)*a;r.quadraticCurveTo(v,d,f,h)}else r.lineTo(f,h)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(r,n){var i=this.shape,a=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u0)for(var f=a[u++],h=a[u++],v=1;v0){var y=(f+d)/2-(h-p)*o,g=(h+p)/2-(d-f)*o;if(Sz(f,h,y,g,d,p,s,r,n))return l}else if(Ha(f,h,d,p,s,r,n))return l;l++}return-1},e.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},e.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.segs,a=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();const Mse=Ase;var Dse={seriesType:"lines",plan:lc(),reset:function(t){var e=t.coordinateSystem;if(e){var r=t.get("polyline"),n=t.pipelineContext.large;return{progress:function(i,a){var o=[];if(n){var s=void 0,l=i.end-i.start;if(r){for(var u=0,c=i.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(a);var f=r.get("clip",!0)&&pm(r.coordinateSystem,!1,r);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateLineDraw(a,r);o.incrementalPrepareUpdate(a),this._clearLayer(i),this._finished=!1},e.prototype.incrementalRender=function(r,n,i){this._lineDraw.incrementalUpdate(r,n.getData()),this._finished=r.end===n.getData().count()},e.prototype.eachRendered=function(r){this._lineDraw&&this._lineDraw.eachRendered(r)},e.prototype.updateTransform=function(r,n,i){var a=r.getData(),o=r.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=p4.reset(r,n,i);s.progress&&s.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(i)},e.prototype._updateLineDraw=function(r,n){var i=this._lineDraw,a=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!i||a!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new Mse:new TT(o?a?bse:d4:a?v4:CT),this._hasEffet=a,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},e.prototype._showEffect=function(r){return!!r.get(["effect","show"])},e.prototype._clearLayer=function(r){var n=r.getZr(),i=n.painter.getType()==="svg";!i&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(r,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},e.prototype.dispose=function(r,n){this.remove(r,n)},e.type="lines",e}(Qe);const Pse=Lse;var Ise=typeof Uint32Array>"u"?Array:Uint32Array,Ese=typeof Float64Array>"u"?Array:Float64Array;function GI(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=H(e,function(r){var n=[r[0].coord,r[1].coord],i={coords:n};return r[0].name&&(i.fromName=r[0].name),r[1].name&&(i.toName=r[1].name),ky([i,r[0],r[1]])}))}var Rse=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return e.prototype.init=function(r){r.data=r.data||[],GI(r);var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(r){if(GI(r),r.data){var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(r){var n=this._processFlatCoordsArray(r.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=ph(this._flatCoords,n.flatCoords),this._flatCoordsOffset=ph(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),r.data=new Float32Array(n.count)),this.getRawData().appendData(r.data)},e.prototype._getCoordsFromItemModel=function(r){var n=this.getData().getItemModel(r),i=n.option instanceof Array?n.option:n.getShallow("coords");return i},e.prototype.getLineCoordsCount=function(r){return this._flatCoordsOffset?this._flatCoordsOffset[r*2+1]:this._getCoordsFromItemModel(r).length},e.prototype.getLineCoords=function(r,n){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[r*2],a=this._flatCoordsOffset[r*2+1],o=0;o ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var r=this.getModel("effect"),n=r.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:r.get("show")&&n>0?n+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(at);const kse=Rse;function Gd(t){return t instanceof Array||(t=[t,t]),t}var Ose={seriesType:"lines",reset:function(t){var e=Gd(t.get("symbol")),r=Gd(t.get("symbolSize")),n=t.getData();n.setVisual("fromSymbol",e&&e[0]),n.setVisual("toSymbol",e&&e[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]);function i(a,o){var s=a.getItemModel(o),l=Gd(s.getShallow("symbol",!0)),u=Gd(s.getShallow("symbolSize",!0));l[0]&&a.setItemVisual(o,"fromSymbol",l[0]),l[1]&&a.setItemVisual(o,"toSymbol",l[1]),u[0]&&a.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&a.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?i:null}}};const Nse=Ose;function Bse(t){t.registerChartView(Pse),t.registerSeriesModel(kse),t.registerLayout(p4),t.registerVisual(Nse)}var zse=256,Fse=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=ai.createCanvas();this.canvas=e}return t.prototype.update=function(e,r,n,i,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,h=f.getContext("2d"),v=e.length;f.width=r,f.height=n;for(var d=0;d0){var L=o(_)?l:u;_>0&&(_=_*A+C),w[x++]=L[D],w[x++]=L[D+1],w[x++]=L[D+2],w[x++]=L[D+3]*_*256}else x+=4}return h.putImageData(S,0,0),f},t.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=ai.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;e.width=n,e.height=n;var i=e.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-r,r,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),e},t.prototype._getGradient=function(e,r){for(var n=this._gradientPixels,i=n[r]||(n[r]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,s=0;s<256;s++)e[r](s/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},t}();const Vse=Fse;function Gse(t,e,r){var n=t[1]-t[0];e=H(e,function(o){return{interval:[(o.interval[0]-t[0])/n,(o.interval[1]-t[0])/n]}});var i=e.length,a=0;return function(o){var s;for(s=a;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s=e[0]&&n<=e[1]}}function HI(t){var e=t.dimensions;return e[0]==="lng"&&e[1]==="lat"}var Use=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(a=s)})}),this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(r,i,0,r.getData().count()):HI(o)&&this._renderOnGeo(o,r,a,i)},e.prototype.incrementalPrepareRender=function(r,n,i){this.group.removeAll()},e.prototype.incrementalRender=function(r,n,i,a){var o=n.coordinateSystem;o&&(HI(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,r.start,r.end,!0)))},e.prototype.eachRendered=function(r){Ro(this._progressiveEls||this.group,r)},e.prototype._renderOnCartesianAndCalendar=function(r,n,i,a,o){var s=r.coordinateSystem,l=hl(s,"cartesian2d"),u,c,f,h;if(l){var v=s.getAxis("x"),d=s.getAxis("y");u=v.getBandWidth()+.5,c=d.getBandWidth()+.5,f=v.scale.getExtent(),h=d.scale.getExtent()}for(var p=this.group,y=r.getData(),g=r.getModel(["emphasis","itemStyle"]).getItemStyle(),m=r.getModel(["blur","itemStyle"]).getItemStyle(),_=r.getModel(["select","itemStyle"]).getItemStyle(),S=r.get(["itemStyle","borderRadius"]),w=Wt(r),x=r.getModel("emphasis"),b=x.get("focus"),C=x.get("blurScope"),T=x.get("disabled"),A=l?[y.mapDimension("x"),y.mapDimension("y"),y.mapDimension("value")]:[y.mapDimension("time"),y.mapDimension("value")],D=i;Df[1]||Eh[1])continue;var k=s.dataToPoint([I,E]);L=new Ne({shape:{x:k[0]-u/2,y:k[1]-c/2,width:u,height:c},style:P})}else{if(isNaN(y.get(A[1],D)))continue;L=new Ne({z2:1,shape:s.dataToRect([y.get(A[0],D)]).contentShape,style:P})}if(y.hasItemOption){var B=y.getItemModel(D),R=B.getModel("emphasis");g=R.getModel("itemStyle").getItemStyle(),m=B.getModel(["blur","itemStyle"]).getItemStyle(),_=B.getModel(["select","itemStyle"]).getItemStyle(),S=B.get(["itemStyle","borderRadius"]),b=R.get("focus"),C=R.get("blurScope"),T=R.get("disabled"),w=Wt(B)}L.shape.r=S;var O=r.getRawValue(D),z="-";O&&O[2]!=null&&(z=O[2]+""),sr(L,w,{labelFetcher:r,labelDataIndex:D,defaultOpacity:P.opacity,defaultText:z}),L.ensureState("emphasis").style=g,L.ensureState("blur").style=m,L.ensureState("select").style=_,yt(L,b,C,T),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),p.add(L),y.setItemGraphicEl(D,L),this._progressiveEls&&this._progressiveEls.push(L)}},e.prototype._renderOnGeo=function(r,n,i,a){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new Vse;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=r.getViewRect().clone(),f=r.getRoamTransform();c.applyTransform(f);var h=Math.max(c.x,0),v=Math.max(c.y,0),d=Math.min(c.width+c.x,a.getWidth()),p=Math.min(c.height+c.y,a.getHeight()),y=d-h,g=p-v,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(b,C,T){var A=r.dataToPoint([b,C]);return A[0]-=h,A[1]-=v,A.push(T),A}),S=i.getExtent(),w=i.type==="visualMap.continuous"?Hse(S,i.option.range):Gse(S,i.getPieceList(),i.option.selected);u.update(_,y,g,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},w);var x=new Qt({style:{width:y,height:g,x:h,y:v,image:u.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(Qe);const Wse=Use;var $se=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return Vi(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var r=sc.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(at);const Yse=$se;function jse(t){t.registerChartView(Wse),t.registerSeriesModel(Yse)}var Xse=["itemStyle","borderWidth"],UI=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],o_=new li,Zse=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=this.group,o=r.getData(),s=this._data,l=r.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),h={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:r,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:UI[+c],categoryDim:UI[1-+c]};return o.diff(s).add(function(v){if(o.hasValue(v)){var d=$I(o,v),p=WI(o,v,d,h),y=YI(o,h,p);o.setItemGraphicEl(v,y),a.add(y),XI(y,h,p)}}).update(function(v,d){var p=s.getItemGraphicEl(d);if(!o.hasValue(v)){a.remove(p);return}var y=$I(o,v),g=WI(o,v,y,h),m=x4(o,g);p&&m!==p.__pictorialShapeStr&&(a.remove(p),o.setItemGraphicEl(v,null),p=null),p?rle(p,h,g):p=YI(o,h,g,!0),o.setItemGraphicEl(v,p),p.__pictorialSymbolMeta=g,a.add(p),XI(p,h,g)}).remove(function(v){var d=s.getItemGraphicEl(v);d&&jI(s,v,d.__pictorialSymbolMeta.animationModel,d)}).execute(),this._data=o,this.group},e.prototype.remove=function(r,n){var i=this.group,a=this._data;r.get("animation")?a&&a.eachItemGraphicEl(function(o){jI(a,pe(o).dataIndex,r,o)}):i.removeAll()},e.type="pictorialBar",e}(Qe);function WI(t,e,r,n){var i=t.getItemLayout(e),a=r.get("symbolRepeat"),o=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=r.get("symbolPatternSize")||2,f=r.isAnimationEnabled(),h={dataIndex:e,layout:i,itemModel:r,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?r:null,hoverScale:f&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};qse(r,a,i,n,h),Kse(t,e,i,a,o,h.boundingLength,h.pxSign,c,n,h),Qse(r,h.symbolScale,u,n,h);var v=h.symbolSize,d=cc(r.get("symbolOffset"),v);return Jse(r,v,i,a,o,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function qse(t,e,r,n,i){var a=n.valueDim,o=t.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(r[a.wh]<=0),c;if(G(o)){var f=[s_(s,o[0])-l,s_(s,o[1])-l];f[1]0?1:-1}function s_(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function Kse(t,e,r,n,i,a,o,s,l,u){var c=l.valueDim,f=l.categoryDim,h=Math.abs(r[f.wh]),v=t.getItemVisual(e,"symbolSize"),d;G(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[f.index]=j(d[f.index],h),d[c.index]=j(d[c.index],n?h:Math.abs(a)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[c.index]*=(l.isHorizontal?-1:1)*o}function Qse(t,e,r,n,i){var a=t.get(Xse)||0;a&&(o_.attr({scaleX:e[0],scaleY:e[1],rotation:r}),o_.updateTransform(),a/=o_.getLineScale(),a*=e[n.valueDim.index]),i.valueLineWidth=a||0}function Jse(t,e,r,n,i,a,o,s,l,u,c,f){var h=c.categoryDim,v=c.valueDim,d=f.pxSign,p=Math.max(e[v.index]+s,0),y=p;if(n){var g=Math.abs(l),m=Vt(t.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=j(m,e[v.index]),w=Math.max(p+S*2,0),x=_?0:S*2,b=rC(n),C=b?n:ZI((g+x)/w),T=g-C*p;S=T/2/(_?C:Math.max(C-1,1)),w=p+S*2,x=_?0:S*2,!b&&n!=="fixed"&&(C=u?ZI((Math.abs(u)+x)/w):0),y=C*w-x,f.repeatTimes=C,f.symbolMargin=S}var A=d*(y/2),D=f.pathPosition=[];D[h.index]=r[h.wh]/2,D[v.index]=o==="start"?A:o==="end"?l-A:l/2,a&&(D[0]+=a[0],D[1]+=a[1]);var L=f.bundlePosition=[];L[h.index]=r[h.xy],L[v.index]=r[v.xy];var P=f.barRectShape=F({},r);P[v.wh]=d*Math.max(Math.abs(r[v.wh]),Math.abs(D[v.index]+A)),P[h.wh]=r[h.wh];var I=f.clipShape={};I[h.xy]=-r[h.xy],I[h.wh]=c.ecSize[h.wh],I[v.xy]=0,I[v.wh]=r[v.wh]}function g4(t){var e=t.symbolPatternSize,r=Mt(t.symbolType,-e/2,-e/2,e,e);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function y4(t,e,r,n){var i=t.__pictorialBundle,a=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=e.valueDim,u=r.repeatTimes||0,c=0,f=a[e.valueDim.index]+o+r.symbolMargin*2;for(RT(t,function(p){p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,c0:g<0)&&(m=u-1-p),y[l.index]=f*(m-u/2+.5)+s[l.index],{x:y[0],y:y[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function m4(t,e,r,n){var i=t.__pictorialBundle,a=t.__pictorialMainPath;a?xu(a,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(a=t.__pictorialMainPath=g4(r),i.add(a),xu(a,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,n))}function _4(t,e,r){var n=F({},e.barRectShape),i=t.__pictorialBarRect;i?xu(i,null,{shape:n},e,r):(i=t.__pictorialBarRect=new Ne({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,t.add(i))}function S4(t,e,r,n){if(r.symbolClip){var i=t.__pictorialClipPath,a=F({},r.clipShape),o=e.valueDim,s=r.animationModel,l=r.dataIndex;if(i)Ge(i,{shape:a},s,l);else{a[o.wh]=0,i=new Ne({shape:a}),t.__pictorialBundle.setClipPath(i),t.__pictorialClipPath=i;var u={};u[o.wh]=r.clipShape[o.wh],dv[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function $I(t,e){var r=t.getItemModel(e);return r.getAnimationDelayParams=ele,r.isAnimationEnabled=tle,r}function ele(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function tle(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function YI(t,e,r,n){var i=new fe,a=new fe;return i.add(a),i.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?y4(i,e,r):m4(i,e,r),_4(i,r,n),S4(i,e,r,n),i.__pictorialShapeStr=x4(t,r),i.__pictorialSymbolMeta=r,i}function rle(t,e,r){var n=r.animationModel,i=r.dataIndex,a=t.__pictorialBundle;Ge(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?y4(t,e,r,!0):m4(t,e,r,!0),_4(t,r,!0),S4(t,e,r,!0)}function jI(t,e,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];RT(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),M(a,function(o){xo(o,{scaleX:0,scaleY:0},r,e,function(){n.parent&&n.parent.remove(n)})}),t.setItemGraphicEl(e,null)}function x4(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function RT(t,e,r){M(t.__pictorialBundle.children(),function(n){n!==t.__pictorialBarRect&&e.call(r,n)})}function xu(t,e,r,n,i,a){e&&t.attr(e),n.symbolClip&&!i?r&&t.attr(r):r&&dv[i?"updateProps":"initProps"](t,r,n.animationModel,n.dataIndex,a)}function XI(t,e,r){var n=r.dataIndex,i=r.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=a.get("focus"),f=a.get("blurScope"),h=a.get("scale");RT(t,function(p){if(p instanceof Qt){var y=p.style;p.useStyle(F({image:y.image,x:y.x,y:y.y,width:y.width,height:y.height},r.style))}else p.useStyle(r.style);var g=p.ensureState("emphasis");g.style=o,h&&(g.scaleX=p.scaleX*1.1,g.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=r.z2});var v=e.valueDim.posDesc[+(r.boundingLength>0)],d=t.__pictorialBarRect;sr(d,Wt(i),{labelFetcher:e.seriesModel,labelDataIndex:n,defaultText:zu(e.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:v}),yt(t,c,f,a.get("disabled"))}function ZI(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}const nle=Zse;var ile=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return e.prototype.getInitialData=function(r){return r.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=ko(Fg.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Fg);const ale=ile;function ole(t){t.registerChartView(nle),t.registerSeriesModel(ale),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,ye(rF,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,nF("pictorialBar"))}var sle=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._layers=[],r}return e.prototype.render=function(r,n,i){var a=r.getData(),o=this,s=this.group,l=r.getLayerSeries(),u=a.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function h(y){return y.name}var v=new ga(this._layersSeries||[],l,h,h),d=[];v.add(Q(p,this,"add")).update(Q(p,this,"update")).remove(Q(p,this,"remove")).execute();function p(y,g,m){var _=o._layers;if(y==="remove"){s.remove(_[g]);return}for(var S=[],w=[],x,b=l[g].indices,C=0;Ca&&(a=s),n.push(s)}for(var u=0;ua&&(a=f)}return{y0:i,max:a}}function dle(t){t.registerChartView(ule),t.registerSeriesModel(fle),t.registerLayout(hle),t.registerProcessor(bv("themeRiver"))}var ple=2,gle=4,yle=function(t){N(e,t);function e(r,n,i,a){var o=t.call(this)||this;o.z2=ple,o.textConfig={inside:!0},pe(o).seriesIndex=n.seriesIndex;var s=new Oe({z2:gle,silent:r.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,r,n,i,a),o}return e.prototype.updateData=function(r,n,i,a,o){this.node=n,n.piece=this,i=i||this._seriesModel,a=a||this._ecModel;var s=this;pe(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=F({},c);f.label=null;var h=n.getVisual("style");h.lineJoin="bevel";var v=n.getVisual("decal");v&&(h.decal=Bu(v,o));var d=Rs(l.getModel("itemStyle"),f,!0);F(f,d),M(Mr,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var w=Rs(S,f);w&&(_.shape=w)}),r?(s.setShape(f),s.shape.r=c.r0,lt(s,{shape:{r:c.r}},i,n.dataIndex)):(Ge(s,{shape:f},i),ui(s)),s.useStyle(h),this._updateLabel(i);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=i||this._seriesModel,this._ecModel=a||this._ecModel;var y=u.get("focus"),g=y==="ancestor"?n.getAncestorsIndices():y==="descendant"?n.getDescendantIndices():y;yt(this,g,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r){var n=this,i=this.node.getModel(),a=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,h=f.getTextContent(),v=this.node.dataIndex,d=a.get("minAngle")/180*Math.PI,p=a.get("show")&&!(d!=null&&Math.abs(s)Math.PI/2?"right":"left"):!L||L==="center"?(s===2*Math.PI&&o.r0===0?A=0:A=(o.r+o.r0)/2,L="center"):L==="left"?(A=o.r0+D,l>Math.PI/2&&(L="right")):L==="right"&&(A=o.r-D,l>Math.PI/2&&(L="left")),S.style.align=L,S.style.verticalAlign=y(m,"verticalAlign")||"middle",S.x=A*u+o.cx,S.y=A*c+o.cy;var P=y(m,"rotate"),I=0;P==="radial"?(I=ta(-l),I>Math.PI/2&&IMath.PI/2?I-=Math.PI:I<-Math.PI/2&&(I+=Math.PI)):Fe(P)&&(I=P*Math.PI/180),S.rotation=I});function y(g,m){var _=g.get(m);return _??a.get(m)}h.dirtyStyle()},e}(Dr);const KI=yle;var cw="sunburstRootToNode",QI="sunburstHighlight",mle="sunburstUnhighlight";function _le(t){t.registerAction({type:cw,update:"updateView"},function(e,r){r.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(i,a){var o=Fh(e,[cw],i);if(o){var s=i.getViewRoot();s&&(e.direction=mT(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),t.registerAction({type:QI,update:"none"},function(e,r,n){e=F({},e),r.eachComponent({mainType:"series",subType:"sunburst",query:e},i);function i(a){var o=Fh(e,[QI],a);o&&(e.dataIndex=o.node.dataIndex)}n.dispatchAction(F(e,{type:"highlight"}))}),t.registerAction({type:mle,update:"updateView"},function(e,r,n){e=F({},e),n.dispatchAction(F(e,{type:"downplay"}))})}var Sle=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i,a){var o=this;this.seriesModel=r,this.api=i,this.ecModel=n;var s=r.getData(),l=s.tree.root,u=r.getViewRoot(),c=this.group,f=r.get("renderLabelForZeroData"),h=[];u.eachNode(function(m){h.push(m)});var v=this._oldChildren||[];d(h,v),g(l,u),this._initEvents(),this._oldChildren=h;function d(m,_){if(m.length===0&&_.length===0)return;new ga(_,m,S,S).add(w).update(w).remove(ye(w,null)).execute();function S(x){return x.getId()}function w(x,b){var C=x==null?null:m[x],T=b==null?null:_[b];p(C,T)}}function p(m,_){if(!f&&m&&!m.getValue()&&(m=null),m!==l&&_!==l){if(_&&_.piece)m?(_.piece.updateData(!1,m,r,n,i),s.setItemGraphicEl(m.dataIndex,_.piece)):y(_);else if(m){var S=new KI(m,r,n,i);c.add(S),s.setItemGraphicEl(m.dataIndex,S)}}}function y(m){m&&m.piece&&(c.remove(m.piece),m.piece=null)}function g(m,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,r,n,i):(o.virtualPiece=new KI(m,r,n,i),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(n){var i=!1,a=r.seriesModel.getViewRoot();a.eachNode(function(o){if(!i&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")r._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";Cg(u,c)}}i=!0}})})},e.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:cw,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},e.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}},e.type="sunburst",e}(Qe);const xle=Sle;var wle=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.ignoreStyleOnData=!0,r}return e.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};w4(i);var a=this._levelModels=H(r.levels||[],function(l){return new qe(l,this,n)},this),o=yT.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),h=a[f.depth];return h&&(u.parentModel=h),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(r){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treePathInfo=mm(i,this),n},e.prototype.getLevelModel=function(r){return this._levelModels&&this._levelModels[r.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){AV(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(at);function w4(t){var e=0;M(t.children,function(n){w4(n);var i=n.value;G(i)&&(i=i[0]),e+=i});var r=t.value;G(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=e),r<0&&(r=0),G(t.value)?t.value[0]=r:t.value=r}const ble=wle;var JI=Math.PI/180;function Cle(t,e,r){e.eachSeriesByType(t,function(n){var i=n.get("center"),a=n.get("radius");G(a)||(a=[0,a]),G(i)||(i=[i,i]);var o=r.getWidth(),s=r.getHeight(),l=Math.min(o,s),u=j(i[0],o),c=j(i[1],s),f=j(a[0],l/2),h=j(a[1],l/2),v=-n.get("startAngle")*JI,d=n.get("minAngle")*JI,p=n.getData().tree.root,y=n.getViewRoot(),g=y.depth,m=n.get("sort");m!=null&&b4(y,m);var _=0;M(y.children,function(k){!isNaN(k.getValue())&&_++});var S=y.getValue(),w=Math.PI/(S||_)*2,x=y.depth>0,b=y.height-(x?-1:1),C=(h-f)/(b||1),T=n.get("clockwise"),A=n.get("stillShowZeroSum"),D=T?1:-1,L=function(k,B){if(k){var R=B;if(k!==p){var O=k.getValue(),z=S===0&&A?w:O*w;z1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",e);return n.depth>1&&Z(s)&&(s=vg(s,(n.depth-1)/(a-1)*.5)),s}t.eachSeriesByType("sunburst",function(n){var i=n.getData(),a=i.tree;a.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=r(o,n,a.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");F(u,l)})})}function Mle(t){t.registerChartView(xle),t.registerSeriesModel(ble),t.registerLayout(ye(Cle,"sunburst")),t.registerProcessor(ye(bv,"sunburst")),t.registerVisual(Ale),_le(t)}var eE={color:"fill",borderColor:"stroke"},Dle={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},oa=Ve(),Lle=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(r,n){return Vi(null,this)},e.prototype.getDataParams=function(r,n,i){var a=t.prototype.getDataParams.call(this,r,n);return i&&(a.info=oa(i).info),a},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(at);const Ple=Lle;function Ile(t,e){return e=e||[0,0],H(["x","y"],function(r,n){var i=this.getAxis(r),a=e[n],o=t[n]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function Ele(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(r){return t.dataToPoint(r)},size:Q(Ile,t)}}}function Rle(t,e){return e=e||[0,0],H([0,1],function(r){var n=e[r],i=t[r]/2,a=[],o=[];return a[r]=n-i,o[r]=n+i,a[1-r]=o[1-r]=e[1-r],Math.abs(this.dataToPoint(a)[r]-this.dataToPoint(o)[r])},this)}function kle(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(r){return t.dataToPoint(r)},size:Q(Rle,t)}}}function Ole(t,e){var r=this.getAxis(),n=e instanceof Array?e[0]:e,i=(t instanceof Array?t[0]:t)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-i)-r.dataToCoord(n+i))}function Nle(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(r){return t.dataToPoint(r)},size:Q(Ole,t)}}}function Ble(t,e){return e=e||[0,0],H(["Radius","Angle"],function(r,n){var i="get"+r+"Axis",a=this[i](),o=e[n],s=t[n]/2,l=a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function zle(t){var e=t.getRadiusAxis(),r=t.getAngleAxis(),n=e.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:n[1],r0:n[0]},api:{coord:function(i){var a=e.dataToRadius(i[0]),o=r.dataToAngle(i[1]),s=t.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:Q(Ble,t)}}}function Fle(t){var e=t.getRect(),r=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,i){return t.dataToPoint(n,i)}}}}function C4(t,e,r,n){return t&&(t.legacy||t.legacy!==!1&&!r&&!n&&e!=="tspan"&&(e==="text"||ee(t,"text")))}function T4(t,e,r){var n=t,i,a,o;if(e==="text")o=n;else{o={},ee(n,"text")&&(o.text=n.text),ee(n,"rich")&&(o.rich=n.rich),ee(n,"textFill")&&(o.fill=n.textFill),ee(n,"textStroke")&&(o.stroke=n.textStroke),ee(n,"fontFamily")&&(o.fontFamily=n.fontFamily),ee(n,"fontSize")&&(o.fontSize=n.fontSize),ee(n,"fontStyle")&&(o.fontStyle=n.fontStyle),ee(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=ee(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),ee(n,"textPosition")&&(i.position=n.textPosition),ee(n,"textOffset")&&(i.offset=n.textOffset),ee(n,"textRotation")&&(i.rotation=n.textRotation),ee(n,"textDistance")&&(i.distance=n.textDistance)}return tE(o,t),M(o.rich,function(l){tE(l,l)}),{textConfig:i,textContent:a}}function tE(t,e){e&&(e.font=e.textFont||e.font,ee(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),ee(e,"textAlign")&&(t.align=e.textAlign),ee(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),ee(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),ee(e,"textWidth")&&(t.width=e.textWidth),ee(e,"textHeight")&&(t.height=e.textHeight),ee(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),ee(e,"textPadding")&&(t.padding=e.textPadding),ee(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),ee(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),ee(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),ee(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),ee(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),ee(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),ee(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function rE(t,e,r){var n=t;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var i=n.textPosition.indexOf("inside")>=0,a=t.fill||"#000";nE(n,e);var o=n.textFill==null;return i?o&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=a),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=t.fill||r.outsideFill||"#000"),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=e.text,n.rich=e.rich,M(e.rich,function(s){nE(s,s)}),n}function nE(t,e){e&&(ee(e,"fill")&&(t.textFill=e.fill),ee(e,"stroke")&&(t.textStroke=e.fill),ee(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),ee(e,"font")&&(t.font=e.font),ee(e,"fontStyle")&&(t.fontStyle=e.fontStyle),ee(e,"fontWeight")&&(t.fontWeight=e.fontWeight),ee(e,"fontSize")&&(t.fontSize=e.fontSize),ee(e,"fontFamily")&&(t.fontFamily=e.fontFamily),ee(e,"align")&&(t.textAlign=e.align),ee(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),ee(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),ee(e,"width")&&(t.textWidth=e.width),ee(e,"height")&&(t.textHeight=e.height),ee(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),ee(e,"padding")&&(t.textPadding=e.padding),ee(e,"borderColor")&&(t.textBorderColor=e.borderColor),ee(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),ee(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),ee(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),ee(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),ee(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),ee(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),ee(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),ee(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),ee(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),ee(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var A4={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},iE=Ie(A4);En(Oi,function(t,e){return t[e]=1,t},{});Oi.join(", ");var jg=["","style","shape","extra"],Gu=Ve();function kT(t,e,r,n,i){var a=t+"Animation",o=Ju(t,n,i)||{},s=Gu(e).userDuring;return o.duration>0&&(o.during=s?Q(Wle,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=t),F(o,r[a]),o}function Lp(t,e,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=Gu(t),u=e.style;l.userDuring=e.during;var c={},f={};if(Yle(t,e,f),oE("shape",e,f),oE("extra",e,f),!a&&s&&($le(t,e,c),aE("shape",t,e,c),aE("extra",t,e,c),jle(t,e,u,c)),f.style=u,Vle(t,f,o),Hle(t,e),s)if(a){var h={};M(jg,function(d){var p=d?e[d]:e;p&&p.enterFrom&&(d&&(h[d]=h[d]||{}),F(d?h[d]:h,p.enterFrom))});var v=kT("enter",t,e,r,i);v.duration>0&&t.animateFrom(h,v)}else Gle(t,e,i||0,r,c);M4(t,e),u?t.dirty():t.markRedraw()}function M4(t,e){for(var r=Gu(t).leaveToProps,n=0;n0&&t.animateFrom(i,a)}}function Hle(t,e){ee(e,"silent")&&(t.silent=e.silent),ee(e,"ignore")&&(t.ignore=e.ignore),t instanceof Rn&&ee(e,"invisible")&&(t.invisible=e.invisible),t instanceof Pe&&ee(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var mi={},Ule={setTransform:function(t,e){return mi.el[t]=e,this},getTransform:function(t){return mi.el[t]},setShape:function(t,e){var r=mi.el,n=r.shape||(r.shape={});return n[t]=e,r.dirtyShape&&r.dirtyShape(),this},getShape:function(t){var e=mi.el.shape;if(e)return e[t]},setStyle:function(t,e){var r=mi.el,n=r.style;return n&&(n[t]=e,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(t){var e=mi.el.style;if(e)return e[t]},setExtra:function(t,e){var r=mi.el.extra||(mi.el.extra={});return r[t]=e,this},getExtra:function(t){var e=mi.el.extra;if(e)return e[t]}};function Wle(){var t=this,e=t.el;if(e){var r=Gu(e).userDuring,n=t.userDuring;if(r!==n){t.el=t.userDuring=null;return}mi.el=e,n(Ule)}}function aE(t,e,r,n){var i=r[t];if(i){var a=e[t],o;if(a){var s=r.transition,l=i.transition;if(l)if(!o&&(o=n[t]={}),Us(l))F(o,a);else for(var u=Ke(l),c=0;c=0){!o&&(o=n[t]={});for(var v=Ie(a),c=0;c=0)){var h=t.getAnimationStyleProps(),v=h?h.style:null;if(v){!a&&(a=n.style={});for(var d=Ie(r),u=0;u=0?e.getStore().get(B,E):void 0}var R=e.get(k.name,E),O=k&&k.ordinalMeta;return O?O.categories[R]:R}function x(I,E){E==null&&(E=u);var k=e.getItemVisual(E,"style"),B=k&&k.fill,R=k&&k.opacity,O=m(E,Ja).getItemStyle();B!=null&&(O.fill=B),R!=null&&(O.opacity=R);var z={inheritColor:Z(B)?B:"#000"},V=_(E,Ja),Y=tt(V,null,z,!1,!0);Y.text=V.getShallow("show")?be(t.getFormattedLabel(E,Ja),zu(e,E)):null;var re=wg(V,z,!1);return T(I,O),O=rE(O,Y,re),I&&C(O,I),O.legacy=!0,O}function b(I,E){E==null&&(E=u);var k=m(E,sa).getItemStyle(),B=_(E,sa),R=tt(B,null,null,!0,!0);R.text=B.getShallow("show")?Ii(t.getFormattedLabel(E,sa),t.getFormattedLabel(E,Ja),zu(e,E)):null;var O=wg(B,null,!0);return T(I,k),k=rE(k,R,O),I&&C(k,I),k.legacy=!0,k}function C(I,E){for(var k in E)ee(E,k)&&(I[k]=E[k])}function T(I,E){I&&(I.textFill&&(E.textFill=I.textFill),I.textPosition&&(E.textPosition=I.textPosition))}function A(I,E){if(E==null&&(E=u),ee(eE,I)){var k=e.getItemVisual(E,"style");return k?k[eE[I]]:null}if(ee(Dle,I))return e.getItemVisual(E,I)}function D(I){if(a.type==="cartesian2d"){var E=a.getBaseAxis();return YK(oe({axis:E},I))}}function L(){return r.getCurrentSeriesIndices()}function P(I){return c5(I,r)}}function iue(t){var e={};return M(t.dimensions,function(r){var n=t.getDimensionInfo(r);if(!n.isExtraCoord){var i=n.coordDim,a=e[i]=e[i]||[];a[n.coordDimIndex]=t.getDimensionIndex(r)}}),e}function f_(t,e,r,n,i,a,o){if(!n){a.remove(e);return}var s=FT(t,e,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&yt(s,n.focus,n.blurScope,n.emphasisDisabled),s}function FT(t,e,r,n,i,a){var o=-1,s=e;e&&I4(e,n,i)&&(o=Te(a.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=BT(n),s&&Jle(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),vn.normal.cfg=vn.normal.conOpt=vn.emphasis.cfg=vn.emphasis.conOpt=vn.blur.cfg=vn.blur.conOpt=vn.select.cfg=vn.select.conOpt=null,vn.isLegacy=!1,oue(u,r,n,i,l,vn),aue(u,r,n,i,l),zT(t,u,r,n,vn,i,l),ee(n,"info")&&(oa(u).info=n.info);for(var c=0;c=0?a.replaceAt(u,o):a.add(u),u}function I4(t,e,r){var n=oa(t),i=e.type,a=e.shape,o=e.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&fue(a)&&E4(a)!==n.customPathData||i==="image"&&ee(o,"image")&&o.image!==n.customImagePath}function aue(t,e,r,n,i){var a=r.clipPath;if(a===!1)t&&t.getClipPath()&&t.removeClipPath();else if(a){var o=t.getClipPath();o&&I4(o,a,n)&&(o=null),o||(o=BT(a),t.setClipPath(o)),zT(null,o,e,a,null,n,i)}}function oue(t,e,r,n,i,a){if(!t.isGroup){lE(r,null,a),lE(r,sa,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=t.getTextContent();if(o===!1)c&&t.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=BT(o),t.setTextContent(c)),zT(null,c,e,o,null,n,i);for(var f=o&&o.style,h=0;h=c;v--){var d=e.childAt(v);lue(e,d,i)}}}function lue(t,e,r){e&&xm(e,oa(t).option,r)}function uue(t){new ga(t.oldChildren,t.newChildren,uE,uE,t).add(cE).update(cE).remove(cue).execute()}function uE(t,e){var r=t&&t.name;return r??Kle+e}function cE(t,e){var r=this.context,n=t!=null?r.newChildren[t]:null,i=e!=null?r.oldChildren[e]:null;FT(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function cue(t){var e=this.context,r=e.oldChildren[t];r&&xm(r,oa(r).option,e.seriesModel)}function E4(t){return t&&(t.pathData||t.d)}function fue(t){return t&&(ee(t,"pathData")||ee(t,"d"))}function hue(t){t.registerChartView(tue),t.registerSeriesModel(Ple)}var _s=Ve(),fE=le,h_=Q,vue=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,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,e,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new fe,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),n.getZr().add(s);else{var h=ye(hE,r,f);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,r)}dE(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),i=e.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&&i.getBandWidth()>s)return!0;if(o){var l=cT(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,i,a){},t.prototype.createPointerEl=function(e,r,n,i){var a=r.pointer;if(a){var o=_s(e).pointerEl=new dv[a.type](fE(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,i){if(r.label){var a=_s(e).labelEl=new Oe(fE(r.label));e.add(a),vE(a,i)}},t.prototype.updatePointerEl=function(e,r,n){var i=_s(e).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,i){var a=_s(e).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),vE(a,i))},t.prototype._renderHandle=function(e){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=ec(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){va(u.event)},onmousedown:h_(this._onHandleDragMove,this,0,0),drift:h_(this._onHandleDragMove,this),ondragend:h_(this._onHandleDragEnd,this)}),n.add(i)),dE(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");G(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,uc(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){hE(this._axisPointerModel,!r&&this._moveAnimation,this._handle,v_(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(v_(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(v_(i)),_s(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){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}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.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),Eh(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return n=n||0,{x:e[n],y:e[1-n],width:r[n],height:r[1-n]}},t}();function hE(t,e,r,n){R4(_s(r).lastProp,n)||(_s(r).lastProp=n,e?Ge(r,n,t):(r.stopAnimation(),r.attr(n)))}function R4(t,e){if(se(t)&&se(e)){var r=!0;return M(e,function(n,i){r=r&&R4(t[i],n)}),!!r}else return t===e}function vE(t,e){t[e.get(["label","show"])?"show":"hide"]()}function v_(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function dE(t,e,r){var n=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}const GT=vue;function HT(t){var e=t.get("type"),r=t.getModel(e+"Style"),n;return e==="line"?(n=r.getLineStyle(),n.fill=null):e==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function k4(t,e,r,n,i){var a=r.get("value"),o=O4(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=fl(s.get("padding")||0),u=s.getFont(),c=sv(o,u),f=i.position,h=c.width+l[1]+l[3],v=c.height+l[0]+l[2],d=i.align;d==="right"&&(f[0]-=h),d==="center"&&(f[0]-=h/2);var p=i.verticalAlign;p==="bottom"&&(f[1]-=v),p==="middle"&&(f[1]-=v/2),due(f,h,v,n);var y=s.get("backgroundColor");(!y||y==="auto")&&(y=e.get(["axisLine","lineStyle","color"])),t.label={x:f[0],y:f[1],style:tt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function due(t,e,r,n){var i=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function O4(t,e,r,n,i){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:i.precision}),o=i.formatter;if(o){var s={value:tT(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};M(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),Z(o)?a=o.replace("{value}",a):ae(o)&&(a=o(s))}return a}function UT(t,e,r){var n=rn();return Eo(n,n,r.rotation),oi(n,n,r.position),ni([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function N4(t,e,r,n,i,a){var o=ma.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),k4(e,n,i,a,{position:UT(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function WT(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function B4(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function pE(t,e,r,n,i,a){return{cx:t,cy:e,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var pue=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=gE(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=HT(a),v=gue[u](s,f,c);v.style=h,r.graphicKey=v.type,r.pointer=v}var d=Xx(l.model,i);N4(n,r,d,i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=Xx(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=UT(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=gE(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var h=(u[1]+u[0])/2,v=[h,h];v[c]=f[c];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:v,tooltipOption:d[c]}},e}(GT);function gE(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var gue={line:function(t,e,r){var n=WT([e,r[0]],[e,r[1]],yE(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r){var n=Math.max(1,t.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:B4([e-n/2,r[0]],[n,i],yE(t))}}};function yE(t){return t.dim==="x"?0:1}const yue=pue;var mue=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(ke);const _ue=mue;var ra=Ve(),Sue=M;function z4(t,e,r){if(!ze.node){var n=e.getZr();ra(n).records||(ra(n).records={}),xue(n,e);var i=ra(n).records[t]||(ra(n).records[t]={});i.handler=r}}function xue(t,e){if(ra(t).initialized)return;ra(t).initialized=!0,r("click",ye(mE,"click")),r("mousemove",ye(mE,"mousemove")),r("globalout",bue);function r(n,i){t.on(n,function(a){var o=Cue(e);Sue(ra(t).records,function(s){s&&i(s,a,o.dispatchAction)}),wue(o.pendings,e)})}}function wue(t,e){var r=t.showTip.length,n=t.hideTip.length,i;r?i=t.showTip[r-1]:n&&(i=t.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function bue(t,e,r){t.handler("leave",null,r)}function mE(t,e,r,n){e.handler(t,r,n)}function Cue(t){var e={showTip:[],hideTip:[]},r=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function vw(t,e){if(!ze.node){var r=e.getZr(),n=(ra(r).records||{})[t];n&&(ra(r).records[t]=null)}}var Tue=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";z4("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})})},e.prototype.remove=function(r,n){vw("axisPointer",n)},e.prototype.dispose=function(r,n){vw("axisPointer",n)},e.type="axisPointer",e}(ft);const Aue=Tue;function F4(t,e){var r=[],n=t.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Qs(a,t);if(o==null||o<0||G(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,h=u.dim,v=f==="x"||f==="radius"?1:0,d=a.mapDimension(h),p=[];p[v]=a.get(d,o),p[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(a.getValues(H(l.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),r=[y.x+y.width/2,y.y+y.height/2]}return{point:r,el:s}}var _E=Ve();function Mue(t,e,r){var n=t.currTrigger,i=[t.x,t.y],a=t,o=t.dispatchAction||Q(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Pp(i)&&(i=F4({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Pp(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||Pp(i),h={},v={},d={list:[],map:{}},p={showPointer:ye(Lue,v),showTooltip:ye(Pue,d)};M(s.coordSysMap,function(g,m){var _=l||g.containPoint(i);M(s.coordSysAxesInfo[m],function(S,w){var x=S.axis,b=kue(u,S);if(!f&&_&&(!u||b)){var C=b&&b.value;C==null&&!l&&(C=x.pointToData(i)),C!=null&&SE(S,C,p,!1,h)}})});var y={};return M(c,function(g,m){var _=g.linkGroup;_&&!v[m]&&M(_.axesInfo,function(S,w){var x=v[w];if(S!==g&&x){var b=x.value;_.mapper&&(b=g.axis.scale.parse(_.mapper(b,xE(S),xE(g)))),y[g.key]=b}})}),M(y,function(g,m){SE(c[m],g,p,!0,h)}),Iue(v,c,h),Eue(d,i,t,o),Rue(c,o,r),h}}function SE(t,e,r,n,i){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=Due(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&F(i,s[0]),!n&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function Due(t,e){var r=e.axis,n=r.dim,i=t,a=[],o=Number.MAX_VALUE,s=-1;return M(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(c,t,r);h=v.dataIndices,f=v.nestestValue}else{if(h=l.getData().indicesOfNearest(c[0],t,r.type==="category"?.5:null),!h.length)return;f=l.getData().get(c[0],h[0])}if(!(f==null||!isFinite(f))){var d=t-f,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,i=f,a.length=0),M(h,function(y){a.push({seriesIndex:l.seriesIndex,dataIndexInside:y,dataIndex:l.getData().getRawIndex(y)})}))}}),{payloadBatch:a,snapToValue:i}}function Lue(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function Pue(t,e,r,n){var i=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=zh(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim: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 Iue(t,e,r){var n=r.axesInfo=[];M(e,function(i,a){var o=i.axisPointerModel.option,s=t[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 Eue(t,e,r,n){if(Pp(e)||!t.list.length){n({type:"hideTip"});return}var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}function Rue(t,e,r){var n=r.getZr(),i="axisPointerLastHighlights",a=_E(n)[i]||{},o=_E(n)[i]={};M(t,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&M(f.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];M(a,function(u,c){!o[c]&&l.push(u)}),M(o,function(u,c){!a[c]&&s.push(u)}),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 kue(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function xE(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function Pp(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function Mv(t){vl.registerAxisPointerClass("CartesianAxisPointer",yue),t.registerComponentModel(_ue),t.registerComponentView(Aue),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!G(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=xte(e,r)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Mue)}function Oue(t){Ae(fV),Ae(Mv)}var Nue=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(n),h=a.get("type");if(h&&h!=="none"){var v=HT(a),d=zue[h](s,l,f,c);d.style=v,r.graphicKey=d.type,r.pointer=d}var p=a.get(["label","margin"]),y=Bue(n,i,a,l,p);k4(r,i,a,o,y)},e}(GT);function Bue(t,e,r,n,i){var a=e.axis,o=a.dataToCoord(t),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,f;if(a.dim==="radius"){var h=rn();Eo(h,h,s),oi(h,h,[n.cx,n.cy]),u=ni([o,-i],h);var v=e.getModel("axisLabel").get("rotate")||0,d=ma.innerTextLayout(s,v*Math.PI/180,-1);c=d.textAlign,f=d.textVerticalAlign}else{var p=l[1];u=n.coordToPoint([p+i,o]);var y=n.cx,g=n.cy;c=Math.abs(u[0]-y)/p<.3?"center":u[0]>y?"left":"right",f=Math.abs(u[1]-g)/p<.3?"middle":u[1]>g?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var zue={line:function(t,e,r,n){return t.dim==="angle"?{type:"Line",shape:WT(e.coordToPoint([n[0],r]),e.coordToPoint([n[1],r]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r}}},shadow:function(t,e,r,n){var i=Math.max(1,t.getBandWidth()),a=Math.PI/180;return t.dim==="angle"?{type:"Sector",shape:pE(e.cx,e.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:pE(e.cx,e.cy,r-i/2,r+i/2,0,Math.PI*2)}}};const Fue=Nue;var Vue=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.findAxisModel=function(r){var n,i=this.ecModel;return i.eachComponent(r,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(ke);const Gue=Vue;var $T=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Pt).models[0]},e.type="polarAxis",e}(ke);Ct($T,hc);var Hue=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="angleAxis",e}($T),Uue=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="radiusAxis",e}($T),YT=function(t){N(e,t);function e(r,n){return t.call(this,"radius",r,n)||this}return e.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},e}(zn);YT.prototype.dataToRadius=zn.prototype.dataToCoord;YT.prototype.radiusToData=zn.prototype.coordToData;const Wue=YT;var $ue=Ve(),jT=function(t){N(e,t);function e(r,n){return t.call(this,"angle",r,n||[0,360])||this}return e.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var r=this,n=r.getLabelModel(),i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l),c=sv(s==null?"":s+"",n.getFont(),"center","top"),f=Math.max(c.height,7),h=f/u;isNaN(h)&&(h=1/0);var v=Math.max(0,Math.floor(h)),d=$ue(r.model),p=d.lastAutoInterval,y=d.lastTickCount;return p!=null&&y!=null&&Math.abs(p-v)<=1&&Math.abs(y-o)<=1&&p>v?v=p:(d.lastTickCount=o,d.lastAutoInterval=v),v},e}(zn);jT.prototype.dataToAngle=zn.prototype.dataToCoord;jT.prototype.angleToData=zn.prototype.coordToData;const Yue=jT;var V4=["radius","angle"],jue=function(){function t(e){this.dimensions=V4,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Wue,this._angleAxis=new Yue,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(e){var r=this.pointToCoord(e);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},t.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},t.prototype.getAxis=function(e){var r="_"+e+"Axis";return this[r]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(e){var r=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===e&&r.push(n),i.scale.type===e&&r.push(i),r},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(e){var r=this._angleAxis;return e===r?this._radiusAxis:r},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(e){var r=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},t.prototype.dataToPoint=function(e,r){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],r),this._angleAxis.dataToAngle(e[1],r)])},t.prototype.pointToData=function(e,r){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],r),this._angleAxis.angleToData(n[1],r)]},t.prototype.pointToCoord=function(e){var r=e[0]-this.cx,n=e[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(r*r+n*n);r/=l,n/=l;for(var u=Math.atan2(-n,r)/Math.PI*180,c=us;)u+=c*360;return[l,u]},t.prototype.coordToPoint=function(e){var r=e[0],n=e[1]/180*Math.PI,i=Math.cos(n)*r+this.cx,a=-Math.sin(n)*r+this.cy;return[i,a]},t.prototype.getArea=function(){var e=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var i=e.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,h=this.r0;return c<=f*f&&c>=h*h}}},t.prototype.convertToPixel=function(e,r,n){var i=wE(r);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,r,n){var i=wE(r);return i===this?this.pointToData(n):null},t}();function wE(t){var e=t.seriesModel,r=t.polarModel;return r&&r.coordinateSystem||e&&e.coordinateSystem}const Xue=jue;function Zue(t,e,r){var n=e.get("center"),i=r.getWidth(),a=r.getHeight();t.cx=j(n[0],i),t.cy=j(n[1],a);var o=t.getRadiusAxis(),s=Math.min(i,a)/2,l=e.get("radius");l==null?l=[0,"100%"]:G(l)||(l=[0,l]);var u=[j(l[0],s),j(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function que(t,e){var r=this,n=r.getAngleAxis(),i=r.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),t.eachSeries(function(s){if(s.coordinateSystem===r){var l=s.getData();M(Og(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),M(Og(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),rl(n.scale,n.model),rl(i.scale,i.model),n.type==="category"&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function Kue(t){return t.mainType==="angleAxis"}function bE(t,e){if(t.type=e.get("type"),t.scale=mv(e),t.onBand=e.get("boundaryGap")&&t.type==="category",t.inverse=e.get("inverse"),Kue(e)){t.inverse=t.inverse!==e.get("clockwise");var r=e.get("startAngle");t.setExtent(r,r+(t.inverse?-360:360))}e.axis=t,t.model=e}var Que={dimensions:V4,create:function(t,e){var r=[];return t.eachComponent("polar",function(n,i){var a=new Xue(i+"");a.update=que;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");bE(o,l),bE(s,u),Zue(a,n,e),r.push(a),n.coordinateSystem=a,a.model=n}),t.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var i=n.getReferringComponents("polar",Pt).models[0];n.coordinateSystem=i.coordinateSystem}}),r}};const Jue=Que;var ece=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Hd(t,e,r){e[1]>e[0]&&(e=e.slice().reverse());var n=t.coordToPoint([e[0],r]),i=t.coordToPoint([e[1],r]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function Ud(t){var e=t.getRadiusAxis();return e.inverse?0:1}function CE(t){var e=t[0],r=t[t.length-1];e&&r&&Math.abs(Math.abs(e.coord-r.coord)-360)<1e-4&&t.pop()}var tce=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="PolarAxisPointer",r}return e.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var i=r.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=H(i.getViewLabels(),function(c){c=le(c);var f=i.scale,h=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(h),c});CE(u),CE(s),M(ece,function(c){r.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&rce[c](this.group,r,a,s,l,o,u)},this)}},e.type="angleAxis",e}(vl),rce={axisLine:function(t,e,r,n,i,a){var o=e.getModel(["axisLine","lineStyle"]),s=Ud(r),l=s?0:1,u;a[l]===0?u=new li({shape:{cx:r.cx,cy:r.cy,r:a[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new cv({shape:{cx:r.cx,cy:r.cy,r:a[s],r0:a[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,t.add(u)},axisTick:function(t,e,r,n,i,a){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[Ud(r)],u=H(n,function(c){return new Gt({shape:Hd(r,[l,l+s],c.coord)})});t.add(qr(u,{style:oe(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,r,n,i,a){if(i.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[Ud(r)],c=[],f=0;fg?"left":"right",S=Math.abs(y[1]-m)/p<.3?"middle":y[1]>m?"top":"bottom";if(s&&s[d]){var w=s[d];se(w)&&w.textStyle&&(v=new qe(w.textStyle,l,l.ecModel))}var x=new Oe({silent:ma.isLabelSilent(e),style:tt(v,{x:y[0],y:y[1],fill:v.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:_,verticalAlign:S})});if(t.add(x),c){var b=ma.makeAxisEventDataBase(e);b.targetType="axisLabel",b.value=f.rawLabel,pe(x).eventData=b}},this)},splitLine:function(t,e,r,n,i,a){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f=0?"p":"n",P=b;w&&(n[c][D]||(n[c][D]={p:b,n:b}),P=n[c][D][L]);var I=void 0,E=void 0,k=void 0,B=void 0;if(d.dim==="radius"){var R=d.dataToCoord(A)-b,O=l.dataToCoord(D);Math.abs(R)=B})}}})}function fce(t){var e={};M(t,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=H4(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),f=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=f.stacks;e[l]=f;var v=G4(n);h[v]||f.autoWidthCount++,h[v]=h[v]||{width:0,maxWidth:0};var d=j(n.get("barWidth"),c),p=j(n.get("barMaxWidth"),c),y=n.get("barGap"),g=n.get("barCategoryGap");d&&!h[v].width&&(d=Math.min(f.remainedWidth,d),h[v].width=d,f.remainedWidth-=d),p&&(h[v].maxWidth=p),y!=null&&(f.gap=y),g!=null&&(f.categoryGap=g)});var r={};return M(e,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=j(n.categoryGap,o),l=j(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),M(a,function(p,y){var g=p.maxWidth;g&&g=r.y&&e[1]<=r.y+r.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=r.y&&e[0]<=r.y+r.height},t.prototype.pointToData=function(e){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(e[r.orient==="horizontal"?0:1]))]},t.prototype.dataToPoint=function(e){var r=this.getAxis(),n=this.getRect(),i=[],a=r.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),i[a]=r.toGlobalCoord(r.dataToCoord(+e)),i[1-a]=a===0?n.y+n.height/2:n.x+n.width/2,i},t.prototype.convertToPixel=function(e,r,n){var i=TE(r);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,r,n){var i=TE(r);return i===this?this.pointToData(n):null},t}();function TE(t){var e=t.seriesModel,r=t.singleAxisModel;return r&&r.coordinateSystem||e&&e.coordinateSystem}function Cce(t,e){var r=[];return t.eachComponent("singleAxis",function(n,i){var a=new bce(n,t,e);a.name="single_"+i,a.resize(n,e),n.coordinateSystem=a,r.push(a)}),t.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var i=n.getReferringComponents("singleAxis",Pt).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),r}var Tce={create:Cce,dimensions:W4};const Ace=Tce;var AE=["x","y"],Mce=["width","height"],Dce=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.coordinateSystem,u=p_(l,1-qg(s)),c=l.dataToPoint(n)[0],f=a.get("type");if(f&&f!=="none"){var h=HT(a),v=Lce[f](s,c,u);v.style=h,r.graphicKey=v.type,r.pointer=v}var d=dw(i);N4(n,r,d,i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=dw(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=UT(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.coordinateSystem,l=qg(o),u=p_(s,l),c=[r.x,r.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=p_(s,1-l),h=(f[1]+f[0])/2,v=[h,h];return v[l]=c[l],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:v,tooltipOption:{verticalAlign:"middle"}}},e}(GT),Lce={line:function(t,e,r){var n=WT([e,r[0]],[e,r[1]],qg(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r){var n=t.getBandWidth(),i=r[1]-r[0];return{type:"Rect",shape:B4([e-n/2,r[0]],[n,i],qg(t))}}};function qg(t){return t.isHorizontal()?0:1}function p_(t,e){var r=t.getRect();return[r[AE[e]],r[AE[e]]+r[Mce[e]]]}const Pce=Dce;var Ice=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="single",e}(ft);function Ece(t){Ae(Mv),vl.registerAxisPointerClass("SingleAxisPointer",Pce),t.registerComponentView(Ice),t.registerComponentView(Sce),t.registerComponentModel(d_),Fu(t,"single",d_,d_.defaultOption),t.registerCoordinateSystem("single",Ace)}var Rce=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n,i){var a=ic(r);t.prototype.init.apply(this,arguments),ME(r,a)},e.prototype.mergeOption=function(r){t.prototype.mergeOption.apply(this,arguments),ME(this.option,r)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(ke);function ME(t,e){var r=t.cellSize,n;G(r)?n=r:n=t.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var i=H([0,1],function(a){return bX(e,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});wo(t,e,{type:"box",ignoreSize:i})}const kce=Rce;var Oce=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=this.group;a.removeAll();var o=r.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(r,s,a),this._renderLines(r,s,l,a),this._renderYearText(r,s,l,a),this._renderMonthText(r,u,l,a),this._renderWeekText(r,u,s,l,a)},e.prototype._renderDayRect=function(r,n,i){for(var a=r.coordinateSystem,o=r.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=n.start.time;u<=n.end.time;u=a.getNextNDay(u,1).time){var c=a.dataToRect([u],!1).tl,f=new Ne({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});i.add(f)}},e.prototype._renderLines=function(r,n,i,a){var o=this,s=r.coordinateSystem,l=r.getModel(["splitLine","lineStyle"]).getLineStyle(),u=r.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=n.start,h=0;f.time<=n.end.time;h++){d(f.formatedDate),h===0&&(f=s.getDateInfo(n.start.y+"-"+n.start.m));var v=f.date;v.setMonth(v.getMonth()+1),f=s.getDateInfo(v)}d(s.getNextNDay(n.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToRect([p],!1).tl);var y=o._getLinePointsOfOneWeek(r,p,i);o._tlpoints.push(y[0]),o._blpoints.push(y[y.length-1]),u&&o._drawSplitline(y,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,i),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,i),l,a)},e.prototype._getEdgesPoints=function(r,n,i){var a=[r[0].slice(),r[r.length-1].slice()],o=i==="horizontal"?0:1;return a[0][o]=a[0][o]-n/2,a[1][o]=a[1][o]+n/2,a},e.prototype._drawSplitline=function(r,n,i){var a=new Er({z2:20,shape:{points:r},style:n});i.add(a)},e.prototype._getLinePointsOfOneWeek=function(r,n,i){for(var a=r.coordinateSystem,o=a.getDateInfo(n),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),c=a.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[i==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(r,n){return Z(r)&&r?_X(r,n):ae(r)?r(n):n.nameMap},e.prototype._yearTextPositionControl=function(r,n,i,a,o){var s=n[0],l=n[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(a==="left"||a==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(r,n,i,a){var o=r.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,h=i==="horizontal"?0:1,v={top:[c,u[h][1]],bottom:[c,u[1-h][1]],left:[u[1-h][0],f],right:[u[h][0],f]},d=n.start.y;+n.end.y>+n.start.y&&(d=d+"-"+n.end.y);var p=o.get("formatter"),y={start:n.start.y,end:n.end.y,nameMap:d},g=this._formatterLabel(p,y),m=new Oe({z2:30,style:tt(o,{text:g})});m.attr(this._yearTextPositionControl(m,v[l],i,l,s)),a.add(m)}},e.prototype._monthTextPositionControl=function(r,n,i,a,o){var s="left",l="top",u=r[0],c=r[1];return i==="horizontal"?(c=c+o,n&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),a==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(r,n,i,a){var o=r.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||Z(s))&&(s&&(n=bx(s)||n),s=n.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,v=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=c==="center",p=0;p=i.start.time&&n.times.end.time&&r.reverse(),r},t.prototype._getRangeInfo=function(e){var r=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],n;r[0].time>r[1].time&&(n=!0,r.reverse());var i=Math.floor(r[1].time/g_)-Math.floor(r[0].time/g_)+1,a=new Date(r[0].time),o=a.getDate(),s=r[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-r[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-r[1].time)*u>0;)i-=u,a.setDate(l-u);var c=Math.floor((i+r[0].day+6)/7),f=n?-c+1:c-1;return n&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:i,weeks:c,nthWeek:f,fweek:r[0].day,lweek:r[1].day}},t.prototype._getDateByWeeksAndDay=function(e,r,n){var i=this._getRangeInfo(n);if(e>i.weeks||e===0&&ri.lweek)return null;var a=(e-1)*7-i.fweek+r,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},t.create=function(e,r){var n=[];return e.eachComponent("calendar",function(i){var a=new t(i);n.push(a),i.coordinateSystem=a}),e.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=n[i.get("calendarIndex")||0])}),n},t.dimensions=["time","value"],t}();function DE(t){var e=t.calendarModel,r=t.seriesModel,n=e?e.coordinateSystem:r?r.coordinateSystem:null;return n}const zce=Bce;function Fce(t){t.registerComponentModel(kce),t.registerComponentView(Nce),t.registerCoordinateSystem("calendar",zce)}function Vce(t,e){var r=t.existing;if(e.id=t.keyInfo.id,!e.type&&r&&(e.type=r.type),e.parentId==null){var n=e.parentOption;n?e.parentId=n.id:r&&(e.parentId=r.parentId)}e.parentOption=null}function LE(t,e){var r;return M(e,function(n){t[n]!=null&&t[n]!=="auto"&&(r=!0)}),r}function Gce(t,e,r){var n=F({},r),i=t[e],a=r.$action||"merge";a==="merge"?i?(Se(i,n,!0),wo(i,n,{ignoreSize:!0}),A5(r,i),Wd(r,i),Wd(r,i,"shape"),Wd(r,i,"style"),Wd(r,i,"extra"),r.clipPath=i.clipPath):t[e]=n:a==="replace"?t[e]=n:a==="remove"&&i&&(t[e]=null)}var $4=["transition","enterFrom","leaveTo"],Hce=$4.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Wd(t,e,r){if(r&&(!t[r]&&e[r]&&(t[r]={}),t=t[r],e=e[r]),!(!t||!e))for(var n=r?$4:Hce,i=0;i=0;c--){var f=i[c],h=Ot(f.id,null),v=h!=null?o.get(h):null;if(v){var d=v.parent,g=_n(d),m=d===a?{width:s,height:l}:{width:g.width,height:g.height},_={},S=im(v,f,m,null,{hv:f.hv,boundingMode:f.bounding},_);if(!_n(v).isNew&&S){for(var w=f.transition,x={},b=0;b=0)?x[C]=T:v[C]=T}Ge(v,x,r,0)}else v.attr(_)}}},e.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){Ip(i,_n(i).option,n,r._lastGraphicModel)}),this._elMap=ie()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(ft);function pw(t){var e=ee(PE,t)?PE[t]:Ky(t),r=new e({});return _n(r).type=t,r}function IE(t,e,r,n){var i=pw(r);return e.add(i),n.set(t,i),_n(i).id=t,_n(i).isNew=!0,i}function Ip(t,e,r,n){var i=t&&t.parent;i&&(t.type==="group"&&t.traverse(function(a){Ip(a,e,r,n)}),xm(t,e,n),r.removeKey(_n(t).id))}function EE(t,e,r,n){t.isGroup||M([["cursor",Rn.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];ee(e,a)?t[a]=be(e[a],i[1]):t[a]==null&&(t[a]=i[1])}),M(Ie(e),function(i){if(i.indexOf("on")===0){var a=e[i];t[i]=ae(a)?a:null}}),ee(e,"draggable")&&(t.draggable=e.draggable),e.name!=null&&(t.name=e.name),e.id!=null&&(t.id=e.id)}function Yce(t){return t=F({},t),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(T5),function(e){delete t[e]}),t}function jce(t,e,r){var n=pe(t).eventData;!t.silent&&!t.ignore&&!n&&(n=pe(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),n&&(n.info=r.info)}function Xce(t){t.registerComponentModel(Wce),t.registerComponentView($ce),t.registerPreprocessor(function(e){var r=e.graphic;G(r)?!r[0]||!r[0].elements?e.graphic=[{elements:r}]:e.graphic=[e.graphic[0]]:r&&!r.elements&&(e.graphic=[{elements:[r]}])})}var RE=["x","y","radius","angle","single"],Zce=["cartesian2d","polar","singleAxis"];function qce(t){var e=t.get("coordinateSystem");return Te(Zce,e)>=0}function eo(t){return t+"Axis"}function Kce(t,e){var r=ie(),n=[],i=ie();t.eachComponent({mainType:"dataZoom",query:e},function(c){i.get(c.uid)||s(c)});var a;do a=!1,t.eachComponent("dataZoom",o);while(a);function o(c){!i.get(c.uid)&&l(c)&&(s(c),a=!0)}function s(c){i.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(h,v){var d=r.get(h);d&&d[v]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,h){(r.get(f)||r.set(f,[]))[h]=!0})}return n}function Y4(t){var e=t.ecModel,r={infoList:[],infoMap:ie()};return t.eachTargetAxis(function(n,i){var a=e.getComponent(eo(n),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(a)}}}),r}var y_=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},t}(),Qce=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return e.prototype.init=function(r,n,i){var a=kE(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},e.prototype.mergeOption=function(r){var n=kE(r);Se(this.option,r,!0),Se(this.settledOption,n,!0),this._doInit(n)},e.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var i=this.settledOption;M([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=ie(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return M(RE,function(i){var a=this.getReferringComponents(eo(i),rY);if(a.specified){n=!0;var o=new y_;M(a.models,function(s){o.add(s.componentIndex)}),r.set(i,o)}},this),n},e.prototype._fillAutoTargetAxisByOrient=function(r,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var h=new y_;if(h.add(f.componentIndex),r.set(c,h),a=!1,c==="x"||c==="y"){var v=f.getReferringComponents("grid",Pt).models[0];v&&M(u,function(d){f.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",Pt).models[0]&&h.add(d.componentIndex)})}}}a&&M(RE,function(u){if(a){var c=i.findComponents({mainType:eo(u),filter:function(h){return h.get("type",!0)==="category"}});if(c[0]){var f=new y_;f.add(c[0].componentIndex),r.set(u,f),a=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(r){var n=this._rangePropMode,i=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(a,o){var s=r[a[0]]!=null,l=r[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,i){r==null&&(r=this.ecModel.getComponent(eo(n),i))},this),r},e.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(i,a){M(i.indexList,function(o){r.call(n,a,o)})})},e.prototype.getAxisProxy=function(r,n){var i=this.getAxisModel(r,n);if(i)return i.__dzAxisProxy},e.prototype.getAxisModel=function(r,n){var i=this._targetAxisInfoMap.get(r);if(i&&i.indexMap[n])return this.ecModel.getComponent(eo(r),n)},e.prototype.setRawRange=function(r){var n=this.option,i=this.settledOption;M([["start","startValue"],["end","endValue"]],function(a){(r[a[0]]!=null||r[a[1]]!=null)&&(n[a[0]]=i[a[0]]=r[a[0]],n[a[1]]=i[a[1]]=r[a[1]])},this),this._updateRangeUse(r)},e.prototype.setCalculatedRange=function(r){var n=this.option;M(["start","startValue","end","endValue"],function(i){n[i]=r[i]})},e.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},e.prototype.getValueRange=function(r,n){if(r==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;ao[1];if(_&&!S&&!w)return!0;_&&(y=!0),S&&(d=!0),w&&(p=!0)}return y&&d&&p})}else Hl(c,function(v){if(a==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});Hl(c,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},t.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;Hl(["min","max"],function(i){var a=r.get(i+"Span"),o=r.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=$e(n[0]+o,n,[0,100],!0):a!=null&&(o=$e(a,[0,100],n,!0)-n[0]),e[i+"Span"]=a,e[i+"ValueSpan"]=o},this)},t.prototype._setAxisModel=function(){var e=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var i=Jb(n,[0,500]);i=Math.min(i,20);var a=e.axis.scale.rawExtentInfo;r[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),r[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},t}();function afe(t,e,r){var n=[1/0,-1/0];Hl(r,function(o){pQ(n,o.getData(),e)});var i=t.getAxisModel(),a=uF(i.axis.scale,i,n).calculate();return[a.min,a.max]}const ofe=ife;var sfe={getTargetSeries:function(t){function e(i){t.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=t.getComponent(eo(o),s);i(o,s,l,a)})})}e(function(i,a,o,s){o.__dzAxisProxy=null});var r=[];e(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new ofe(i,a,s,t),r.push(o.__dzAxisProxy))});var n=ie();return M(r,function(i){M(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(t,e){t.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).reset(r)}),r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).filterData(r,e)})}),t.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();r.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};const lfe=sfe;function ufe(t){t.registerAction("dataZoom",function(e,r){var n=Kce(r,e);M(n,function(i){i.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var NE=!1;function ZT(t){NE||(NE=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,lfe),ufe(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function cfe(t){t.registerComponentModel(efe),t.registerComponentView(nfe),ZT(t)}var bn=function(){function t(){}return t}(),j4={};function Ul(t,e){j4[t]=e}function X4(t){return j4[t]}var ffe=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;M(this.option.feature,function(n,i){var a=X4(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(r)),Se(n,a.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(ke);const hfe=ffe;function vfe(t,e,r){var n=e.getBoxLayoutParams(),i=e.get("padding"),a={width:r.getWidth(),height:r.getHeight()},o=It(n,a,i);Fs(e.get("orient"),t,e.get("itemGap"),o.width,o.height),im(t,n,a,i)}function Z4(t,e){var r=fl(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),t=new Ne({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1}),t}var dfe=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(r,n,i,a){var o=this.group;if(o.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",u=r.get("feature")||{},c=this._features||(this._features={}),f=[];M(u,function(d,p){f.push(p)}),new ga(this._featureNames||[],f).add(h).update(h).remove(ye(h,null)).execute(),this._featureNames=f;function h(d,p){var y=f[d],g=f[p],m=u[y],_=new qe(m,r,r.ecModel),S;if(a&&a.newTitle!=null&&a.featureName===y&&(m.title=a.newTitle),y&&!g){if(pfe(y))S={onclick:_.option.onclick,featureName:y};else{var w=X4(y);if(!w)return;S=new w}c[y]=S}else if(S=c[g],!S)return;S.uid=nc("toolbox-feature"),S.model=_,S.ecModel=n,S.api=i;var x=S instanceof bn;if(!y&&g){x&&S.dispose&&S.dispose(n,i);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(n,i);return}v(_,S,y),_.setIconStatus=function(b,C){var T=this.option,A=this.iconPaths;T.iconStatus=T.iconStatus||{},T.iconStatus[b]=C,A[b]&&(C==="emphasis"?da:pa)(A[b])},S instanceof bn&&S.render&&S.render(_,n,i,a)}function v(d,p,y){var g=d.getModel("iconStyle"),m=d.getModel(["emphasis","iconStyle"]),_=p instanceof bn&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},w,x;Z(_)?(w={},w[y]=_):w=_,Z(S)?(x={},x[y]=S):x=S;var b=d.iconPaths={};M(w,function(C,T){var A=ec(C,{},{x:-s/2,y:-s/2,width:s,height:s});A.setStyle(g.getItemStyle());var D=A.ensureState("emphasis");D.style=m.getItemStyle();var L=new Oe({style:{text:x[T],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});A.setTextContent(L),tc({el:A,componentModel:r,itemName:T,formatterParamsExtra:{title:x[T]}}),A.__title=x[T],A.on("mouseover",function(){var P=m.getItemStyle(),I=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:m.get("textFill")||P.fill||P.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),A.setTextConfig({position:m.get("textPosition")||I}),L.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",T])!=="emphasis"&&i.leaveEmphasis(this),L.hide()}),(d.get(["iconStatus",T])==="emphasis"?da:pa)(A),o.add(A),A.on("click",Q(p.onclick,p,n,i,T)),b[T]=A})}vfe(o,r,i),o.add(Z4(o.getBoundingRect(),r)),l||o.eachChild(function(d){var p=d.__title,y=d.ensureState("emphasis"),g=y.textConfig||(y.textConfig={}),m=d.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!ae(_)&&p){var S=_.style||(_.style={}),w=sv(p,Oe.makeFont(S)),x=d.x+o.x,b=d.y+o.y+s,C=!1;b+w.height>i.getHeight()&&(g.position="top",C=!0);var T=C?-5-w.height:s+10;x+w.width/2>i.getWidth()?(g.position=["100%",T],S.align="right"):x-w.width/2<0&&(g.position=[0,T],S.align="left")}})},e.prototype.updateView=function(r,n,i,a){M(this._features,function(o){o instanceof bn&&o.updateView&&o.updateView(o.model,n,i,a)})},e.prototype.remove=function(r,n){M(this._features,function(i){i instanceof bn&&i.remove&&i.remove(r,n)}),this.group.removeAll()},e.prototype.dispose=function(r,n){M(this._features,function(i){i instanceof bn&&i.dispose&&i.dispose(r,n)})},e.type="toolbox",e}(ft);function pfe(t){return t.indexOf("my")===0}const gfe=dfe;var yfe=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(r,n){var i=this.model,a=i.get("name")||r.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=ze.browser;if(ae(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=a+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,d=o?decodeURIComponent(h[1]):h[1];v&&(d=window.atob(d));var p=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var y=d.length,g=new Uint8Array(y);y--;)g[y]=d.charCodeAt(y);var m=new Blob([g]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,w=S.document;w.open("image/svg+xml","replace"),w.write(d),w.close(),S.focus(),w.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=i.get("lang"),b='',C=window.open();C.document.write(b),C.document.title=a}},e.getDefaultOption=function(r){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},e}(bn);const mfe=yfe;var BE="__ec_magicType_stack__",_fe=[["line","bar"],["stack"]],Sfe=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),i={};return M(r.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},e.getDefaultOption=function(r){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},e.prototype.onclick=function(r,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(zE[i]){var s={series:[]},l=function(f){var h=f.subType,v=f.id,d=zE[i](h,v,f,a);d&&(oe(d,f.option),s.series.push(d));var p=f.coordinateSystem;if(p&&p.type==="cartesian2d"&&(i==="line"||i==="bar")){var y=p.getAxesByScale("ordinal")[0];if(y){var g=y.dim,m=g+"Axis",_=f.getReferringComponents(m,Pt).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var w=0;w<=S;w++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=i==="bar"}}};M(_fe,function(f){Te(f,i)>=0&&M(f,function(h){a.setIconStatus(h,"normal")})}),a.setIconStatus(i,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=i;i==="stack"&&(u=Se({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(bn),zE={line:function(t,e,r,n){if(t==="bar")return Se({id:e,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(t,e,r,n){if(t==="line")return Se({id:e,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(t,e,r,n){var i=r.get("stack")===BE;if(t==="line"||t==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Se({id:e,stack:i?"":BE},n.get(["option","stack"])||{},!0)}};ci({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});const xfe=Sfe;var wm=new Array(60).join("-"),Hu=" ";function wfe(t){var e={},r=[],n=[];return t.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(i)}else r.push(i)}else r.push(i)}),{seriesGroupByCategoryAxis:e,other:r,meta:n}}function bfe(t){var e=[];return M(t,function(r,n){var i=r.categoryAxis,a=r.valueAxis,o=a.dim,s=[" "].concat(H(r.series,function(v){return v.name})),l=[i.model.getCategories()];M(r.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Hu)],c=0;c=0)return!0}var gw=new RegExp("["+Hu+"]+","g");function Mfe(t){for(var e=t.split(/\n+/g),r=Kg(e.shift()).split(gw),n=[],i=H(r,function(l){return{name:l,data:[]}}),a=0;a=0;a--){var o=r[a];if(o[i])break}if(a<0){var s=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();r[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),r.push(e)}function kfe(t){var e=qT(t),r=e[e.length-1];e.length>1&&e.pop();var n={};return q4(r,function(i,a){for(var o=e.length-1;o>=0;o--)if(i=e[o][a],i){n[a]=i;break}}),n}function Ofe(t){K4(t).snapshots=null}function Nfe(t){return qT(t).length}function qT(t){var e=K4(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Bfe=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(r,n){Ofe(r),n.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(r){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:r.getLocaleModel().get(["toolbox","restore","title"])};return n},e}(bn);ci({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});const zfe=Bfe;var Ffe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Vfe=function(){function t(e,r,n){var i=this;this._targetInfoList=[];var a=FE(r,e);M(Gfe,function(o,s){(!n||!n.include||Te(n.include,s)>=0)&&o(a,i._targetInfoList)})}return t.prototype.setOutputRanges=function(e,r){return this.matchOutputRanges(e,r,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=m_[n.brushType](0,a,i);n.__rangeOffset={offset:UE[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},t.prototype.matchOutputRanges=function(e,r,n){M(e,function(i){var a=this.findTargetInfo(i,r);a&&a!==!0&&M(a.coordSyses,function(o){var s=m_[i.brushType](1,o,i.range,!0);n(i,s.values,o,r)})},this)},t.prototype.setInputRanges=function(e,r){M(e,function(n){var i=this.findTargetInfo(n,r);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=m_[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?UE[n.brushType](a.values,o.offset,Hfe(a.xyMinMax,o.xyMinMax)):a.values}},this)},t.prototype.makePanelOpts=function(e,r){return H(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:i4(i),isTargetByCursor:o4(i,e,n.coordSysModel),getLinearBrushOtherExtent:a4(i)}})},t.prototype.controlSeries=function(e,r,n){var i=this.findTargetInfo(e,n);return i===!0||i&&Te(i.coordSyses,r.coordinateSystem)>=0},t.prototype.findTargetInfo=function(e,r){for(var n=this._targetInfoList,i=FE(r,e),a=0;at[1]&&t.reverse(),t}function FE(t,e){return Of(t,e,{includeMainTypes:Ffe})}var Gfe={grid:function(t,e){var r=t.xAxisModels,n=t.yAxisModels,i=t.gridModels,a=ie(),o={},s={};!r&&!n&&!i||(M(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),M(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),M(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,c=[];M(u.getCartesians(),function(f,h){(Te(r,f.getAxis("x").model)>=0||Te(n,f.getAxis("y").model)>=0)&&c.push(f)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:GE.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(t,e){M(t.geoModels,function(r){var n=r.coordinateSystem;e.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:GE.geo})})}},VE=[function(t,e){var r=t.xAxisModel,n=t.yAxisModel,i=t.gridModel;return!i&&r&&(i=r.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===e.gridModel},function(t,e){var r=t.geoModel;return r&&r===e.geoModel}],GE={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(ho(t)),e}},m_={lineX:ye(HE,0),lineY:ye(HE,1),rect:function(t,e,r,n){var i=t?e.pointToData([r[0][0],r[1][0]],n):e.dataToPoint([r[0][0],r[1][0]],n),a=t?e.pointToData([r[0][1],r[1][1]],n):e.dataToPoint([r[0][1],r[1][1]],n),o=[yw([i[0],a[0]]),yw([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(t,e,r,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=H(r,function(o){var s=t?e.pointToData(o,n):e.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function HE(t,e,r,n){var i=r.getAxis(["x","y"][t]),a=yw(H([0,1],function(s){return e?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[t]=a,o[1-t]=[NaN,NaN],{values:a,xyMinMax:o}}var UE={lineX:ye(WE,0),lineY:ye(WE,1),rect:function(t,e,r){return[[t[0][0]-r[0]*e[0][0],t[0][1]-r[0]*e[0][1]],[t[1][0]-r[1]*e[1][0],t[1][1]-r[1]*e[1][1]]]},polygon:function(t,e,r){return H(t,function(n,i){return[n[0]-r[0]*e[i][0],n[1]-r[1]*e[i][1]]})}};function WE(t,e,r,n){return[e[0]-n[t]*r[0],e[1]-n[t]*r[1]]}function Hfe(t,e){var r=$E(t),n=$E(e),i=[r[0]/n[0],r[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function $E(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}const KT=Vfe;var mw=M,Ufe=K9("toolbox-dataZoom_"),Wfe=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(r,n,i,a){this._brushController||(this._brushController=new IT(i.getZr()),this._brushController.on("brush",Q(this._onBrush,this)).mount()),jfe(r,n,this,a,i),Yfe(r,n)},e.prototype.onclick=function(r,n,i){$fe[i].call(this)},e.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new KT(QT(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(u,c,f){if(f.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[h],f,c)}}),Rfe(a,i),this._dispatchZoomAction(i);function s(u,c,f){var h=c.getAxis(u),v=h.model,d=l(u,v,a),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(f=dl(0,f.slice(),h.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(i[d.id]={dataZoomId:d.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var h;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,c.componentIndex);d&&(h=v)}),h}},e.prototype._dispatchZoomAction=function(r){var n=[];mw(r,function(i,a){n.push(le(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},e.getDefaultOption=function(r){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},e}(bn),$fe={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(kfe(this.ecModel))}};function QT(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function Yfe(t,e){t.setIconStatus("back",Nfe(e)>1?"emphasis":"normal")}function jfe(t,e,r,n,i){var a=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=a,t.setIconStatus("zoom",a?"emphasis":"normal");var o=new KT(QT(t),e,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()}:!1)}LX("dataZoom",function(t){var e=t.getComponent("toolbox",0),r=["feature","dataZoom"];if(!e||e.get(r)==null)return;var n=e.getModel(r),i=[],a=QT(n),o=Of(t,a);mw(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),mw(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:Ufe+u+f};h[c]=f,i.push(h)}return i});const Xfe=Wfe;function Zfe(t){t.registerComponentModel(hfe),t.registerComponentView(gfe),Ul("saveAsImage",mfe),Ul("magicType",xfe),Ul("dataView",Efe),Ul("dataZoom",Xfe),Ul("restore",zfe),Ae(cfe)}var qfe=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(ke);const Kfe=qfe;function Q4(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function J4(t){if(ze.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r-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 c=u*Math.PI/180,f=o+i,h=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),v=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-f)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=e+" 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'
'}function ihe(t,e){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+t/2+"s "+r,i="opacity"+n+",visibility"+n;return e||(n=" "+t+"s "+r,i+=ze.transformSupported?","+JT+n:",left"+n+",top"+n),ehe+":"+i}function YE(t,e,r){var n=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!ze.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=ze.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+JT+":"+o+";":[["top",0],["left",0],[eG,o]]}function ahe(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont()),r&&e.push("line-height:"+Math.round(r*3/2)+"px");var i=t.get("textShadowColor"),a=t.get("textShadowBlur")||0,o=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return i&&a&&e.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),M(["decoration","align"],function(l){var u=t.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function ohe(t,e,r){var n=[],i=t.get("transitionDuration"),a=t.get("backgroundColor"),o=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),f=a3(t,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),e&&i&&n.push(ihe(i,r)),a&&n.push("background-color:"+a),M(["width","color","radius"],function(v){var d="border-"+v,p=TC(d),y=t.get(p);y!=null&&n.push(d+":"+y+(v==="color"?"":"px"))}),n.push(ahe(c)),f!=null&&n.push("padding:"+fl(f).join("px ")+"px"),n.join(";")+";"}function jE(t,e,r,n,i){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&p7(t,o,document.body,n,i)}else{t[0]=n,t[1]=i;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var she=function(){function t(e,r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ze.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=r.getZr(),o=this._appendToBody=n&&n.appendToBody;jE(this._styleCoord,a,o,r.getWidth()/2,r.getHeight()/2),o?document.body.appendChild(i):e.appendChild(i),this._container=e;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,c=a.painter.getViewportRoot();pn(c,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){var r=this._container,n=Jfe(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=the+ohe(e,!this._firstShow,this._longHide)+YE(a[0],a[1],!0)+("border-color:"+tl(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(Z(a)&&n.get("trigger")==="item"&&!Q4(n)&&(s=nhe(n,i,a)),Z(e))o.innerHTML=e+s;else if(e){o.innerHTML="",G(e)||(e=[e]);for(var l=0;l=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||ze.node||!i.getDom())){var o=qE(a,i);this._ticket="";var s=a.dataByCoordSys,l=ghe(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 c=fhe;c.x=a.x,c.y=a.y,c.update(),pe(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},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 f=F4(a,n),h=f.point[0],v=f.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:f.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(qE(a,i))},e.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 c=u.getData(),f=qc([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.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){this._lastDataByCoordSys=null;var s,l;Ps(i,function(u){if(pe(u).dataIndex!=null)return s=u,!0;if(pe(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(r,s,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=Q(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=qc([n.tooltipOption],a),l=this._renderMode,u=[],c=$t("section",{blocks:[],noHeader:!0}),f=[],h=new n1;M(r,function(m){M(m.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!S||w==null)){var x=O4(w,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),b=$t("section",{header:x,noHeader:!An(x),sortBlocks:!0,blocks:[]});c.blocks.push(b),M(_.seriesDataIndices,function(C){var T=i.getSeriesByIndex(C.seriesIndex),A=C.dataIndexInside,D=T.getDataParams(A);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=tT(S.axis,{value:w}),D.axisValueLabel=x,D.marker=h.makeTooltipMarker("item",tl(D.color),l);var L=z2(T.formatTooltip(A,!0,null)),P=L.frag;if(P){var I=qc([T],a).get("valueFormatter");b.blocks.push(I?F({valueFormatter:I},P):P)}L.text&&f.push(L.text),u.push(D)}})}})}),c.blocks.reverse(),f.reverse();var v=n.position,d=s.get("order"),p=W2(c,h,l,d,i.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var y=l==="richText"?` - -`:"
",g=f.join(y);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],v,null,h)})},e.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=pe(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,h=u.getData(f),v=this._renderMode,d=r.positionDefault,p=qc([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),y=p.get("trigger");if(!(y!=null&&y!=="item")){var g=u.getDataParams(c,f),m=new n1;g.marker=m.makeTooltipMarker("item",tl(g.color),v);var _=z2(u.formatTooltip(c,!1,f)),S=p.get("order"),w=p.get("valueFormatter"),x=_.frag,b=x?W2(w?F({valueFormatter:w},x):x,m,v,S,a.get("useUTC"),p.get("textStyle")):_.text,C="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,b,g,C,r.offsetX,r.offsetY,r.position,r.target,m)}),i({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,i){var a=pe(n),o=a.tooltipConfig,s=o.option||{};if(Z(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(a.componentMainType,a.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=r.positionDefault,h=qc(u,this._tooltipModel,f?{position:f}:null),v=h.get("content"),d=Math.random()+"",p=new n1;this._showOrMove(h,function(){var y=le(h.get("formatterParams")||{});this._showTooltipContent(h,v,y,d,r.offsetX,r.offsetY,r.position,n,p)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var h=r.get("formatter");l=l||r.get("position");var v=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),p=d.color;if(h)if(Z(h)){var y=r.ecModel.get("useUTC"),g=G(i)?i[0]:i,m=g&&g.axisType&&g.axisType.indexOf("time")>=0;v=h,m&&(v=pv(g.axisValue,v,y)),v=AC(v,i,!0)}else if(ae(h)){var _=Q(function(S,w){S===this._ticket&&(f.setContent(w,c,r,p,l),this._updatePosition(r,l,o,s,f,i,u))},this);this._ticket=a,v=h(i,a,_)}else v=h;f.setContent(v,c,r,p,l),f.show(r,p),this._updatePosition(r,l,o,s,f,i,u)}},e.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||G(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!G(n))return{color:a||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),h=r.get("align"),v=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),ae(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,c],contentSize:f.slice()})),G(n))i=j(n[0],u),a=j(n[1],c);else if(se(n)){var p=n;p.width=f[0],p.height=f[1];var y=It(p,{width:u,height:c});i=y.x,a=y.y,h=null,v=null}else if(Z(n)&&l){var g=phe(n,d,f,r.get("borderWidth"));i=g[0],a=g[1]}else{var g=vhe(i,a,o,u,c,h?null:20,v?null:20);i=g[0],a=g[1]}if(h&&(i-=KE(h)?f[0]/2:h==="right"?f[0]:0),v&&(a-=KE(v)?f[1]/2:v==="bottom"?f[1]:0),Q4(r)){var g=dhe(i,a,o,u,c);i=g[0],a=g[1]}o.moveTo(i,a)},e.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||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&M(u,function(h,v){var d=f[v]||{},p=h.seriesDataIndices||[],y=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===y.length,o&&M(p,function(g,m){var _=y[m];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&M(h.seriesDataIndices,function(g){var m=g.seriesIndex,_=n[m],S=a[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){ze.node||!n.getDom()||(Eh(this,"_updatePosition"),this._tooltipContent.dispose(),vw("itemTooltip",n))},e.type="tooltip",e}(ft);function qc(t,e,r){var n=e.ecModel,i;r?(i=new qe(r,n,n),i=new qe(e.option,i,n)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof qe&&(o=o.get("tooltip",!0)),Z(o)&&(o={formatter:o}),o&&(i=new qe(o,i,n)))}return i}function qE(t,e){return t.dispatchAction||Q(e.dispatchAction,e)}function vhe(t,e,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(t+l+a+2>n?t-=l+a:t+=a),o!=null&&(e+u+o>i?e-=u+o:e+=o),[t,e]}function dhe(t,e,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function phe(t,e,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-a/2;break;case"top":s=e.x+u/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+o;break;case"left":s=e.x-i-o,l=e.y+c/2-a/2;break;case"right":s=e.x+u+o,l=e.y+c/2-a/2}return[s,l]}function KE(t){return t==="center"||t==="middle"}function ghe(t,e,r){var n=iC(t).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=lv(e,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 c=pe(u).tooltipConfig;if(c&&c.name===t.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const yhe=hhe;function mhe(t){Ae(Mv),t.registerComponentModel(Kfe),t.registerComponentView(yhe),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},wt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},wt)}var _he=["rect","polygon","keep","clear"];function She(t,e){var r=Ke(t?t.brush:[]);if(r.length){var n=[];M(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=t&&t.toolbox;G(i)&&(i=i[0]),i||(i={feature:{}},t.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),xhe(s),e&&!s.length&&s.push.apply(s,_he)}}function xhe(t){var e={};M(t,function(r){e[r]=1}),t.length=0,M(e,function(r,n){t.push(n)})}var QE=M;function JE(t){if(t){for(var e in t)if(t.hasOwnProperty(e))return!0}}function _w(t,e,r){var n={};return QE(e,function(a){var o=n[a]=i();QE(t[a],function(s,l){if(nr.isValidType(l)){var u={type:l,visual:s};r&&r(u,a),o[l]=new nr(u),l==="opacity"&&(u=le(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new nr(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function rG(t,e,r){var n;M(r,function(i){e.hasOwnProperty(i)&&JE(e[i])&&(n=!0)}),n&&M(r,function(i){e.hasOwnProperty(i)&&JE(e[i])?t[i]=le(e[i]):delete t[i]})}function whe(t,e,r,n,i,a){var o={};M(t,function(f){var h=nr.prepareVisualTypes(e[f]);o[f]=h});var s;function l(f){return zC(r,s,f)}function u(f,h){p3(r,s,f,h)}a==null?r.each(c):r.each([a],c);function c(f,h){s=a==null?f:h;var v=r.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var d=n.call(i,f),p=e[d],y=o[d],g=0,m=y.length;ge[0][1]&&(e[0][1]=a[0]),a[1]e[1][1]&&(e[1][1]=a[1])}return e&&iR(e)}};function iR(t){return new Ce(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var Phe=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){this.ecModel=r,this.api=n,this.model,(this._brushController=new IT(n.getZr())).on("brush",Q(this._onBrush,this)).mount()},e.prototype.render=function(r,n,i,a){this.model=r,this._updateController(r,n,i,a)},e.prototype.updateTransform=function(r,n,i,a){nG(n),this._updateController(r,n,i,a)},e.prototype.updateVisual=function(r,n,i,a){this.updateTransform(r,n,i,a)},e.prototype.updateView=function(r,n,i,a){this._updateController(r,n,i,a)},e.prototype._updateController=function(r,n,i,a){(!a||a.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(i)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(r){var n=this.model.id,i=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:le(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:le(i),$from:n})},e.type="brush",e}(ft);const Ihe=Phe;var Ehe="#ddd",Rhe=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.areas=[],r.brushOption={},r}return e.prototype.optionUpdated=function(r,n){var i=this.option;!n&&rG(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:Ehe},a.hasOwnProperty("liftZ")||(a.liftZ=5)},e.prototype.setAreas=function(r){r&&(this.areas=H(r,function(n){return aR(this.option,n)},this))},e.prototype.setBrushOption=function(r){this.brushOption=aR(this.option,r),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(ke);function aR(t,e){return Se({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new qe(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}const khe=Rhe;var Ohe=["rect","polygon","lineX","lineY","keep","clear"],Nhe=function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(r,n,i){var a,o,s;n.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,M(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},e.prototype.updateView=function(r,n,i){this.render(r,n,i)},e.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),i={};return M(r.get("type",!0),function(a){n[a]&&(i[a]=n[a])}),i},e.prototype.onclick=function(r,n,i){var a=this._brushType,o=this._brushMode;i==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(r){var n={show:!0,type:Ohe.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.getLocaleModel().get(["toolbox","brush","title"])};return n},e}(bn);const Bhe=Nhe;function zhe(t){t.registerComponentView(Ihe),t.registerComponentModel(khe),t.registerPreprocessor(She),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,The),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,r){r.eachComponent({mainType:"brush",query:e},function(n){n.setAreas(e.areas)})}),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},wt),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},wt),Ul("brush",Bhe)}var Fhe=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(ke),Vhe=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.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=be(r.get("textBaseline"),r.get("textVerticalAlign")),c=new Oe({style:tt(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),h=r.get("subtext"),v=new Oe({style:tt(s,{text:h,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),p=r.get("sublink"),y=r.get("triggerEvent",!0);c.silent=!d&&!y,v.silent=!p&&!y,d&&c.on("click",function(){Cg(d,"_"+r.get("target"))}),p&&v.on("click",function(){Cg(p,"_"+r.get("subtarget"))}),pe(c).eventData=pe(v).eventData=y?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(c),h&&a.add(v);var g=a.getBoundingRect(),m=r.getBoxLayoutParams();m.width=g.width,m.height=g.height;var _=It(m,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),v.setStyle(S),g=a.getBoundingRect();var w=_.margin,x=r.getItemStyle(["color","opacity"]);x.fill=r.get("backgroundColor");var b=new Ne({shape:{x:g.x-w[3],y:g.y-w[0],width:g.width+w[1]+w[3],height:g.height+w[0]+w[2],r:r.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});a.add(b)}},e.type="title",e}(ft);function Ghe(t){t.registerComponentModel(Fhe),t.registerComponentView(Vhe)}var Hhe=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode="box",r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._initData()},e.prototype.mergeOption=function(r){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(r){this.option.autoPlay=!!r},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var r=this.option,n=r.data||[],i=r.axisType,a=this._names=[],o;i==="category"?(o=[],M(n,function(u,c){var f=Ot(qu(u),""),h;se(u)?(h=le(u),h.value=c):h=c,o.push(h),a.push(f)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new gr([{name:"value",type:s}],this);l.initData(o,a)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(ke);const oR=Hhe;var iG=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="timeline.slider",e.defaultOption=ko(oR.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(oR);Ct(iG,kC.prototype);const Uhe=iG;var Whe=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="timeline",e}(ft);const $he=Whe;var Yhe=function(t){N(e,t);function e(r,n,i,a){var o=t.call(this,r,n,i)||this;return o.type=a||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(zn);const jhe=Yhe;var S_=Math.PI,sR=Ve(),Xhe=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){this.api=n},e.prototype.render=function(r,n,i){if(this.model=r,this.api=i,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var a=this._layout(r,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,r);r.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return $t("nameValue",{noName:!0,value:c})},M(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,r)},this),this._renderAxisLabel(a,s,l,r),this._position(a,r)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(r,n){var i=r.get(["label","position"]),a=r.get("orient"),o=qhe(r,n),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:S_/2},f=a==="vertical"?o.height:o.width,h=r.getModel("controlStyle"),v=h.get("show",!0),d=v?h.get("itemSize"):0,p=v?h.get("itemGap"):0,y=d+p,g=r.get(["label","rotate"])||0;g=g*S_/180;var m,_,S,w=h.get("position",!0),x=v&&h.get("showPlayBtn",!0),b=v&&h.get("showPrevBtn",!0),C=v&&h.get("showNextBtn",!0),T=0,A=f;w==="left"||w==="bottom"?(x&&(m=[0,0],T+=y),b&&(_=[T,0],T+=y),C&&(S=[A-d,0],A-=y)):(x&&(m=[A-d,0],A-=y),b&&(_=[0,0],T+=y),C&&(S=[A-d,0],A-=y));var D=[T,A];return r.get("inverse")&&D.reverse(),{viewRect:o,mainLength:f,orient:a,rotation:c[a],labelRotation:g,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[a],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[a],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:D,controlSize:d,controlGap:p}},e.prototype._position=function(r,n){var i=this._mainGroup,a=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=rn(),l=o.x,u=o.y+o.height;oi(s,s,[-l,-u]),Eo(s,s,-S_/2),oi(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=m(o),f=m(i.getBoundingRect()),h=m(a.getBoundingRect()),v=[i.x,i.y],d=[a.x,a.y];d[0]=v[0]=c[0][0];var p=r.labelPosOpt;if(p==null||Z(p)){var y=p==="+"?0:1;_(v,f,c,1,y),_(d,h,c,1,1-y)}else{var y=p>=0?0:1;_(v,f,c,1,y),d[1]=v[1]+p}i.setPosition(v),a.setPosition(d),i.rotation=a.rotation=r.rotation,g(i),g(a);function g(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,w,x,b,C){S[b]+=x[b][C]-w[b][C]}},e.prototype._createAxis=function(r,n){var i=n.getData(),a=n.get("axisType"),o=Zhe(n,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new jhe("value",o,r.axisExtent,a);return l.model=n,l},e.prototype._createGroup=function(r){var n=this[r]=new fe;return this.group.add(n),n},e.prototype._renderAxisLine=function(r,n,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new Gt({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:F({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new Gt({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:oe({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},e.prototype._renderAxisTick=function(r,n,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],M(l,function(u){var c=i.dataToCoord(u.value),f=s.getItemModel(u.value),h=f.getModel("itemStyle"),v=f.getModel(["emphasis","itemStyle"]),d=f.getModel(["progress","itemStyle"]),p={x:c,y:0,onclick:Q(o._changeTimeline,o,u.value)},y=lR(f,h,n,p);y.ensureState("emphasis").style=v.getItemStyle(),y.ensureState("progress").style=d.getItemStyle(),fo(y);var g=pe(y);f.get("tooltip")?(g.dataIndex=u.value,g.dataModel=a):g.dataIndex=g.dataModel=null,o._tickSymbols.push(y)})},e.prototype._renderAxisLabel=function(r,n,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],M(u,function(c){var f=c.tickValue,h=l.getItemModel(f),v=h.getModel("label"),d=h.getModel(["emphasis","label"]),p=h.getModel(["progress","label"]),y=i.dataToCoord(c.tickValue),g=new Oe({x:y,y:0,rotation:r.labelRotation-r.rotation,onclick:Q(o._changeTimeline,o,f),silent:!1,style:tt(v,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});g.ensureState("emphasis").style=tt(d),g.ensureState("progress").style=tt(p),n.add(g),fo(g),sR(g).dataIndex=f,o._tickLabels.push(g)})}},e.prototype._renderControl=function(r,n,i,a){var o=r.controlSize,s=r.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),f=a.get("inverse",!0);h(r.nextBtnPosition,"next",Q(this._changeTimeline,this,f?"-":"+")),h(r.prevBtnPosition,"prev",Q(this._changeTimeline,this,f?"+":"-")),h(r.playPosition,c?"stop":"play",Q(this._handlePlayClick,this,!c),!0);function h(v,d,p,y){if(v){var g=si(be(a.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-g/2,g,g],_=Khe(a,d+"Icon",m,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:y?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,n.add(_),fo(_)}}},e.prototype._renderCurrentPointer=function(r,n,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=Q(u._handlePointerDrag,u),f.ondragend=Q(u._handlePointerDragend,u),uR(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){uR(f,u._progressLine,s,i,a)}};this._currentPointer=lR(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},e.prototype._handlePointerDrag=function(r,n,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},e.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},e.prototype._pointerChangeTimeline=function(r,n){var i=this._toAxisCoord(r)[0],a=this._axis,o=Qr(a.getExtent().slice());i>o[1]&&(i=o[1]),i=0&&(o[a]=+o[a].toFixed(h)),[o,f]}var x_={min:ye(jd,"min"),max:ye(jd,"max"),average:ye(jd,"average"),median:ye(jd,"median")};function $h(t,e){if(e){var r=t.getData(),n=t.coordinateSystem,i=n&&n.dimensions;if(!ave(e)&&!G(e.coord)&&G(i)){var a=oG(e,r,n,t);if(e=le(e),e.type&&x_[e.type]&&a.baseAxis&&a.valueAxis){var o=Te(i,a.baseAxis.dim),s=Te(i,a.valueAxis.dim),l=x_[e.type](r,a.baseDataDim,a.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!G(i))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)x_[u[c]]&&(u[c]=tA(r,r.mapDimension(i[c]),u[c]));return e}}function oG(t,e,r,n){var i={};return t.valueIndex!=null||t.valueDim!=null?(i.valueDataDim=t.valueIndex!=null?e.getDimension(t.valueIndex):t.valueDim,i.valueAxis=r.getAxis(ove(n,i.valueDataDim)),i.baseAxis=r.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=r.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function ove(t,e){var r=t.getData().getDimensionInfo(e);return r&&r.coordDim}function Yh(t,e){return t&&t.containData&&e.coord&&!xw(e)?t.containData(e.coord):!0}function sve(t,e,r){return t&&t.containZone&&e.coord&&r.coord&&!xw(e)&&!xw(r)?t.containZone(e.coord,r.coord):!0}function sG(t,e){return t?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return po(o,e[a])}:function(r,n,i,a){return po(r.value,e[a])}}function tA(t,e,r){if(r==="average"){var n=0,i=0;return t.each(e,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return r==="median"?t.getMedian(e):t.getDataExtent(e)[r==="max"?1:0]}var w_=Ve(),lve=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(){this.markerGroupMap=ie()},e.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){w_(s).keep=!1}),n.eachSeries(function(s){var l=Ao.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!w_(s).keep&&a.group.remove(s.group)})},e.prototype.markKeep=function(r){w_(r).keep=!0},e.prototype.toggleBlurSeries=function(r,n){var i=this;M(r,function(a){var o=Ao.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?kz(l):cC(l))})}})},e.type="marker",e}(ft);const rA=lve;function fR(t,e,r){var n=e.coordinateSystem;t.each(function(i){var a=t.getItemModel(i),o,s=j(a.get("x"),r.getWidth()),l=j(a.get("y"),r.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,i));else if(n){var u=t.get(n.dimensions[0],i),c=t.get(n.dimensions[1],i);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(i,o)})}var uve=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Ao.getMarkerModelFromSeries(a,"markPoint");o&&(fR(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},e.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new xv),f=cve(o,r,n);n.setData(f),fR(n.getData(),r,a),f.each(function(h){var v=f.getItemModel(h),d=v.getShallow("symbol"),p=v.getShallow("symbolSize"),y=v.getShallow("symbolRotate"),g=v.getShallow("symbolOffset"),m=v.getShallow("symbolKeepAspect");if(ae(d)||ae(p)||ae(y)||ae(g)){var _=n.getRawValue(h),S=n.getDataParams(h);ae(d)&&(d=d(_,S)),ae(p)&&(p=p(_,S)),ae(y)&&(y=y(_,S)),ae(g)&&(g=g(_,S))}var w=v.getModel("itemStyle").getItemStyle(),x=gv(l,"color");w.fill||(w.fill=x),f.setItemVisual(h,{symbol:d,symbolSize:p,symbolRotate:y,symbolOffset:g,symbolKeepAspect:m,style:w})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(h){h.traverse(function(v){pe(v).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},e.type="markPoint",e}(rA);function cve(t,e,r){var n;t?n=H(t&&t.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return F(F({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new gr(n,r),a=H(r.get("data"),ye($h,e));t&&(a=Ye(a,ye(Yh,t)));var o=sG(!!t,n);return i.initData(a,null,o),i}const fve=uve;function hve(t){t.registerComponentModel(ive),t.registerComponentView(fve),t.registerPreprocessor(function(e){eA(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var vve=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.createMarkerModelFromSeries=function(r,n,i){return new e(r,n,i)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(Ao);const dve=vve;var Xd=Ve(),pve=function(t,e,r,n){var i=t.getData(),a;if(G(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=e.getAxis(n.yAxis!=null?"y":"x"),l=Vt(n.yAxis,n.xAxis);else{var u=oG(n,i,e,t);s=u.valueAxis;var c=qC(i,u.valueDataDim);l=tA(i,c,o)}var f=s.dim==="x"?0:1,h=1-f,v=le(n),d={coord:[]};v.type=null,v.coord=[],v.coord[h]=-1/0,d.coord[h]=1/0;var p=r.get("precision");p>=0&&Fe(l)&&(l=+l.toFixed(Math.min(p,20))),v.coord[f]=d.coord[f]=l,a=[v,d,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var y=[$h(t,a[0]),$h(t,a[1]),F({},a[2])];return y[2].type=y[2].type||null,Se(y[2],y[0]),Se(y[2],y[1]),y};function Qg(t){return!isNaN(t)&&!isFinite(t)}function hR(t,e,r,n){var i=1-t,a=n.dimensions[t];return Qg(e[i])&&Qg(r[i])&&e[t]===r[t]&&n.getAxis(a).containData(e[t])}function gve(t,e){if(t.type==="cartesian2d"){var r=e[0].coord,n=e[1].coord;if(r&&n&&(hR(1,r,n,t)||hR(0,r,n,t)))return!0}return Yh(t,e[0])&&Yh(t,e[1])}function b_(t,e,r,n,i){var a=n.coordinateSystem,o=t.getItemModel(e),s,l=j(o.get("x"),i.getWidth()),u=j(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=a.dimensions,f=t.get(c[0],e),h=t.get(c[1],e);s=a.dataToPoint([f,h])}if(hl(a,"cartesian2d")){var v=a.getAxis("x"),d=a.getAxis("y"),c=a.dimensions;Qg(t.get(c[0],e))?s[0]=v.toGlobalCoord(v.getExtent()[r?0:1]):Qg(t.get(c[1],e))&&(s[1]=d.toGlobalCoord(d.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}t.setItemLayout(e,s)}var yve=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Ao.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=Xd(o).from,u=Xd(o).to;l.each(function(c){b_(l,c,!0,a,i),b_(u,c,!1,a,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},e.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new TT);this.group.add(c.group);var f=mve(o,r,n),h=f.from,v=f.to,d=f.line;Xd(n).from=h,Xd(n).to=v,n.setData(d);var p=n.get("symbol"),y=n.get("symbolSize"),g=n.get("symbolRotate"),m=n.get("symbolOffset");G(p)||(p=[p,p]),G(y)||(y=[y,y]),G(g)||(g=[g,g]),G(m)||(m=[m,m]),f.from.each(function(S){_(h,S,!0),_(v,S,!1)}),d.each(function(S){var w=d.getItemModel(S).getModel("lineStyle").getLineStyle();d.setItemLayout(S,[h.getItemLayout(S),v.getItemLayout(S)]),w.stroke==null&&(w.stroke=h.getItemVisual(S,"style").fill),d.setItemVisual(S,{fromSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(S,"symbolOffset"),fromSymbolRotate:h.getItemVisual(S,"symbolRotate"),fromSymbolSize:h.getItemVisual(S,"symbolSize"),fromSymbol:h.getItemVisual(S,"symbol"),toSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(S,"symbolOffset"),toSymbolRotate:v.getItemVisual(S,"symbolRotate"),toSymbolSize:v.getItemVisual(S,"symbolSize"),toSymbol:v.getItemVisual(S,"symbol"),style:w})}),c.updateData(d),f.line.eachItemGraphicEl(function(S){pe(S).dataModel=n,S.traverse(function(w){pe(w).dataModel=n})});function _(S,w,x){var b=S.getItemModel(w);b_(S,w,x,r,a);var C=b.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=gv(l,"color")),S.setItemVisual(w,{symbolKeepAspect:b.get("symbolKeepAspect"),symbolOffset:be(b.get("symbolOffset",!0),m[x?0:1]),symbolRotate:be(b.get("symbolRotate",!0),g[x?0:1]),symbolSize:be(b.get("symbolSize"),y[x?0:1]),symbol:be(b.get("symbol",!0),p[x?0:1]),style:C})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},e.type="markLine",e}(rA);function mve(t,e,r){var n;t?n=H(t&&t.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return F(F({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new gr(n,r),a=new gr(n,r),o=new gr([],r),s=H(r.get("data"),ye(pve,e,t,r));t&&(s=Ye(s,ye(gve,t)));var l=sG(!!t,n);return i.initData(H(s,function(u){return u[0]}),null,l),a.initData(H(s,function(u){return u[1]}),null,l),o.initData(H(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}const _ve=yve;function Sve(t){t.registerComponentModel(dve),t.registerComponentView(_ve),t.registerPreprocessor(function(e){eA(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var xve=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.createMarkerModelFromSeries=function(r,n,i){return new e(r,n,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(Ao);const wve=xve;var Zd=Ve(),bve=function(t,e,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=$h(t,i),s=$h(t,a),l=o.coord,u=s.coord;l[0]=Vt(l[0],-1/0),l[1]=Vt(l[1],-1/0),u[0]=Vt(u[0],1/0),u[1]=Vt(u[1],1/0);var c=ky([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function Jg(t){return!isNaN(t)&&!isFinite(t)}function vR(t,e,r,n){var i=1-t;return Jg(e[i])&&Jg(r[i])}function Cve(t,e){var r=e.coord[0],n=e.coord[1],i={coord:r,x:e.x0,y:e.y0},a={coord:n,x:e.x1,y:e.y1};return hl(t,"cartesian2d")?r&&n&&(vR(1,r,n)||vR(0,r,n))?!0:sve(t,i,a):Yh(t,i)||Yh(t,a)}function dR(t,e,r,n,i){var a=n.coordinateSystem,o=t.getItemModel(e),s,l=j(o.get(r[0]),i.getWidth()),u=j(o.get(r[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=t.getValues(["x0","y0"],e),f=t.getValues(["x1","y1"],e),h=a.clampData(c),v=a.clampData(f),d=[];r[0]==="x0"?d[0]=h[0]>v[0]?f[0]:c[0]:d[0]=h[0]>v[0]?c[0]:f[0],r[1]==="y0"?d[1]=h[1]>v[1]?f[1]:c[1]:d[1]=h[1]>v[1]?c[1]:f[1],s=n.getMarkerPosition(d,r,!0)}else{var p=t.get(r[0],e),y=t.get(r[1],e),g=[p,y];a.clampData&&a.clampData(g,g),s=a.dataToPoint(g,!0)}if(hl(a,"cartesian2d")){var m=a.getAxis("x"),_=a.getAxis("y"),p=t.get(r[0],e),y=t.get(r[1],e);Jg(p)?s[0]=m.toGlobalCoord(m.getExtent()[r[0]==="x0"?0:1]):Jg(y)&&(s[1]=_.toGlobalCoord(_.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var pR=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Tve=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Ao.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=H(pR,function(f){return dR(s,l,f,a,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new fe});this.group.add(c.group),this.markKeep(c);var f=Ave(o,r,n);n.setData(f),f.each(function(h){var v=H(pR,function(C){return dR(f,h,C,r,a)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,y=d.getExtent(),g=p.getExtent(),m=[d.parse(f.get("x0",h)),d.parse(f.get("x1",h))],_=[p.parse(f.get("y0",h)),p.parse(f.get("y1",h))];Qr(m),Qr(_);var S=!(y[0]>m[1]||y[1]_[1]||g[1]<_[0]),w=!S;f.setItemLayout(h,{points:v,allClipped:w});var x=f.getItemModel(h).getModel("itemStyle").getItemStyle(),b=gv(l,"color");x.fill||(x.fill=b,Z(x.fill)&&(x.fill=_h(x.fill,.4))),x.stroke||(x.stroke=b),f.setItemVisual(h,"style",x)}),f.diff(Zd(c).data).add(function(h){var v=f.getItemLayout(h);if(!v.allClipped){var d=new Lr({shape:{points:v.points}});f.setItemGraphicEl(h,d),c.group.add(d)}}).update(function(h,v){var d=Zd(c).data.getItemGraphicEl(v),p=f.getItemLayout(h);p.allClipped?d&&c.group.remove(d):(d?Ge(d,{shape:{points:p.points}},n,h):d=new Lr({shape:{points:p.points}}),f.setItemGraphicEl(h,d),c.group.add(d))}).remove(function(h){var v=Zd(c).data.getItemGraphicEl(h);c.group.remove(v)}).execute(),f.eachItemGraphicEl(function(h,v){var d=f.getItemModel(v),p=f.getItemVisual(v,"style");h.useStyle(f.getItemVisual(v,"style")),sr(h,Wt(d),{labelFetcher:n,labelDataIndex:v,defaultText:f.getName(v)||"",inheritColor:Z(p.fill)?_h(p.fill,1):"#000"}),or(h,d),yt(h,null,null,d.get(["emphasis","disabled"])),pe(h).dataModel=n}),Zd(c).data=f,c.group.silent=n.get("silent")||r.get("silent")},e.type="markArea",e}(rA);function Ave(t,e,r){var n,i,a=["x0","y0","x1","y1"];if(t){var o=H(t&&t.dimensions,function(u){var c=e.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return F(F({},f),{name:u,ordinalMeta:null})});i=H(a,function(u,c){return{name:u,type:o[c%2].type}}),n=new gr(i,r)}else i=[{name:"value",type:"float"}],n=new gr(i,r);var s=H(r.get("data"),ye(bve,e,t,r));t&&(s=Ye(s,ye(Cve,t)));var l=t?function(u,c,f,h){var v=u.coord[Math.floor(h/2)][h%2];return po(v,i[h])}:function(u,c,f,h){return po(u.value,i[h])};return n.initData(s,null,l),n.hasItemOption=!0,n}const Mve=Tve;function Dve(t){t.registerComponentModel(wve),t.registerComponentView(Mve),t.registerPreprocessor(function(e){eA(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var Lve=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},Pve=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),G(n)&&M(n,function(a,o){Z(a)&&(a={type:a}),n[o]=Se(a,Lve(i,a.type))})},e.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=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(ke);const ww=Pve;var kl=ye,bw=M,qd=fe,Ive=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new qd),this.group.add(this._selectorGroup=new qd),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.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 c=r.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},h=r.get("padding"),v=It(c,f,h),d=this.layoutInner(r,o,v,a,l,u),p=It(oe({width:d.width,height:d.height},c),f,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Z4(d,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),c=ie(),f=n.get("selectedMode"),h=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),bw(n.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===` -`)){var y=new qd;y.newline=!0,u.add(y);return}var g=i.getSeriesByName(p)[0];if(!c.get(p))if(g){var m=g.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),w=m.getVisual("style"),x=this._createItem(g,p,d,v,n,r,_,w,S,f,a);x.on("click",kl(gR,p,null,a,h)).on("mouseover",kl(Cw,g.name,null,a,h)).on("mouseout",kl(Tw,g.name,null,a,h)),c.set(p,!0)}else i.eachRawSeries(function(b){if(!c.get(p)&&b.legendVisualProvider){var C=b.legendVisualProvider;if(!C.containName(p))return;var T=C.indexOfName(p),A=C.getItemVisual(T,"style"),D=C.getItemVisual(T,"legendIcon"),L=Ar(A.fill);L&&L[3]===0&&(L[3]=.2,A=F(F({},A),{fill:ri(L,"rgba")}));var P=this._createItem(b,p,d,v,n,r,{},A,D,f,a);P.on("click",kl(gR,null,p,a,h)).on("mouseover",kl(Cw,null,p,a,h)).on("mouseout",kl(Tw,null,p,a,h)),c.set(p,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},e.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();bw(r,function(u){var c=u.type,f=new Oe({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);sr(f,{normal:h,emphasis:v},{defaultText:u.title}),fo(f)})},e.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,h){var v=r.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),y=o.isSelected(n),g=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");c=_||c||"roundRect";var S=Eve(c,a,l,u,v,y,h),w=new qd,x=a.getModel("textStyle");if(ae(r.getLegendIcon)&&(!_||_==="inherit"))w.add(r.getLegendIcon({itemWidth:d,itemHeight:p,icon:c,iconRotate:g,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var b=_==="inherit"&&r.getData().getVisual("symbol")?g==="inherit"?r.getData().getVisual("symbolRotate"):g:0;w.add(Rve({itemWidth:d,itemHeight:p,icon:c,iconRotate:b,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var C=s==="left"?d+5:-5,T=s,A=o.get("formatter"),D=n;Z(A)&&A?D=A.replace("{name}",n??""):ae(A)&&(D=A(n));var L=a.get("inactiveColor");w.add(new Oe({style:tt(x,{text:D,x:C,y:p/2,fill:y?x.getTextColor():L,align:T,verticalAlign:"middle"})}));var P=new Ne({shape:w.getBoundingRect(),invisible:!0}),I=a.getModel("tooltip");return I.get("show")&&tc({el:P,componentModel:o,itemName:n,itemTooltipOption:I.option}),w.add(P),w.eachChild(function(E){E.silent=!0}),P.silent=!f,this.getContentGroup().add(w),fo(w),w.__legendDataIndex=i,w},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Fs(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Fs("horizontal",u,r.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=r.get("selectorButtonGap",!0),p=r.getOrient().index,y=p===0?"width":"height",g=p===0?"height":"width",m=p===0?"y":"x";s==="end"?v[p]+=c[y]+d:f[p]+=h[y]+d,v[1-p]+=c[g]/2-h[g]/2,u.x=v[0],u.y=v[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[y]=c[y]+d+h[y],_[g]=Math.max(c[g],h[g]),_[m]=Math.min(0,h[m]+v[1-p]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(ft);function Eve(t,e,r,n,i,a,o){function s(y,g){y.lineWidth==="auto"&&(y.lineWidth=g.lineWidth>0?2:0),bw(y,function(m,_){y[_]==="inherit"&&(y[_]=g[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=t.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:Bu(f,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var h=e.getModel("lineStyle"),v=h.getLineStyle();if(s(v,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!a){var d=e.get("inactiveBorderWidth"),p=u[c];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function Rve(t){var e=t.icon||"roundRect",r=Mt(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function gR(t,e,r,n){Tw(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),Cw(t,e,r,n)}function lG(t){for(var e=t.getZr().storage.getDisplayList(),r,n=0,i=e.length;ni[o],y=[-v.x,-v.y];n||(y[a]=c[u]);var g=[0,0],m=[-d.x,-d.y],_=be(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var S=r.get("pageButtonPosition",!0);S==="end"?m[a]+=i[o]-d[o]:g[a]+=d[o]+_}m[1-a]+=v[s]/2-d[s]/2,c.setPosition(y),f.setPosition(g),h.setPosition(m);var w={x:0,y:0};if(w[o]=p?i[o]:v[o],w[s]=Math.max(v[s],d[s]),w[l]=Math.min(0,d[l]+m[1-a]),f.__rectSize=i[o],p){var x={x:0,y:0};x[o]=Math.max(i[o]-d[o]-_,0),x[s]=w[s],f.setClipPath(new Ne({shape:x})),f.__rectSize=x[o]}else h.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(r);return b.pageIndex!=null&&Ge(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?r:null),this._updatePageInfoView(r,b),w},e.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;M(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",h=n[f]!=null,v=i.childOfName(c);v&&(v.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),v.cursor=h?"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}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=C_[o],l=T_[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],h=c.length,v=h?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return d;var p=S(f);d.contentPosition[o]=-p.s;for(var y=u+1,g=p,m=p,_=null;y<=h;++y)_=S(c[y]),(!_&&m.e>g.s+a||_&&!w(_,g.s))&&(m.i>g.i?g=m:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),m=_;for(var y=u-1,g=p,m=p,_=null;y>=-1;--y)_=S(c[y]),(!_||!w(m,_.s))&&g.i=b&&x.s<=b+a}},e.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??a},e.type="legend.scroll",e}(uG);const Fve=zve;function Vve(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}function Gve(t){Ae(cG),t.registerComponentModel(Bve),t.registerComponentView(Fve),Vve(t)}function Hve(t){Ae(cG),Ae(Gve)}var Uve=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="dataZoom.inside",e.defaultOption=ko(Wh.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Wh);const Wve=Uve;var nA=Ve();function $ve(t,e,r){nA(t).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(e.uid);i&&(i.getRange=r)})}function Yve(t,e){for(var r=nA(t).coordSysRecordMap,n=r.keys(),i=0;in[r+e]&&(e=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function Kve(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(e,r){var n=nA(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=ie());i.each(function(a){a.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=Y4(a);M(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,jve(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ie());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){fG(i,a);return}var c=qve(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),uc(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Qve=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return e.prototype.render=function(r,n,i){if(t.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),$ve(i,r,{pan:Q(A_.pan,this),zoom:Q(A_.zoom,this),scrollMove:Q(A_.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Yve(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(XT),A_={zoom:function(t,e,r,n){var i=this.range,a=i.slice(),o=t.axisModels[0];if(o){var s=M_[e](null,[n.originX,n.originY],o,r,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(dl(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:_R(function(t,e,r,n,i,a){var o=M_[n]([a.oldX,a.oldY],[a.newX,a.newY],e,i,r);return o.signal*(t[1]-t[0])*o.pixel/o.pixelLength}),scrollMove:_R(function(t,e,r,n,i,a){var o=M_[n]([0,0],[a.scrollDelta,a.scrollDelta],e,i,r);return o.signal*(t[1]-t[0])*a.scrollDelta})};function _R(t){return function(e,r,n,i){var a=this.range,o=a.slice(),s=e.axisModels[0];if(s){var l=t(o,s,e,r,n,i);if(dl(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var M_={grid:function(t,e,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem.getRect();return t=t||[0,0],a.dim==="x"?(o.pixel=e[0]-t[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(t,e,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),r.mainType==="radiusAxis"?(o.pixel=e[0]-t[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(t,e,r,n,i){var a=r.axis,o=i.model.coordinateSystem.getRect(),s={};return t=t||[0,0],a.orient==="horizontal"?(s.pixel=e[0]-t[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};const Jve=Qve;function hG(t){ZT(t),t.registerComponentModel(Wve),t.registerComponentView(Jve),Kve(t)}var ede=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=ko(Wh.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Wh);const tde=ede;var Jc=Ne,SR=7,rde=1,D_=30,nde=7,ef="horizontal",xR="vertical",ide=5,ade=["line","bar","candlestick","scatter"],ode={easing:"cubicOut",duration:100,delay:0},sde=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._displayables={},r}return e.prototype.init=function(r,n){this.api=n,this._onBrush=Q(this._onBrush,this),this._onBrushEnd=Q(this._onBrushEnd,this)},e.prototype.render=function(r,n,i,a){if(t.prototype.render.apply(this,arguments),uc(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Eh(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new fe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},e.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,i=r.get("brushSelect"),a=i?nde:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===ef?{right:s.width-o.x-o.width,top:s.height-D_-SR-a,width:o.width,height:D_}:{right:SR,top:o.y,width:D_,height:o.height},u=ic(r.option);M(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=It(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===xR&&this._size.reverse()},e.prototype._positionGroup=function(){var r=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===ef&&!o?{scaleY:l?1:-1,scaleX:1}:i===ef&&o?{scaleY:l?1:-1,scaleX:-1}:i===xR&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=r.get("brushSelect");i.add(new Jc({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Jc({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:Q(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},e.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,i=this._shadowSize||[],a=r.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var f=o.getDataExtent(l),h=(f[1]-f[0])*.3;f=[f[0]-h,f[1]+h];var v=[0,n[1]],d=[0,n[0]],p=[[n[0],0],[0,0]],y=[],g=d[1]/(o.count()-1),m=0,_=Math.round(o.count()/n[0]),S;o.each([l],function(T,A){if(_>0&&A%_){m+=g;return}var D=T==null||isNaN(T)||T==="",L=D?0:$e(T,f,v,!0);D&&!S&&A?(p.push([p[p.length-1][0],0]),y.push([y[y.length-1][0],0])):!D&&S&&(p.push([m,0]),y.push([m,0])),p.push([m,L]),y.push([m,L]),m+=g,S=D}),u=this._shadowPolygonPts=p,c=this._shadowPolylinePts=y}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var w=this.dataZoomModel;function x(T){var A=w.getModel(T?"selectedDataBackground":"dataBackground"),D=new fe,L=new Lr({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new Er({shape:{points:c},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return D.add(L),D.add(P),D}for(var b=0;b<3;b++){var C=x(b===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},e.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();M(l,function(u){if(!i&&!(n!==!0&&Te(ade,u.get("type"))<0)){var c=a.getComponent(eo(o),s).axis,f=lde(o),h,v=u.coordinateSystem;f!=null&&v.getOtherAxis&&(h=v.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),i={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:h}}},this)},this),i}},e.prototype._renderHandle=function(){var r=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),h=n.filler=new Jc({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new Jc({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:rde,fill:"rgba(0,0,0,0)"}})),M([0,1],function(_){var S=l.get("handleIcon");!Mg[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var w=Mt(S,-1,0,2,2,null,!0);w.attr({cursor:wR(this._orient),draggable:!0,drift:Q(this._onDragMove,this,_),ondragend:Q(this._onDragEnd,this),onmouseover:Q(this._showDataInfo,this,!0),onmouseout:Q(this._showDataInfo,this,!1),z2:5});var x=w.getBoundingRect(),b=l.get("handleSize");this._handleHeight=j(b,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,w.setStyle(l.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),fo(w);var C=l.get("handleColor");C!=null&&(w.style.fill=C),o.add(i[_]=w);var T=l.getModel("textStyle");r.add(a[_]=new Oe({silent:!0,invisible:!0,style:tt(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var v=h;if(f){var d=j(l.get("moveHandleSize"),s[1]),p=n.moveHandle=new Ne({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),y=d*.8,g=n.moveHandleIcon=Mt(l.get("moveHandleIcon"),-y/2,-y/2,y,y,"#fff",!0);g.silent=!0,g.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));v=n.moveZone=new Ne({invisible:!0,shape:{y:s[1]-m,height:d+m}}),v.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(g),o.add(v)}v.attr({draggable:!0,cursor:wR(this._orient),drift:Q(this._onDragMove,this,"all"),ondragstart:Q(this._showDataInfo,this,!0),ondragend:Q(this._onDragEnd,this),onmouseover:Q(this._showDataInfo,this,!0),onmouseout:Q(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[$e(r[0],[0,100],n,!0),$e(r[1],[0,100],n,!0)]},e.prototype._updateInterval=function(r,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];dl(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?$e(s.minSpan,l,o,!0):null,s.maxSpan!=null?$e(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Qr([$e(a[0],o,l,!0),$e(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(r){var n=this._displayables,i=this._handleEnds,a=Qr(i.slice()),o=this._size;M([0,1],function(v){var d=n.handles[v],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:i[v]+(v?-1:1),y:o[1]/2-p/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],c=0;cn[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(r){var n=r.offsetX,i=r.offsetY;this._brushStart=new we(n,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Qr([$e(i.x,o,s,!0),$e(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(r){this._brushing&&(va(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},e.prototype._updateBrushRect=function(r,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new Jc({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},e.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?ode:null,start:n[0],end:n[1]})},e.prototype._findCoordRect=function(){var r,n=Y4(this.dataZoomModel).infoList;if(!r&&n.length){var i=n[0].model.coordinateSystem;r=i.getRect&&i.getRect()}if(!r){var a=this.api.getWidth(),o=this.api.getHeight();r={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return r},e.type="dataZoom.slider",e}(XT);function lde(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function wR(t){return t==="vertical"?"ns-resize":"ew-resize"}const ude=sde;function vG(t){t.registerComponentModel(tde),t.registerComponentView(ude),ZT(t)}function cde(t){Ae(hG),Ae(vG)}var fde={get:function(t,e,r){var n=le((hde[t]||{})[e]);return r&&G(n)?n[n.length-1]:n}},hde={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const dG=fde;var bR=nr.mapVisual,vde=nr.eachVisual,dde=G,CR=M,pde=Qr,gde=$e,yde=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.optionUpdated=function(r,n){var i=this.option;!n&&rG(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(r){var n=this.stateList;r=Q(r,this),this.controllerVisuals=_w(this.option.controller,n,r),this.targetVisuals=_w(this.option.target,n,r)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=Ke(r),n},e.prototype.eachTargetSeries=function(r,n){M(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&r.call(n,a)},this)},e.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(i){i===r&&(n=!0)}),n},e.prototype.formatValueText=function(r,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],G(r)&&(r=r.slice(),u=!0);var c=n?r:u?[f(r[0]),f(r[1])]:f(r);if(Z(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(ae(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?i[0]+" "+c[1]:r[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var r=this.option,n=pde([r.min,r.max]);this._dataExtent=n},e.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var i=r.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});Se(a,i),Se(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(f){dde(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,h,v){var d=f[h],p=f[v];d&&!p&&(p=f[v]={},CR(d,function(y,g){if(nr.isValidType(g)){var m=dG.get(g,"inactive",s);m!=null&&(p[g]=m,g==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function c(f){var h=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,v=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),y=p||"roundRect";CR(this.stateList,function(g){var m=this.itemSize,_=f[g];_||(_=f[g]={color:s?d:[d]}),_.symbol==null&&(_.symbol=h&&le(h)||(s?y:[y])),_.symbolSize==null&&(_.symbolSize=v&&le(v)||(s?m[0]:[m[0],m[0]])),_.symbol=bR(_.symbol,function(x){return x==="none"?y:x});var S=_.symbolSize;if(S!=null){var w=-1/0;vde(S,function(x){x>w&&(w=x)}),_.symbolSize=bR(S,function(x){return gde(x,[0,w],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(r){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(r){return null},e.prototype.getVisualMeta=function(r){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(ke);const ey=yde;var TR=[20,140],mde=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(r,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=TR[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=TR[1])},e.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):G(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),M(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},e.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},e.prototype.getSelected=function(){var r=this.getExtent(),n=Qr((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]=i[1]||r<=n[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},e.prototype.getVisualMeta=function(r){var n=AR(this,"outOfRange",this.getExtent()),i=AR(this,"inRange",this.option.range.slice()),a=[];function o(v,d){a.push({value:v,color:r(v,d)})}for(var s=0,l=0,u=i.length,c=n.length;lr[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),a},e.prototype._createBarPoints=function(r,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],r[0]],[i[0],r[0]],[i[0],r[1]],[i[0]-n[1],r[1]]]},e.prototype._createBarGroup=function(r){var n=this._orient,i=this.visualMapModel.get("inverse");return new fe(n==="horizontal"&&!i?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},e.prototype._updateHandle=function(r,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent();xde([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var h=_i(r[c],[0,l[1]],u,!0),v=this.getControllerVisual(h,"symbolSize");f.scaleX=f.scaleY=v/l[0],f.x=l[0]-v/2;var d=ni(i.handleLabelPoints[c],ho(f,this.group));s[c].setStyle({x:d[0],y:d[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(r,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var h={convertOpacityToAlpha:!0},v=this.getControllerVisual(r,"color",h),d=this.getControllerVisual(r,"symbolSize"),p=_i(r,s,u,!0),y=l[0]-d/2,g={x:f.x,y:f.y};f.y=p,f.x=y;var m=ni(c.indicatorLabelPoint,ho(f,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),w=this._orient,x=w==="horizontal";_.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:x?S:"middle",align:x?"center":S});var b={x:y,y:p,style:{fill:v}},C={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var T={duration:100,easing:"cubicInOut",additive:!0};f.x=g.x,f.y=g.y,f.animateTo(b,T),_.animateTo(C,T)}else f.attr(b),_.attr(C);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var D=0;Do[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var h=this._hoverLinkDataIndices,v=[];(n||PR(i))&&(v=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var d=eY(h,v);this._dispatchHighDown("downplay",Ep(d[0],i)),this._dispatchHighDown("highlight",Ep(d[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(Ps(r.target,function(l){var u=pe(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i=0&&(a.dimension=o,n.push(a))}}),t.getData().setVisual("visualMeta",n)}}];function Pde(t,e,r,n){for(var i=e.targetVisuals[n],a=nr.prepareVisualTypes(i),o={color:gv(t.getData(),"color")},s=0,l=a.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),t.registerAction(Mde,Dde),M(Lde,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(Ide))}function mG(t){t.registerComponentModel(_de),t.registerComponentView(Ade),yG(t)}var Ede=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._pieceList=[],r}return e.prototype.optionUpdated=function(r,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],Rde[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=le(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=H(this._pieceList,function(l){return l=le(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var r=this.option,n={},i=nr.listVisualTypes(),a=this.isCategory();M(r.pieces,function(s){M(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),M(n,function(s,l){var u=!1;M(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&M(this.stateList,function(c){(r[c]||(r[c]={}))[l]=dG.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(r,n){var i=this.option,a=this._pieceList,o=(n?i:r).selected||{};if(i.selected=o,M(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;M(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(r){this.option.selected=le(r)},e.prototype.getValueState=function(r){var n=nr.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(r){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=nr.findPieceIndex(l,i);c===r&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},e.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var i=r.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},e.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(c,f){var h=a.getRepresentValue({interval:c});f||(f=a.getValueState(h));var v=r(h,f);c[0]===-1/0?i[0]=v:c[1]===1/0?i[1]=v:n.push({value:c[0],color:v},{value:c[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return M(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:n,outerColors:i}},e.type="visualMap.piecewise",e.defaultOption=ko(ey.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(ey),Rde={splitNumber:function(t){var e=this.option,r=Math.min(e.precision,20),n=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(r)!==a&&r<5;)r++;e.precision=r,a=+a.toFixed(r),e.minOpen&&t.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,i)},this)}};function kR(t,e){var r=t.inverse;(t.orient==="vertical"?!r:r)&&e.reverse()}const kde=Ede;var Ode=function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),f=c.endsText,h=Vt(n.get("showLabel",!0),!f);f&&this._renderEndsText(r,f[0],u,h,l),M(c.viewPieceList,function(v){var d=v.piece,p=new fe;p.onclick=Q(this._onItemClick,this,d),this._enableHoverLink(p,v.indexInModelPieceList);var y=n.getRepresentValue(d);if(this._createItemSymbol(p,y,[0,0,u[0],u[1]]),h){var g=this.visualMapModel.getValueState(y);p.add(new Oe({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:d.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:g==="outOfRange"?.5:1}}))}r.add(p)},this),f&&this._renderEndsText(r,f[1],u,h,l),Fs(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},e.prototype._enableHoverLink=function(r,n){var i=this;r.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:Ep(s.findTargetDataIndices(n),s)})}},e.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return gG(r,this.api,r.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},e.prototype._renderEndsText=function(r,n,i,a,o){if(n){var s=new fe,l=this.visualMapModel.textStyleModel;s.add(new Oe({style:tt(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),r.add(s)}},e.prototype._getViewData=function(){var r=this.visualMapModel,n=H(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=r.get("text"),a=r.get("orient"),o=r.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},e.prototype._createItemSymbol=function(r,n,i){r.add(Mt(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color")))},e.prototype._onItemClick=function(r){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=le(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,M(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(pG);const Nde=Ode;function _G(t){t.registerComponentModel(kde),t.registerComponentView(Nde),yG(t)}function Bde(t){Ae(mG),Ae(_G)}var zde={label:{enabled:!0},decal:{show:!1}},OR=Ve(),Fde={};function Vde(t,e){var r=t.getModel("aria");if(!r.get("enabled"))return;var n=le(zde);Se(n.label,t.getLocaleModel().get("aria"),!1),Se(r.option,n,!1),i(),a();function i(){var u=r.getModel("decal"),c=u.get("show");if(c){var f=ie();t.eachSeries(function(h){if(!h.isColorBySeries()){var v=f.get(h.type);v||(v={},f.set(h.type,v)),OR(h).scope=v}}),t.eachRawSeries(function(h){if(t.isSeriesFiltered(h))return;if(ae(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var m=Ax(h.ecModel,h.name,Fde,t.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,m))}else{var d=h.getRawData(),p={},y=OR(h).scope;v.each(function(w){var x=v.getRawIndex(w);p[x]=w});var g=d.count();d.each(function(w){var x=p[w],b=d.getName(w)||w+"",C=Ax(h.ecModel,b,y,g),T=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(T,C))})}function S(w,x){var b=w?F(F({},x),w):x;return b.dirty=!0,b}})}}function a(){var u=t.getLocaleModel().get("aria"),c=r.getModel("label");if(c.option=oe(c.option,u),!!c.get("enabled")){var f=e.getZr().dom;if(c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var h=t.getSeriesCount(),v=c.get(["data","maxCount"])||10,d=c.get(["series","maxCount"])||10,p=Math.min(h,d),y;if(!(h<1)){var g=s();if(g){var m=c.get(["general","withTitle"]);y=o(m,{title:g})}else y=c.get(["general","withoutTitle"]);var _=[],S=h>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);y+=o(S,{seriesCount:h}),t.eachSeries(function(C,T){if(T1?c.get(["series","multiple",L]):c.get(["series","single",L]),A=o(A,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var P=C.getData();if(P.count()>v){var I=c.get(["data","partialData"]);A+=o(I,{displayCnt:v})}else A+=c.get(["data","allData"]);for(var E=c.get(["data","separator","middle"]),k=c.get(["data","separator","end"]),B=[],R=0;R":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Ude=function(){function t(e){var r=this._condVal=Z(e)?new RegExp(e):_B(e)?e:null;if(r==null){var n="";Ue(n)}}return t.prototype.evaluate=function(e){var r=typeof e;return Z(r)?this._condVal.test(e):Fe(r)?this._condVal.test(e+""):!1},t}(),Wde=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),$de=function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,r=0;r2&&n.push(i),i=[P,I]}function c(P,I,E,k){su(P,E)&&su(I,k)||i.push(P,I,E,k,E,k)}function f(P,I,E,k,B,R){var O=Math.abs(I-P),z=Math.tan(O/4)*4/3,V=IC:D2&&n.push(i),n}function Mw(t,e,r,n,i,a,o,s,l,u){if(su(t,r)&&su(e,n)&&su(i,o)&&su(a,s)){l.push(o,s);return}var c=2/u,f=c*c,h=o-t,v=s-e,d=Math.sqrt(h*h+v*v);h/=d,v/=d;var p=r-t,y=n-e,g=i-o,m=a-s,_=p*p+y*y,S=g*g+m*m;if(_=0&&C=0){l.push(o,s);return}var T=[],A=[];So(t,r,i,o,.5,T),So(e,n,a,s,.5,A),Mw(T[0],A[0],T[1],A[1],T[2],A[2],T[3],A[3],l,u),Mw(T[4],A[4],T[5],A[5],T[6],A[6],T[7],A[7],l,u)}function ape(t,e){var r=Aw(t),n=[];e=e||1;for(var i=0;i0)for(var u=0;uMath.abs(u),f=xG([l,u],c?0:1,e),h=(c?s:u)/f.length,v=0;vi,o=xG([n,i],a?0:1,e),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",f=t[s]/o.length,h=0;h1?null:new we(p*l+t,p*u+e)}function lpe(t,e,r){var n=new we;we.sub(n,r,e),n.normalize();var i=new we;we.sub(i,t,e);var a=i.dot(n);return a}function Nl(t,e){var r=t[t.length-1];r&&r[0]===e[0]&&r[1]===e[1]||t.push(e)}function upe(t,e,r){for(var n=t.length,i=[],a=0;ao?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),upe(e,u,c)}function ty(t,e,r,n){if(r===1)n.push(e);else{var i=Math.floor(r/2),a=t(e);ty(t,a[0],i,n),ty(t,a[1],r-i,n)}return n}function cpe(t,e){for(var r=[],n=0;n0)for(var w=n/r,x=-n/2;x<=n/2;x+=w){for(var b=Math.sin(x),C=Math.cos(x),T=0,_=0;_0;u/=2){var c=0,f=0;(t&u)>0&&(c=1),(e&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(t=u-1-t,e=u-1-e),l=t,t=e,e=l)}return s}function iy(t){var e=1/0,r=1/0,n=-1/0,i=-1/0,a=H(t,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),r=Math.min(f,r),n=Math.max(c,n),i=Math.max(f,i),[c,f]}),o=H(a,function(s,l){return{cp:s,z:_pe(s[0],s[1],e,r,n,i),path:t[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function CG(t){return vpe(t.path,t.count)}function Dw(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Spe(t,e,r){var n=[];function i(w){for(var x=0;x=0;i--)if(!r[i].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var a=l.length,u=Math.ceil(a/2);r[i].many=l.slice(u,a),r[s].many=l.slice(0,u),s++}return r}var wpe={clone:function(t){for(var e=[],r=1-Math.pow(1-t.path.style.opacity,1/t.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;WR(t)&&(u=t,c=e),WR(e)&&(u=e,c=t);function f(g,m,_,S,w){var x=g.many,b=g.one;if(x.length===1&&!w){var C=m?x[0]:b,T=m?b:x[0];if(ry(C))f({many:[C],one:T},!0,_,S,!0);else{var A=s?oe({delay:s(_,S)},l):l;aA(C,T,A),a(C,T,C,T,A)}}else for(var D=oe({dividePath:wpe[r],individualDelay:s&&function(B,R,O,z){return s(B+_,S)}},l),L=m?Spe(x,b,D):xpe(b,x,D),P=L.fromIndividuals,I=L.toIndividuals,E=P.length,k=0;ke.length,v=u?$R(c,u):$R(h?e:t,[h?t:e]),d=0,p=0;pTG))for(var i=n.getIndices(),a=Cpe(n),o=0;o0&&S.group.traverse(function(x){x instanceof Pe&&!x.animators.length&&x.animateFrom({style:{opacity:0}},w)})})}function jR(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function XR(t){return G(t)?t.sort().join(","):t}function Ua(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function Mpe(t,e){var r=ie(),n=ie(),i=ie();return M(t.oldSeries,function(a,o){var s=t.oldDataGroupIds[o],l=t.oldData[o],u=jR(a),c=XR(u);n.set(c,{dataGroupId:s,data:l}),G(u)&&M(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),M(e.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=jR(a),u=XR(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Ua(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Ua(s),data:s}]});else if(G(l)){var f=[];M(l,function(d){var p=n.get(d);p.data&&f.push({dataGroupId:p.dataGroupId,divide:Ua(p.data),data:p.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Ua(s)}]})}else{var h=i.get(l);if(h){var v=r.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Ua(h.data)}],newSeries:[]},r.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:Ua(s)})}}}}),r}function ZR(t,e){for(var r=0;r=0&&i.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Ua(e.oldData[s]),dim:o.dimension})}),M(Ke(t.to),function(o){var s=ZR(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Ua(l),dim:o.dimension})}}),i.length>0&&a.length>0&&AG(i,a,n)}function Lpe(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,n){M(Ke(n.seriesTransition),function(i){M(Ke(i.to),function(a){for(var o=n.updatedSeries,s=0;s1&&arguments[1]!==void 0?arguments[1]:60,a=null;return function(){for(var o=this,s=arguments.length,l=new Array(s),u=0;uK.jsxs("div",{className:"relative group",children:[e,K.jsx("div",{className:"hidden group-hover:block absolute bg-[#5B5B5B] text-white text-xs px-3 py-2 rounded-sm -right-20 top-10",children:K.jsx("div",{className:"min-w-[30rem]",children:t})})]});var qn=(t=>(t.Propose="propose",t.Approve="approve",t.LedgerLogin="ledgerLogin",t.GithubLogin="githubLogin",t.GithubToken="githubToken",t))(qn||{});const ss={propose:{success:{title:"Number of successful request proposals:",desc:"Number of times a user clicks the approve request button, and a transaction successfully posts on the chain."},failed:{title:"Number of unsuccessful request proposals:",desc:"Instances where a user sends a request proposed message from the front end, but a transaction does not post on the chain."},extraInfo:"- Request proposal indicates that its the first notary to sign an allocation."},approve:{success:{title:"Number of successful request proposals:",desc:"Number of times a user clicks the approve request button, and a transaction successfully posts on the chain."},failed:{title:"Number of unsuccessful request proposals:",desc:"Instances where a user sends a request approved message from the front end, but a transaction does not post on the chain."},extraInfo:"- Request approved indicates that its the first notary to sign an allocation."},ledgerLogin:{success:{title:"Number of Ledger Logins:",desc:"Number of times users successfully link their ledger to the dashboard."},failed:{title:"Number of unsuccessful Ledger Logins:",desc:"Number of times users fail to link their ledger to the dashboard."},extraInfo:""},githubLogin:{success:{title:"Number of GitHub Logins:",desc:"Number of times users successfully initiate the GitHub login process and return to the dashboard."},failed:{title:"Number of unsuccessful GitHub Logins:",desc:"Number of times users fail to link their github account to the dashboard."},extraInfo:""},githubToken:{success:{title:"Number of GitHub Tokens Loaded:",desc:"Number of instances where users successfully login using a GitHub auth token, such as when a user logs in previously and re-logs into GitHub without needing to re-authenticate manually."},failed:{title:"Number of unsuccessful GitHub Tokens Loaded:",desc:"Number of instances fail to load github token"},extraInfo:""}},rge={[qn.Propose]:"Proposal",[qn.Approve]:"Approval",[qn.LedgerLogin]:"Ledger Login",[qn.GithubLogin]:"Github Login",[qn.GithubToken]:"Github Token Load"},Pw=({bgColor:t})=>K.jsx("span",{className:`${t} h-2 w-2 inline-block mr-1`}),QR=({data:t,n:e,bgColor:r})=>K.jsxs("div",{className:"flex items-center text-xs",children:[K.jsx(Pw,{bgColor:r}),"Total count : ",k8(t,e)]}),JR=({tab:t,setTab:e,changeTab:r})=>K.jsx("button",{onClick:()=>e(r),className:`text-xs bg-gray-100 px-2 py-1 ${t===r&&"bg-gradient-to-r from-cyan-500 to-blue-500 text-white transition duration-300"}`,children:r+"D"}),nge=({title:t})=>{var e;return K.jsxs("div",{className:"flex flex-col space-y-2 py-2",children:[K.jsxs("p",{children:[K.jsx(Pw,{bgColor:"bg-chart-blue"}),K.jsx("span",{className:"pr-1 font-semibold",children:ss[t].success.title}),K.jsx("span",{children:ss[t].success.desc})]}),K.jsxs("p",{children:[K.jsx(Pw,{bgColor:"bg-chart-orange"}),K.jsx("span",{className:"pr-1 font-semibold",children:ss[t].failed.title}),K.jsx("span",{children:ss[t].failed.desc})]}),K.jsx("p",{children:(e=ss==null?void 0:ss[t])==null?void 0:e.extraInfo})]})},PG=({graphData:t})=>{const[e,r]=J.useState(7);let n=Object.keys(t.success).map(a=>({day:a,positive:t.success[a],negative:t.failure[a]}));e===7&&(n=n.slice(7,14));const i=O8(n);return K.jsxs("div",{className:"bg-white rounded-md flex flex-col p-4 shadow-md",children:[K.jsxs("div",{className:"flex justify-between px-10 items-center z-10",children:[K.jsx("h4",{className:"text-xl font-semibold",children:rge[t.title]}),K.jsxs("div",{className:"flex space-x-2",children:[K.jsx(QR,{data:t.success,n:e,bgColor:"bg-chart-blue"}),K.jsx(QR,{data:t.failure,n:e,bgColor:"bg-chart-orange"})]}),K.jsxs("div",{className:"flex items-center space-x-4",children:[K.jsx(tge,{comp:K.jsx(nge,{title:t.title}),children:K.jsx(DW,{})}),K.jsxs("div",{children:[K.jsx(JR,{tab:e,setTab:r,changeTab:7}),K.jsx(JR,{tab:e,setTab:r,changeTab:14})]})]})]}),K.jsx(ege,{option:i})]})},ek=()=>K.jsxs("div",{className:"bg-white rounded-md flex flex-col px-16 py-8 shadow-md h-[360px]",children:[K.jsxs("div",{className:"flex justify-between",children:[K.jsx("div",{className:"w-32 bg-gray-300 animate-pulse h-9 mb-10"}),K.jsx("div",{className:"w-32 bg-gray-300 animate-pulse h-9 mb-10"}),K.jsx("div",{className:"w-32 bg-gray-300 animate-pulse h-9 mb-10"})]}),K.jsxs("div",{className:"h-[200px] flex space-x-11 items-end",children:[K.jsx("div",{className:"flex-1 h-5/6 bg-gray-300 animate-pulse"}),K.jsx("div",{className:"flex-1 h-3/6 bg-gray-300 animate-pulse"}),K.jsx("div",{className:"flex-1 h-4/6 bg-gray-300 animate-pulse"}),K.jsx("div",{className:"flex-1 h-3/6 bg-gray-300 animate-pulse"}),K.jsx("div",{className:"flex-1 h-4/6 bg-gray-300 animate-pulse"}),K.jsx("div",{className:"flex-1 h-2/6 bg-gray-300 animate-pulse"}),K.jsx("div",{className:"flex-1 h-full bg-gray-300 animate-pulse"})]})]}),IG=()=>K.jsxs("div",{className:"flex flex-col space-y-4",children:[K.jsx(ek,{}),K.jsx(ek,{})]}),ige=()=>{const t=kb({queryKey:["chart"],queryFn:fB});if(t.isLoading)return K.jsx(IG,{});const e=t.data;let r=[];if(e){const{"Request Approved":n,"Approval Failed":i,"Request Proposed":a,"Proposal Failed":o}=e;r=[{title:qn.Propose,success:a,failure:o},{title:qn.Approve,success:n,failure:i}]}return K.jsx("div",{className:"flex flex-col space-y-4",children:r.map(n=>K.jsx(PG,{graphData:n},n.title))})},age=()=>{const t=kb({queryKey:["chart"],queryFn:fB});if(t.isLoading)return K.jsx(IG,{});const e=t.data;let r=[];if(e){const n=e["Ledger Login Successful"],i=e["Ledger Login Failed"],a=e["Github Login Success"],o=e["Github Login Failed"],s=e["Loaded Github Token Successfully"],l={};for(const u in s)l[u]=0;r=[{title:qn.LedgerLogin,success:n,failure:i},{title:qn.GithubLogin,success:a,failure:o},{title:qn.GithubToken,success:s,failure:l}]}return K.jsx("div",{className:"flex flex-col space-y-4",children:r.map(n=>K.jsx(PG,{graphData:n},n.title))})},oge=()=>K.jsx("div",{children:"About Page for filplus metrics "}),sge=_W([{path:"/",element:K.jsx(V8,{}),children:[{element:K.jsx(ige,{}),index:!0},{path:"user",element:K.jsx(age,{})}]},{path:"/about",element:K.jsx(oge,{})}]),lge=new UW;k_.createRoot(document.getElementById("root")).render(K.jsx(fk.StrictMode,{children:K.jsx(i$,{client:lge,children:K.jsx(cW,{router:sge})})})); diff --git a/dist/favicon.png b/dist/favicon.png deleted file mode 100644 index 5575c89a73bdbe21e8515fa12b3967eee1b49000..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1052 zcmV+%1mpXOP)Dm(~=&?;8>C>e|p5*jOM6GBoF z#WZR{Sm;9I%B1EcE({A6rVDoRLb_@<#)WB!3u{`83)D1G;ztVBmP{eVNew|7Ix`eY z$1=X-;?6iTG7NVHJ)4tz?!D*!&;Ol!-noLU`04^L0{uW2=wT2S6yP366!a?aHOM7A zN!Yj*i-X%hM^G6?w9;%*iffX<1z-$M7Rm$Q2UQ?vK;H#IHqjK26vzZHiYJ@)0DNr$ zE`o;bBHopedEk{oY-|VM2i+iFg4UN1sfEZIFn}jlcLp%7EeJE_@c$z6ZF&u)H%|+F!3{-zh01ud7vkg6Hd;|8FP3Blf7;{05e0v>>U{X zLO6c|{1d_>QfNJ4b5^d^T(ujNneCsy3`c6A{o{01z%a6Mf5$B;paaiY$S^Ph651`& zLb~g5Veo1A?3SbtH};kLMfZh3MgSaB;dD5Qy)^xLyU|n8lJ^he2d)DQ0+r=_dw^5V z2pe1Q-Ac*(D}lif&}WPM%`hB4q%0<2F|H*4g610K;u35HWii+n0=l!vir?c~>&lT@ z;b?>MM!V2lqlgG64k^>G3X2J4Aue2wDmUX+6|y@79JWP#Wf`t4XUFII;q4A(d=}RK zR9ali3@7-$NCR@*Qj2*(wa=K#~zh|}5;c%e~=Zou`s4w@LI zEzf%!7J9NU3!i0eAy1bfQW$ffJ}e{#Um@K1LK39Ow#>Zq>wRB z{2*)^NF4$yc3p4WJ_IH)kJI_0EA1Qt<3Sz5AV~UoP7~moNlk!6foqu3e#sQL-Q{n7 WcGhy5Q%uPK0000 - - - - - - Fil+ Metrics - - - - -
- - - From 0feaa453c958e24d40e8cb6b30989024367cdf5a Mon Sep 17 00:00:00 2001 From: Fabriziogianni7 Date: Fri, 26 May 2023 15:27:23 +0200 Subject: [PATCH 10/11] gitignore --- .gitignore | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 9cd5786..a547bf3 100644 --- a/.gitignore +++ b/.gitignore @@ -8,10 +8,8 @@ pnpm-debug.log* lerna-debug.log* node_modules -# dist/assets -# dist/favicon* -# dist/index* -# dist-ssr +dist +dist-ssr *.local # Editor directories and files From 73b8c25f5f18cddcb18d5b9abd275ecb11b262d2 Mon Sep 17 00:00:00 2001 From: Fabriziogianni7 Date: Fri, 26 May 2023 15:27:50 +0200 Subject: [PATCH 11/11] build command --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5fdbd8f..bd122d0 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "type": "module", "scripts": { "dev": "vite", - "build": "tsc && vite build --base=/dist", + "build": "tsc && vite build", "lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "preview": "vite preview" },