From 1b9f76e28bd007e4fedb378bd4b767f4e271fecd Mon Sep 17 00:00:00 2001 From: Miao_Spring <539943419@qq.com> Date: Sun, 12 Jan 2025 17:13:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0op=E6=8A=BD=E5=A5=96?= =?UTF-8?q?=E5=B0=8F=E5=B7=A5=E5=85=B7=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 3 +- components/miaoContentWarpper.vue | 16 ++++--- components/miaoHeader.vue | 1 + nuxt.config.ts | 42 +++++++++---------- pages/index.vue | 28 +++++++++++-- pages/tool/genshin-gacha.vue | 27 ++++++++++++ .../genshin-gacha/assets/index-0yRbVyE4.css | 1 + .../genshin-gacha/assets/index-DP99bbYD.js | 37 ++++++++++++++++ .../genshin-gacha/assets/worker-CvoViE0S.js | 1 + public/iframe-source/genshin-gacha/index.html | 14 +++++++ 10 files changed, 139 insertions(+), 31 deletions(-) create mode 100644 pages/tool/genshin-gacha.vue create mode 100644 public/iframe-source/genshin-gacha/assets/index-0yRbVyE4.css create mode 100644 public/iframe-source/genshin-gacha/assets/index-DP99bbYD.js create mode 100644 public/iframe-source/genshin-gacha/assets/worker-CvoViE0S.js create mode 100644 public/iframe-source/genshin-gacha/index.html diff --git a/.vscode/settings.json b/.vscode/settings.json index 7e6450d..8d12247 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,6 @@ { "cSpell.words": [ "unplugin" - ] + ], + "vue3snippets.enable-compile-vue-file-on-did-save-code": false } \ No newline at end of file diff --git a/components/miaoContentWarpper.vue b/components/miaoContentWarpper.vue index bce23b8..42a0188 100644 --- a/components/miaoContentWarpper.vue +++ b/components/miaoContentWarpper.vue @@ -1,14 +1,14 @@ - + \ No newline at end of file + diff --git a/components/miaoHeader.vue b/components/miaoHeader.vue index 35df557..e17fb59 100644 --- a/components/miaoHeader.vue +++ b/components/miaoHeader.vue @@ -70,6 +70,7 @@ onMounted(() => { position: relative; background-color: #fff; user-select: none; + z-index: 70582140; #miao-header { box-sizing: border-box; diff --git a/nuxt.config.ts b/nuxt.config.ts index 062b52b..4be766b 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -5,25 +5,25 @@ import Components from "unplugin-vue-components/vite"; // https://nuxt.com/docs/api/configuration/nuxt-config // @ts-ignore export default defineNuxtConfig({ - devtools: { enabled: true }, - alias: { - "@": "/" - }, - vite: { - server: {}, - plugins: [ - AutoImport({ - imports: [ - { - "naive-ui": ["useDialog", "useMessage", "useNotification", "useLoadingBar"] - } - ] - }), - Components({ - resolvers: [NaiveUiResolver()] - }) - ] - }, - modules: ["nuxtjs-naive-ui", "@pinia/nuxt"], - compatibilityDate: "2025-01-12" + devtools: { enabled: true }, + alias: { + "@": "/" + }, + vite: { + server: {}, + plugins: [ + AutoImport({ + imports: [ + { + "naive-ui": ["useDialog", "useMessage", "useNotification", "useLoadingBar"] + } + ] + }), + Components({ + resolvers: [NaiveUiResolver()] + }) + ] + }, + modules: ["nuxtjs-naive-ui", "@pinia/nuxt"], + compatibilityDate: "2025-01-12" }); diff --git a/pages/index.vue b/pages/index.vue index d834c7c..a57ad9d 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -20,7 +20,8 @@
{{ cItem.description }}
@@ -42,9 +43,13 @@ type PageContent = { type ContentItem = { name: string, description: string, - links: { + links?: { name: string, url: string + }[], + nuxtLinks?: { + name: string, + to: string }[] } @@ -104,6 +109,21 @@ const PageContent = reactive([ ] }, ] + }, { + subTitle: '小工具', + show: true, + content: [ + { + name: 'genshin-gacha', + description: '通过模拟来计算抽卡成功率的小工具', + nuxtLinks: [ + { + name: 'demo', + to: 'tool/genshin-gacha' + } + ] + }, + ] } ]) @@ -120,7 +140,8 @@ const switchItemShow = (item: PageContent) => { \ No newline at end of file diff --git a/public/iframe-source/genshin-gacha/assets/index-0yRbVyE4.css b/public/iframe-source/genshin-gacha/assets/index-0yRbVyE4.css new file mode 100644 index 0000000..79d4a02 --- /dev/null +++ b/public/iframe-source/genshin-gacha/assets/index-0yRbVyE4.css @@ -0,0 +1 @@ +body{margin:0;padding:0;min-height:100vh;width:100vw;position:relative}#root{min-height:100vh;width:100%;position:relative;display:flex;justify-content:center;align-items:center}#root .main{flex:1;min-height:100%;max-width:800px;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}#root .main .card{width:100%;height:auto;border:1px solid #cdcdcd;border-radius:5px}#root .main .card .title{height:40px;background-color:#ececec;border-bottom:1px solid #cdcdcd;display:flex;align-items:center;padding-left:10px;font-size:larger;letter-spacing:1px}#root .main .card .container{padding:10px;display:flex;flex-direction:column;gap:10px}#root .main .card .container .controller{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;padding-bottom:10px}#root .main .card .container .controller .target{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;flex-wrap:wrap;gap:5px}#root .main .card .container .controller .target .target-group,#root .main .card .container .controller .target .target-item{display:flex;gap:5px}#root .main .card .container .controller .target .target-item .target-name{display:flex;align-items:center;justify-content:flex-start;font-size:larger;margin-right:3px;text-wrap:nowrap}#root .main .card .container .controller .target .target-item .target-input{margin:0;height:auto;width:30px;padding:5px;border:1px solid #cdcdcd;border-radius:2px;transition:border-color .2s ease-in-out,box-shadow .2s ease-in-out;caret-color:#5eb19f;text-decoration-color:#93979b;color:#333639;text-align:center;font-size:1em}#root .main .card .container .controller .target .target-item .target-input:hover{border-color:#5eb19f}#root .main .card .container .controller .target .target-item .target-input:focus{border-color:#6dccb7;box-shadow:0 0 3px #5eb19f;outline:none}#root .main .card .container .controller .target .target-gap{width:5px}#root .main .card .container .controller .controller-btns{width:100%;display:flex;justify-content:center;gap:15px}#root .main .card .container .controller .controller-btns .controller-button{background-color:#fff;outline:none;border:1px solid #cdcdcd;padding:5px 10px;letter-spacing:3px;border-radius:2px;display:flex;justify-content:center;align-items:center;transition:border-color .2s ease-in-out;cursor:pointer;font-size:large}#root .main .card .container .controller .controller-btns .controller-button:hover{border-color:#5eb19f}#root .main .card .container .controller .controller-btns .controller-button:active{border-color:#6dccb7;outline:none}#root .main .card .container .result{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;border-top:1px solid #cdcdcd;padding-top:10px}#root .main .card .container .result .result-title{font-size:larger;letter-spacing:2px;margin-bottom:10px}.echarts-container{width:100%;height:100%}.echarts-container .echarts{width:100%;height:500px} diff --git a/public/iframe-source/genshin-gacha/assets/index-DP99bbYD.js b/public/iframe-source/genshin-gacha/assets/index-DP99bbYD.js new file mode 100644 index 0000000..fa3597c --- /dev/null +++ b/public/iframe-source/genshin-gacha/assets/index-DP99bbYD.js @@ -0,0 +1,37 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.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)}})();const x1=(e,t)=>e===t,Yo={equals:x1};let bg=Dg;const zr=1,Xo=2,Tg={owned:null,cleanups:null,context:null,owner:null};var $t=null;let ou=null,b1=null,At=null,Ht=null,fr=null,Cs=0;function T1(e,t){const r=At,n=$t,i=e.length===0,a=t===void 0?n:t,o=i?Tg:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=i?e:()=>e(()=>Ms(()=>la(o)));$t=o,At=null;try{return Ia(s,!0)}finally{At=r,$t=n}}function ue(e,t){t=t?Object.assign({},Yo,t):Yo;const r={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},n=i=>(typeof i=="function"&&(i=i(r.value)),Mg(r,i));return[Cg.bind(r),n]}function Ae(e,t,r){const n=Hf(e,t,!1,zr);La(n)}function C1(e,t,r){bg=L1;const n=Hf(e,t,!1,zr);n.user=!0,fr?fr.push(n):La(n)}function M1(e,t,r){r=r?Object.assign({},Yo,r):Yo;const n=Hf(e,t,!0,0);return n.observers=null,n.observerSlots=null,n.comparator=r.equals||void 0,La(n),Cg.bind(n)}function Ms(e){if(At===null)return e();const t=At;At=null;try{return e()}finally{At=t}}function Cg(){if(this.sources&&this.state)if(this.state===zr)La(this);else{const e=Ht;Ht=null,Ia(()=>Zo(this),!1),Ht=e}if(At){const e=this.observers?this.observers.length:0;At.sources?(At.sources.push(this),At.sourceSlots.push(e)):(At.sources=[this],At.sourceSlots=[e]),this.observers?(this.observers.push(At),this.observerSlots.push(At.sources.length-1)):(this.observers=[At],this.observerSlots=[At.sources.length-1])}return this.value}function Mg(e,t,r){let n=e.value;return(!e.comparator||!e.comparator(n,t))&&(e.value=t,e.observers&&e.observers.length&&Ia(()=>{for(let i=0;i1e6)throw Ht=[],new Error},!1)),t}function La(e){if(!e.fn)return;la(e);const t=Cs;D1(e,e.value,t)}function D1(e,t,r){let n;const i=$t,a=At;At=$t=e;try{n=e.fn(t)}catch(o){return e.pure&&(e.state=zr,e.owned&&e.owned.forEach(la),e.owned=null),e.updatedAt=r+1,Lg(o)}finally{At=a,$t=i}(!e.updatedAt||e.updatedAt<=r)&&(e.updatedAt!=null&&"observers"in e?Mg(e,n):e.value=n,e.updatedAt=r)}function Hf(e,t,r,n=zr,i){const a={fn:e,state:n,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:$t,context:$t?$t.context:null,pure:r};return $t===null||$t!==Tg&&($t.owned?$t.owned.push(a):$t.owned=[a]),a}function qo(e){if(e.state===0)return;if(e.state===Xo)return Zo(e);if(e.suspense&&Ms(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt=0;r--)if(e=t[r],e.state===zr)La(e);else if(e.state===Xo){const n=Ht;Ht=null,Ia(()=>Zo(e,t[0]),!1),Ht=n}}function Ia(e,t){if(Ht)return e();let r=!1;t||(Ht=[]),fr?r=!0:fr=[],Cs++;try{const n=e();return A1(r),n}catch(n){r||(fr=null),Ht=null,Lg(n)}}function A1(e){if(Ht&&(Dg(Ht),Ht=null),e)return;const t=fr;fr=null,t.length&&Ia(()=>bg(t),!1)}function Dg(e){for(let t=0;t=0;t--)la(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)la(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function I1(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function Lg(e,t=$t){throw I1(e)}function Ig(e,t){return Ms(()=>e(t||{}))}function P1(e,t,r){let n=r.length,i=t.length,a=n,o=0,s=0,u=t[i-1].nextSibling,l=null;for(;of-s){const d=t[o];for(;s{i=a,t===document?e():fn(t,e(),t.firstChild?null:void 0,r)},n.owner),()=>{i(),t.textContent=""}}function Vf(e,t,r){let n;const i=()=>{const o=document.createElement("template");return o.innerHTML=e,o.content.firstChild},a=()=>(n||(n=i())).cloneNode(!0);return a.cloneNode=a,a}function xe(e,t,r,n){if(Array.isArray(r)){const i=r[0];e.addEventListener(t,r[0]=a=>i.call(e,r[1],a))}else e.addEventListener(t,r,typeof r!="function"&&r)}function R1(e,t,r){return Ms(()=>e(t,r))}function fn(e,t,r,n){if(r!==void 0&&!n&&(n=[]),typeof t!="function")return jo(e,t,n,r);Ae(i=>jo(e,t(),i,r),n)}function jo(e,t,r,n,i){for(;typeof r=="function";)r=r();if(t===r)return r;const a=typeof t,o=n!==void 0;if(e=o&&r[0]&&r[0].parentNode||e,a==="string"||a==="number"){if(a==="number"&&(t=t.toString(),t===r))return r;if(o){let s=r[0];s&&s.nodeType===3?s.data!==t&&(s.data=t):s=document.createTextNode(t),r=Cn(e,r,n,s)}else r!==""&&typeof r=="string"?r=e.firstChild.data=t:r=e.textContent=t}else if(t==null||a==="boolean")r=Cn(e,r,n);else{if(a==="function")return Ae(()=>{let s=t();for(;typeof s=="function";)s=s();r=jo(e,s,r,n)}),()=>r;if(Array.isArray(t)){const s=[],u=r&&Array.isArray(r);if(Pl(s,t,r,i))return Ae(()=>r=jo(e,s,r,n,!0)),()=>r;if(s.length===0){if(r=Cn(e,r,n),o)return r}else u?r.length===0?uv(e,s,n):P1(e,r,s):(r&&Cn(e),uv(e,s));r=s}else if(t.nodeType){if(Array.isArray(r)){if(o)return r=Cn(e,r,n,t);Cn(e,r,null,t)}else r==null||r===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);r=t}}return r}function Pl(e,t,r,n){let i=!1;for(let a=0,o=t.length;a=0;o--){const s=t[o];if(i!==s){const u=s.parentNode===e;!a&&!o?u?e.replaceChild(i,s):e.insertBefore(i,r):u&&s.remove()}else a=!0}}else e.insertBefore(i,r);return[i]}function O1(e){return new Worker(""+new URL("worker-CvoViE0S.js",import.meta.url).href,{name:e==null?void 0:e.name})}function k1(e,t){let r;const n=new Promise(a=>{r=a}),i=new O1;return i.onmessage=a=>{a.data.type==="init"?r!==void 0&&(r(),r=void 0):a.data.type==="data"&&t(a.data.data)},i.postMessage(e),{initWorker:n,stopWorker:()=>{i.terminate()}}}var Pg=typeof global=="object"&&global&&global.Object===Object&&global,B1=typeof self=="object"&&self&&self.Object===Object&&self,Ke=Pg||B1||Function("return this")(),ii=Ke.Symbol,Eg=Object.prototype,N1=Eg.hasOwnProperty,F1=Eg.toString,mi=ii?ii.toStringTag:void 0;function z1(e){var t=N1.call(e,mi),r=e[mi];try{e[mi]=void 0;var n=!0}catch{}var i=F1.call(e);return n&&(t?e[mi]=r:delete e[mi]),i}var G1=Object.prototype,H1=G1.toString;function V1(e){return H1.call(e)}var $1="[object Null]",W1="[object Undefined]",lv=ii?ii.toStringTag:void 0;function Pa(e){return e==null?e===void 0?W1:$1:lv&&lv in Object(e)?z1(e):V1(e)}function Ea(e){return e!=null&&typeof e=="object"}var $f=Array.isArray;function Ra(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var U1="[object AsyncFunction]",Y1="[object Function]",X1="[object GeneratorFunction]",q1="[object Proxy]";function Rg(e){if(!Ra(e))return!1;var t=Pa(e);return t==Y1||t==X1||t==U1||t==q1}var su=Ke["__core-js_shared__"],fv=function(){var e=/[^.]+$/.exec(su&&su.keys&&su.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Z1(e){return!!fv&&fv in e}var j1=Function.prototype,K1=j1.toString;function Sn(e){if(e!=null){try{return K1.call(e)}catch{}try{return e+""}catch{}}return""}var Q1=/[\\^$.*+?()[\]{}|]/g,J1=/^\[object .+?Constructor\]$/,tw=Function.prototype,ew=Object.prototype,rw=tw.toString,nw=ew.hasOwnProperty,iw=RegExp("^"+rw.call(nw).replace(Q1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function aw(e){if(!Ra(e)||Z1(e))return!1;var t=Rg(e)?iw:J1;return t.test(Sn(e))}function ow(e,t){return e==null?void 0:e[t]}function xn(e,t){var r=ow(e,t);return aw(r)?r:void 0}var El=xn(Ke,"WeakMap"),hv=Object.create,sw=function(){function e(){}return function(t){if(!Ra(t))return{};if(hv)return hv(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function uw(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r-1&&e%1==0&&e-1&&e%1==0&&e<=pw}function Fg(e){return e!=null&&Ng(e.length)&&!Rg(e)}var gw=Object.prototype;function Wf(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||gw;return e===r}function yw(e,t){for(var r=-1,n=Array(e);++r-1}function CS(e,t){var r=this.__data__,n=As(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function pr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t"u"&&typeof self<"u"?q.worker=!0:!q.hasGlobalWindow||"Deno"in window?(q.node=!0,q.svgSupported=!0):db(navigator.userAgent,q);function db(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var jf=12,pb="sans-serif",_n=jf+"px "+pb,gb=20,yb=100,mb="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function _b(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r=0)s=o*r.length;else for(var u=0;u>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[u]+":0",i[l]+":0",n[1-u]+":auto",i[1-l]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function Wb(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=e[l].getBoundingClientRect(),h=2*l,c=f.left,v=f.top;o.push(c,v),u=u&&a&&c===a[h]&&v===a[h+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return u&&i?i:(t.srcCoords=o,t[n]=r?Ov(s,o):Ov(o,s))}function sy(e){return e.nodeName.toUpperCase()==="CANVAS"}var Ub=/([&<>"'])/g,Yb={"&":"&","<":"<",">":">",'"':""","'":"'"};function Kt(e){return e==null?"":(e+"").replace(Ub,function(t,r){return Yb[r]})}var Xb=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,hu=[],qb=q.browser.firefox&&+q.browser.version.split(".")[0]<39;function Vl(e,t,r,n){return r=r||{},n?Bv(e,t,r):qb&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):Bv(e,t,r),r}function Bv(e,t,r){if(q.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(sy(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Hl(hu,e,n,i)){r.zrX=hu[0],r.zrY=hu[1];return}}r.zrX=r.zrY=0}function eh(e){return e||window.event}function ve(e,t,r){if(t=eh(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Vl(e,o,t,r)}else{Vl(e,t,t,r);var a=Zb(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Xb.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Zb(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function jb(e,t,r,n){e.addEventListener(t,r,n)}function Kb(e,t,r,n){e.removeEventListener(t,r,n)}var uy=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},Qb=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o1&&n&&n.length>1){var a=Nv(n)/Nv(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Jb(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function jn(){return[1,0,0,1,0,0]}function rh(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function tT(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Kn(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],u=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=u,e}function $l(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function nh(e,t,r,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],u=t[3],l=t[5],f=Math.sin(r),h=Math.cos(r);return e[0]=i*h+s*f,e[1]=-i*f+s*h,e[2]=a*h+u*f,e[3]=-a*f+h*u,e[4]=h*(o-n[0])+f*(l-n[1])+n[0],e[5]=h*(l-n[1])-f*(o-n[0])+n[1],e}function eT(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function Rs(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],u=r*o-a*n;return u?(u=1/u,e[0]=o*u,e[1]=-a*u,e[2]=-n*u,e[3]=r*u,e[4]=(n*s-o*i)*u,e[5]=(a*i-r*s)*u,e):null}var U=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}(),Wa=Math.min,Ua=Math.max,Gr=new U,Hr=new U,Vr=new U,$r=new U,_i=new U,wi=new U,it=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=Wa(t.x,this.x),n=Wa(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ua(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ua(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=jn();return $l(a,a,[-r.x,-r.y]),eT(a,a,[n,i]),$l(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,u=t.x,l=t.x+t.width,f=t.y,h=t.y+t.height,c=!(ad&&(d=_,gd&&(d=w,y=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Gr.x=Vr.x=r.x,Gr.y=$r.y=r.y,Hr.x=$r.x=r.x+r.width,Hr.y=Vr.y=r.y+r.height,Gr.transform(n),$r.transform(n),Hr.transform(n),Vr.transform(n),t.x=Wa(Gr.x,Hr.x,Vr.x,$r.x),t.y=Wa(Gr.y,Hr.y,Vr.y,$r.y);var u=Ua(Gr.x,Hr.x,Vr.x,$r.x),l=Ua(Gr.y,Hr.y,Vr.y,$r.y);t.width=u-t.x,t.height=l-t.y},e}(),ly="silent";function rT(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:nT}}function nT(){uy(this.event)}var iT=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Je),Si=function(){function e(t,r){this.x=t,this.y=r}return e}(),aT=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],cu=new it(0,0,0,0),fy=function(e){H(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new Si(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new iT,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Gb(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(M(aT,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=hy(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new Si(n,i):this.findHover(n,i),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(u,"mousemove",r),l&&l!==s&&this.dispatchToElement(u,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Si(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=rT(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(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new Si(r,n);if(Fv(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new it(r-l,n-l,u,u),h=a.length-1;h>=0;h--){var c=a[h];c!==i&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(cu.copy(c.getBoundingRect()),c.transform&&cu.applyTransform(c.transform),cu.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,g=Math.PI*2,p=0;p4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function oT(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?ly:!0}return!1}function Fv(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=oT(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==ly)){t.target=o;break}}}function hy(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var vy=32,xi=7;function sT(e){for(var t=0;e>=vy;)t|=e&1,e>>=1;return e+t}function zv(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function uT(e,t,r){for(r--;t>>1,i(a,e[u])<0?s=u:o=u+1;var l=n-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function du(e,t,r,n,i,a){var o=0,s=0,u=1;if(a(e,t[r+i])>0){for(s=n-i;u0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}else{for(s=i+1;us&&(u=s);var l=o;o=i-u,u=i-l}for(o++;o>>1);a(e,t[r+f])>0?o=f+1:u=f}return u}function pu(e,t,r,n,i,a){var o=0,s=0,u=1;if(a(e,t[r+i])<0){for(s=i+1;us&&(u=s);var l=o;o=i-u,u=i-l}else{for(s=n-i;u=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}for(o++;o>>1);a(e,t[r+f])<0?u=f:o=f+1}return u}function lT(e,t){var r=xi,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function u(){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;f(v)}}function l(){for(;a>1;){var v=a-2;v>0&&i[v-1]=xi||b>=xi);if(T)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),d===1){for(y=0;y=0;y--)e[S+y]=e[x+y];e[w]=o[_];return}for(var b=r;;){var T=0,C=0,D=!1;do if(t(o[_],e[m])<0){if(e[w--]=e[m--],T++,C=0,--d===0){D=!0;break}}else if(e[w--]=o[_--],C++,T=0,--p===1){D=!0;break}while((T|C)=0;y--)e[S+y]=e[x+y];if(d===0){D=!0;break}}if(e[w--]=o[_--],--p===1){D=!0;break}if(C=p-du(e[m],o,0,p,p-1,t),C!==0){for(w-=C,_-=C,p-=C,S=w+1,x=_+1,y=0;y=xi||C>=xi);if(D)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),p===1){for(w-=d,m-=d,S=w+1,x=m+1,y=d-1;y>=0;y--)e[S+y]=e[x+y];e[w]=o[_]}else{if(p===0)throw new Error;for(x=w-(p-1),y=0;ys&&(u=s),Gv(e,r,r+u,r+a,t),a=u}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var ie=1,zi=2,Vn=4,Hv=!1;function gu(){Hv||(Hv=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Vv(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var fT=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Vv}return e.prototype.traverse=function(t,r){for(var n=0;n0&&(f.__clipPaths=[]),isNaN(f.z)&&(gu(),f.z=0),isNaN(f.z2)&&(gu(),f.z2=0),isNaN(f.zlevel)&&(gu(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,r,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,r,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),Jo;Jo=q.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var ji={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-ji.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?ji.bounceIn(e*2)*.5:ji.bounceOut(e*2-1)*.5+.5}},Ya=Math.pow,Ir=Math.sqrt,ts=1e-8,cy=1e-4,$v=Ir(3),Xa=1/3,He=hi(),pe=hi(),Qn=hi();function Ar(e){return e>-ts&&ets||e<-ts}function Ot(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function Wv(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function py(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),u=3*(t-e),l=e-i,f=s*s-3*o*u,h=s*u-9*o*l,c=u*u-3*s*l,v=0;if(Ar(f)&&Ar(h))if(Ar(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[v++]=d)}else{var g=h*h-4*f*c;if(Ar(g)){var p=h/f,d=-s/o+p,y=-p/2;d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y)}else if(g>0){var m=Ir(g),_=f*s+1.5*o*(-h+m),w=f*s+1.5*o*(-h-m);_<0?_=-Ya(-_,Xa):_=Ya(_,Xa),w<0?w=-Ya(-w,Xa):w=Ya(w,Xa);var d=(-s-(_+w))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var x=(2*f*s-3*o*h)/(2*Ir(f*f*f)),S=Math.acos(x)/3,b=Ir(f),T=Math.cos(S),d=(-s-2*b*T)/(3*o),y=(-s+b*(T+$v*Math.sin(S)))/(3*o),C=(-s+b*(T-$v*Math.sin(S)))/(3*o);d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y),C>=0&&C<=1&&(a[v++]=C)}}return v}function gy(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,u=0;if(Ar(o)){if(dy(a)){var l=-s/a;l>=0&&l<=1&&(i[u++]=l)}}else{var f=a*a-4*o*s;if(Ar(f))i[0]=-a/(2*o);else if(f>0){var h=Ir(f),l=(-a+h)/(2*o),c=(-a-h)/(2*o);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function Or(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,u=(n-r)*i+r,l=(s-o)*i+o,f=(u-s)*i+s,h=(f-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=f,a[6]=u,a[7]=n}function yy(e,t,r,n,i,a,o,s,u,l,f){var h,c=.005,v=1/0,d,g,p,y;He[0]=u,He[1]=l;for(var m=0;m<1;m+=.05)pe[0]=Ot(e,r,i,o,m),pe[1]=Ot(t,n,a,s,m),p=Zn(He,pe),p=0&&p=0&&l<=1&&(i[u++]=l)}}else{var f=o*o-4*a*s;if(Ar(f)){var l=-o/(2*a);l>=0&&l<=1&&(i[u++]=l)}else if(f>0){var h=Ir(f),l=(-o+h)/(2*a),c=(-o-h)/(2*a);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function my(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function es(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function _y(e,t,r,n,i,a,o,s,u){var l,f=.005,h=1/0;He[0]=o,He[1]=s;for(var c=0;c<1;c+=.05){pe[0]=zt(e,r,i,c),pe[1]=zt(t,n,a,c);var v=Zn(He,pe);v=0&&v=1?1:py(0,n,a,1,u,s)&&Ot(0,i,o,1,s[0])}}}var pT=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||ee,this.ondestroy=t.ondestroy||ee,this.onrestart=t.onrestart||ee,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var u=i%n;this._startTime=t-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=J(t)?t:ji[t]||wy(t)},e}(),Sy=function(){function e(t){this.value=t}return e}(),gT=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new Sy(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Oa=function(){function e(t){this._list=new gT,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=n.head;n.remove(u),delete i[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=r:s=new Sy(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Yv={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 Ki(e){return e=Math.round(e),e<0?0:e>255?255:e}function Xv(e){return e<0?0:e>1?1:e}function yu(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ki(parseFloat(t)/100*255):Ki(parseInt(t,10))}function Qi(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Xv(parseFloat(t)/100):Xv(parseFloat(t))}function mu(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function he(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function Wl(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var xy=new Oa(20),qa=null;function Dn(e,t){qa&&Wl(qa,t),qa=xy.put(e,qa||t.slice())}function Jn(e,t){if(e){t=t||[];var r=xy.get(e);if(r)return Wl(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in Yv)return Wl(t,Yv[n]),Dn(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){he(t,0,0,0,1);return}return he(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Dn(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){he(t,0,0,0,1);return}return he(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Dn(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var u=n.substr(0,o),l=n.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?he(t,+l[0],+l[1],+l[2],1):he(t,0,0,0,1);f=Qi(l.pop());case"rgb":if(l.length>=3)return he(t,yu(l[0]),yu(l[1]),yu(l[2]),l.length===3?f:Qi(l[3])),Dn(e,t),t;he(t,0,0,0,1);return;case"hsla":if(l.length!==4){he(t,0,0,0,1);return}return l[3]=Qi(l[3]),qv(l,t),Dn(e,t),t;case"hsl":if(l.length!==3){he(t,0,0,0,1);return}return qv(l,t),Dn(e,t),t;default:return}}he(t,0,0,0,1)}}function qv(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Qi(e[1]),i=Qi(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],he(t,Ki(mu(o,a,r+1/3)*255),Ki(mu(o,a,r)*255),Ki(mu(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Zv(e,t){var r=Jn(e);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-t)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return by(r,r.length===4?"rgba":"rgb")}}function by(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function rs(e,t){var r=Jn(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var jv=new Oa(100);function Kv(e){if(W(e)){var t=jv.get(e);return t||(t=Zv(e,-.1),jv.put(e,t)),t}else if(Ps(e)){var r=B({},e);return r.colorStops=$(e.colorStops,function(n){return{offset:n.offset,color:Zv(n.color,-.1)}}),r}return e}function yT(e){return e.type==="linear"}function mT(e){return e.type==="radial"}(function(){return q.hasGlobalWindow&&J(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var Ul=Array.prototype.slice;function ar(e,t,r){return(t-e)*r+e}function _u(e,t,r,n){for(var i=t.length,a=0;an?t:e,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 u=a;u=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Jv,u=r;if(Xt(r)){var l=xT(r);s=l,(l===1&&!vt(r[0])||l===2&&!vt(r[0][0]))&&(o=!0)}else if(vt(r)&&!Ko(r))s=ja;else if(W(r))if(!isNaN(+r))s=ja;else{var f=Jn(r);f&&(u=f,s=Gi)}else if(Ps(r)){var h=B({},u);h.colorStops=$(r.colorStops,function(v){return{offset:v.offset,color:Jn(v.color)}}),yT(r)?s=Yl:mT(r)&&(s=Xl),u=h}a===0?this.valType=s:(s!==this.valType||s===Jv)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:u,rawValue:r,percent:0};return n&&(c.easing=n,c.easingFunc=J(n)?n:ji[n]||wy(n)),i.push(c),c},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(g,p){return g.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,u=Ka(i),l=tc(i),f=0;f=0&&!(o[f].percent<=r);f--);f=c(f,s-2)}else{for(f=h;fr);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=r;var p=d.percent-v.percent,y=p===0?1:c((r-v.percent)/p,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:l?bi:t[u];if((Ka(a)||l)&&!m&&(m=this._additiveValue=[]),this.discrete)t[u]=y<1?v.rawValue:d.rawValue;else if(Ka(a))a===ko?_u(m,v[i],d[i],y):_T(m,v[i],d[i],y);else if(tc(a)){var _=v[i],w=d[i],x=a===Yl;t[u]={type:x?"linear":"radial",x:ar(_.x,w.x,y),y:ar(_.y,w.y,y),colorStops:$(_.colorStops,function(b,T){var C=w.colorStops[T];return{offset:ar(b.offset,C.offset,y),color:Oo(_u([],b.color,C.color,y))}}),global:w.global},x?(t[u].x2=ar(_.x2,w.x2,y),t[u].y2=ar(_.y2,w.y2,y)):t[u].r=ar(_.r,w.r,y)}else if(l)_u(m,v[i],d[i],y),n||(t[u]=Oo(m));else{var S=ar(v[i],d[i],y);n?this._additiveValue=S:t[u]=S}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===ja?t[n]=t[n]+i:r===Gi?(Jn(t[n],bi),Za(bi,bi,i,1),t[n]=Oo(bi)):r===ko?Za(t[n],t[n],i,1):r===Ty&&Qv(t[n],t[n],i,1)},e}(),ih=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){Jf("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,gt(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o0&&u.addKeyframe(0,Ro(l),i),this._trackKeys.push(s)}u.addKeyframe(t,Ro(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();function Yn(){return new Date().getTime()}var TT=function(e){H(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=Yn()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Jo(n),!r._paused&&r.update())}Jo(n)},t.prototype.start=function(){this._running||(this._time=Yn(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Yn(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Yn()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new ih(r,n.loop);return this.addAnimator(i),i},t}(Je),CT=300,wu=q.domSupported,Su=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=$(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),ec={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},rc=!1;function ql(e){var t=e.pointerType;return t==="pen"||t==="touch"}function MT(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function xu(e){e&&(e.zrByTouch=!0)}function DT(e,t){return ve(e.dom,new AT(e,t),!0)}function Cy(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var AT=function(){function e(t,r){this.stopPropagation=ee,this.stopImmediatePropagation=ee,this.preventDefault=ee,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Me={mousedown:function(e){e=ve(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ve(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=ve(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ve(this.dom,e);var t=e.toElement||e.relatedTarget;Cy(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){rc=!0,e=ve(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){rc||(e=ve(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ve(this.dom,e),xu(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Me.mousemove.call(this,e),Me.mousedown.call(this,e)},touchmove:function(e){e=ve(this.dom,e),xu(e),this.handler.processGesture(e,"change"),Me.mousemove.call(this,e)},touchend:function(e){e=ve(this.dom,e),xu(e),this.handler.processGesture(e,"end"),Me.mouseup.call(this,e),+new Date-+this.__lastTouchMomentac||e<-ac}var Ur=[],An=[],Tu=jn(),Cu=Math.abs,ka=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Wr(this.rotation)||Wr(this.x)||Wr(this.y)||Wr(this.scaleX-1)||Wr(this.scaleY-1)||Wr(this.skewX)||Wr(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(ic(n),this.invTransform=null);return}n=n||jn(),r?this.getLocalTransform(n):ic(n),t&&(r?Kn(n,t,n):tT(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Ur);var n=Ur[0]<0?-1:1,i=Ur[1]<0?-1:1,a=((Ur[0]-n)*r+n)/Ur[0]||0,o=((Ur[1]-i)*r+i)/Ur[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||jn(),Rs(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||jn(),Kn(An,t.invTransform,r),r=An);var n=this.originX,i=this.originY;(n||i)&&(Tu[4]=n,Tu[5]=i,Kn(An,r,Tu),An[4]-=n,An[5]-=i,r=An),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&ye(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&ye(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&Cu(t[0]-1)>1e-10&&Cu(t[3]-1)>1e-10?Math.sqrt(Cu(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){RT(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,u=t.anchorY,l=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||u){var d=n+s,g=i+u;r[4]=-d*a-c*g*o,r[5]=-g*o-v*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=v*a,r[2]=c*o,l&&nh(r,r,l),r[4]+=n+f,r[5]+=i+h,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),da=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function RT(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function is(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,u=r.x,l=r.y,f="left",h="top";if(n instanceof Array)u+=kr(n[0],r.width),l+=kr(n[1],r.height),f=null,h=null;else switch(n){case"left":u-=i,l+=s,f="right",h="middle";break;case"right":u+=i+o,l+=s,h="middle";break;case"top":u+=o/2,l-=i,f="center",h="bottom";break;case"bottom":u+=o/2,l+=a+i,f="center";break;case"inside":u+=o/2,l+=s,f="center",h="middle";break;case"insideLeft":u+=i,l+=s,h="middle";break;case"insideRight":u+=o-i,l+=s,f="right",h="middle";break;case"insideTop":u+=o/2,l+=i,f="center";break;case"insideBottom":u+=o/2,l+=a-i,f="center",h="bottom";break;case"insideTopLeft":u+=i,l+=i;break;case"insideTopRight":u+=o-i,l+=i,f="right";break;case"insideBottomLeft":u+=i,l+=a-i,h="bottom";break;case"insideBottomRight":u+=o-i,l+=a-i,f="right",h="bottom";break}return e=e||{},e.x=u,e.y=l,e.align=f,e.verticalAlign=h,e}var Mu="__zr_normal__",Du=da.concat(["ignore"]),OT=Rr(da,function(e,t){return e[t]=!0,e},{ignore:!1}),Ln={},kT=new it(0,0,0,0),Os=function(){function e(t){this.id=ry(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,u=!1;a.parent=i?this:null;var l=!1;if(a.copyTransform(r),n.position!=null){var f=kT;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ln,n,f):is(Ln,n,f),a.x=Ln.x,a.y=Ln.y,o=Ln.align,s=Ln.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var c=void 0,v=void 0;h==="center"?(c=f.width*.5,v=f.height*.5):(c=kr(h[0],f.width),v=kr(h[1],f.height)),l=!0,a.originX=-a.x+c+(i?0:f.x),a.originY=-a.y+v+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],l||(a.originX=-d[0],a.originY=-d[1]));var g=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;g&&this.canBeInsideText()?(y=n.insideFill,m=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,m=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==p.fill||m!==p.stroke||_!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(u=!0,p.fill=y,p.stroke=m,p.autoStroke=_,p.align=o,p.verticalAlign=s,r.setDefaultTextStyle(p)),r.__dirty|=ie,u&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ql:Kl},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Jn(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,by(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},B(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(X(t))for(var n=t,i=gt(n),a=0;a0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(Mu,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===Mu,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(lt(s,t)>=0&&(r||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!a){Jf("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(l);var f=!!(l&&l.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,r,!n&&!this.__inHover&&u&&u.duration>0,u);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,r,n,f),c&&c.useState(t,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ie),l}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var u=0;u0,d);var g=this._textContent,p=this._textGuide;g&&g.useStates(t,r,c),p&&p.useStates(t,r,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ie)}},e.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=lt(i,t),o=lt(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o0&&r.during&&a[0].during(function(d,g){r.during(g)});for(var c=0;c0||i.force&&!o.length){var T=void 0,C=void 0,D=void 0;if(s){C={},c&&(T={});for(var w=0;w<_;w++){var y=g[w];C[y]=r[y],c?T[y]=n[y]:r[y]=n[y]}}else if(c){D={};for(var w=0;w<_;w++){var y=g[w];D[y]=Ro(r[y]),NT(r,n,y)}}var x=new ih(r,!1,!1,h?Tt(d,function(P){return P.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),c&&T&&x.whenWithKeys(0,T,g),D&&x.whenWithKeys(0,D,g),x.whenWithKeys(l??500,s?C:n,g).delay(f||0),e.addAnimator(x,t),o.push(x)}}var Ee=function(e){H(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,i=0;i=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=lt(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=lt(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this._disposed||this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/u*l+o}function pt(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return W(e)?WT(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Lt(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),Ly),e=(+e).toFixed(t),r?e:+e}function sr(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return UT(e)}function UT(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function YT(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function XT(e,t){var r=Rr(e,function(v,d){return v+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=$(e,function(v){return(isNaN(v)?0:v)/r*n*100}),a=n*100,o=$(i,function(v){return Math.floor(v)}),s=Rr(o,function(v,d){return v+d},0),u=$(i,function(v,d){return v-o[d]});sl&&(l=u[h],f=h);++o[f],u[f]=0,++s}return $(o,function(v){return v/n})}function qT(e,t){var r=Math.max(sr(e),sr(t)),n=e+t;return r>Ly?n:Lt(n,r)}function Iy(e){var t=Math.PI*2;return(e%t+t)%t}function as(e){return e>-lc&&e=10&&t++,t}function Py(e,t){var r=sh(e),n=Math.pow(10,r),i=e/n,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function Br(e){var t=parseFloat(e);return t==e&&(t!==0||!W(e)||e.indexOf("x")<=0)?t:NaN}function KT(e){return!isNaN(Br(e))}function Ey(){return Math.round(Math.random()*9)}function Ry(e,t){return t===0?e:Ry(t,e%t)}function fc(e,t){return e==null?t:t==null?e:e*t/Ry(e,t)}function tt(e){throw new Error(e)}function hc(e,t,r){return(t-e)*r+e}var Oy="series\0",QT="\0_ec_\0";function Mt(e){return e instanceof Array?e:e==null?[]:[e]}function tf(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,i=r.length;n=0||a&<(a,u)<0)){var l=n.getShallow(u,t);l!=null&&(o[e[s][0]]=l)}}return o}}var SC=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],xC=ga(SC),bC=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return xC(this,t,r)},e}(),ef=new Oa(50);function TC(e){if(typeof e=="string"){var t=ef.get(e);return t&&t.image}else return e}function Gy(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=ef.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!Bs(t)&&a.pending.push(o)):(t=li.loadImage(e,cc,cc),t.__zrImageSrc=e,ef.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function cc(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;u++)s-=o;var l=ae(r,t);return l>s&&(r="",l=0),s=e-l,i.ellipsis=r,i.ellipsisWidth=l,i.contentWidth=s,i.containerWidth=e,i}function Vy(e,t,r){var n=r.containerWidth,i=r.font,a=r.contentWidth;if(!n){e.textLine="",e.isTruncated=!1;return}var o=ae(t,i);if(o<=n){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=r.maxIterations){t+=r.ellipsis;break}var u=s===0?MC(t,a,r.ascCharWidth,r.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,u),o=ae(t,i)}t===""&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function MC(e,t,r,n){for(var i=0,a=0,o=e.length;ad&&l){var g=Math.floor(d/s);f=f||c.length>g,c=c.slice(0,g)}if(e&&a&&h!=null)for(var p=Hy(h,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y={},m=0;ms&&Eu(r,e.substring(s,l),t,o),Eu(r,u[2],t,o,u[1]),s=Pu.lastIndex}si){var L=r.lines.length;S>0?(_.tokens=_.tokens.slice(0,S),y(_,x,w),r.lines=r.lines.slice(0,m+1)):r.lines=r.lines.slice(0,m),r.isTruncated=r.isTruncated||r.lines.length0&&d+n.accumWidth>n.width&&(f=t.split(` +`),l=!0),n.accumWidth=d}else{var g=$y(t,u,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+v,h=g.linesWidths,f=g.lines}}else f=t.split(` +`);for(var p=0;p=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var EC=Rr(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function RC(e){return PC(e)?!!EC[e]:!0}function $y(e,t,r,n,i){for(var a=[],o=[],s="",u="",l=0,f=0,h=0;hr:i+f+v>r){f?(s||u)&&(d?(s||(s=u,u="",l=0,f=l),a.push(s),o.push(f-l),u+=c,l+=v,s="",f=l):(u&&(s+=u,u="",l=0),a.push(s),o.push(f),s=c,f=v)):d?(a.push(u),o.push(l),u=c,l=v):(a.push(c),o.push(v));continue}f+=v,d?(u+=c,l+=v):(u&&(s+=u,u="",l=0),s+=c)}return!a.length&&!s&&(s=e,u="",l=0),u&&(s+=u),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var rf="__zr_style_"+Math.round(Math.random()*10),gn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ns={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};gn[rf]=!0;var pc=["z","z2","invisible"],OC=["invisible"],vi=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=gt(r),i=0;i1e-4){s[0]=e-r,s[1]=t-n,u[0]=e+r,u[1]=t+n;return}if(Qa[0]=Bu(i)*r+e,Qa[1]=ku(i)*n+t,Ja[0]=Bu(a)*r+e,Ja[1]=ku(a)*n+t,l(s,Qa,Ja),f(u,Qa,Ja),i=i%Xr,i<0&&(i=i+Xr),a=a%Xr,a<0&&(a=a+Xr),i>a&&!o?a+=Xr:ii&&(to[0]=Bu(v)*r+e,to[1]=ku(v)*n+t,l(s,to,s),f(u,to,u))}var at={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},qr=[],Zr=[],Be=[],_r=[],Ne=[],Fe=[],Nu=Math.min,Fu=Math.max,jr=Math.cos,Kr=Math.sin,nr=Math.abs,nf=Math.PI,Cr=nf*2,zu=typeof Float32Array<"u",Ti=[];function Gu(e){var t=Math.round(e/nf*1e8)/1e8;return t%2*nf}function Uy(e,t){var r=Gu(e[0]);r<0&&(r+=Cr);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Cr?i=r+Cr:t&&r-i>=Cr?i=r-Cr:!t&&r>i?i=r+(Cr-Gu(r-i)):t&&r0&&(this._ux=nr(n/ns/t)||0,this._uy=nr(n/ns/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(at.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=nr(t-this._xi),i=nr(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(at.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(at.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(at.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),Ti[0]=i,Ti[1]=a,Uy(Ti,o),i=Ti[0],a=Ti[1];var s=a-i;return this.addData(at.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=jr(a)*n+t,this._yi=Kr(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(at.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(at.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&zu&&(this.data=new Float32Array(r));for(var n=0;nf.length&&(this._expandData(),f=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Be[0]=Be[1]=Ne[0]=Ne[1]=Number.MAX_VALUE,_r[0]=_r[1]=Fe[0]=Fe[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||nr(_)>i||c===r-1)&&(g=Math.sqrt(m*m+_*_),a=p,o=y);break}case at.C:{var w=t[c++],x=t[c++],p=t[c++],y=t[c++],S=t[c++],b=t[c++];g=hT(a,o,w,x,p,y,S,b,10),a=S,o=b;break}case at.Q:{var w=t[c++],x=t[c++],p=t[c++],y=t[c++];g=cT(a,o,w,x,p,y,10),a=p,o=y;break}case at.A:var T=t[c++],C=t[c++],D=t[c++],A=t[c++],P=t[c++],L=t[c++],I=L+P;c+=1,d&&(s=jr(P)*D+T,u=Kr(P)*A+C),g=Fu(D,A)*Nu(Cr,Math.abs(L)),a=jr(I)*D+T,o=Kr(I)*A+C;break;case at.R:{s=a=t[c++],u=o=t[c++];var E=t[c++],O=t[c++];g=E*2+O*2;break}case at.Z:{var m=s-a,_=u-o;g=Math.sqrt(m*m+_*_),a=s,o=u;break}}g>=0&&(l[h++]=g,f+=g)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,u,l,f,h,c,v=r<1,d,g,p=0,y=0,m,_=0,w,x;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,g=this._pathLen,m=r*g,!m)))t:for(var S=0;S0&&(t.lineTo(w,x),_=0),b){case at.M:s=l=n[S++],u=f=n[S++],t.moveTo(l,f);break;case at.L:{h=n[S++],c=n[S++];var C=nr(h-l),D=nr(c-f);if(C>i||D>a){if(v){var A=d[y++];if(p+A>m){var P=(m-p)/A;t.lineTo(l*(1-P)+h*P,f*(1-P)+c*P);break t}p+=A}t.lineTo(h,c),l=h,f=c,_=0}else{var L=C*C+D*D;L>_&&(w=h,x=c,_=L)}break}case at.C:{var I=n[S++],E=n[S++],O=n[S++],N=n[S++],R=n[S++],k=n[S++];if(v){var A=d[y++];if(p+A>m){var P=(m-p)/A;Or(l,I,O,R,P,qr),Or(f,E,N,k,P,Zr),t.bezierCurveTo(qr[1],Zr[1],qr[2],Zr[2],qr[3],Zr[3]);break t}p+=A}t.bezierCurveTo(I,E,O,N,R,k),l=R,f=k;break}case at.Q:{var I=n[S++],E=n[S++],O=n[S++],N=n[S++];if(v){var A=d[y++];if(p+A>m){var P=(m-p)/A;es(l,I,O,P,qr),es(f,E,N,P,Zr),t.quadraticCurveTo(qr[1],Zr[1],qr[2],Zr[2]);break t}p+=A}t.quadraticCurveTo(I,E,O,N),l=O,f=N;break}case at.A:var F=n[S++],G=n[S++],V=n[S++],j=n[S++],ct=n[S++],St=n[S++],It=n[S++],kt=!n[S++],Pt=V>j?V:j,wt=nr(V-j)>.001,ht=ct+St,Y=!1;if(v){var A=d[y++];p+A>m&&(ht=ct+St*(m-p)/A,Y=!0),p+=A}if(wt&&t.ellipse?t.ellipse(F,G,V,j,It,ct,ht,kt):t.arc(F,G,Pt,ct,ht,kt),Y)break t;T&&(s=jr(ct)*V+F,u=Kr(ct)*j+G),l=jr(ht)*V+F,f=Kr(ht)*j+G;break;case at.R:s=l=n[S],u=f=n[S+1],h=n[S++],c=n[S++];var Q=n[S++],ne=n[S++];if(v){var A=d[y++];if(p+A>m){var Dt=m-p;t.moveTo(h,c),t.lineTo(h+Nu(Dt,Q),c),Dt-=Q,Dt>0&&t.lineTo(h+Q,c+Nu(Dt,ne)),Dt-=ne,Dt>0&&t.lineTo(h+Fu(Q-Dt,0),c+ne),Dt-=Q,Dt>0&&t.lineTo(h,c+Fu(ne-Dt,0));break t}p+=A}t.rect(h,c,Q,ne);break;case at.Z:if(v){var A=d[y++];if(p+A>m){var P=(m-p)/A;t.lineTo(l*(1-P)+s*P,f*(1-P)+u*P);break t}p+=A}t.closePath(),l=s,f=u}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=at,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function In(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,u=0,l=e;if(o>t+s&&o>n+s||oe+s&&a>r+s||at+h&&f>n+h&&f>a+h&&f>s+h||fe+h&&l>r+h&&l>i+h&&l>o+h||lt+l&&u>n+l&&u>a+l||ue+l&&s>r+l&&s>i+l||sr||f+li&&(i+=Ci);var c=Math.atan2(u,s);return c<0&&(c+=Ci),c>=n&&c<=i||c+Ci>=n&&c+Ci<=i}function Qr(e,t,r,n,i,a){if(a>t&&a>n||ai?s:0}var wr=Nr.CMD,Jr=Math.PI*2,VC=1e-4;function $C(e,t){return Math.abs(e-t)t&&l>n&&l>a&&l>s||l1&&WC(),v=Ot(t,n,a,s,de[0]),c>1&&(d=Ot(t,n,a,s,de[1]))),c===2?pt&&s>n&&s>a||s=0&&l<=1){for(var f=0,h=zt(t,n,a,l),c=0;cr||s<-r)return 0;var u=Math.sqrt(r*r-s*s);Wt[0]=-u,Wt[1]=u;var l=Math.abs(n-i);if(l<1e-4)return 0;if(l>=Jr-1e-4){n=0,i=Jr;var f=a?1:-1;return o>=Wt[0]+e&&o<=Wt[1]+e?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=Jr,i+=Jr);for(var c=0,v=0;v<2;v++){var d=Wt[v];if(d+e>o){var g=Math.atan2(s,d),f=a?1:-1;g<0&&(g=Jr+g),(g>=n&&g<=i||g+Jr>=n&&g+Jr<=i)&&(g>Math.PI/2&&g1&&(r||(s+=Qr(u,l,f,h,n,i))),p&&(u=a[d],l=a[d+1],f=u,h=l),g){case wr.M:f=a[d++],h=a[d++],u=f,l=h;break;case wr.L:if(r){if(In(u,l,a[d],a[d+1],t,n,i))return!0}else s+=Qr(u,l,a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case wr.C:if(r){if(zC(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=UC(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case wr.Q:if(r){if(GC(u,l,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=YC(u,l,a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case wr.A:var y=a[d++],m=a[d++],_=a[d++],w=a[d++],x=a[d++],S=a[d++];d+=1;var b=!!(1-a[d++]);c=Math.cos(x)*_+y,v=Math.sin(x)*w+m,p?(f=c,h=v):s+=Qr(u,l,c,v,n,i);var T=(n-y)*w/_+y;if(r){if(HC(y,m,w,x,x+S,b,t,T,i))return!0}else s+=XC(y,m,w,x,x+S,b,T,i);u=Math.cos(x+S)*_+y,l=Math.sin(x+S)*w+m;break;case wr.R:f=u=a[d++],h=l=a[d++];var C=a[d++],D=a[d++];if(c=f+C,v=h+D,r){if(In(f,h,c,h,t,n,i)||In(c,h,c,v,t,n,i)||In(c,v,f,v,t,n,i)||In(f,v,f,h,t,n,i))return!0}else s+=Qr(c,h,c,v,n,i),s+=Qr(f,v,f,h,n,i);break;case wr.Z:if(r){if(In(u,l,f,h,t,n,i))return!0}else s+=Qr(u,l,f,h,n,i);u=f,l=h;break}}return!r&&!$C(l,h)&&(s+=Qr(u,l,f,h,n,i)||0),s!==0}function qC(e,t,r){return Yy(e,0,!1,t,r)}function ZC(e,t,r,n){return Yy(e,t,!0,r,n)}var Xy=et({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},gn),jC={style:et({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ns.style)},Hu=da.concat(["invisible","culling","z","z2","zlevel","parent"]),rt=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(u){r.buildPath(u,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?Kl:n>.2?ET:Ql}else if(r)return Ql}return Kl},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(W(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=rs(r,0)0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Vn)&&(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 u=n.strokeNoScale?this.getLineScale():1,l=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;l=Math.max(l,f??4)}u>1e-10&&(s.width+=l/u,s.height+=l/u,s.x-=l/u/2,s.y-=l/u/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),ZC(s,u/l,r,n)))return!0}if(this.hasFill())return qC(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Vn,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:B(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Vn)},t.prototype.createStyle=function(r){return Es(Xy,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=B({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var u=!(n&&a),l;if(n&&n.shape?o?a?l=n.shape:(l=B({},i.shape),B(l,n.shape)):(l=B({},a?this.shape:i.shape),B(l,n.shape)):u&&(l=i.shape),l)if(o){this.shape=B({},this.shape);for(var f={},h=gt(l),c=0;c0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return Es(KC,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=ah(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},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(vi);os.prototype.type="tspan";var QC=et({x:0,y:0},gn),JC={style:et({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ns.style)};function tM(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var bn=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return Es(QC,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=tM(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return JC},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new it(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(vi);bn.prototype.type="image";function eM(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,u,l,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=u=l=f=o:o instanceof Array?o.length===1?s=u=l=f=o[0]:o.length===2?(s=l=o[0],u=f=o[1]):o.length===3?(s=o[0],u=f=o[1],l=o[2]):(s=o[0],u=o[1],l=o[2],f=o[3]):s=u=l=f=0;var h;s+u>i&&(h=s+u,s*=i/h,u*=i/h),l+f>i&&(h=l+f,l*=i/h,f*=i/h),u+l>a&&(h=u+l,u*=a/h,l*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),e.moveTo(r+s,n),e.lineTo(r+i-u,n),u!==0&&e.arc(r+i-u,n+u,u,-Math.PI/2,0),e.lineTo(r+i,n+a-l),l!==0&&e.arc(r+i-l,n+a-l,l,0,Math.PI/2),e.lineTo(r+f,n+a),f!==0&&e.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Xn=Math.round;function qy(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Xn(n*2)===Xn(i*2)&&(e.x1=e.x2=cn(n,s,!0)),Xn(a*2)===Xn(o*2)&&(e.y1=e.y2=cn(a,s,!0))),e}}function Zy(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=cn(n,s,!0),e.y=cn(i,s,!0),e.width=Math.max(cn(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(cn(i+o,s,!1)-e.y,o===0?0:1)),e}}function cn(e,t,r){if(!t)return e;var n=Xn(e*2);return(n+Xn(t))%2===0?n/2:(n+(r?1:-1))/2}var rM=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),nM={},Et=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new rM},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var u=Zy(nM,n,this.style);i=u.x,a=u.y,o=u.width,s=u.height,u.r=n.r,n=u}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?eM(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(rt);Et.prototype.type="rect";var wc={fill:"#000"},Sc=2,iM={style:et({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},Ns.style)},oe=function(e){H(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=wc,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,P=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),L=o.calculatedLineHeight,I=0;I=0&&(I=S[L],I.align==="right");)this._placeToken(I,r,T,y,P,"right",_),C-=I.width,P-=I.width,L--;for(A+=(a-(A-p)-(m-P)-C)/2;D<=L;)I=S[D],this._placeToken(I,r,T,y,A+I.width/2,"center",_),A+=I.width,D++;y+=T}},t.prototype._placeToken=function(r,n,i,a,o,s,u){var l=n.rich[r.styleName]||{};l.text=r.text;var f=r.verticalAlign,h=a+i/2;f==="top"?h=a+r.height/2:f==="bottom"&&(h=a+i-r.height/2);var c=!r.isLineHolder&&Vu(l);c&&this._renderBackground(l,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,h-r.height/2,r.width,r.height);var v=!!l.backgroundColor,d=r.textPadding;d&&(o=Dc(o,s,d),h-=r.height/2-d[0]-r.innerHeight/2);var g=this._getOrCreateChild(os),p=g.createStyle();g.useStyle(p);var y=this._defaultStyle,m=!1,_=0,w=Mc("fill"in l?l.fill:"fill"in n?n.fill:(m=!0,y.fill)),x=Cc("stroke"in l?l.stroke:"stroke"in n?n.stroke:!v&&!u&&(!y.autoStroke||m)?(_=Sc,y.stroke):null),S=l.textShadowBlur>0||n.textShadowBlur>0;p.text=r.text,p.x=o,p.y=h,S&&(p.shadowBlur=l.textShadowBlur||n.textShadowBlur||0,p.shadowColor=l.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=l.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=l.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=r.font||_n,p.opacity=qi(l.opacity,n.opacity,1),bc(p,l),x&&(p.lineWidth=qi(l.lineWidth,n.lineWidth,_),p.lineDash=K(l.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=x),w&&(p.fill=w);var b=r.contentWidth,T=r.contentHeight;g.setBoundingRect(new it(Hi(p.x,b,p.textAlign),$n(p.y,T,p.textBaseline),b,T))},t.prototype._renderBackground=function(r,n,i,a,o,s){var u=r.backgroundColor,l=r.borderWidth,f=r.borderColor,h=u&&u.image,c=u&&!h,v=r.borderRadius,d=this,g,p;if(c||r.lineHeight||l&&f){g=this._getOrCreateChild(Et),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=v,g.dirtyShape()}if(c){var m=g.style;m.fill=u||null,m.fillOpacity=K(r.fillOpacity,1)}else if(h){p=this._getOrCreateChild(bn),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=u.image,_.x=i,_.y=a,_.width=o,_.height=s}if(l&&f){var m=g.style;m.lineWidth=l,m.stroke=f,m.strokeOpacity=K(r.strokeOpacity,1),m.lineDash=r.borderDash,m.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var w=(g||p).style;w.shadowBlur=r.shadowBlur||0,w.shadowColor=r.shadowColor||"transparent",w.shadowOffsetX=r.shadowOffsetX||0,w.shadowOffsetY=r.shadowOffsetY||0,w.opacity=qi(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return uM(r)&&(n=[r.fontStyle,r.fontWeight,sM(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&$e(n)||r.textFont||r.font},t}(vi),aM={left:!0,right:1,center:1},oM={top:1,bottom:1,middle:1},xc=["fontStyle","fontWeight","fontSize","fontFamily"];function sM(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?jf+"px":e+"px"}function bc(e,t){for(var r=0;r=0,a=!1;if(e instanceof rt){var o=jy(e),s=i&&o.selectFill||o.normalFill,u=i&&o.selectStroke||o.normalStroke;if(Pn(s)||Pn(u)){n=n||{};var l=n.style||{};l.fill==="inherit"?(a=!0,n=B({},n),l=B({},l),l.fill=s):!Pn(l.fill)&&Pn(s)?(a=!0,n=B({},n),l=B({},l),l.fill=Kv(s)):!Pn(l.stroke)&&Pn(u)&&(a||(n=B({},n),l=B({},l)),l.stroke=Kv(u)),n.style=l}}if(n&&n.z2==null){a||(n=B({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f??hM)}return n}function yM(e,t,r){if(r&&r.z2==null){r=B({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??vM)}return r}function mM(e,t,r){var n=lt(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:pM(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=B({},r),o=B({opacity:n?i:a.opacity*.1},o),r.style=o),r}function $u(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return gM(this,e,t,r);if(e==="blur")return mM(this,e,r);if(e==="select")return yM(this,e,r)}return r}function _M(e){e.stateProxy=$u;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=$u),r&&(r.stateProxy=$u)}function Ec(e,t){!im(e,t)&&!e.__highByOuter&&gr(e,Qy)}function Rc(e,t){!im(e,t)&&!e.__highByOuter&&gr(e,Jy)}function af(e,t){e.__highByOuter|=1<<(t||0),gr(e,Qy)}function of(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&gr(e,Jy)}function wM(e){gr(e,ch)}function em(e){gr(e,tm)}function rm(e){gr(e,cM)}function nm(e){gr(e,dM)}function im(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function am(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=fh(a),s=i==="series",u=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(u),o.isBlured&&(u.group.traverse(function(l){tm(l)}),s&&r.push(a)),o.isBlured=!1}),M(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function sf(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(l,f){for(var h=0;h0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function MM(e,t,r){um(e,!0),gr(e,_M),AM(e,t,r)}function DM(e){um(e,!1)}function om(e,t,r,n){n?DM(e):MM(e,t,r)}function AM(e,t,r){var n=ut(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var kc=["emphasis","blur","select"],LM={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function sm(e,t,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=Wu(d),s*=Wu(d));var g=(i===a?-1:1)*Wu((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,p=g*o*v/s,y=g*-s*c/o,m=(e+r)/2+ro(h)*p-eo(h)*y,_=(t+n)/2+eo(h)*p+ro(h)*y,w=zc([1,0],[(c-p)/o,(v-y)/s]),x=[(c-p)/o,(v-y)/s],S=[(-1*c-p)/o,(-1*v-y)/s],b=zc(x,S);if(hf(x,S)<=-1&&(b=Mi),hf(x,S)>=1&&(b=0),b<0){var T=Math.round(b/Mi*1e6)/1e6;b=Mi*2+T%2*Mi}f.addData(l,m,_,o,s,w,b,h,a)}var OM=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,kM=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function BM(e){var t=new Nr;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=Nr.CMD,u=e.match(OM);if(!u)return t;for(var l=0;lI*I+E*E&&(T=D,C=A),{cx:T,cy:C,x0:-f,y0:-h,x1:T*(i/x-1),y1:C*(i/x-1)}}function WM(e){var t;if(z(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function UM(e,t){var r,n=Vi(t.r,0),i=Vi(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var u=t.startAngle,l=t.endAngle;if(!(isNaN(u)||isNaN(l))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=Hc(l-u),d=v>Uu&&v%Uu;if(d>Ce&&(v=d),!(n>Ce))e.moveTo(f,h);else if(v>Uu-Ce)e.moveTo(f+n*Rn(u),h+n*tn(u)),e.arc(f,h,n,u,l,!c),i>Ce&&(e.moveTo(f+i*Rn(l),h+i*tn(l)),e.arc(f,h,i,l,u,c));else{var g=void 0,p=void 0,y=void 0,m=void 0,_=void 0,w=void 0,x=void 0,S=void 0,b=void 0,T=void 0,C=void 0,D=void 0,A=void 0,P=void 0,L=void 0,I=void 0,E=n*Rn(u),O=n*tn(u),N=i*Rn(l),R=i*tn(l),k=v>Ce;if(k){var F=t.cornerRadius;F&&(r=WM(F),g=r[0],p=r[1],y=r[2],m=r[3]);var G=Hc(n-i)/2;if(_=ze(G,y),w=ze(G,m),x=ze(G,g),S=ze(G,p),C=b=Vi(_,w),D=T=Vi(x,S),(b>Ce||T>Ce)&&(A=n*Rn(l),P=n*tn(l),L=i*Rn(u),I=i*tn(u),vCe){var wt=ze(y,C),ht=ze(m,C),Y=no(L,I,E,O,n,wt,c),Q=no(A,P,N,R,n,ht,c);e.moveTo(f+Y.cx+Y.x0,h+Y.cy+Y.y0),C0&&e.arc(f+Y.cx,h+Y.cy,wt,Bt(Y.y0,Y.x0),Bt(Y.y1,Y.x1),!c),e.arc(f,h,n,Bt(Y.cy+Y.y1,Y.cx+Y.x1),Bt(Q.cy+Q.y1,Q.cx+Q.x1),!c),ht>0&&e.arc(f+Q.cx,h+Q.cy,ht,Bt(Q.y1,Q.x1),Bt(Q.y0,Q.x0),!c))}else e.moveTo(f+E,h+O),e.arc(f,h,n,u,l,!c);if(!(i>Ce)||!k)e.lineTo(f+N,h+R);else if(D>Ce){var wt=ze(g,D),ht=ze(p,D),Y=no(N,R,A,P,i,-ht,c),Q=no(E,O,L,I,i,-wt,c);e.lineTo(f+Y.cx+Y.x0,h+Y.cy+Y.y0),D0&&e.arc(f+Y.cx,h+Y.cy,ht,Bt(Y.y0,Y.x0),Bt(Y.y1,Y.x1),!c),e.arc(f,h,i,Bt(Y.cy+Y.y1,Y.cx+Y.x1),Bt(Q.cy+Q.y1,Q.cx+Q.x1),c),wt>0&&e.arc(f+Q.cx,h+Q.cy,wt,Bt(Q.y1,Q.x1),Bt(Q.y0,Q.x0),!c))}else e.lineTo(f+N,h+R),e.arc(f,h,i,l,u,c)}e.closePath()}}}var YM=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),Ze=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new YM},t.prototype.buildPath=function(r,n){UM(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(rt);Ze.prototype.type="sector";var XM=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),yh=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new XM},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}(rt);yh.prototype.type="ring";function qM(e,t,r,n){var i=[],a=[],o=[],s=[],u,l,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=e.length;c=2){if(n){var a=qM(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var u=a[s*2],l=a[s*2+1],f=i[(s+1)%o];e.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;srn[1]){if(s=!1,a)return s;var f=Math.abs(rn[0]-en[1]),h=Math.abs(en[0]-rn[1]);Math.min(f,h)>i.len()&&(f0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(r,d):t.animateTo(r,d)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function se(e,t,r,n,i,a){_h("update",e,t,r,n,i,a)}function me(e,t,r,n,i,a){_h("enter",e,t,r,n,i,a)}function ti(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Wc(e){return!e.isGroup}function gD(e){return e.shape!=null}function xm(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(u){Wc(u)&&u.anid&&(s[u.anid]=u)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return gD(o)&&(s.shape=B({},o.shape)),s}var a=n(e);t.traverse(function(o){if(Wc(o)&&o.anid){var s=a[o.anid];if(s){var u=i(o);o.attr(i(s)),se(o,u,r,ut(o).dataIndex)}}})}function yD(e,t){return $(e,function(r){var n=r[0];n=fs(n,t.x),n=hs(n,t.x+t.width);var i=r[1];return i=fs(i,t.y),i=hs(i,t.y+t.height),[n,i]})}function mD(e,t){var r=fs(e.x,t.x),n=hs(e.x+e.width,t.x+t.width),i=fs(e.y,t.y),a=hs(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function bm(e,t,r){var n=B({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),et(i,r),new bn(n)):wh(e.replace("path://",""),n,r,"center")}function _D(e,t,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var p=Yu(v,d,f,h)/c;return!(p<0||p>1)}function Yu(e,t,r,n){return e*n-r*t}function wD(e){return e<=1e-6&&e>=-1e-6}function xh(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=W(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var u=e.formatterParamsExtra;u&&M(gt(u),function(f){cr(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=ut(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:n,option:et({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function Uc(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function bh(e,t){if(e)if(z(e))for(var r=0;r=0&&s.push(u)}),s}}function BD(e,t){return ft(ft({},e,!0),t,!0)}const ND={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},FD={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var vs="ZH",Th="EN",ei=Th,Go={},Ch={},Im=q.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ei).toUpperCase();return e.indexOf(vs)>-1?vs:ei}():ei;function Pm(e,t){e=e.toUpperCase(),Ch[e]=new Ct(t),Go[e]=t}function zD(e){if(W(e)){var t=Go[e.toUpperCase()]||{};return e===vs||e===Th?nt(t):ft(nt(t),nt(Go[ei]),!1)}else return ft(nt(e),nt(Go[ei]),!1)}function GD(e){return Ch[e]}function HD(){return Ch[ei]}Pm(Th,ND);Pm(vs,FD);var Mh=1e3,Dh=Mh*60,na=Dh*60,ge=na*24,Kc=ge*365,$i={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}"},oo="{yyyy}-{MM}-{dd}",Qc={year:"{yyyy}",month:"{yyyy}-{MM}",day:oo,hour:oo+" "+$i.hour,minute:oo+" "+$i.minute,second:oo+" "+$i.second,millisecond:$i.none},Zu=["year","month","day","hour","minute","second","millisecond"],Em=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Sr(e,t){return e+="","0000".substr(0,t-e.length)+e}function ri(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function VD(e){return e===ri(e)}function $D(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Us(e,t,r,n){var i=dr(e),a=i[Ah(r)](),o=i[ni(r)]()+1,s=Math.floor((o-1)/3)+1,u=i[Ys(r)](),l=i["get"+(r?"UTC":"")+"Day"](),f=i[ma(r)](),h=(f-1)%12+1,c=i[Xs(r)](),v=i[qs(r)](),d=i[Zs(r)](),g=f>=12?"pm":"am",p=g.toUpperCase(),y=n instanceof Ct?n:GD(n||Im)||HD(),m=y.getModel("time"),_=m.get("month"),w=m.get("monthAbbr"),x=m.get("dayOfWeek"),S=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Sr(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,w[o-1]).replace(/{MM}/g,Sr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Sr(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,x[l]).replace(/{ee}/g,S[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Sr(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Sr(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Sr(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Sr(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Sr(d,3)).replace(/{S}/g,d+"")}function WD(e,t,r,n,i){var a=null;if(W(r))a=r;else if(J(r))a=r(e.value,t,{level:e.level});else{var o=B({},$i);if(e.level>0)for(var s=0;s=0;--s)if(u[l]){a=u[l];break}a=a||o.none}if(z(a)){var h=e.level==null?0:e.level>=0?e.level:a.length+e.level;h=Math.min(h,a.length-1),a=a[h]}}return Us(new Date(e.value),a,i,n)}function Rm(e,t){var r=dr(e),n=r[ni(t)]()+1,i=r[Ys(t)](),a=r[ma(t)](),o=r[Xs(t)](),s=r[qs(t)](),u=r[Zs(t)](),l=u===0,f=l&&s===0,h=f&&o===0,c=h&&a===0,v=c&&i===1,d=v&&n===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":l?"second":"millisecond"}function Jc(e,t,r){var n=vt(e)?dr(e):e;switch(t=t||Rm(e,r),t){case"year":return n[Ah(r)]();case"half-year":return n[ni(r)]()>=6?1:0;case"quarter":return Math.floor((n[ni(r)]()+1)/4);case"month":return n[ni(r)]();case"day":return n[Ys(r)]();case"half-day":return n[ma(r)]()/24;case"hour":return n[ma(r)]();case"minute":return n[Xs(r)]();case"second":return n[qs(r)]();case"millisecond":return n[Zs(r)]()}}function Ah(e){return e?"getUTCFullYear":"getFullYear"}function ni(e){return e?"getUTCMonth":"getMonth"}function Ys(e){return e?"getUTCDate":"getDate"}function ma(e){return e?"getUTCHours":"getHours"}function Xs(e){return e?"getUTCMinutes":"getMinutes"}function qs(e){return e?"getUTCSeconds":"getSeconds"}function Zs(e){return e?"getUTCMilliseconds":"getMilliseconds"}function UD(e){return e?"setUTCFullYear":"setFullYear"}function Om(e){return e?"setUTCMonth":"setMonth"}function km(e){return e?"setUTCDate":"setDate"}function Bm(e){return e?"setUTCHours":"setHours"}function Nm(e){return e?"setUTCMinutes":"setMinutes"}function Fm(e){return e?"setUTCSeconds":"setSeconds"}function zm(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Gm(e){if(!KT(e))return W(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Hm(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Lh=ny;function df(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&$e(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=e instanceof Date;if(o||s){var u=o?dr(e):e;if(isNaN(+u)){if(s)return"-"}else return Us(u,n,r)}if(t==="ordinal")return Nl(e)?i(e):vt(e)&&a(e)?e+"":"-";var l=Br(e);return a(l)?Gm(l):Nl(e)?i(e):typeof e=="boolean"?e+"":"-"}var td=["a","b","c","d","e","f","g"],ju=function(e,t){return"{"+e+(t??"")+"}"};function Vm(e,t,r){z(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[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 _a(e,t){return t=t||"transparent",W(e)?e:X(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function ed(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Ho=M,XD=["left","right","top","bottom","width","height"],so=[["width","left","right"],["height","top","bottom"]];function $m(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(u,l){var f=u.getBoundingRect(),h=t.childAt(l+1),c=h&&h.getBoundingRect(),v,d;if(e==="horizontal"){var g=f.width+(c?-c.x+f.x:0);v=a+g,v>n||u.newline?(a=0,v=g,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(c?-c.y+f.y:0);d=o+p,d>i||u.newline?(a+=s+r,o=0,d=p,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),e==="horizontal"?a=v+r:o=d+r)})}Yt($m,"vertical");Yt($m,"horizontal");function js(e,t,r){r=Lh(r||0);var n=t.width,i=t.height,a=pt(e.left,n),o=pt(e.top,i),s=pt(e.right,n),u=pt(e.bottom,i),l=pt(e.width,n),f=pt(e.height,i),h=r[2]+r[0],c=r[1]+r[3],v=e.aspect;switch(isNaN(l)&&(l=n-s-c-a),isNaN(f)&&(f=i-u-h-o),v!=null&&(isNaN(l)&&isNaN(f)&&(v>n/i?l=n*.8:f=i*.8),isNaN(l)&&(l=v*f),isNaN(f)&&(f=l/v)),isNaN(a)&&(a=n-s-l-c),isNaN(o)&&(o=i-u-f-h),e.left||e.right){case"center":a=n/2-l/2-r[3];break;case"right":a=n-l-c;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(l)&&(l=n-c-a-(s||0)),isNaN(f)&&(f=i-h-o-(u||0));var d=new it(a+r[3],o+r[0],l,f);return d.margin=r,d}function wa(e){var t=e.layoutMode||e.constructor.layoutMode;return X(t)?t:t?{type:t}:null}function Sa(e,t,r){var n=r&&r.ignoreSize;!z(n)&&(n=[n,n]);var i=o(so[0],0),a=o(so[1],1);l(so[0],e,i),l(so[1],e,a);function o(f,h){var c={},v=0,d={},g=0,p=2;if(Ho(f,function(_){d[_]=e[_]}),Ho(f,function(_){s(t,_)&&(c[_]=d[_]=t[_]),u(c,_)&&v++,u(d,_)&&g++}),n[h])return u(t,f[1])?d[f[2]]=null:u(t,f[2])&&(d[f[1]]=null),d;if(g===p||!v)return d;if(v>=p)return c;for(var y=0;y=0;u--)s=ft(s,i[u],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return Fa(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.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")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(Ct);zy(st,Ct);ks(st);OD(st);kD(st,jD);function jD(e){var t=[];return M(st.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=$(t,function(r){return We(r).main}),e!=="dataset"&<(t,"dataset")<=0&&t.unshift("dataset"),t}var Wm="";typeof navigator<"u"&&(Wm=navigator.platform||"");var On="rgba(0, 0, 0, 0.2)";const KD={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:On,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:On,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:On,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:On,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:On,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:On,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Wm.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 Um=Z(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),_e="original",qt="arrayRows",we="objectRows",tr="keyedColumns",Pr="typedArray",Ym="unknown",Xe="column",ci="row",Rt={Must:1,Might:2,Not:3},Xm=mt();function QD(e){Xm(e).datasetMap=Z()}function JD(e,t,r){var n={},i=Ph(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,u=Xm(s).datasetMap,l=i.uid+"_"+r.seriesLayoutBy,f,h;e=e.slice(),M(e,function(g,p){var y=X(g)?g:e[p]={name:g};y.type==="ordinal"&&f==null&&(f=p,h=d(y)),n[y.name]=[]});var c=u.get(l)||u.set(l,{categoryWayDim:h,valueWayDim:0});M(e,function(g,p){var y=g.name,m=d(g);if(f==null){var _=c.valueWayDim;v(n[y],_,m),v(o,_,m),c.valueWayDim+=m}else if(f===p)v(n[y],0,m),v(a,0,m);else{var _=c.categoryWayDim;v(n[y],_,m),v(o,_,m),c.categoryWayDim+=m}});function v(g,p,y){for(var m=0;mt)return e[n];return e[r-1]}function aA(e,t,r,n,i,a,o){a=a||e;var s=t(a),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var f=o==null||!n?r:iA(n,o);if(f=f||r,!(!f||!f.length)){var h=f[u];return i&&(l[i]=h),s.paletteIdx=(u+1)%f.length,h}}function oA(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var uo,Di,nd,id="\0_ec_inner",sA=1,Rh=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Ct(a),this._locale=new Ct(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=sd(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,sd(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?nd(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 u=a.getMediaOption(this);u.length&&M(u,function(l){i=!0,this._mergeOption(l,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=Z(),l=n&&n.replaceMergeMainTypeMap;QD(this),M(r,function(h,c){h!=null&&(st.hasClass(c)?c&&(s.push(c),u.set(c,!0)):i[c]=i[c]==null?nt(h):ft(i[c],h,!0))}),l&&l.each(function(h,c){st.hasClass(c)&&!u.get(c)&&(s.push(c),u.set(c,!0))}),st.topologicalTravel(s,st.getAllClassMainTypes(),f,this);function f(h){var c=nA(this,h,Mt(r[h])),v=a.get(h),d=v?l&&l.get(h)?"replaceMerge":"normalMerge":"replaceAll",g=tC(v,c,d);sC(g,h,st),i[h]=null,a.set(h,null),o.set(h,0);var p=[],y=[],m=0,_;M(g,function(w,x){var S=w.existing,b=w.newOption;if(!b)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var T=h==="series",C=st.getClass(h,w.keyInfo.subType,!T);if(!C)return;if(h==="tooltip"){if(_)return;_=!0}if(S&&S.constructor===C)S.name=w.keyInfo.name,S.mergeOption(b,this),S.optionUpdated(b,!1);else{var D=B({componentIndex:x},w.keyInfo);S=new C(b,this,this,D),B(S,D),w.brandNew&&(S.__requireNewView=!0),S.init(b,this,this),S.optionUpdated(null,!0)}}S?(p.push(S.option),y.push(S),m++):(p.push(void 0),y.push(void 0))},this),i[h]=p,a.set(h,y),o.set(h,m),h==="series"&&uo(this)}this._seriesIndices||uo(this)},t.prototype.getOption=function(){var r=nt(this.option);return M(r,function(n,i){if(st.hasClass(i)){for(var a=Mt(n),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!pa(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[id],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=t:r==="max"?e<=t:e===t}function gA(e,t){return e.join(",")===t.join(",")}var be=M,xa=X,ud=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Qu(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=ud.length;r=0;p--){var y=e[p];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,v)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(u==="all"||u==="positive"&&m>0||u==="negative"&&m<0||u==="samesign"&&c>=0&&m>0||u==="samesign"&&c<=0&&m<0){c=qT(c,m),g=m;break}}}return n[0]=c,n[1]=g,n})})}var Ks=function(){function e(t){this.data=t.data||(t.sourceFormat===tr?{}:[]),this.sourceFormat=t.sourceFormat||Ym,this.seriesLayoutBy=t.seriesLayoutBy||Xe,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;ng&&(g=_)}v[0]=d,v[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};pd=(t={},t[qt+"_"+Xe]={pure:!0,appendData:a},t[qt+"_"+ci]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[we]={pure:!0,appendData:a},t[tr]={pure:!0,appendData:function(o){var s=this._data;M(o,function(u,l){for(var f=s[l]||(s[l]=[]),h=0;h<(u||[]).length;h++)f.push(u[h])})}},t[_e]={appendData:a},t[Pr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},e.prototype.getRawValue=function(t,r){return oi(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function _d(e){var t,r;return X(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function ia(e){return new OA(e)}var OA=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,u=f(t&&t.modBy),l=t&&t.modDataCount||0;(o!==u||s!==l)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=u,this._modDataCount=l;var c=t&&t.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(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(h||v1&&n>0?s:o}};return a;function o(){return t=e?null:ut},gte:function(e,t){return e>=t}},BA=function(){function e(t,r){if(!vt(r)){var n="";tt(n)}this._opFn=s0[t],this._rvalFloat=Br(r)}return e.prototype.evaluate=function(t){return vt(t)?this._opFn(t,this._rvalFloat):this._opFn(Br(t),this._rvalFloat)},e}(),u0=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=vt(t)?t:Br(t),i=vt(r)?r:Br(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=W(t),u=W(r);s&&(n=u?t:0),u&&(i=s?r:0)}return ni?-this._resultLT:0},e}(),NA=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=Br(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=Br(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function FA(e,t){return e==="eq"||e==="ne"?new NA(e==="eq",t):cr(s0,e)?new BA(e,t):null}var zA=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Vo(t,r)},e}();function GA(e,t){var r=new zA,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==Xe&&tt(o);var s=[],u={},l=e.dimensionsDefine;if(l)M(l,function(g,p){var y=g.name,m={index:p,name:y,displayName:g.displayName};if(s.push(m),y!=null){var _="";cr(u,y)&&tt(_),u[y]=m}});else for(var f=0;f65535?qA:ZA}function Bn(){return[1/0,-1/0]}function jA(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function xd(e,t,r,n,i){var a=h0[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var u=new a(n),l=0;lp[1]&&(p[1]=g)}return this._rawCount=this._count=u,{start:s,end:u}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=$(o,function(m){return m.property}),f=0;fy[1]&&(y[1]=p)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r=0&&r=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&nt)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,u=-1,l=0,f=0,h=this.count();f=0&&u<0)&&(s=d,u=v,l=0),v===u&&(o[l++]=f))}return o.length=l,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a=h&&m<=c||isNaN(m))&&(u[l++]=g),g++}d=!0}else if(a===2){for(var p=v[i[0]],_=v[i[1]],w=t[i[1]][0],x=t[i[1]][1],y=0;y=h&&m<=c||isNaN(m))&&(S>=w&&S<=x||isNaN(S))&&(u[l++]=g),g++}d=!0}}if(!d)if(a===1)for(var y=0;y=h&&m<=c||isNaN(m))&&(u[l++]=b)}else for(var y=0;yt[D][1])&&(T=!1)}T&&(u[l++]=r.getRawIndex(y))}return ly[1]&&(y[1]=p)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,u=Math.floor(1/r),l=this.getRawIndex(0),f,h,c,v=new(kn(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));v[s++]=l;for(var d=1;df&&(f=h,c=w)}A>0&&As&&(g=s-f);for(var p=0;pd&&(d=m,v=f+p)}var _=this.getRawIndex(h),w=this.getRawIndex(v);hf-d&&(u=f-d,s.length=u);for(var g=0;gh[1]&&(h[1]=y),c[v++]=m}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();au&&(u=h)}return o=[s,u],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return Vo(r[a],this._dimensions[a])}el={arrayRows:t,objectRows:function(r,n,i,a){return Vo(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Vo(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),v0=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(lo(t)){var o=t,s=void 0,u=void 0,l=void 0;if(n){var f=r[0];f.prepareSource(),l=f.getSource(),s=l.data,u=l.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),u=re(s)?Pr:_e,a=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},v=K(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=K(h.sourceHeader,c.sourceHeader),g=K(h.dimensions,c.dimensions),p=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||g;i=p?[pf(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:g},u)]:[]}else{var y=t;if(n){var m=this._applyTransform(r);i=m.sourceList,a=m.upstreamSignList}else{var _=y.get("source",!0);i=[pf(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&Td(a)}var o,s=[],u=[];return M(t,function(l){l.prepareSource();var f=l.getSource(i||0),h="";i!=null&&!f&&Td(h),s.push(f),u.push(l._getVersionSign())}),n?o=YA(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[MA(s[0])]),{sourceList:o,upstreamSignList:u}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r1||r>0&&!e.noHeader;return M(e.blocks,function(i){var a=g0(i);a>=t&&(t=a+ +(n&&(!a||yf(i)&&!i.noHeader)))}),t}return 0}function tL(e,t,r,n){var i=t.noHeader,a=rL(g0(t)),o=[],s=t.blocks||[];vr(!s||z(s)),s=s||[];var u=e.orderMode;if(t.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(cr(l,u)){var f=new u0(l[u],null);s.sort(function(g,p){return f.evaluate(g.sortParam,p.sortParam)})}else u==="seriesDesc"&&s.reverse()}M(s,function(g,p){var y=t.valueFormatter,m=p0(g)(y?B(B({},e),{valueFormatter:y}):e,g,p>0?a.html:0,n);m!=null&&o.push(m)});var h=e.renderMode==="richText"?o.join(a.richText):mf(n,o.join(""),i?r:a.html);if(i)return h;var c=df(t.header,"ordinal",e.useUTC),v=d0(n,e.renderMode).nameStyle,d=c0(n);return e.renderMode==="richText"?y0(e,c,v)+a.richText+h:mf(n,'
'+Kt(c)+"
"+h,r)}function eL(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,u=t.name,l=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(w){return w=z(w)?w:[w],$(w,function(x,S){return df(x,z(v)?v[S]:v,l)})};if(!(a&&o)){var h=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),c=a?"":df(u,"ordinal",l),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),g=!s||!a,p=!s&&a,y=d0(n,i),m=y.nameStyle,_=y.valueStyle;return i==="richText"?(s?"":h)+(a?"":y0(e,c,m))+(o?"":aL(e,d,g,p,_)):mf(n,(s?"":h)+(a?"":nL(c,!s,m))+(o?"":iL(d,g,p,_)),r)}}function Cd(e,t,r,n,i,a){if(e){var o=p0(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function rL(e){return{html:QA[e],richText:JA[e]}}function mf(e,t,r){var n='
',i="margin: "+r+"px 0 0",a=c0(e);return'
'+t+n+"
"}function nL(e,t,r){var n=t?"margin-left:2px":"";return''+Kt(e)+""}function iL(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=z(e)?e:[e],''+$(e,function(o){return Kt(o)}).join("  ")+""}function y0(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function aL(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(z(t)?t.join(" "):t,a)}function oL(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return _a(n)}function m0(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var rl=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Ey()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=YD({color:r,type:t,renderMode:n,markerId:i});return W(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};z(r)?M(r,function(a){return B(n,a)}):B(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function sL(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),u=z(s),l=oL(t,r),f,h,c,v;if(o>1||u&&!o){var d=uL(s,t,r,a,l);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);v=f=oi(i,r,a[0]),h=g.type}else v=f=u?s[0]:s;var p=By(t),y=p&&t.name||"",m=i.getName(r),_=n?y:m;return ba("section",{header:y,noHeader:n||!p,sortParam:v,blocks:[ba("nameValue",{markerType:"item",markerColor:l,name:_,noName:!$e(_),value:f,valueType:h,dataIndex:r})].concat(c||[])})}function uL(e,t,r,n,i){var a=t.getData(),o=Rr(e,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];n.length?M(n,function(h){f(oi(a,r,h),h)}):M(e,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?l.push(ba("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:h,valueType:v.type})):(s.push(h),u.push(v.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var xr=mt();function fo(e,t){return e.getName(t)||e.getId(t)}var $o="__universalTransitionEnabled",je=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=ia({count:fL,reset:hL}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=xr(this).sourceManager=new v0(this);a.prepareSource();var o=this.getInitialData(r,i);Dd(o,this),this.dataTask.context.data=o,xr(this).dataBeforeProcessed=o,Md(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=wa(this),a=i?Ih(r):{},o=this.subType;st.hasClass(o)&&(o+="Series"),ft(r,n.getTheme().get(this.subType)),ft(r,this.getDefaultOption()),tf(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Sa(r,a,i)},t.prototype.mergeOption=function(r,n){r=ft(this.option,r,!0),this.fillDataTextStyle(r.data);var i=wa(this);i&&Sa(this.option,r,i);var a=xr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);Dd(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,xr(this).dataBeforeProcessed=o,Md(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!re(r))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=Eh.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[fo(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[$o])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,u=n.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){X(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f0&&this._innerSelect(r,n)}},t.registerClass=function(r){return st.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(st);Qe(je,RA);Qe(je,Eh);zy(je,st);function Md(e){var t=e.name;By(e)||(e.name=lL(e)||t)}function lL(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return M(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function fL(e){return e.model.getRawData().count()}function hL(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),vL}function vL(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Dd(e,t){M(Eb(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Yt(cL,t))})}function cL(e,t){var r=_f(e);return r&&r.setOutputEnd((t||this).count()),t}function _f(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}var Re=function(){function e(){this.group=new Ee,this.uid=Ws("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();lh(Re);ks(Re);function _0(){var e=mt();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var w0=mt(),dL=_0(),hr=function(){function e(){this.group=new Ee,this.uid=Ws("viewChart"),this.renderTask=ia({plan:pL,reset:gL}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&Ld(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&Ld(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){bh(this.group,t)},e.markUpdateMethod=function(t,r){w0(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function Ad(e,t,r){e&&lf(e)&&(t==="emphasis"?af:of)(e,r)}function Ld(e,t,r){var n=Na(e,t),i=t&&t.highlightKey!=null?IM(t.highlightKey):null;n!=null?M(Mt(n),function(a){Ad(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){Ad(a,r,i)})}lh(hr);ks(hr);function pL(e){return dL(e.model)}function gL(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&w0(i).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](t,r,n,i),yL[u]}var yL={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},cs="\0__throttleOriginMethod",Id="\0__throttleRate",Pd="\0__throttleType";function Fh(e,t,r){var n,i=0,a=0,o=null,s,u,l,f;t=t||0;function h(){a=new Date().getTime(),o=null,e.apply(u,l||[])}var c=function(){for(var v=[],d=0;d=0?h():o=setTimeout(h,-s),i=n};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function S0(e,t,r,n){var i=e[t];if(i){var a=i[cs]||i,o=i[Pd],s=i[Id];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=Fh(a,r,n==="debounce"),i[cs]=a,i[Pd]=n,i[Id]=r}return i}}function wf(e,t){var r=e[t];r&&r[cs]&&(r.clear&&r.clear(),e[t]=r[cs])}var Ed=mt(),Rd={itemStyle:ga(Lm,!0),lineStyle:ga(Am,!0)},mL={lineStyle:"stroke",itemStyle:"fill"};function x0(e,t){var r=e.visualStyleMapper||Rd[t];return r||(console.warn("Unknown style type '"+t+"'."),Rd.itemStyle)}function b0(e,t){var r=e.visualDrawType||mL[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var _L={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=x0(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var u=b0(e,n),l=o[u],f=J(l)?l:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||h){var c=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[u]||(o[u]=c,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||J(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||J(o.stroke)?c:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",u),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var g=e.getDataParams(d),p=B({},o);p[u]=f(g),v.setItemVisual(d,"style",p)}}}},Li=new Ct,wL={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=x0(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[n]){Li.option=u[n];var l=i(Li),f=o.ensureUniqueItemVisual(s,"style");B(f,l),Li.option.decal&&(o.setItemVisual(s,"decal",Li.option.decal),Li.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},SL={performRawSeries:!0,overallReset:function(e){var t=Z();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),Ed(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=Ed(r).scope,s=r.visualStyleAccessPath||"itemStyle",u=b0(r,s);a.each(function(l){var f=a.getRawIndex(l);i[f]=l}),n.each(function(l){var f=i[l],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=n.getName(l)||l+"",d=n.count();c[u]=r.getColorFromPalette(v,o,d)}})}})}},ho=Math.PI;function xL(e,t){t=t||{},et(t,{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 Ee,n=new Et({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new oe({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Et({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new Hs({shape:{startAngle:-ho/2,endAngle:-ho/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:ho*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:ho*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,u=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-u*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:u),f=e.getHeight()/2;t.showSpinner&&o.setShape({cx:l,cy:f}),a.setShape({x:l-u,y:f-u,width:u*2,height:u*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var T0=function(){function e(t,r,n,i){this._stageTaskMap=Z(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),u=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:u,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=Z();t.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)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;M(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";vr(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;M(t,function(u,l){if(!(i.visualType&&i.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(p){s(i,p)&&(p.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,n);var g=o.getPerformArgs(c,i.block);d.each(function(p){p.perform(g)}),c.perform(g)&&(a=!0)}else h&&h.each(function(p,y){s(i,p)&&p.dirty();var m=o.getPerformArgs(p,i.block);m.skip=!u.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(m)&&(a=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=Z(),u=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):u?n.eachRawSeriesByType(u,f):l&&l(n,i).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||ia({plan:DL,reset:AL,count:IL}));v.context={model:h,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,v)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||ia({reset:bL});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=Z(),l=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";vr(!t.createOnAllSeries,v),l?n.eachRawSeriesByType(l,d):f?f(n,i).each(d):(h=!1,M(n.getSeries(),d));function d(g){var p=g.uid,y=u.set(p,s&&s.get(p)||(c=!0,ia({reset:TL,onDirty:ML})));y.context={model:g,overallProgress:h},y.agent=o,y.__block=h,a._pipe(g,y)}c&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return J(t)&&(t={overallReset:t,seriesType:PL(t)}),t.uid=Ws("stageHandler"),r&&(t.visualType=r),t},e}();function bL(e){e.overallReset(e.ecModel,e.api,e.payload)}function TL(e){return e.overallProgress&&CL}function CL(){this.agent.dirty(),this.getDownstream().dirty()}function ML(){this.agent&&this.agent.dirty()}function DL(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function AL(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Mt(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?$(t,function(r,n){return C0(n)}):LL}var LL=C0(0);function C0(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&v===l.length-c.length){var d=l.slice(0,v);d!=="data"&&(r.mainType=d,r[c.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(n[l]=u,f=!0),f||(i[l]=u)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var u=r.cptQuery,l=r.dataQuery;return f(u,o,"mainType")&&f(u,o,"subType")&&f(u,o,"index","componentIndex")&&f(u,o,"name")&&f(u,o,"id")&&f(l,a,"name")&&f(l,a,"dataIndex")&&f(l,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Sf=["symbol","symbolSize","symbolRotate","symbolOffset"],Nd=Sf.concat(["symbolKeepAspect"]),OL={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o=0&&dn(u)?u:.5;var l=e.createRadialGradient(o,s,0,o,s,u);return l}function bf(e,t,r){for(var n=t.type==="radial"?JL(e,t,r):QL(e,t,r),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:vt(e)?[e]:z(e)?e:null}function I0(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&e2(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=$(r,function(a){return a/i}),n/=i)}return[r,n]}var r2=new Nr(!0);function ps(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function Fd(e){return typeof e=="string"&&e!=="none"}function gs(e){var t=e.fill;return t!=null&&t!=="none"}function zd(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function Gd(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function Tf(e,t,r){var n=Gy(t.image,t.__image,r);if(Bs(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Rb),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function n2(e,t,r,n){var i,a=ps(r),o=gs(r),s=r.strokePercent,u=s<1,l=!t.path;(!t.silent||u)&&l&&t.createPathProxy();var f=t.path||r2,h=t.__dirty;if(!n){var c=r.fill,v=r.stroke,d=o&&!!c.colorStops,g=a&&!!v.colorStops,p=o&&!!c.image,y=a&&!!v.image,m=void 0,_=void 0,w=void 0,x=void 0,S=void 0;(d||g)&&(S=t.getBoundingRect()),d&&(m=h?bf(e,c,S):t.__canvasFillGradient,t.__canvasFillGradient=m),g&&(_=h?bf(e,v,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),p&&(w=h||!t.__canvasFillPattern?Tf(e,c,t):t.__canvasFillPattern,t.__canvasFillPattern=w),y&&(x=h||!t.__canvasStrokePattern?Tf(e,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),d?e.fillStyle=m:p&&(w?e.fillStyle=w:o=!1),g?e.strokeStyle=_:y&&(x?e.strokeStyle=x:a=!1)}var b=t.getGlobalScale();f.setScale(b[0],b[1],t.segmentIgnoreThreshold);var T,C;e.setLineDash&&r.lineDash&&(i=I0(t),T=i[0],C=i[1]);var D=!0;(l||h&Vn)&&(f.setDPR(e.dpr),u?f.setContext(null):(f.setContext(e),D=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),D&&f.rebuildPath(e,u?s:1),T&&(e.setLineDash(T),e.lineDashOffset=C),n||(r.strokeFirst?(a&&Gd(e,r),o&&zd(e,r)):(o&&zd(e,r),a&&Gd(e,r))),T&&e.setLineDash([])}function i2(e,t,r){var n=t.__image=Gy(r.image,t.__image,t,t.onload);if(!(!n||!Bs(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),u=n.width/n.height;if(o==null&&s!=null?o=s*u:s==null&&o!=null?s=o/u:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var l=r.sx||0,f=r.sy||0;e.drawImage(n,l,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var l=r.sx,f=r.sy,h=o-l,c=s-f;e.drawImage(n,l,f,h,c,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function a2(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||_n,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=I0(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(ps(r)&&e.strokeText(i,r.x,r.y),gs(r)&&e.fillText(i,r.x,r.y)):(gs(r)&&e.fillText(i,r.x,r.y),ps(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var Hd=["shadowBlur","shadowOffsetX","shadowOffsetY"],Vd=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function P0(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){te(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?gn.opacity:o}(n||t.blend!==r.blend)&&(a||(te(e,i),a=!0),e.globalCompositeOperation=t.blend||gn.blend);for(var s=0;s0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(!this[Nt]){if(this._disposed){this.id;return}var a,o,s;if(X(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Nt]=!0,!this._model||n){var u=new vA(this._api),l=this._theme,f=this._model=new Rh;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(r,{replaceMerge:o},Mf);var h={seriesTransition:s,optionChanged:!0};if(i)this[jt]={silent:a,updateParams:h},this[Nt]=!1,this.getZr().wakeUp();else{try{Fn(this),br.update.call(this,null,h)}catch(c){throw this[jt]=null,this[Nt]=!1,c}this._ssr||this._zr.flush(),this[jt]=null,this[Nt]=!1,Ii.call(this,a),Pi.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||q.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(q.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return M(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;M(n,function(u){i.eachComponent({mainType:u},function(l){var f=o._componentsMap[l.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return M(a,function(u){u.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(ip[i]){var u=s,l=s,f=-s,h=-s,c=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();M(oa,function(_,w){if(_.group===i){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(nt(r)),S=_.getDom().getBoundingClientRect();u=a(S.left,u),l=a(S.top,l),f=o(S.right,f),h=o(S.bottom,h),c.push({dom:x,left:S.left,top:S.top})}}),u*=v,l*=v,f*=v,h*=v;var d=f-u,g=h-l,p=li.createCanvas(),y=uc(p,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:g}),n){var m="";return M(c,function(_){var w=_.left-u,x=_.top-l;m+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=m,r.connectedBackgroundColor&&y.painter.setBackgroundColor(r.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return r.connectedBackgroundColor&&y.add(new Et({shape:{x:0,y:0,width:d,height:g},style:{fill:r.connectedBackgroundColor}})),M(c,function(_){var w=new bn({style:{x:_.left*v-u,y:_.top*v-l,image:_.dom}});y.add(w)}),y.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return sl(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return sl(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Iu(i,r);return M(o,function(s,u){u.indexOf("Models")>=0&&M(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(u==="seriesModels"){var h=this._chartsMap[l.__viewId];h&&h.containPoint&&(a=a||h.containPoint(n,l))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=Iu(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),u=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return u!=null?BL(s,u,n):NL(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;M(I2,function(n){var i=function(a){var o=r.getModel(),s=a.target,u,l=n==="globalout";if(l?u={}:s&&Ui(s,function(d){var g=ut(d);if(g&&g.dataIndex!=null){var p=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return u=p&&p.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return u=B({},g.eventData),!0},!0),u){var f=u.componentType,h=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=u.seriesIndex);var c=f&&h!=null&&o.getComponent(f,h),v=c&&r[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];u.event=a,u.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:u,model:c,view:v},r.trigger(n,u)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),M(aa,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)}),zL(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&Ny(this.getDom(),Hh,"");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 oa[n.id]},t.prototype.resize=function(r){if(!this[Nt]){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[jt]&&(a==null&&(a=this[jt].silent),i=!0,this[jt]=null),this[Nt]=!0;try{i&&Fn(this),br.update.call(this,{type:"resize",animation:B({duration:0},r&&r.animation)})}catch(o){throw this[Nt]=!1,o}this[Nt]=!1,Ii.call(this,a),Pi.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(X(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!Df[r]){var i=Df[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=B({},r);return n.type=aa[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(X(n)||(n={silent:!!n}),!!ys[r.type]&&this._model){if(this[Nt]){this._pendingActions.push(r);return}var i=n.silent;ll.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&q.browser.weChat&&this._throttledZrFlush(),Ii.call(this,i),Pi.call(this,i)}},t.prototype.updateLabelLayout=function(){De.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Fn=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),ol(h,!0),ol(h,!1),c.plan()},ol=function(h,c){for(var v=h._model,d=h._scheduler,g=c?h._componentsViews:h._chartsViews,p=c?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_c.get("hoverLayerThreshold")&&!q.node&&!q.worker&&c.eachSeries(function(p){if(!p.preventUsingHoverLayer){var y=h._chartsMap[p.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(h,c){if(!h.preventAutoZ){var v=h.get("z")||0,d=h.get("zlevel")||0;c.eachRendered(function(g){return u(g,v,d,-1/0),!0})}}function u(h,c,v,d){var g=h.getTextContent(),p=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_0?{duration:g,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(y){if(y.states&&y.states.emphasis){if(ti(y))return;if(y instanceof rt&&PM(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=p;var _=y.getTextContent(),w=y.getTextGuideLine();_&&(_.stateTransition=p),w&&(w.stateTransition=p)}y.__dirty&&i(y)}})}rp=function(h){return new(function(c){H(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var g=d.__ecComponentInfo;if(g!=null)return h._model.getComponent(g.mainType,g.index);d=d.parent}},v.prototype.enterEmphasis=function(d,g){af(d,g),le(h)},v.prototype.leaveEmphasis=function(d,g){of(d,g),le(h)},v.prototype.enterBlur=function(d){wM(d),le(h)},v.prototype.leaveBlur=function(d){em(d),le(h)},v.prototype.enterSelect=function(d){rm(d),le(h)},v.prototype.leaveSelect=function(d){nm(d),le(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v}(jm))(h)},Y0=function(h){function c(v,d){for(var g=0;g=0)){ap.push(r);var a=T0.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function Q0(e,t){Df[e]=t}function F2(e,t,r){var n=p2("registerMap");n&&n(e,t,r)}var z2=UA;Tn(zh,_L);Tn(Js,wL);Tn(Js,SL);Tn(zh,OL);Tn(Js,kL);Tn(G0,c2);j0(Qm);K0(m2,TA);Q0("default",xL);di({type:yn,event:yn,update:yn},ee);di({type:Fo,event:Fo,update:Fo},ee);di({type:ta,event:ta,update:ta},ee);di({type:zo,event:zo,update:zo},ee);di({type:ea,event:ea,update:ea},ee);Z0("light",EL);Z0("dark",A0);function Ei(e){return e==null?0:e.length||1}function op(e){return e}var Af=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||op,this._newKeyGetter=i||op,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o1){var f=u.shift();u.length===1&&(n[s]=u[0]),this._update&&this._update(f,o)}else l===1?(n[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,l),i[u]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,l),i[u]=null;else if(h===1&&c===1)this._update&&this._update(f,l),i[u]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,l),i[u]=null;else if(h>1)for(var v=0;v1)for(var s=0;s30}var Ri=X,Tr=$,Y2=typeof Int32Array>"u"?Array:Int32Array,X2="e\0\0",sp=-1,q2=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Z2=["_approximateExtent"],up,mo,Oi,ki,vl,Bi,cl,i_=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;t_(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},u=!1,l={},f=0;f=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,u=s===_e;if(u&&!i.pure)for(var l=[],f=t;f0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),z(a)?a=a.slice():Ri(a)&&(a=B({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Ri(r)?B(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Ri(t)?B(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?B(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;fM(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){M(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Tr(this.dimensions,this._getDimInfo,this),this.hostModel)),vl(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];J(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(th(arguments)))})},e.internalField=function(){up=function(t){var r=t._invertedIndicesMap;M(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new Y2(o.categories.length);for(var u=0;u1&&(u+="__ec__"+f),i[r]=u}}}(),e}();function a_(e,t){kh(e)||(e=Jm(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=Z(),a=[],o=K2(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&n_(o),u=n===e.dimensionsDefine,l=u?r_(e):e_(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var h=Z(f),c=new f0(o),v=0;v0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function K2(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return M(t,function(a){var o;X(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function Q2(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var J2=function(){function e(t){this.coordSysDims=[],this.axisMap=Z(),this.categoryAxisMap=Z(),this.coordSysName=t}return e}();function tI(e){var t=e.get("coordinateSystem"),r=new J2(t),n=eI[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var eI={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",Ie).models[0],a=e.getReferringComponents("yAxis",Ie).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),zn(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),zn(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",Ie).models[0];t.coordSysDims=["single"],r.set("single",i),zn(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",Ie).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),zn(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),zn(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();M(a.parallelAxisIndex,function(s,u){var l=i.getComponent("parallelAxis",s),f=o[u];r.set(f,l),zn(l)&&(n.set(f,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=u))})}};function zn(e){return e.get("type")==="category"}function rI(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;nI(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var u=!!(e&&e.get("stack")),l,f,h,c;if(M(a,function(m,_){W(m)&&(a[_]=m={name:m}),u&&!m.isExtraCoord&&(!n&&!l&&m.ordinalMeta&&(l=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(f=m))}),f&&!n&&!l&&(n=!0),f){h="__\0ecstackresult_"+e.id,c="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var v=f.coordDim,d=f.type,g=0;M(a,function(m){m.coordDim===v&&g++});var p={name:h,coordDim:v,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:c,coordDim:c,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(c,d),y.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(y)):(a.push(p),a.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:h}}function nI(e){return!t_(e.schema)}function o_(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function iI(e,t){return o_(e,t)?e.getCalculationInfo("stackResultDimension"):t}function aI(e,t){var r=e.get("coordinateSystem"),n=Oh.get(r),i;return t&&t.coordSysDims&&(i=$(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var u=s.get("type");o.type=V2(u)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function oI(e,t,r){var n,i;return r&&M(e,function(a,o){var s=a.coordDim,u=r.categoryAxisMap.get(s);u&&(n==null&&(n=o),a.ordinalMeta=u.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function s_(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===_e;var o=tI(t),s=aI(t,o),u=r.useEncodeDefaulter,l=J(u)?u:u?Yt(JD,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},h=a_(i,f),c=oI(h.dimensions,r.createInvertedIndices,o),v=a?null:n.getSharedDataStore(h),d=rI(t,{schema:h,store:v}),g=new i_(h,t);g.setCalculationInfo(d);var p=c!=null&&sI(i)?function(y,m,_,w){return w===c?_:this.defaultDimValueGetter(y,m,_,w)}:null;return g.hasItemOption=!1,g.initData(a?i:v,null,p),g}function sI(e){if(e.sourceFormat===_e){var t=uI(e.data||[]);return!z(Ba(t))}}function uI(e){for(var t=0;tr[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();ks(er);var lI=0,Lf=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++lI}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&$(n,fI);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!W(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Z(this.categories))},e}();function fI(e){return X(e)&&e.value!=null?e.value:e+""}function If(e){return e.type==="interval"||e.type==="log"}function hI(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=Py(a/t);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=u_(o),u=i.niceTickExtent=[Lt(Math.ceil(e[0]/o)*o,s),Lt(Math.floor(e[1]/o)*o,s)];return vI(u,e),i}function dl(e){var t=Math.pow(10,sh(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Lt(r*t)}function u_(e){return sr(e)+2}function lp(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function vI(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),lp(e,0,t),lp(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function tu(e,t){return e>=t[0]&&e<=t[1]}function eu(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function ru(e,t){return e*(t[1]-t[0])+t[0]}var Wh=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Lf({})),z(i)&&(i=new Lf({categories:$(i,function(a){return X(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:W(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),tu(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),eu(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(ru(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=Math.min(s,n.length);o=0&&r=0&&r=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(er);er.registerClass(Wh);var sn=Lt,pi=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return tu(r,this._extent)},t.prototype.normalize=function(r){return eu(r,this._extent)},t.prototype.scale=function(r){return ru(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=u_(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var u=1e4;i[0]u)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(r?s.push({value:sn(f+n,o)}):s.push({value:i[1]})),s},t.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 v_(e){var t=pI(e),r=[];return M(e,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 u=a.dim+"_"+a.index,l=t[u],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=l?f/c*l:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=pt(n.get("barWidth"),s),g=pt(n.get("barMaxWidth"),s),p=pt(n.get("barMinWidth")||(d_(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:g,barMinWidth:p,barGap:y,barCategoryGap:m,axisKey:Uh(a),stackId:f_(n)})}),gI(r)}function gI(e){var t={};M(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},u=s.stacks;t[a]=s;var l=n.stackId;u[l]||s.autoWidthCount++,u[l]=u[l]||{width:0,maxWidth:0};var f=n.barWidth;f&&!u[l].width&&(u[l].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(u[l].maxWidth=h);var c=n.barMinWidth;c&&(u[l].minWidth=c);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return M(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var u=gt(a).length;s=Math.max(35-u*4,15)+"%"}var l=pt(s,o),f=pt(n.gap,1),h=n.remainedWidth,c=n.autoWidthCount,v=(h-l)/(c+(c-1)*f);v=Math.max(v,0),M(a,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var w=y.width;m&&(w=Math.min(w,m)),_&&(w=Math.max(w,_)),y.width=w,h-=w+f*w,c--}else{var w=v;m&&mw&&(w=_),w!==v&&(y.width=w,h-=w+f*w,c--)}}),v=(h-l)/(c+(c-1)*f),v=Math.max(v,0);var d=0,g;M(a,function(y,m){y.width||(y.width=v),g=y,d+=y.width*(1+f)}),g&&(d-=g.width*f);var p=-d/2;M(a,function(y,m){r[i][m]=r[i][m]||{bandWidth:o,offset:p,width:y.width},p+=y.width*(1+f)})}),r}function yI(e,t,r){if(e&&t){var n=e[Uh(t)];return n}}function mI(e,t){var r=h_(e,t),n=v_(r);M(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),u=f_(i),l=n[Uh(s)][u],f=l.offset,h=l.width;a.setLayout({bandWidth:l.bandWidth,offset:f,size:h})})}function _I(e){return{seriesType:e,plan:_0(),reset:function(t){if(c_(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),u=t.get("showBackground",!0),l=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),h=o_(r,l)&&!!r.getCalculationInfo("stackedOnSeries"),c=a.isHorizontal(),v=wI(i,a),d=d_(t),g=t.get("barMinHeight")||0,p=f&&r.getDimensionIndex(f),y=r.getLayout("size"),m=r.getLayout("offset");return{progress:function(_,w){for(var x=_.count,S=d&&pl(x*3),b=d&&u&&pl(x*3),T=d&&pl(x),C=n.master.getRect(),D=c?C.width:C.height,A,P=w.getStore(),L=0;(A=_.next())!=null;){var I=P.get(h?p:o,A),E=P.get(s,A),O=v,N=void 0;h&&(N=+I-P.get(o,A));var R=void 0,k=void 0,F=void 0,G=void 0;if(c){var V=n.dataToPoint([I,E]);if(h){var j=n.dataToPoint([N,E]);O=j[0]}R=O,k=V[1]+m,F=V[0]-O,G=y,Math.abs(F)0?r:1:r))}var SI=function(e,t,r,n){for(;r>>1;e[i][1]i&&(this._approxInterval=i);var s=_o.length,u=Math.min(SI(_o,this._approxInterval,0,s),s-1);this._interval=_o[u][1],this._minLevelUnit=_o[Math.max(u-1,0)][0]},t.prototype.parse=function(r){return vt(r)?r:+dr(r)},t.prototype.contain=function(r){return tu(this.parse(r),this._extent)},t.prototype.normalize=function(r){return eu(this.parse(r),this._extent)},t.prototype.scale=function(r){return ru(r,this._extent)},t.type="time",t}(pi),_o=[["second",Mh],["minute",Dh],["hour",na],["quarter-day",na*6],["half-day",na*12],["day",ge*1.2],["half-week",ge*3.5],["week",ge*7],["month",ge*31],["quarter",ge*95],["half-year",Kc/2],["year",Kc]];function xI(e,t,r,n){var i=dr(t),a=dr(r),o=function(d){return Jc(i,d,n)===Jc(a,d,n)},s=function(){return o("year")},u=function(){return s()&&o("month")},l=function(){return u()&&o("day")},f=function(){return l()&&o("hour")},h=function(){return f()&&o("minute")},c=function(){return h()&&o("second")},v=function(){return c()&&o("millisecond")};switch(e){case"year":return s();case"month":return u();case"day":return l();case"hour":return f();case"minute":return h();case"second":return c();case"millisecond":return v()}}function bI(e,t){return e/=ge,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function TI(e){var t=30*ge;return e/=t,e>6?6:e>3?3:e>2?2:1}function CI(e){return e/=na,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function fp(e,t){return e/=t?Dh:Mh,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function MI(e){return Py(e)}function DI(e,t,r){var n=new Date(e);switch(ri(t)){case"year":case"month":n[Om(r)](0);case"day":n[km(r)](1);case"hour":n[Bm(r)](0);case"minute":n[Nm(r)](0);case"second":n[Fm(r)](0),n[zm(r)](0)}return n.getTime()}function AI(e,t,r,n){var i=1e4,a=Em,o=0;function s(D,A,P,L,I,E,O){for(var N=new Date(A),R=A,k=N[L]();R1&&E===0&&P.unshift({value:P[0].value-R})}}for(var E=0;E=n[0]&&m<=n[1]&&h++)}var _=(n[1]-n[0])/t;if(h>_*1.5&&c>_/1.5||(l.push(p),h>_||e===a[v]))break}f=[]}}}for(var w=Tt($(l,function(D){return Tt(D,function(A){return A.value>=n[0]&&A.value<=n[1]&&!A.notAdd})}),function(D){return D.length>0}),x=[],S=w.length-1,v=0;v0;)a*=10;var s=[Lt(PI(n[0]/a)*a),Lt(II(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){sa.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=Te(r)/Te(this.base),tu(r,this._extent)},t.prototype.normalize=function(r){return r=Te(r)/Te(this.base),eu(r,this._extent)},t.prototype.scale=function(r){return r=ru(r,this._extent),wo(this.base,r)},t.type="log",t}(er),g_=Yh.prototype;g_.getMinorTicks=sa.getMinorTicks;g_.getLabel=sa.getLabel;function So(e,t){return LI(e,sr(t))}er.registerClass(Yh);var EI=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]0&&u>0&&!l&&(s=0),s<0&&u<0&&!f&&(u=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,l=!0),v!=null&&(u=v,f=!0),{min:s,max:u,minFixed:l,maxFixed:f,isBlank:h}},e.prototype.modifyDataMinMax=function(t,r){this[OI[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=RI[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),RI={min:"_determinedMin",max:"_determinedMax"},OI={min:"_dataMin",max:"_dataMax"};function kI(e,t,r){var n=e.rawExtentInfo;return n||(n=new EI(e,t,r),e.rawExtentInfo=n,n)}function xo(e,t){return t==null?null:Ko(t)?NaN:e.parse(t)}function y_(e,t){var r=e.type,n=kI(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=h_("bar",o),u=!1;if(M(s,function(h){u=u||h.getBaseAxis()===t.axis}),u){var l=v_(s),f=BI(i,a,t,l);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function BI(e,t,r,n){var i=r.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=yI(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;M(o,function(v){s=Math.min(v.offset,s)});var u=-1/0;M(o,function(v){u=Math.max(v.offset+v.width,u)}),s=Math.abs(s),u=Math.abs(u);var l=s+u,f=t-e,h=1-(s+u)/a,c=f/h-f;return t+=c*(u/l),e-=c*(s/l),{min:e,max:t}}function vp(e,t){var r=t,n=y_(e,r),i=n.extent,a=r.get("splitNumber");e instanceof Yh&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),u=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:u?r.get("minInterval"):null,maxInterval:u?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function NI(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Wh({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new p_({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(er.getClass(t)||pi)}}function FI(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function gi(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(i,a){return e.scale.getFormattedLabel(i,a,n)}}(t):W(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):J(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(Xh(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function Xh(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function zI(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof Wh?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=gi(e),u,l=1;i>40&&(l=Math.ceil(i/40));for(var f=0;f=0||(cp.push(e),J(e)&&(e={install:e}),e.install($I))}var Da=mt();function __(e,t){var r=$(t,function(n){return e.scale.parse(n)});return e.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function WI(e){var t=e.getLabelModel().get("customValues");if(t){var r=gi(e),n=e.scale.getExtent(),i=__(e,t),a=Tt(i,function(o){return o>=n[0]&&o<=n[1]});return{labels:$(a,function(o){var s={value:o};return{formattedLabel:r(s),rawLabel:e.scale.getLabel(s),tickValue:o}})}}return e.type==="category"?YI(e):qI(e)}function UI(e,t){var r=e.getTickModel().get("customValues");if(r){var n=e.scale.getExtent(),i=__(e,r);return{ticks:Tt(i,function(a){return a>=n[0]&&a<=n[1]})}}return e.type==="category"?XI(e,t):{ticks:$(e.scale.getTicks(),function(a){return a.value})}}function YI(e){var t=e.getLabelModel(),r=w_(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function w_(e,t){var r=S_(e,"labels"),n=qh(t),i=x_(r,n);if(i)return i;var a,o;return J(n)?a=C_(e,n):(o=n==="auto"?ZI(e):n,a=T_(e,o)),b_(r,n,{labels:a,labelCategoryInterval:o})}function XI(e,t){var r=S_(e,"ticks"),n=qh(t),i=x_(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),J(n))a=C_(e,n,!0);else if(n==="auto"){var s=w_(e,e.getLabelModel());o=s.labelCategoryInterval,a=$(s.labels,function(u){return u.tickValue})}else o=n,a=T_(e,o,!0);return b_(r,n,{ticks:a,tickCategoryInterval:o})}function qI(e){var t=e.scale.getTicks(),r=gi(e);return{labels:$(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function S_(e,t){return Da(e)[t]||(Da(e)[t]=[])}function x_(e,t){for(var r=0;r40&&(s=Math.max(1,Math.floor(o/40)));for(var u=a[0],l=e.dataToCoord(u+1)-e.dataToCoord(u),f=Math.abs(l*Math.cos(n)),h=Math.abs(l*Math.sin(n)),c=0,v=0;u<=a[1];u+=s){var d=0,g=0,p=ah(r({value:u}),t.font,"center","top");d=p.width*1.3,g=p.height*1.3,c=Math.max(c,d,7),v=Math.max(v,g,7)}var y=c/f,m=v/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),w=Da(e.model),x=e.getExtent(),S=w.lastAutoInterval,b=w.lastTickCount;return S!=null&&b!=null&&Math.abs(S-_)<=1&&Math.abs(b-o)<=1&&S>_&&w.axisExtent0===x[0]&&w.axisExtent1===x[1]?_=S:(w.lastTickCount=o,w.lastAutoInterval=_,w.axisExtent0=x[0],w.axisExtent1=x[1]),_}function KI(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function T_(e,t,r){var n=gi(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],u=Math.max((t||0)+1,1),l=a[0],f=i.count();l!==0&&u>1&&f/u>2&&(l=Math.round(Math.ceil(l/u)*u));var h=m_(e),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&l!==a[0]&&g(a[0]);for(var d=l;d<=a[1];d+=u)g(d);v&&d-u!==a[1]&&g(a[1]);function g(p){var y={value:p};s.push(r?p:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:p})}return s}function C_(e,t,r){var n=e.scale,i=gi(e),a=[];return M(n.getTicks(),function(o){var s=n.getLabel(o),u=o.value;t(o.value,s)&&a.push(r?u:{formattedLabel:i(o),rawLabel:s,tickValue:u})}),a}var dp=[0,1],QI=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return YT(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),pp(n,i.count())),Jl(t,dp,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),pp(n,i.count()));var a=Jl(t,n,dp,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=UI(this,r),i=n.ticks,a=$(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return JI(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=$(n,function(a){return $(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return WI(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return jI(this)},e}();function pp(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function JI(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1],tickValue:t[0].tickValue};else{var u=t[i-1].tickValue-t[0].tickValue,l=(t[i-1].coord-t[0].coord)/u;M(t,function(v){v.coord-=l/2});var f=e.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+l*s,tickValue:f[1]+1},t.push(o)}var h=a[0]>a[1];c(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&c(a[0],t[0].coord)&&t.unshift({coord:a[0]}),c(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&c(o.coord,a[1])&&t.push({coord:a[1]});function c(v,d){return v=Lt(v),d=Lt(d),h?v>d:vi&&(i+=Ni);var v=Math.atan2(s,o);if(v<0&&(v+=Ni),v>=n&&v<=i||v+Ni>=n&&v+Ni<=i)return u[0]=f,u[1]=h,l-r;var d=r*Math.cos(n)+e,g=r*Math.sin(n)+t,p=r*Math.cos(i)+e,y=r*Math.sin(i)+t,m=(d-o)*(d-o)+(g-s)*(g-s),_=(p-o)*(p-o)+(y-s)*(y-s);return m<_?(u[0]=d,u[1]=g,Math.sqrt(m)):(u[0]=p,u[1]=y,Math.sqrt(_))}function _s(e,t,r,n,i,a,o,s){var u=i-e,l=a-t,f=r-e,h=n-t,c=Math.sqrt(f*f+h*h);f/=c,h/=c;var v=u*f+l*h,d=v/c;s&&(d=Math.min(Math.max(d,0),1)),d*=c;var g=o[0]=e+d*f,p=o[1]=t+d*h;return Math.sqrt((g-i)*(g-i)+(p-a)*(p-a))}function M_(e,t,r,n,i,a,o){r<0&&(e=e+r,r=-r),n<0&&(t=t+n,n=-n);var s=e+r,u=t+n,l=o[0]=Math.min(Math.max(i,e),s),f=o[1]=Math.min(Math.max(a,t),u);return Math.sqrt((l-i)*(l-i)+(f-a)*(f-a))}var Le=[];function nP(e,t,r){var n=M_(t.x,t.y,t.width,t.height,e.x,e.y,Le);return r.set(Le[0],Le[1]),n}function iP(e,t,r){for(var n=0,i=0,a=0,o=0,s,u,l=1/0,f=t.data,h=e.x,c=e.y,v=0;v0){t=t/180*Math.PI,Pe.fromArray(e[0]),ot.fromArray(e[1]),xt.fromArray(e[2]),U.sub(Ue,Pe,ot),U.sub(Ve,xt,ot);var r=Ue.len(),n=Ve.len();if(!(r<.001||n<.001)){Ue.scale(1/r),Ve.scale(1/n);var i=Ue.dot(Ve),a=Math.cos(t);if(a1&&U.copy(Ut,xt),Ut.toArray(e[1])}}}}function aP(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Pe.fromArray(e[0]),ot.fromArray(e[1]),xt.fromArray(e[2]),U.sub(Ue,ot,Pe),U.sub(Ve,xt,ot);var n=Ue.len(),i=Ve.len();if(!(n<.001||i<.001)){Ue.scale(1/n),Ve.scale(1/i);var a=Ue.dot(t),o=Math.cos(r);if(a=u)U.copy(Ut,xt);else{Ut.scaleAndAdd(Ve,s/Math.tan(Math.PI/2-f));var h=xt.x!==ot.x?(Ut.x-ot.x)/(xt.x-ot.x):(Ut.y-ot.y)/(xt.y-ot.y);if(isNaN(h))return;h<0?U.copy(Ut,ot):h>1&&U.copy(Ut,xt)}Ut.toArray(e[1])}}}}function gl(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function oP(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=zl(n[0],n[1]),a=zl(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=Po([],n[1],n[0],o/i),u=Po([],n[1],n[2],o/a),l=Po([],s,u,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(u[0],u[1],u[0],u[1],n[2][0],n[2][1])}else for(var f=1;f0){_(C*T,0,o);var D=C+S;D<0&&w(-D*T,1)}else w(-S*T,1)}}function _(S,b,T){S!==0&&(l=!0);for(var C=b;C0)for(var D=0;D0;D--){var I=T[D-1]*L;_(-I,D,o)}}}function x(S){var b=S<0?-1:1;S=Math.abs(S);for(var T=Math.ceil(S/(o-1)),C=0;C0?_(T,0,C+1):_(-T,o-C-1,o),S-=T,S<=0)return}return l}function sP(e,t,r,n){return P_(e,"x","width",t,r)}function E_(e,t,r,n){return P_(e,"y","height",t,r)}function R_(e){var t=[];e.sort(function(g,p){return p.priority-g.priority});var r=new it(0,0,0,0);function n(g){if(!g.ignore){var p=g.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}g.ignore=!0}for(var i=0;i=0&&n.attr(a.oldLayoutSelect),lt(c,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),se(n,l,r,u)}else if(n.attr(l),!Ga(n).valueAnimation){var h=K(n.style.opacity,1);n.style.opacity=0,me(n,{style:{opacity:h}},r,u)}if(a.oldLayout=l,n.states.select){var v=a.oldLayoutSelect={};bo(v,l,To),bo(v,n.states.select,To)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};bo(d,l,To),bo(d,n.states.emphasis,To)}MD(n,u,f,r,r)}if(i&&!i.ignore&&!i.invisible){var a=fP(i),o=a.oldLayout,g={points:i.shape.points};o?(i.attr({shape:o}),se(i,{shape:g},r)):(i.setShape(g),i.style.strokePercent=0,me(i,{style:{strokePercent:1}},r)),a.oldLayout=g}},e}(),ml=mt();function vP(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=ml(r).labelManager;i||(i=ml(r).labelManager=new hP),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=ml(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}function cP(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=oi(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(t[a])}return n.join(" ")}function pP(e,t,r,n,i){var a=e.getArea(),o=a.x,s=a.y,u=a.width,l=a.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,u+=f,l+=f,u=Math.ceil(u),o!==Math.floor(o)&&(o=Math.floor(o),u++);var h=new Et({shape:{x:o,y:s,width:u,height:l}});return h}function gP(e,t,r){var n=e.getArea(),i=Lt(n.r0,1),a=Lt(n.r,1),o=new Ze({shape:{cx:Lt(e.cx,1),cy:Lt(e.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});return o}function yP(e,t,r,n,i){if(e){if(e.type==="polar")return gP(e);if(e.type==="cartesian2d")return pP(e,t,r)}else return null;return null}function O_(e,t){return e.type===t}var mP={average:function(e){for(var t=0,r=0,n=0;nt&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r10&&o.type==="cartesian2d"&&a){var u=o.getBaseAxis(),l=o.getOtherAxis(u),f=u.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(h||1),v=Math.round(s/c);if(isFinite(v)&&v>1){a==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/v)):a==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(l.dim),1/v));var d=void 0;W(a)?d=mP[a]:J(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(l.dim),1/v,d,_P))}}}}}var Pf=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return s_(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)M(a.getAxes(),function(c,v){if(c.type==="category"&&n!=null){var d=c.getTicksCoords(),g=c.getTickModel().get("alignWithLabel"),p=o[v],y=n[v]==="x1"||n[v]==="y1";if(y&&!g&&(p+=1),d.length<2)return;if(d.length===2){s[v]=c.toGlobalCoord(c.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,w=1,x=0;xp){_=(S+m)/2;break}x===1&&(w=b-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=c.toGlobalCoord(_)}});else{var u=this.getData(),l=u.getLayout("offset"),f=u.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=l+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(je);je.registerClass(Pf);var SP=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return s_(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=BD(Pf.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}),t}(Pf),xP=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),mp=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new xP},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),u=(s-o)*.5,l=o+u,f=n.startAngle,h=n.endAngle,c=n.clockwise,v=Math.PI*2,d=c?h-fMath.PI/2&&fs)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){ls(a,r,ut(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(hr),_p={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=_l(t.x,e.x),s=wl(t.x+t.width,i),u=_l(t.y,e.y),l=wl(t.y+t.height,a),f=si?s:o,t.y=h&&u>a?l:u,t.width=f?0:s-o,t.height=h?0:l-u,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||h},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=wl(t.r,e.r),a=_l(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},wp={cartesian2d:function(e,t,r,n,i,a,o,s,u){var l=new Et({shape:B({},n),z2:1});if(l.__dataIndex=r,l.name="item",a){var f=l.shape,h=i?"height":"width";f[h]=0}return l},polar:function(e,t,r,n,i,a,o,s,u){var l=!i&&u?mp:Ze,f=new l({shape:n,z2:1});f.name="item";var h=k_(i);if(f.calculateTextPosition=bP(h,{isRoundCap:l===mp}),a){var c=f.shape,v=i?"r":"endAngle",d={};c[v]=i?n.r0:n.startAngle,d[v]=n[v],(s?se:me)(f,{shape:d},a)}return f}};function DP(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function Sp(e,t,r,n,i,a,o,s){var u,l;a?(l={x:n.x,width:n.width},u={y:n.y,height:n.height}):(l={y:n.y,height:n.height},u={x:n.x,width:n.width}),s||(o?se:me)(r,{shape:u},t,i,null);var f=t?e.baseAxis.model:null;(o?se:me)(r,{shape:l},f,i)}function xp(e,t){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(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function IP(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function k_(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function Tp(e,t,r,n,i,a,o,s){var u=t.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=e.shape,h=Yi(n.getModel("itemStyle"),f,!0);B(f,h),e.setShape(f)}}else{var l=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",l)}e.useStyle(u);var c=n.getShallow("cursor");c&&e.attr("cursor",c);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=Dm(n);Mm(e,d,{labelFetcher:a,labelDataIndex:r,defaultText:cP(a.getData(),r),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:v});var g=e.getTextContent();if(s&&g){var p=n.get(["label","position"]);e.textConfig.inside=p==="middle"?!0:null,TP(e,p==="outside"?v:p,k_(o),n.get(["label","rotate"]))}CD(g,d,a.getRawValue(r),function(m){return dP(t,m)});var y=n.getModel(["emphasis"]);om(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),sm(e,n),IP(i)&&(e.style.fill="none",e.style.stroke="none",M(e.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function PP(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var EP=function(){function e(){}return e}(),Cp=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new EP},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],u=[],l=this.barWidth,f=0;f=0?r:null},30,!1);function RP(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],u=[],l=e.barWidth,f=0,h=a.length/3;f=s[0]&&t<=s[0]+u[0]&&r>=s[1]&&r<=s[1]+u[1])return o[f]}return-1}function B_(e,t,r){if(O_(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}else{var i=r.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function OP(e,t,r){var n=e.type==="polar"?Ze:Et;return new n({shape:B_(t,r,e),silent:!0,z2:0})}function kP(e){e.registerChartView(MP),e.registerSeriesModel(SP),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Yt(mI,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,_I("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,wP("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var Ap=Math.PI*2,Ao=Math.PI/180;function N_(e,t){return js(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function F_(e,t){var r=N_(e,t),n=e.get("center"),i=e.get("radius");z(i)||(i=[0,i]);var a=pt(r.width,t.getWidth()),o=pt(r.height,t.getHeight()),s=Math.min(a,o),u=pt(i[0],s/2),l=pt(i[1],s/2),f,h,c=e.coordinateSystem;if(c){var v=c.dataToPoint(n);f=v[0]||0,h=v[1]||0}else z(n)||(n=[n,n]),f=pt(n[0],a)+r.x,h=pt(n[1],o)+r.y;return{cx:f,cy:h,r0:u,r:l}}function BP(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=N_(n,r),s=F_(n,r),u=s.cx,l=s.cy,f=s.r,h=s.r0,c=-n.get("startAngle")*Ao,v=n.get("endAngle"),d=n.get("padAngle")*Ao;v=v==="auto"?c-Ap:-v*Ao;var g=n.get("minAngle")*Ao,p=g+d,y=0;i.each(a,function(N){!isNaN(N)&&y++});var m=i.getSum(a),_=Math.PI/(m||y)*2,w=n.get("clockwise"),x=n.get("roseType"),S=n.get("stillShowZeroSum"),b=i.getDataExtent(a);b[0]=0;var T=w?1:-1,C=[c,v],D=T*d/2;Uy(C,!w),c=C[0],v=C[1];var A=z_(n);A.startAngle=c,A.endAngle=v,A.clockwise=w;var P=Math.abs(v-c),L=P,I=0,E=c;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(N,R){var k;if(isNaN(N)){i.setItemLayout(R,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:u,cy:l,r0:h,r:x?NaN:f});return}x!=="area"?k=m===0&&S?_:N*_:k=P/y,kk?(G=E+T*k/2,V=G):(G=E+D,V=F-D),i.setItemLayout(R,{angle:k,startAngle:G,endAngle:V,clockwise:w,cx:u,cy:l,r0:h,r:x?Jl(N,b,[h,f]):f}),E=F}),Lr?y:p,x=Math.abs(_.label.y-r);if(x>=w.maxY){var S=_.label.x-t-_.len2*i,b=n+_.len,T=Math.abs(S)e.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var g=n.getBoundingRect();a.width=g.width;var p=(n.style.margin||0)+2.1;a.height=g.height+p,a.y-=(a.height-h)/2}}}function Sl(e){return e.position==="center"}function GP(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*FP,s=t.getLayout("viewRect"),u=t.getLayout("r"),l=s.width,f=s.x,h=s.y,c=s.height;function v(S){S.ignore=!0}function d(S){if(!S.ignore)return!0;for(var b in S.states)if(S.states[b].ignore===!1)return!0;return!1}t.each(function(S){var b=t.getItemGraphicEl(S),T=b.shape,C=b.getTextContent(),D=b.getTextGuideLine(),A=t.getItemModel(S),P=A.getModel("label"),L=P.get("position")||A.get(["emphasis","label","position"]),I=P.get("distanceToLabelLine"),E=P.get("alignTo"),O=pt(P.get("edgeDistance"),l),N=P.get("bleedMargin"),R=A.getModel("labelLine"),k=R.get("length");k=pt(k,l);var F=R.get("length2");if(F=pt(F,l),Math.abs(T.endAngle-T.startAngle)0?"right":"left":V>0?"left":"right"}var ke=Math.PI,Se=0,yr=P.get("rotate");if(vt(yr))Se=yr*(ke/180);else if(L==="center")Se=0;else if(yr==="radial"||yr===!0){var Ha=V<0?-G+ke:-G;Se=Ha}else if(yr==="tangential"&&L!=="outside"&&L!=="outer"){var rr=Math.atan2(V,j);rr<0&&(rr=ke*2+rr);var nu=j>0;nu&&(rr=ke+rr),Se=rr-ke}if(a=!!Se,C.x=ct,C.y=St,C.rotation=Se,C.setStyle({verticalAlign:"middle"}),Pt){C.setStyle({align:kt});var yi=C.states.select;yi&&(yi.x+=C.x,yi.y+=C.y)}else{var mr=C.getBoundingRect().clone();mr.applyTransform(C.getComputedTransform());var Va=(C.style.margin||0)+2.1;mr.y-=Va/2,mr.height+=Va,r.push({label:C,labelLine:D,position:L,len:k,len2:F,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new U(V,j),linePoints:It,textAlign:kt,labelDistance:I,labelAlignTo:E,edgeDistance:O,bleedMargin:N,rect:mr,unconstrainedWidth:mr.width,labelStyleWidth:C.style.width})}b.setTextConfig({inside:Pt})}}),!a&&e.get("avoidLabelOverlap")&&zP(r,n,i,u,l,c,f,h);for(var g=0;g0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h=a.r0}},t.type="pie",t}(hr);function $P(e,t,r){t=z(t)&&{coordDimensions:t}||B({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=a_(n,t).dimensions,a=new i_(i,e);return a.initData(n,r),a}var WP=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}(),UP=mt(),YP=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new WP(_t(this.getData,this),_t(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return $P(this,{coordDimensions:["value"],encodeDefaulter:Yt(tA,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=UP(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(u){o.push(u)}),a=i.seats=XT(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){tf(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(je);function XP(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(vt(o)&&!isNaN(o)&&o<0)})}}}function qP(e){e.registerChartView(VP),e.registerSeriesModel(YP),FL("pie",e.registerAction),e.registerLayout(Yt(BP,"pie")),e.registerProcessor(NP("pie")),e.registerProcessor(XP("pie"))}var ZP=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.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"},t}(st),Ef=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ie).models[0]},t.type="cartesian2dAxis",t}(st);Qe(Ef,VI);var H_={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},jP=ft({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},H_),Zh=ft({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}}},H_),KP=ft({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Zh),QP=et({logBase:10},Zh);const JP={category:jP,value:Zh,time:KP,log:QP};var tE={value:1,category:1,time:1,log:1};function Ip(e,t,r,n){M(tE,function(i,a){var o=ft(ft({},JP[a],!0),n,!0),s=function(u){H(l,u);function l(){var f=u!==null&&u.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return l.prototype.mergeDefaultAndTheme=function(f,h){var c=wa(this),v=c?Ih(f):{},d=h.getTheme();ft(f,d.get(a+"Axis")),ft(f,this.getDefaultOption()),f.type=Pp(f),c&&Sa(f,v,c)},l.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Lf.createByAxisModel(this))},l.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.type=t+"Axis."+a,l.defaultOption=o,l}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",Pp)}function Pp(e){return e.type||(e.data?"category":"value")}var eE=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return $(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Tt(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}(),Rf=["x","y"];function Ep(e){return e.type==="interval"||e.type==="time"}var rE=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=Rf,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Ep(r)||!Ep(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),u=i[1]-i[0],l=a[1]-a[0];if(!(!u||!l)){var f=(s[0]-o[0])/u,h=(s[1]-o[1])/l,c=o[0]-i[0]*f,v=o[1]-a[0]*h,d=this._transform=[f,0,0,h,c,v];this._invTransform=Rs([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new it(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return ye(i,r,this._transform);var s=this.getAxis("x"),u=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=u.toGlobalCoord(u.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),u=i.parse(r[0]),l=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),u),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),l),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return ye(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,u=Math.max(i[0],i[1])-o+r;return new it(a,o,s,u)},t}(eE),nE=function(e){H(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(QI);function Of(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,u=o?"onZero":s,l=i.dim,f=n.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],c={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=l==="x"?[h[2]-v,h[3]+v]:[h[0]-v,h[1]+v];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(g,d[1]),d[0])}a.position=[l==="y"?d[c[u]]:h[0],l==="x"?d[c[u]]:h[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[s],a.labelOffset=o?d[c[s]]-d[c.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),ca(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate=u==="top"?-y:y,a.z2=1,a}function Rp(e){return e.get("coordinateSystem")==="cartesian2d"}function Op(e){var t={xAxisModel:null,yAxisModel:null};return M(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,Ie).models[0];t[n]=a}),t}var xl=Math.log;function iE(e,t,r){var n=pi.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),u=y_(e,t),l=u.extent,f=u.fixMin,h=u.fixMax;if(e.type==="log"){var c=xl(e.base);l=[xl(l[0])/c,xl(l[1])/c]}e.setExtent(l[0],l[1]),e.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var v=n.getExtent.call(e);f&&(l[0]=v[0]),h&&(l[1]=v[1]);var d=n.getInterval.call(e),g=l[0],p=l[1];if(f&&h)d=(p-g)/o;else if(f)for(p=l[0]+d*o;pl[0]&&isFinite(g)&&isFinite(l[0]);)d=dl(d),g=l[1]-d*o;else{var y=e.getTicks().length-1;y>o&&(d=dl(d));var m=d*o;p=Math.ceil(l[1]/d)*d,g=Lt(p-m),g<0&&l[0]>=0?(g=0,p=Lt(m)):p>0&&l[1]<=0&&(p=0,g=-Lt(m))}var _=(i[0].value-a[0].value)/s,w=(i[o].value-a[o].value)/s;n.setExtent.call(e,g+d*_,p+d*w),n.setInterval.call(e,d),(_||w)&&n.setNiceExtent.call(e,g+d,p-d)}var aE=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Rf,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,u=gt(o),l=u.length;if(l){for(var f=[],h=l-1;h>=0;h--){var c=+u[h],v=o[c],d=v.model,g=v.scale;If(g)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(vp(g,d),If(g)&&(s=v))}f.length&&(s||(s=f.pop(),vp(s.scale,s.model)),M(f,function(p){iE(p.scale,p.model,s.scale)}))}}i(n.x),i(n.y);var a={};M(n.x,function(o){kp(n,"y",o,a)}),M(n.y,function(o){kp(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=js(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;u(),a&&(M(s,function(l){if(!l.model.get(["axisLabel","inside"])){var f=zI(l);if(f){var h=l.isHorizontal()?"height":"width",c=l.model.get(["axisLabel","margin"]);o[h]-=f[h]+c,l.position==="top"?o.y+=f.height+c:l.position==="left"&&(o.x+=f.width+c)}}}),u()),M(this._coordsList,function(l){l.calcAffineTransform()});function u(){M(s,function(l){var f=l.isHorizontal(),h=f?[0,o.width]:[0,o.height],c=l.inverse?1:0;l.setExtent(h[c],h[1-c]),oE(l,f?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}X(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):as(i-Lr)?(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}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),Np={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],u=[a[1],0],l=s[0]>u[0];o&&(ye(s,s,o),ye(u,u,o));var f=B({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Fr({shape:{x1:s[0],y1:s[1],x2:u[0],y2:u[1]},style:f,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});ya(h.shape,h.style.lineWidth),h.anid="line",r.add(h);var c=t.get(["axisLine","symbol"]);if(c!=null){var v=t.get(["axisLine","symbolSize"]);W(c)&&(c=[c,c]),(W(v)||vt(v))&&(v=[v,v]);var d=KL(t.get(["axisLine","symbolOffset"])||0,v),g=v[0],p=v[1];M([{rotate:e.rotation+Math.PI/2,offset:d[0],r:0},{rotate:e.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-u[0])*(s[0]-u[0])+(s[1]-u[1])*(s[1]-u[1]))}],function(y,m){if(c[m]!=="none"&&c[m]!=null){var _=L0(c[m],-g/2,-p/2,g,p,f.stroke,!0),w=y.r+y.offset,x=l?u:s;_.attr({rotation:y.rotate,x:x[0]+w*Math.cos(e.rotation),y:x[1]-w*Math.sin(e.rotation),silent:!0,z2:11}),r.add(_)}})}}},axisTickLabel:function(e,t,r,n){var i=lE(r,n,t,e),a=hE(r,n,t,e);if(uE(t,a,i),fE(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=I_($(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));R_(o)}},axisName:function(e,t,r,n){var i=ca(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),u=t.get("nameGap")||0,l=t.axis.getExtent(),f=l[0]>l[1]?-1:1,h=[a==="start"?l[0]-f*u:a==="end"?l[1]+f*u:(l[0]+l[1])/2,zp(a)?e.labelOffset+o*u:0],c,v=t.get("nameRotate");v!=null&&(v=v*Lr/180);var d;zp(a)?c=Er.innerTextLayout(e.rotation,v??e.rotation,o):(c=sE(e.rotation,a,v||0,l),d=e.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(c.rotation)),!isFinite(d)&&(d=null)));var g=s.getFont(),p=t.get("nameTruncate",!0)||{},y=p.ellipsis,m=ca(e.nameTruncateMaxWidth,p.maxWidth,d),_=new oe({x:h[0],y:h[1],rotation:c.rotation,silent:Er.isLabelSilent(t),style:wn(s,{text:i,font:g,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(xh({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var w=Er.makeAxisEventDataBase(t);w.targetType="axisName",w.name=i,ut(_).eventData=w}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function sE(e,t,r,n){var i=Iy(r-e),a,o,s=n[0]>n[1],u=t==="start"&&!s||t!=="start"&&s;return as(i-Lr/2)?(o=u?"bottom":"top",a="center"):as(i-Lr*1.5)?(o=u?"top":"bottom",a="center"):(o="middle",iLr/2?a=u?"left":"right":a=u?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function uE(e,t,r){if(!m_(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],u=t[t.length-2],l=r[0],f=r[1],h=r[r.length-1],c=r[r.length-2];n===!1?(fe(a),fe(l)):Fp(a,o)&&(n?(fe(o),fe(f)):(fe(a),fe(l))),i===!1?(fe(s),fe(h)):Fp(u,s)&&(i?(fe(u),fe(c)):(fe(s),fe(h)))}}function fe(e){e&&(e.ignore=!0)}function Fp(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=rh([]);return nh(i,i,-e.rotation),r.applyTransform(Kn([],i,e.getLocalTransform())),n.applyTransform(Kn([],i,t.getLocalTransform())),r.intersect(n)}}function zp(e){return e==="middle"||e==="center"}function V_(e,t,r,n,i){for(var a=[],o=[],s=[],u=0;u=0||e===t}function yE(e){var t=jh(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=kf(r);a==null&&(i.status=s?"show":"hide");var u=n.getExtent().slice();u[0]>u[1]&&u.reverse(),(o==null||o>u[1])&&(o=u[1]),os)return!0;if(o){var u=jh(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=vn(t).pointerEl=new SD[a.type](Vp(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=vn(t).labelEl=new oe(Vp(r.label));t.add(a),Wp(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=vn(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=vn(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),Wp(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=bm(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){uy(l.event)},onmousedown:Cl(this._onHandleDragMove,this,0,0),drift:Cl(this._onHandleDragMove,this),ondragend:Cl(this._onHandleDragEnd,this)}),n.add(i)),Up(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=a.get("size");z(u)||(u=[u,u]),i.scaleX=u[0]/2,i.scaleY=u[1]/2,S0(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){$p(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Ml(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Ml(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Ml(i)),vn(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),wf(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function $p(e,t,r,n){Y_(vn(r).lastProp,n)||(vn(r).lastProp=n,t?se(r,n,e):(r.stopAnimation(),r.attr(n)))}function Y_(e,t){if(X(e)&&X(t)){var r=!0;return M(t,function(n,i){r=r&&Y_(e[i],n)}),!!r}else return e===t}function Wp(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Ml(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Up(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function AE(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function LE(e,t,r,n,i){var a=r.get("value"),o=X_(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),u=Lh(s.get("padding")||0),l=s.getFont(),f=ah(o,l),h=i.position,c=f.width+u[1]+u[3],v=f.height+u[0]+u[2],d=i.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var g=i.verticalAlign;g==="bottom"&&(h[1]-=v),g==="middle"&&(h[1]-=v/2),IE(h,c,v,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),e.label={x:h[0],y:h[1],style:wn(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:p}),z2:10}}function IE(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function X_(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:Xh(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};M(n,function(u){var l=r.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,h=l&&l.getDataParams(f);h&&s.seriesData.push(h)}),W(o)?a=o.replace("{value}",a):J(o)&&(a=o(s))}return a}function q_(e,t,r){var n=jn();return nh(n,n,r.rotation),$l(n,n,r.position),Sh([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function PE(e,t,r,n,i,a){var o=Er.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),LE(t,n,i,a,{position:q_(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function EE(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function RE(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var OE=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,u=s.grid,l=a.get("type"),f=Yp(u,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(l&&l!=="none"){var c=AE(a),v=kE[l](s,h,f);v.style=c,r.graphicKey=v.type,r.pointer=v}var d=Of(u.model,i);PE(n,r,d,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=Of(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=q_(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,u=o.getGlobalExtent(!0),l=Yp(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[r.x,r.y];h[f]+=n[f],h[f]=Math.min(u[1],h[f]),h[f]=Math.max(u[0],h[f]);var c=(l[1]+l[0])/2,v=[c,c];v[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:r.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(DE);function Yp(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var kE={line:function(e,t,r){var n=EE([t,r[0]],[t,r[1]],Xp(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:RE([t-n/2,r[0]],[n,i],Xp(e))}}};function Xp(e){return e.dim==="x"?0:1}var BE=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#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}},t}(st),lr=mt(),NE=M;function Z_(e,t,r){if(!q.node){var n=t.getZr();lr(n).records||(lr(n).records={}),FE(n,t);var i=lr(n).records[e]||(lr(n).records[e]={});i.handler=r}}function FE(e,t){if(lr(e).initialized)return;lr(e).initialized=!0,r("click",Yt(qp,"click")),r("mousemove",Yt(qp,"mousemove")),r("globalout",GE);function r(n,i){e.on(n,function(a){var o=HE(t);NE(lr(e).records,function(s){s&&i(s,a,o.dispatchAction)}),zE(o.pendings,t)})}}function zE(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function GE(e,t,r){e.handler("leave",null,r)}function qp(e,t,r,n){t.handler(e,r,n)}function HE(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function Nf(e,t){if(!q.node){var r=t.getZr(),n=(lr(r).records||{})[e];n&&(lr(r).records[e]=null)}}var VE=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";Z_("axisPointer",i,function(s,u,l){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&l({type:"updateAxisPointer",currTrigger:s,x:u&&u.offsetX,y:u&&u.offsetY})})},t.prototype.remove=function(r,n){Nf("axisPointer",n)},t.prototype.dispose=function(r,n){Nf("axisPointer",n)},t.type="axisPointer",t}(Re);function j_(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Na(a,e);if(o==null||o<0||z(o))return{point:[]};var s=a.getItemGraphicEl(o),u=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(e.isStacked){var l=u.getBaseAxis(),f=u.getOtherAxis(l),h=f.dim,c=l.dim,v=h==="x"||h==="radius"?1:0,d=a.mapDimension(c),g=[];g[v]=a.get(d,o),g[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=u.dataToPoint(g)||[]}else r=u.dataToPoint(a.getValues($(u.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),r=[p.x+p.width/2,p.y+p.height/2]}return{point:r,el:s}}var Zp=mt();function $E(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||_t(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Uo(i)&&(i=j_({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var u=Uo(i),l=a.axesInfo,f=s.axesInfo,h=n==="leave"||Uo(i),c={},v={},d={list:[],map:{}},g={showPointer:Yt(UE,v),showTooltip:Yt(YE,d)};M(s.coordSysMap,function(y,m){var _=u||y.containPoint(i);M(s.coordSysAxesInfo[m],function(w,x){var S=w.axis,b=jE(l,w);if(!h&&_&&(!l||b)){var T=b&&b.value;T==null&&!u&&(T=S.pointToData(i)),T!=null&&jp(w,T,g,!1,c)}})});var p={};return M(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&M(_.axesInfo,function(w,x){var S=v[x];if(w!==y&&S){var b=S.value;_.mapper&&(b=y.axis.scale.parse(_.mapper(b,Kp(w),Kp(y)))),p[y.key]=b}})}),M(p,function(y,m){jp(f[m],y,g,!0,c)}),XE(v,f,c),qE(d,i,e,o),ZE(f,o,r),c}}function jp(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=WE(t,e),s=o.payloadBatch,u=o.snapToValue;s[0]&&i.seriesIndex==null&&B(i,s[0]),!n&&e.snap&&a.containData(u)&&u!=null&&(t=u),r.showPointer(e,t,s),r.showTooltip(e,o,u)}}function WE(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return M(t.seriesModels,function(u,l){var f=u.getData().mapDimensionsAll(n),h,c;if(u.getAxisTooltipData){var v=u.getAxisTooltipData(f,e,r);c=v.dataIndices,h=v.nestestValue}else{if(c=u.getData().indicesOfNearest(f[0],e,r.type==="category"?.5:null),!c.length)return;h=u.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=e-h,g=Math.abs(d);g<=o&&((g=0&&s<0)&&(o=g,s=d,i=h,a.length=0),M(c,function(p){a.push({seriesIndex:u.seriesIndex,dataIndexInside:p,dataIndex:u.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}function UE(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function YE(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var u=t.coordSys.model,l=Aa(u),f=e.map[l];f||(f=e.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},e.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function XE(e,t,r){var n=r.axesInfo=[];M(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function qE(e,t,r,n){if(Uo(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function ZE(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=Zp(n)[i]||{},o=Zp(n)[i]={};M(e,function(l,f){var h=l.axisPointerModel.option;h.status==="show"&&l.triggerEmphasis&&M(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],u=[];M(a,function(l,f){!o[f]&&u.push(l)}),M(o,function(l,f){!a[f]&&s.push(l)}),u.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function jE(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Kp(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function Uo(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function K_(e){$_.registerAxisPointerClass("CartesianAxisPointer",OE),e.registerComponentModel(BE),e.registerComponentView(VE),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!z(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=vE(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},$E)}function KE(e){Ma(ME),Ma(K_)}var QE=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",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}},t}(st);function Q_(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function J_(e){if(q.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r-1?(s+="top:50%",u+="translateY(-50%) rotate("+(l=a==="left"?-225:-45)+"deg)"):(s+="left:50%",u+="translateX(-50%) rotate("+(l=a==="top"?225:45)+"deg)");var f=l*Math.PI/180,h=o+i,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*i)/2+Math.SQRT2*i-(c-h)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+i+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function aR(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=q.transformSupported?","+Kh+n:",left"+n+",top"+n),eR+":"+i}function Qp(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!q.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=q.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+Kh+":"+o+";":[["top",0],["left",0],[t1,o]]}function oR(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont());var i=K(e.get("lineHeight"),Math.round(r*3/2));r&&t.push("line-height:"+i+"px");var a=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,u=e.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+u+"px "+o+"px "+a),M(["decoration","align"],function(l){var f=e.get(l);f&&t.push("text-"+l+":"+f)}),t.join(";")}function sR(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),u=e.get("shadowOffsetX"),l=e.get("shadowOffsetY"),f=e.getModel("textStyle"),h=m0(e,"html"),c=u+"px "+l+"px "+o+"px "+s;return n.push("box-shadow:"+c),t&&i&&n.push(aR(i,r)),a&&n.push("background-color:"+a),M(["width","color","radius"],function(v){var d="border-"+v,g=Hm(d),p=e.get(g);p!=null&&n.push(d+":"+p+(v==="color"?"":"px"))}),n.push(oR(f)),h!=null&&n.push("padding:"+Lh(h).join("px ")+"px"),n.join(";")+";"}function Jp(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&Vb(e,o,r,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var uR=function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,q.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=r.appendTo,o=a&&(W(a)?document.querySelector(a):va(a)?a:J(a)&&a(t.getDom()));Jp(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(u){if(u=u||window.event,!s._enterable){var l=i.handler,f=i.painter.getViewportRoot();ve(f,u,!0),l.dispatch("mousemove",u)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),n=tR(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=rR+sR(t,!this._firstShow,this._longHide)+Qp(a[0],a[1],!0)+("border-color:"+_a(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(W(a)&&n.get("trigger")==="item"&&!Q_(n)&&(s=iR(n,i,a)),W(t))o.innerHTML=t+s;else if(t){o.innerHTML="",z(t)||(t=[t]);for(var u=0;u=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||q.node||!i.getDom())){var o=rg(a,i);this._ticket="";var s=a.dataByCoordSys,u=pR(a,n,i);if(u){var l=u.el.getBoundingRect().clone();l.applyTransform(u.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:u.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=fR;f.x=a.x,f.y=a.y,f.update(),ut(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var h=j_(a,n),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(rg(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,u=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||u==null)){var l=n.getSeriesByIndex(o);if(l){var f=l.getData(),h=Fi([f.getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=ut(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var u,l;Ui(i,function(f){if(ut(f).dataIndex!=null)return u=f,!0;if(ut(f).tooltipConfig!=null)return l=f,!0},!0),u?this._showSeriesItemTooltip(r,u,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=_t(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Fi([n.tooltipOption],a),u=this._renderMode,l=[],f=ba("section",{blocks:[],noHeader:!0}),h=[],c=new rl;M(r,function(m){M(m.dataByAxis,function(_){var w=i.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!w||x==null)){var S=X_(x,w.axis,i,_.seriesDataIndices,_.valueLabelOpt),b=ba("section",{header:S,noHeader:!$e(S),sortBlocks:!0,blocks:[]});f.blocks.push(b),M(_.seriesDataIndices,function(T){var C=i.getSeriesByIndex(T.seriesIndex),D=T.dataIndexInside,A=C.getDataParams(D);if(!(A.dataIndex<0)){A.axisDim=_.axisDim,A.axisIndex=_.axisIndex,A.axisType=_.axisType,A.axisId=_.axisId,A.axisValue=Xh(w.axis,{value:x}),A.axisValueLabel=S,A.marker=c.makeTooltipMarker("item",_a(A.color),u);var P=_d(C.formatTooltip(D,!0,null)),L=P.frag;if(L){var I=Fi([C],a).get("valueFormatter");b.blocks.push(I?B({valueFormatter:I},L):L)}P.text&&h.push(P.text),l.push(A)}})}})}),f.blocks.reverse(),h.reverse();var v=n.position,d=s.get("order"),g=Cd(f,c,u,d,i.get("useUTC"),s.get("textStyle"));g&&h.unshift(g);var p=u==="richText"?` + +`:"
",y=h.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,l)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,y,l,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=ut(n),s=o.seriesIndex,u=a.getSeriesByIndex(s),l=o.dataModel||u,f=o.dataIndex,h=o.dataType,c=l.getData(h),v=this._renderMode,d=r.positionDefault,g=Fi([c.getItemModel(f),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var y=l.getDataParams(f,h),m=new rl;y.marker=m.makeTooltipMarker("item",_a(y.color),v);var _=_d(l.formatTooltip(f,!1,h)),w=g.get("order"),x=g.get("valueFormatter"),S=_.frag,b=S?Cd(x?B({valueFormatter:x},S):S,m,v,w,a.get("useUTC"),g.get("textStyle")):_.text,T="item_"+l.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,b,y,T,r.offsetX,r.offsetY,r.position,r.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=ut(n),s=o.tooltipConfig,u=s.option||{},l=u.encodeHTMLContent;if(W(u)){var f=u;u={content:f,formatter:f},l=!0}l&&a&&u.content&&(u=nt(u),u.content=Kt(u.content));var h=[u],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&h.push(c),h.push({formatter:u.content});var v=r.positionDefault,d=Fi(h,this._tooltipModel,v?{position:v}:null),g=d.get("content"),p=Math.random()+"",y=new rl;this._showOrMove(d,function(){var m=nt(d.get("formatterParams")||{});this._showTooltipContent(d,g,m,p,r.offsetX,r.offsetY,r.position,n,y)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,u,l,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var h=this._tooltipContent;h.setEnterable(r.get("enterable"));var c=r.get("formatter");u=u||r.get("position");var v=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),g=d.color;if(c)if(W(c)){var p=r.ecModel.get("useUTC"),y=z(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=c,m&&(v=Us(y.axisValue,v,p)),v=Vm(v,i,!0)}else if(J(c)){var _=_t(function(w,x){w===this._ticket&&(h.setContent(x,f,r,g,u),this._updatePosition(r,u,o,s,h,i,l))},this);this._ticket=a,v=c(i,a,_)}else v=c;h.setContent(v,f,r,g,u),h.show(r,g),this._updatePosition(r,u,o,s,h,i,l)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||z(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!z(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,u){var l=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var h=o.getSize(),c=r.get("align"),v=r.get("verticalAlign"),d=u&&u.getBoundingRect().clone();if(u&&d.applyTransform(u.transform),J(n)&&(n=n([i,a],s,o.el,d,{viewSize:[l,f],contentSize:h.slice()})),z(n))i=pt(n[0],l),a=pt(n[1],f);else if(X(n)){var g=n;g.width=h[0],g.height=h[1];var p=js(g,{width:l,height:f});i=p.x,a=p.y,c=null,v=null}else if(W(n)&&u){var y=dR(n,d,h,r.get("borderWidth"));i=y[0],a=y[1]}else{var y=vR(i,a,o,l,f,c?null:20,v?null:20);i=y[0],a=y[1]}if(c&&(i-=ng(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=ng(v)?h[1]/2:v==="bottom"?h[1]:0),Q_(r)){var y=cR(i,a,o,l,f);i=y[0],a=y[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&M(i,function(s,u){var l=s.dataByAxis||[],f=r[u]||{},h=f.dataByAxis||[];o=o&&l.length===h.length,o&&M(l,function(c,v){var d=h[v]||{},g=c.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&g.length===p.length,o&&M(g,function(y,m){var _=p[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&M(c.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],w=a[m];_&&w&&w.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){q.node||!n.getDom()||(wf(this,"_updatePosition"),this._tooltipContent.dispose(),Nf("itemTooltip",n))},t.type="tooltip",t}(Re);function Fi(e,t,r){var n=t.ecModel,i;r?(i=new Ct(r,n,n),i=new Ct(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Ct&&(o=o.get("tooltip",!0)),W(o)&&(o={formatter:o}),o&&(i=new Ct(o,i,n)))}return i}function rg(e,t){return e.dispatchAction||_t(t.dispatchAction,t)}function vR(e,t,r,n,i,a,o){var s=r.getSize(),u=s[0],l=s[1];return a!=null&&(e+u+a+2>n?e-=u+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function cR(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function dR(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,u=0,l=t.width,f=t.height;switch(e){case"inside":s=t.x+l/2-i/2,u=t.y+f/2-a/2;break;case"top":s=t.x+l/2-i/2,u=t.y-a-o;break;case"bottom":s=t.x+l/2-i/2,u=t.y+f+o;break;case"left":s=t.x-i-o,u=t.y+f/2-a/2;break;case"right":s=t.x+l+o,u=t.y+f/2-a/2}return[s,u]}function ng(e){return e==="center"||e==="middle"}function pR(e,t,r){var n=uh(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Fa(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),u;if(s.group.traverse(function(l){var f=ut(l).tooltipConfig;if(f&&f.name===e.name)return u=l,!0}),u)return{componentMainType:i,componentIndex:o.componentIndex,el:u}}}}function gR(e){Ma(K_),e.registerComponentModel(QE),e.registerComponentView(hR),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ee),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ee)}var yR=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left: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"}},t}(st),mR=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),u=r.get("textAlign"),l=K(r.get("textBaseline"),r.get("textVerticalAlign")),f=new oe({style:wn(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),c=r.get("subtext"),v=new oe({style:wn(s,{text:c,fill:s.getTextColor(),y:h.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),g=r.get("sublink"),p=r.get("triggerEvent",!0);f.silent=!d&&!p,v.silent=!g&&!p,d&&f.on("click",function(){ed(d,"_"+r.get("target"))}),g&&v.on("click",function(){ed(g,"_"+r.get("subtarget"))}),ut(f).eventData=ut(v).eventData=p?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),c&&a.add(v);var y=a.getBoundingRect(),m=r.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=js(m,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));u||(u=r.get("left")||r.get("right"),u==="middle"&&(u="center"),u==="right"?_.x+=_.width:u==="center"&&(_.x+=_.width/2)),l||(l=r.get("top")||r.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?_.y+=_.height:l==="middle"&&(_.y+=_.height/2),l=l||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var w={align:u,verticalAlign:l};f.setStyle(w),v.setStyle(w),y=a.getBoundingRect();var x=_.margin,S=r.getItemStyle(["color","opacity"]);S.fill=r.get("backgroundColor");var b=new Et({shape:{x:y.x-x[3],y:y.y-x[0],width:y.width+x[1]+x[3],height:y.height+x[0]+x[2],r:r.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});a.add(b)}},t.type="title",t}(Re);function _R(e){e.registerComponentModel(yR),e.registerComponentView(mR)}var ig={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},wR=function(){function e(t){var r=this._condVal=W(t)?new RegExp(t):Ab(t)?t:null;if(r==null){var n="";tt(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return W(r)?this._condVal.test(t):vt(r)?this._condVal.test(t+""):!1},e}(),SR=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),xR=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r2&&n.push(i),i=[L,I]}function f(L,I,E,O){qn(L,E)&&qn(I,O)||i.push(L,I,E,O,E,O)}function h(L,I,E,O,N,R){var k=Math.abs(I-L),F=Math.tan(k/4)*4/3,G=IT:A2&&n.push(i),n}function zf(e,t,r,n,i,a,o,s,u,l){if(qn(e,r)&&qn(t,n)&&qn(i,o)&&qn(a,s)){u.push(o,s);return}var f=2/l,h=f*f,c=o-e,v=s-t,d=Math.sqrt(c*c+v*v);c/=d,v/=d;var g=r-e,p=n-t,y=i-o,m=a-s,_=g*g+p*p,w=y*y+m*m;if(_=0&&T=0){u.push(o,s);return}var C=[],D=[];Or(e,r,i,o,.5,C),Or(t,n,a,s,.5,D),zf(C[0],D[0],C[1],D[1],C[2],D[2],C[3],D[3],u,l),zf(C[4],D[4],C[5],D[5],C[6],D[6],C[7],D[7],u,l)}function BR(e,t){var r=Ff(e),n=[];t=t||1;for(var i=0;i0)for(var l=0;lMath.abs(l),h=n1([u,l],f?0:1,t),c=(f?s:l)/h.length,v=0;vi,o=n1([n,i],a?0:1,t),s=a?"width":"height",u=a?"height":"width",l=a?"x":"y",f=a?"y":"x",h=e[s]/o.length,c=0;c1?null:new U(g*u+e,g*l+t)}function zR(e,t,r){var n=new U;U.sub(n,r,t),n.normalize();var i=new U;U.sub(i,e,t);var a=i.dot(n);return a}function Gn(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function GR(e,t,r){for(var n=e.length,i=[],a=0;ao?(l.x=f.x=s+a/2,l.y=u,f.y=u+o):(l.y=f.y=u+o/2,l.x=s,f.x=s+a),GR(t,l,f)}function Ss(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);Ss(e,a[0],i,n),Ss(e,a[1],r-i,n)}return n}function HR(e,t){for(var r=[],n=0;n0;l/=2){var f=0,h=0;(e&l)>0&&(f=1),(t&l)>0&&(h=1),s+=l*l*(3*f^h),h===0&&(f===1&&(e=l-1-e,t=l-1-t),u=e,e=t,t=u)}return s}function Ts(e){var t=1/0,r=1/0,n=-1/0,i=-1/0,a=$(e,function(s){var u=s.getBoundingRect(),l=s.getComputedTransform(),f=u.x+u.width/2+(l?l[4]:0),h=u.y+u.height/2+(l?l[5]:0);return t=Math.min(f,t),r=Math.min(h,r),n=Math.max(f,n),i=Math.max(h,i),[f,h]}),o=$(a,function(s,u){return{cp:s,z:jR(s[0],s[1],t,r,n,i),path:e[u]}});return o.sort(function(s,u){return s.z-u.z}).map(function(s){return s.path})}function o1(e){return WR(e.path,e.count)}function Gf(){return{fromIndividuals:[],toIndividuals:[],count:0}}function KR(e,t,r){var n=[];function i(x){for(var S=0;S=0;i--)if(!r[i].many.length){var u=r[s].many;if(u.length<=1)if(s)s=0;else return r;var a=u.length,l=Math.ceil(a/2);r[i].many=u.slice(l,a),r[s].many=u.slice(0,l),s++}return r}var JR={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},o),l,f;vg(e)&&(l=e,f=t),vg(t)&&(l=t,f=e);function h(y,m,_,w,x){var S=y.many,b=y.one;if(S.length===1&&!x){var T=m?S[0]:b,C=m?b:S[0];if(xs(T))h({many:[T],one:C},!0,_,w,!0);else{var D=s?et({delay:s(_,w)},u):u;Jh(T,C,D),a(T,C,T,C,D)}}else for(var A=et({dividePath:JR[r],individualDelay:s&&function(N,R,k,F){return s(N+_,w)}},u),P=m?KR(S,b,A):QR(b,S,A),L=P.fromIndividuals,I=P.toIndividuals,E=L.length,O=0;Ot.length,v=l?cg(f,l):cg(c?t:e,[c?e:t]),d=0,g=0;gs1))for(var a=n.getIndices(),o=0;o0&&S.group.traverse(function(T){T instanceof rt&&!T.animators.length&&T.animateFrom({style:{opacity:0}},b)})})}function mg(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function _g(e){return z(e)?e.sort().join(","):e}function Dr(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function oO(e,t){var r=Z(),n=Z(),i=Z();return M(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],u=e.oldData[o],l=mg(a),f=_g(l);n.set(f,{dataGroupId:s,data:u}),z(l)&&M(l,function(h){i.set(h,{key:f,dataGroupId:s,data:u})})}),M(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),u=mg(a),l=_g(u),f=n.get(l);if(f)r.set(l,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Dr(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Dr(s),data:s}]});else if(z(u)){var h=[];M(u,function(d){var g=n.get(d);g.data&&h.push({dataGroupId:g.dataGroupId,divide:Dr(g.data),data:g.data})}),h.length&&r.set(l,{oldSeries:h,newSeries:[{dataGroupId:o,data:s,divide:Dr(s)}]})}else{var c=i.get(u);if(c){var v=r.get(c.key);v||(v={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:Dr(c.data)}],newSeries:[]},r.set(c.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:Dr(s)})}}}}),r}function wg(e,t){for(var r=0;r=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Dr(t.oldData[s]),groupIdDim:o.dimension})}),M(Mt(e.to),function(o){var s=wg(r.updatedSeries,o);if(s>=0){var u=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:u,divide:Dr(u),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&u1(i,a,n)}function uO(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){M(Mt(n.seriesTransition),function(i){M(Mt(i.to),function(a){for(var o=n.updatedSeries,s=0;s=s)}}for(var h=this.__startIndex;h15)break}}I.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=p.__endIndex;else for(var D=v.dpr,A=0;A0&&t>i[0]){for(u=0;ut);u++);s=n[i[u]]}if(i.splice(u+1,0,t),n[t]=r,!r.virtual)if(s){var l=s.dom;l.nextSibling?o.insertBefore(r.dom,l.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i0?Lo:0),this._needsManuallyCompositing),f.__builtin__||Jf("ZLevel "+l+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==u&&(f.__dirty=!0),f.__startIndex=u,f.incremental?f.__drawIndex=-1:f.__drawIndex=u,r(u),a=f),i.__dirty&ie&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=u))}r(u),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,M(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?ft(n[t],r,!0):n[t]=r;for(var i=0;i
");Ma([_R,gR,KE,kR,ER,kP,vP,uO,cO,qP]);function pO(e){let t,r;return C1(()=>{r===void 0&&t&&(r=E2(t));const n=e.data,i={show:!0,feature:{mark:{show:!0},dataView:{show:!0,readOnly:!1},restore:{show:!0},saveAsImage:{show:!0}}},a={};if(a.toolbox=i,e.type==="Pie")a.tooltip={trigger:"item"},a.legend={orient:"vertical",left:"left"},a.series=[{name:'"Access From"',type:"pie",radius:"50%",data:Object.keys(n).map(o=>{const s=parseInt(o),u=s>>8,l=s&255;return{value:n[s],name:`${u}角色${l}武器`}}),emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}];else if(e.type==="Bar"){const o=[],s=[];Object.keys(n).forEach(u=>{const l=parseInt(u),f=l>>8,h=l&255;o.push(`${f}角色${h}武器`),s.push(n[l])}),a.xAxis={type:"category",data:o},a.yAxis={type:"value"},a.series=[{type:"bar",data:s}]}r&&r.setOption(a)}),(()=>{var n=dO(),i=n.firstChild,a=t;return typeof a=="function"?R1(a,i):t=i,n})()}var gO=Vf("
OP抽卡期望模拟
共抽
次
共垫
次
角色
角色池大保底
武器
武器池大保底
已连续歪
九折抽卡