agentworkshop 0.7.22 → 0.7.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +1 -1
- package/.output/public/_nuxt/0jKrzLuM.js +19 -0
- package/.output/public/_nuxt/{Cor9siSf.js → 6PZPfFcO.js} +1 -1
- package/.output/public/_nuxt/BAfp6tmu.js +14 -0
- package/.output/public/_nuxt/{B-xskWta.js → BCJFMBQ6.js} +1 -1
- package/.output/public/_nuxt/{DNxVTfhe.js → BMb80_tm.js} +1 -1
- package/.output/public/_nuxt/{n3vMFfrv.js → Bc-_IsBP.js} +3 -3
- package/.output/public/_nuxt/BvNJUu3s.js +1 -0
- package/.output/public/_nuxt/C1CSiSBN.js +1 -0
- package/.output/public/_nuxt/CAGL7TNK.js +1 -0
- package/.output/public/_nuxt/{ed5qX-x5.js → CDLv-n51.js} +1 -1
- package/.output/public/_nuxt/CJviSvm-.js +1 -0
- package/.output/public/_nuxt/CLZWFhZC.js +1 -0
- package/.output/public/_nuxt/{Cr9DkD1d.js → CYzpZzB_.js} +1 -1
- package/.output/public/_nuxt/Cb3SnTM8.js +1 -0
- package/.output/public/_nuxt/CjXIpPMR.js +1 -0
- package/.output/public/_nuxt/CmHzfVc5.js +3 -0
- package/.output/public/_nuxt/Cn3J3NXR.js +23 -0
- package/.output/public/_nuxt/Coik560n.js +1 -0
- package/.output/public/_nuxt/{DA4lxCWC2.js → Ct68Z0232.js} +1 -1
- package/.output/public/_nuxt/CuVGPuP1.js +1 -0
- package/.output/public/_nuxt/CxY6LfeN.js +1 -0
- package/.output/public/_nuxt/{CfVAr2nf.js → Cz9gD2Yo.js} +1 -1
- package/.output/public/_nuxt/D6HDb-vN2.js +1 -0
- package/.output/public/_nuxt/{E88a-JCG.js → DGAOugLt.js} +1 -1
- package/.output/public/_nuxt/DKHcFE1i.js +1 -0
- package/.output/public/_nuxt/{BxtpDtzC.js → DNQF_TXX.js} +1 -1
- package/.output/public/_nuxt/DSa2O56y.js +1 -0
- package/.output/public/_nuxt/DUToq-k_.js +1 -0
- package/.output/public/_nuxt/Dfe8vXdG.js +1 -0
- package/.output/public/_nuxt/{0exC4jVL.js → Djir5rSD.js} +2 -2
- package/.output/public/_nuxt/DjtE7AYt.js +1 -0
- package/.output/public/_nuxt/{BBwMH_hG.js → DoAlYsiF.js} +1 -1
- package/.output/public/_nuxt/{DWcEk1ur2.js → DvgKXPgu2.js} +1 -1
- package/.output/public/_nuxt/JOwsShod.js +2 -0
- package/.output/public/_nuxt/X6IraCTB.js +1 -0
- package/.output/public/_nuxt/_id_.C-YXjn8Q.css +1 -0
- package/.output/public/_nuxt/_id_.MbzdFygI.css +1 -0
- package/.output/public/_nuxt/_wsId_.BqWBlY7X.css +1 -0
- package/.output/public/_nuxt/{CYBq3kS7.js → b50gYVZl.js} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/024de5f7-6a10-4f53-82ab-bc65f3ec9e35.json +1 -0
- package/.output/public/_nuxt/daq.3OKj58HH.css +1 -0
- package/.output/public/_nuxt/dcw.rXH2fc2Z.css +1 -0
- package/.output/public/_nuxt/entry.AZM1Culo.css +1 -0
- package/.output/public/_nuxt/logs.DMOM-iHe.css +1 -0
- package/.output/public/_nuxt/monitor.B--1dPzs.css +1 -0
- package/.output/public/_nuxt/permissions.B1pjGChZ.css +1 -0
- package/.output/public/_nuxt/plugins.DpCuwaJt.css +1 -0
- package/.output/public/_nuxt/tokens.xRb1fSPU.css +1 -0
- package/.output/public/_nuxt/users.DuAt_Zwf.css +1 -0
- package/.output/public/_nuxt/workshop.BJg84pOK.css +1 -0
- package/.output/server/chunks/_/nitro.mjs +777 -798
- package/.output/server/chunks/build/{OmpTerminalPanel-Ban3yJZ4.mjs → OmpTerminalPanel-Cw_Vw9oO.mjs} +3 -3
- package/.output/server/chunks/build/{OmpTerminalPanel-Ban3yJZ4.mjs.map → OmpTerminalPanel-Cw_Vw9oO.mjs.map} +1 -1
- package/.output/server/chunks/build/{_id_-B9RvEQFC.mjs → _id_-DQDqj-cZ.mjs} +31 -31
- package/.output/server/chunks/build/{_id_-B9RvEQFC.mjs.map → _id_-DQDqj-cZ.mjs.map} +1 -1
- package/.output/server/chunks/build/{_id_-CqF0R5W5.mjs → _id_-DY6v6sqB.mjs} +135 -135
- package/.output/server/chunks/build/{_id_-CqF0R5W5.mjs.map → _id_-DY6v6sqB.mjs.map} +1 -1
- package/.output/server/chunks/build/{_wsId_-YC2t_fRt.mjs → _wsId_-D38Vx6Ky.mjs} +11 -13
- package/.output/server/chunks/build/{_wsId_-YC2t_fRt.mjs.map → _wsId_-D38Vx6Ky.mjs.map} +1 -1
- package/.output/server/chunks/build/{agents--6bzGtES.mjs → agents-GnmUGZir.mjs} +6 -8
- package/.output/server/chunks/build/agents-GnmUGZir.mjs.map +1 -0
- package/.output/server/chunks/build/button-DEcZFcqN.mjs +1 -1
- package/.output/server/chunks/build/{card-CCPQoKlh.mjs → card-Dipvaykh.mjs} +4 -4
- package/.output/server/chunks/build/{card-CCPQoKlh.mjs.map → card-Dipvaykh.mjs.map} +1 -1
- package/.output/server/chunks/build/{channel-templates-C1Bb-U75.mjs → channel-templates-B4z6v8Z5.mjs} +4 -6
- package/.output/server/chunks/build/channel-templates-B4z6v8Z5.mjs.map +1 -0
- package/.output/server/chunks/build/{checkbox-Dv1kjaUZ.mjs → checkbox-dzcpU_Cd.mjs} +2 -2
- package/.output/server/chunks/build/{checkbox-Dv1kjaUZ.mjs.map → checkbox-dzcpU_Cd.mjs.map} +1 -1
- package/.output/server/chunks/build/{daq-Bhwwz9vp.mjs → daq-B-3xCp_2.mjs} +103 -103
- package/.output/server/chunks/build/{daq-Bhwwz9vp.mjs.map → daq-B-3xCp_2.mjs.map} +1 -1
- package/.output/server/chunks/build/{dcw-CBPaFj2f.mjs → dcw-BL2dhuz7.mjs} +43 -43
- package/.output/server/chunks/build/{dcw-CBPaFj2f.mjs.map → dcw-BL2dhuz7.mjs.map} +1 -1
- package/.output/server/chunks/build/{default-DdV642BY.mjs → default-CLf5m0NE.mjs} +2 -3
- package/.output/server/chunks/build/{default-DdV642BY.mjs.map → default-CLf5m0NE.mjs.map} +1 -1
- package/.output/server/chunks/build/dropdown-vhn1NPFs.mjs +1 -1
- package/.output/server/chunks/build/{input-number-CZ3ZrCsy.mjs → input-number-Bd55elNN.mjs} +3 -3
- package/.output/server/chunks/build/{input-number-CZ3ZrCsy.mjs.map → input-number-Bd55elNN.mjs.map} +1 -1
- package/.output/server/chunks/build/{input-DxDqeyQW.mjs → input-sf_BT6o6.mjs} +553 -5
- package/.output/server/chunks/build/input-sf_BT6o6.mjs.map +1 -0
- package/.output/server/chunks/build/{logs-Bz1p6x_5.mjs → logs-Dto_umFY.mjs} +44 -38
- package/.output/server/chunks/build/logs-Dto_umFY.mjs.map +1 -0
- package/.output/server/chunks/build/menu-WCrlpYVh.mjs +2 -2
- package/.output/server/chunks/build/modal-yvUquPj5.mjs +2 -2
- package/.output/server/chunks/build/{monitor-miqq9xHB.mjs → monitor-Cp4V-H2n.mjs} +70 -192
- package/.output/server/chunks/build/monitor-Cp4V-H2n.mjs.map +1 -0
- package/.output/server/chunks/build/{pages-D9tOoJsf.mjs → pages-Dc2H1QFu.mjs} +2 -3
- package/.output/server/chunks/build/pages-Dc2H1QFu.mjs.map +1 -0
- package/.output/server/chunks/build/{permissions-CxEgXic0.mjs → permissions-BTRW2CVd.mjs} +288 -194
- package/.output/server/chunks/build/permissions-BTRW2CVd.mjs.map +1 -0
- package/.output/server/chunks/build/{plugins-wLIKHcIE.mjs → plugins-DZR0T4Mh.mjs} +17 -17
- package/.output/server/chunks/build/{plugins-wLIKHcIE.mjs.map → plugins-DZR0T4Mh.mjs.map} +1 -1
- package/.output/server/chunks/build/popconfirm-CRaHcz5O.mjs +1 -1
- package/.output/server/chunks/build/{segmented-ChmQZwz6.mjs → segmented-LPPREMtZ.mjs} +336 -5
- package/.output/server/chunks/build/{segmented-ChmQZwz6.mjs.map → segmented-LPPREMtZ.mjs.map} +1 -1
- package/.output/server/chunks/build/{settings-BPBll_7K.mjs → settings-UfGyDgM7.mjs} +6 -8
- package/.output/server/chunks/build/settings-UfGyDgM7.mjs.map +1 -0
- package/.output/server/chunks/build/space-CCBYAkXt.mjs +1 -1
- package/.output/server/chunks/build/switch-CelRXpcy.mjs +1 -1
- package/.output/server/chunks/build/{table-BtksyDlQ.mjs → table-Cswq-l2r.mjs} +5 -5
- package/.output/server/chunks/build/{table-BtksyDlQ.mjs.map → table-Cswq-l2r.mjs.map} +1 -1
- package/.output/server/chunks/build/{tabs-DQv-_-R6.mjs → tabs-BM3tAh_J.mjs} +2 -2
- package/.output/server/chunks/build/{tabs-DQv-_-R6.mjs.map → tabs-BM3tAh_J.mjs.map} +1 -1
- package/.output/server/chunks/build/{tag-A0tZ2Ouq.mjs → tag-NO9jEqKy.mjs} +3 -3
- package/.output/server/chunks/build/{tag-A0tZ2Ouq.mjs.map → tag-NO9jEqKy.mjs.map} +1 -1
- package/.output/server/chunks/build/{teams-DD8ZXTKL.mjs → teams-Cbg27MWW.mjs} +4 -6
- package/.output/server/chunks/build/teams-Cbg27MWW.mjs.map +1 -0
- package/.output/server/chunks/build/{tokens-Dxnuw96_.mjs → tokens-Bmm6rDfj.mjs} +296 -200
- package/.output/server/chunks/build/tokens-Bmm6rDfj.mjs.map +1 -0
- package/.output/server/chunks/build/{users-D6RNylrW.mjs → users-B50HHrfi.mjs} +12 -13
- package/.output/server/chunks/build/users-B50HHrfi.mjs.map +1 -0
- package/.output/server/chunks/build/{workshop-CTcYDq2i.mjs → workshop-81xhz368.mjs} +21 -22
- package/.output/server/chunks/build/workshop-81xhz368.mjs.map +1 -0
- package/.output/server/chunks/routes/renderer.mjs +2 -2
- package/.output/server/chunks/virtual/entry.mjs +53 -21
- package/.output/server/chunks/virtual/entry.mjs.map +1 -1
- package/.output/server/chunks/virtual/precomputed.mjs +1 -1
- package/.output/server/package.json +1 -1
- package/app/app.vue +7 -0
- package/app/assets/css/main.css +318 -162
- package/app/components/workshop/blocks/ClusterArtifact.vue +0 -16
- package/app/pages/daq/[id].vue +919 -938
- package/app/pages/daq/index.vue +1 -22
- package/app/pages/dcw/[id].vue +1 -4
- package/app/pages/dcw/index.vue +1 -30
- package/app/pages/logs/index.vue +99 -87
- package/app/pages/monitor.vue +56 -68
- package/app/pages/permissions/index.vue +86 -82
- package/app/pages/plugins/index.vue +12 -7
- package/app/pages/tokens.vue +94 -96
- package/app/pages/users.vue +10 -18
- package/app/pages/workshop/index.vue +34 -5
- package/i18n/locales/en.ts +4 -1
- package/i18n/locales/zh-CN.ts +6 -1
- package/package.json +1 -1
- package/scripts/_dbg-logs-ui-e2e.py +126 -0
- package/scripts/_dbg-ui-survey.py +52 -0
- package/server/data/daqs.json +101 -101
- package/server/data/dcw-lines.json +7 -0
- package/server/data/dcw-products.json +7 -0
- package/server/data/dcw-recipes.json +22 -0
- package/server/data/dcw-rollback.json +84 -10
- package/server/data/dcw-runs.json +52 -54
- package/server/data/dcw-writes.json +36 -0
- package/server/data/dcws.json +533 -216
- package/server/data/line-runs.json +18 -18
- package/.output/public/_nuxt/BAbAEW0D.js +0 -1
- package/.output/public/_nuxt/BWC4HQHQ.js +0 -1
- package/.output/public/_nuxt/BbZAzXjZ2.js +0 -1
- package/.output/public/_nuxt/BgOhoDTI.js +0 -1
- package/.output/public/_nuxt/BuiGDfMB.js +0 -1
- package/.output/public/_nuxt/BxPPAkGA.js +0 -3
- package/.output/public/_nuxt/C_2bTK0C.js +0 -1
- package/.output/public/_nuxt/CcwJ2mrD2.js +0 -1
- package/.output/public/_nuxt/Ci0uX4c4.js +0 -1
- package/.output/public/_nuxt/D6B0xnjk.js +0 -1
- package/.output/public/_nuxt/DTYBfjRY.js +0 -1
- package/.output/public/_nuxt/DVoWWlUW.js +0 -1
- package/.output/public/_nuxt/Dhqra7NB.js +0 -1
- package/.output/public/_nuxt/DlRO_q5L.js +0 -1
- package/.output/public/_nuxt/DsUUYP292.js +0 -1
- package/.output/public/_nuxt/Dsdy4Ua-.js +0 -1
- package/.output/public/_nuxt/QT54MQV9.js +0 -1
- package/.output/public/_nuxt/RzXYI9FM.js +0 -23
- package/.output/public/_nuxt/UtviM1bg.js +0 -1
- package/.output/public/_nuxt/_id_.C2VHq_vT.css +0 -1
- package/.output/public/_nuxt/_id_.Dswy2p0I.css +0 -1
- package/.output/public/_nuxt/_wsId_.BFyCuUwS.css +0 -1
- package/.output/public/_nuxt/bAFueD6a.js +0 -1
- package/.output/public/_nuxt/builds/meta/e2341fc0-6f3f-4680-abf8-935a7c9fb912.json +0 -1
- package/.output/public/_nuxt/c3mwkHWP.js +0 -14
- package/.output/public/_nuxt/daq.BTdEun-8.css +0 -1
- package/.output/public/_nuxt/dbi5bHkY.js +0 -2
- package/.output/public/_nuxt/dcw.rpqpOYQ8.css +0 -1
- package/.output/public/_nuxt/eHYnGew0.js +0 -19
- package/.output/public/_nuxt/entry.DRUzDwmX.css +0 -1
- package/.output/public/_nuxt/jyQyulh-.js +0 -1
- package/.output/public/_nuxt/logs.BarkrvUp.css +0 -1
- package/.output/public/_nuxt/monitor.CmwpEUCI.css +0 -1
- package/.output/public/_nuxt/permissions.DTRtZeTw.css +0 -1
- package/.output/public/_nuxt/plugins.BcSEwwGb.css +0 -1
- package/.output/public/_nuxt/tokens.BVXU1jOK.css +0 -1
- package/.output/public/_nuxt/users.D8lcLE62.css +0 -1
- package/.output/public/_nuxt/workshop.CbymC2LY.css +0 -1
- package/.output/public/_nuxt/zVkqCZ78.js +0 -1
- package/.output/server/chunks/build/Col-biaNnEPf.mjs +0 -338
- package/.output/server/chunks/build/Col-biaNnEPf.mjs.map +0 -1
- package/.output/server/chunks/build/agents--6bzGtES.mjs.map +0 -1
- package/.output/server/chunks/build/channel-templates-C1Bb-U75.mjs.map +0 -1
- package/.output/server/chunks/build/hasIn-vQ9LWt-J.mjs +0 -554
- package/.output/server/chunks/build/hasIn-vQ9LWt-J.mjs.map +0 -1
- package/.output/server/chunks/build/input-DxDqeyQW.mjs.map +0 -1
- package/.output/server/chunks/build/logs-Bz1p6x_5.mjs.map +0 -1
- package/.output/server/chunks/build/monitor-miqq9xHB.mjs.map +0 -1
- package/.output/server/chunks/build/pages-D9tOoJsf.mjs.map +0 -1
- package/.output/server/chunks/build/permissions-CxEgXic0.mjs.map +0 -1
- package/.output/server/chunks/build/settings-BPBll_7K.mjs.map +0 -1
- package/.output/server/chunks/build/teams-DD8ZXTKL.mjs.map +0 -1
- package/.output/server/chunks/build/tokens-Dxnuw96_.mjs.map +0 -1
- package/.output/server/chunks/build/useSiteConfig-DJe_KMVr.mjs +0 -27
- package/.output/server/chunks/build/useSiteConfig-DJe_KMVr.mjs.map +0 -1
- package/.output/server/chunks/build/users-D6RNylrW.mjs.map +0 -1
- package/.output/server/chunks/build/workshop-CTcYDq2i.mjs.map +0 -1
- /package/.output/public/_nuxt/{CNs_Ozdc.js → CNs_Ozdc2.js} +0 -0
- /package/.output/public/_nuxt/{Cno6kYiO.js → Cno6kYiO2.js} +0 -0
- /package/.output/public/_nuxt/{DAR70Lf5.js → DAR70Lf52.js} +0 -0
- /package/.output/public/_nuxt/{ORt9oDIy2.js → ORt9oDIy.js} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{C as e,E as t,F as n,G as r,H as i,Ht as a,M as o,O as s,St as c,Ut as l,Wt as u,a as d,b as f,et as p,f as m,g as h,gt as g,h as _,j as v,lt as y,m as b,mt as x,nt as S,p as C,t as w,tt as T,w as E,x as D,yt as O,z as k}from"./BSCpFtzG.js";import{d as A}from"./-6OnbLFb.js";import{n as j}from"./B5S_UyaC.js";import{t as M}from"./CfVAr2nf.js";import{t as N}from"./D8CqF0yy.js";import{n as P}from"./BeIfu4N3.js";import{t as ee}from"./DpojD719.js";import{t as te}from"#entry";import{t as ne}from"./DsUUYP292.js";import{t as re}from"./kZV5TQvh2.js";import{t as ie}from"./DAR70Lf5.js";import{t as ae}from"./BuiGDfMB.js";import{t as oe}from"./CUXCQXjG.js";var se=function(e,t){return se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},se(e,t)};function F(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);se(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ce=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),I=new(function(){function e(){this.browser=new ce,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<`u`}return e}());typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(I.wxa=!0,I.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?I.worker=!0:!I.hasGlobalWindow||`Deno`in window?(I.node=!0,I.svgSupported=!0):L(navigator.userAgent,I);function L(e,t){var n=t.browser,r=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);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}var R=`12px sans-serif`,le=20,ue=100,de=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function fe(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32);t[r]=(e.charCodeAt(n)-le)/ue}return t}var pe=fe(de),me={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=me.createCanvas();e=i&&i.getContext(`2d`)}if(e)return t!==r&&(t=e.font=r||`12px sans-serif`),e.measureText(n);n||=``,r||=`12px sans-serif`;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||12,s=0;if(r.indexOf(`mono`)>=0)s=o*n.length;else for(var c=0;c<n.length;c++){var l=pe[n[c]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}},he=Pe([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),ge=Pe([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),_e=Object.prototype.toString,ve=Array.prototype,ye=ve.forEach,be=ve.filter,xe=ve.slice,Se=ve.map,Ce=function(){}.constructor,we=Ce?Ce.prototype:null,Te=`__proto__`,Ee=2311;function De(){return Ee++}function Oe(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function z(e){if(typeof e!=`object`||!e)return e;var t=e,n=_e.call(e);if(n===`[object Array]`){if(!tt(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=z(e[r])}}else if(ge[n]){if(!tt(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!he[n]&&!tt(e)&&!Ue(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==Te&&(t[o]=z(e[o]));return t}function B(e,t,n){if(!J(t)||!J(e))return n?z(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==Te){var i=e[r],a=t[r];J(a)&&J(i)&&!G(a)&&!G(i)&&!Ue(a)&&!Ue(i)&&!Ve(a)&&!Ve(i)&&!tt(a)&&!tt(i)?B(i,a,n):(n||!(r in e))&&(e[r]=z(t[r]))}return e}function V(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==Te&&(e[n]=t[n]);return e}function ke(e,t,n){for(var r=Ie(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}me.createCanvas;function Ae(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function je(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function Me(e,t,n){if(e=`prototype`in e?e.prototype:e,t=`prototype`in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];a!==`constructor`&&(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else ke(e,t,n)}function Ne(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function H(e,t,n){if(e&&t){if(e.forEach&&e.forEach===ye)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}}function U(e,t,n){if(!e)return[];if(!t)return Ye(e);if(e.map&&e.map===Se)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function Pe(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function Fe(e,t,n){if(!e)return[];if(!t)return Ye(e);if(e.filter&&e.filter===be)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function Ie(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function Le(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(xe.call(arguments)))}}var W=we&&K(we.bind)?we.call.bind(we.bind):Le;function Re(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(xe.call(arguments)))}}function G(e){return Array.isArray?Array.isArray(e):_e.call(e)===`[object Array]`}function K(e){return typeof e==`function`}function q(e){return typeof e==`string`}function ze(e){return _e.call(e)===`[object String]`}function Be(e){return typeof e==`number`}function J(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function Ve(e){return!!he[_e.call(e)]}function He(e){return!!ge[_e.call(e)]}function Ue(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function We(e){return e.colorStops!=null}function Ge(e){return e.image!=null}function Ke(e){return e!==e}function qe(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function Y(e,t){return e??t}function Je(e,t,n){return e??t??n}function Ye(e){var t=[...arguments].slice(1);return xe.apply(e,t)}function Xe(e){if(typeof e==`number`)return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function Ze(e,t){if(!e)throw Error(t)}function Qe(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var $e=`__ec_primitive__`;function et(e){e[$e]=!0}function tt(e){return e[$e]}var nt=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return Ie(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),rt=typeof Map==`function`;function it(){return rt?new Map:new nt}var at=function(){function e(t){var n=G(t);this.data=it();var r=this;t instanceof e?t.each(i):t&&H(t,i);function i(e,t){n?r.set(e,t):r.set(t,e)}}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return rt?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function X(e){return new at(e)}function ot(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function st(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&V(n,t),n}function ct(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function lt(e,t){return e.hasOwnProperty(t)}function ut(){}var dt=180/Math.PI;function ft(e,t){return e??=0,t??=0,[e,t]}function pt(e){return[e[0],e[1]]}function mt(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function ht(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function gt(e){return Math.sqrt(_t(e))}function _t(e){return e[0]*e[0]+e[1]*e[1]}function vt(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function yt(e,t){var n=gt(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function bt(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var xt=bt;function St(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Ct=St;function wt(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function Tt(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function Et(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Dt(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var Ot=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),kt=function(){function e(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Ot(t,e),`dragstart`,e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new Ot(t,e),`drag`,e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new Ot(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new Ot(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Ot(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new Ot(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),At=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,l=i[e][c];return l&&l.callAtLast?i[e].splice(c,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=n.length,o=0;o<a;o++){var s=n[o];if(!(r&&r.filter&&s.query!=null&&!r.filter(e,s.query)))switch(i){case 0:s.h.call(s.ctx);break;case 1:s.h.call(s.ctx,t[0]);break;case 2:s.h.call(s.ctx,t[0],t[1]);break;default:s.h.apply(s.ctx,t)}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=t[i-1],o=n.length,s=0;s<o;s++){var c=n[s];if(!(r&&r.filter&&c.query!=null&&!r.filter(e,c.query)))switch(i){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,i-1))}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}(),jt=Math.log(2);function Mt(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<<s)-1&~i)/jt);return e[n][c]}for(var l=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,f=0,p=0;f<s;f++){var m=1<<f;m&i||(d+=(p%2?-1:1)*e[n][f]*Mt(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function Nt(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=Mt(n,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]??(a[s]=0),a[s]+=((o+s)%2?-1:1)*Mt(n,7,+(o===0),1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var Pt=`___zrEVENTSAVED`,Ft=[];function It(e,t,n,r,i){return Lt(Ft,t,r,i,!0)&&Lt(e,n,Ft[0],Ft[1])}function Lt(e,t,n,r,i){if(t.getBoundingClientRect&&I.domSupported&&!Bt(t)){var a=t[Pt]||(t[Pt]={}),o=zt(Rt(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function Rt(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=[`left`,`right`],i=[`top`,`bottom`],a=0;a<4;a++){var o=document.createElement(`div`),s=o.style,c=a%2,l=(a>>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return n}function zt(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?Nt(s,o):Nt(o,s))}function Bt(e){return e.nodeName.toUpperCase()===`CANVAS`}var Vt=/([&<>"'])/g,Ht={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function Ut(e){return e==null?``:(e+``).replace(Vt,function(e,t){return Ht[t]})}var Wt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Gt=[],Kt=I.browser.firefox&&+I.browser.version.split(`.`)[0]<39;function qt(e,t,n,r){return n||={},r?Jt(e,t,n):Kt&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?Jt(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function Jt(e,t,n){if(I.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(Bt(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}if(Lt(Gt,e,r,i)){n.zrX=Gt[0],n.zrY=Gt[1];return}}n.zrX=n.zrY=0}function Yt(e){return e||window.event}function Xt(e,t,n){if(t=Yt(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&qt(e,i,t,n)}else{qt(e,t,t,n);var a=Zt(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&Wt.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function Zt(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function Qt(e,t,n,r){e.addEventListener(t,n,r)}function $t(e,t,n,r){e.removeEventListener(t,n,r)}var en=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function tn(e){return e.which===2||e.which===3}var nn=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],c=qt(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in on)if(on.hasOwnProperty(t)){var n=on[t](this._track,e);if(n)return n}},e}();function rn(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function an(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var on={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=rn(r)/rn(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=an(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}};function sn(){return[1,0,0,1,0,0]}function cn(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function ln(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 un(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function dn(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function fn(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function pn(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function mn(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}var Z=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.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 e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),hn=Math.min,gn=Math.max,_n=new Z,vn=new Z,yn=new Z,bn=new Z,xn=new Z,Sn=new Z,Cn=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=hn(e.x,this.x),n=hn(e.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?gn(e.x+e.width,this.x+this.width)-t:e.width,this.height=isFinite(this.y)&&isFinite(this.height)?gn(e.y+e.height,this.y+this.height)-n:e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,r=e.height/t.height,i=sn();return dn(i,i,[-t.x,-t.y]),pn(i,i,[n,r]),dn(i,i,[e.x,e.y]),i},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,i=r.x,a=r.x+r.width,o=r.y,s=r.y+r.height,c=t.x,l=t.x+t.width,u=t.y,d=t.y+t.height,f=!(a<c||l<i||s<u||d<o);if(n){var p=1/0,m=0,h=Math.abs(a-c),g=Math.abs(l-i),_=Math.abs(s-u),v=Math.abs(d-o),y=Math.min(h,g),b=Math.min(_,v);a<c||l<i?y>m&&(m=y,h<g?Z.set(Sn,-h,0):Z.set(Sn,g,0)):y<p&&(p=y,h<g?Z.set(xn,h,0):Z.set(xn,-g,0)),s<u||d<o?b>m&&(m=b,_<v?Z.set(Sn,0,-_):Z.set(Sn,0,v)):y<p&&(p=y,_<v?Z.set(xn,0,_):Z.set(xn,0,-v))}return n&&Z.copy(n,f?xn:Sn),f},e.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=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(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],a=r[3],o=r[4],s=r[5];t.x=n.x*i+o,t.y=n.y*a+s,t.width=n.width*i,t.height=n.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}_n.x=yn.x=n.x,_n.y=bn.y=n.y,vn.x=bn.x=n.x+n.width,vn.y=yn.y=n.y+n.height,_n.transform(r),bn.transform(r),vn.transform(r),yn.transform(r),t.x=hn(_n.x,vn.x,yn.x,bn.x),t.y=hn(_n.y,vn.y,yn.y,bn.y);var c=gn(_n.x,vn.x,yn.x,bn.x),l=gn(_n.y,vn.y,yn.y,bn.y);t.width=c-t.x,t.height=l-t.y},e}(),wn=`silent`;function Tn(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:En}}function En(){en(this.event)}var Dn=function(e){F(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(At),On=function(){function e(e,t){this.x=e,this.y=t}return e}(),kn=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],An=new Cn(0,0,0,0),jn=function(e){F(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new On(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new Dn,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new kt(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(H(kn,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=Pn(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new On(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new On(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=Tn(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new On(e,t);if(Nn(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new Cn(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(An.copy(u.getBoundingRect()),u.transform&&An.applyTransform(u.transform),An.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m<s;m+=d)for(var h=0;h<p;h+=f)if(Nn(a,i,e+m*Math.cos(h),t+m*Math.sin(h),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||=new nn;var n=this._gestureMgr;t===`start`&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(t===`end`&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new On;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(At);H([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){jn.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=Pn(this,n,r),a,o;if((e!==`mouseup`||!i)&&(a=this.findHover(n,r),o=a.target),e===`mousedown`)this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e===`mouseup`)this._upEl=o;else if(e===`click`){if(this._downEl!==this._upEl||!this._downPoint||xt(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Mn(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0),r=r.__hostTarget||r.parent}return!i||wn}return!1}function Nn(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=Mn(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==wn)){t.target=o;break}}}function Pn(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var Fn=32,In=7;function Ln(e){for(var t=0;e>=Fn;)t|=e&1,e>>=1;return e+t}function Rn(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;zn(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function zn(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function Bn(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a=e[r],o=t,s=r,c;o<s;)c=o+s>>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-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 Vn(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c<s&&a(e,t[n+i+c])>0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;c<s&&a(e,t[n+i-c])<=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function Hn(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;c<s&&a(e,t[n+i-c])<0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c<s&&a(e,t[n+i+c])>=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function Un(e,t){var n=In,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,u(e)}}function u(n){var o=r[n],s=i[n],c=r[n+1],l=i[n+1];i[n]=s+l,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var u=Hn(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=Vn(e[o+s-1],e,c,l,l-1,t),l!==0&&(s<=l?d(o,s,c,l):f(o,s,c,l)))}function d(r,i,a,s){var c=0;for(c=0;c<i;c++)o[c]=e[r+c];var l=0,u=a,d=r;if(e[d++]=e[u++],--s===0){for(c=0;c<i;c++)e[d+c]=o[l+c];return}if(i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l];return}for(var f=n,p,m,h;;){p=0,m=0,h=!1;do if(t(e[u],o[l])<0){if(e[d++]=e[u++],m++,p=0,--s===0){h=!0;break}}else if(e[d++]=o[l++],p++,m=0,--i===1){h=!0;break}while((p|m)<f);if(h)break;do{if(p=Hn(e[u],o,l,i,0,t),p!==0){for(c=0;c<p;c++)e[d+c]=o[l+c];if(d+=p,l+=p,i-=p,i<=1){h=!0;break}}if(e[d++]=e[u++],--s===0){h=!0;break}if(m=Vn(o[l],e,u,s,0,t),m!==0){for(c=0;c<m;c++)e[d+c]=e[u+c];if(d+=m,u+=m,s-=m,s===0){h=!0;break}}if(e[d++]=o[l++],--i===1){h=!0;break}f--}while(p>=In||m>=In);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else if(i===0)throw Error();else for(c=0;c<i;c++)e[d+c]=o[l+c]}function f(r,i,a,s){var c=0;for(c=0;c<s;c++)o[c]=e[a+c];var l=r+i-1,u=s-1,d=a+s-1,f=0,p=0;if(e[d--]=e[l--],--i===0){for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c];return}if(s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)<m);if(_)break;do{if(h=i-Hn(o[u],e,r,i,i-1,t),h!==0){for(d-=h,l-=h,i-=h,p=d+1,f=l+1,c=h-1;c>=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-Vn(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c<g;c++)e[p+c]=o[f+c];if(s<=1){_=!0;break}}if(e[d--]=e[l--],--i===0){_=!0;break}m--}while(h>=In||g>=In);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c]}return{mergeRuns:c,forceMergeRuns:l,pushRun:s}}function Wn(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<Fn){a=Rn(e,n,r,t),Bn(e,n,r,n+a,t);return}var o=Un(e,t),s=Ln(i);do{if(a=Rn(e,n,r,t),a<s){var c=i;c>s&&(c=s),Bn(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var Gn=!1;function Kn(){Gn||(Gn=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function qn(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Jn=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=qn}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t||=!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,Wn(n,qn)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t=t?t.slice():[];for(var i=r,a=e;i;)i.parent=a,i.updateTransform(),t.push(i),a=i,i=i.getClipPath()}if(e.childrenRef){for(var o=e.childrenRef(),s=0;s<o.length;s++){var c=o[s];e.__dirty&&(c.__dirty|=1),this._updateAndAddDisplayable(c,t,n)}e.__dirty=0}else{var l=e;t&&t.length?l.__clipPaths=t:l.__clipPaths&&l.__clipPaths.length>0&&(l.__clipPaths=[]),isNaN(l.z)&&(Kn(),l.z=0),isNaN(l.z2)&&(Kn(),l.z2=0),isNaN(l.zlevel)&&(Kn(),l.zlevel=0),this._displayList[this._displayListLen++]=l}var u=e.getDecalElement&&e.getDecalElement();u&&this._updateAndAddDisplayable(u,t,n);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,n);var f=e.getTextContent();f&&this._updateAndAddDisplayable(f,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var r=Ae(this._roots,e);r>=0&&this._roots.splice(r,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}(),Yn=I.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},Xn={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:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(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,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.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-Xn.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?Xn.bounceIn(e*2)*.5:Xn.bounceOut(e*2-1)*.5+.5}},Zn=Math.pow,Qn=Math.sqrt,$n=1e-8,er=1e-4,tr=Qn(3),nr=1/3,rr=ft(),ir=ft(),ar=ft();function or(e){return e>-$n&&e<$n}function sr(e){return e>$n||e<-$n}function cr(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function lr(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function ur(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(or(u)&&or(d)){if(or(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}}else{var h=d*d-4*u*f;if(or(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=Qn(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-Zn(-y,nr):Zn(y,nr),b=b<0?-Zn(-b,nr):Zn(b,nr);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*Qn(u*u*u)),S=Math.acos(x)/3,C=Qn(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+tr*Math.sin(S)))/(3*o),T=(-s+C*(w-tr*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function dr(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(or(o)){if(sr(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(or(u))i[0]=-a/(2*o);else if(u>0){var d=Qn(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function fr(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function pr(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;rr[0]=c,rr[1]=l;for(var v=0;v<1;v+=.05)ir[0]=cr(e,n,i,o,v),ir[1]=cr(t,r,a,s,v),g=Ct(rr,ir),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<er);y++)m=d-f,h=d+f,ir[0]=cr(e,n,i,o,m),ir[1]=cr(t,r,a,s,m),g=Ct(ir,rr),m>=0&&g<p?(d=m,p=g):(ar[0]=cr(e,n,i,o,h),ar[1]=cr(t,r,a,s,h),_=Ct(ar,rr),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=cr(e,n,i,o,d),u[1]=cr(t,r,a,s,d)),Qn(p)}function mr(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,d=0,f=1/c,p=1;p<=c;p++){var m=p*f,h=cr(e,n,i,o,m),g=cr(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function hr(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function gr(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function _r(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(or(a)){if(sr(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(or(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=Qn(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function vr(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function yr(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function br(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;rr[0]=o,rr[1]=s;for(var f=0;f<1;f+=.05){ir[0]=hr(e,n,i,f),ir[1]=hr(t,r,a,f);var p=Ct(rr,ir);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<er);m++){var h=l-u,g=l+u;ir[0]=hr(e,n,i,h),ir[1]=hr(t,r,a,h);var p=Ct(ir,rr);if(h>=0&&p<d)l=h,d=p;else{ar[0]=hr(e,n,i,g),ar[1]=hr(t,r,a,g);var _=Ct(ar,rr);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=hr(e,n,i,l),c[1]=hr(t,r,a,l)),Qn(d)}function xr(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=hr(e,n,i,f),m=hr(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var Sr=/cubic-bezier\(([0-9,\.e ]+)\)/;function Cr(e){var t=e&&Sr.exec(e);if(t){var n=t[1].split(`,`),r=+Qe(n[0]),i=+Qe(n[1]),a=+Qe(n[2]),o=+Qe(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:ur(0,r,a,1,e,s)&&cr(0,i,o,1,s[0])}}}var wr=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||ut,this.ondestroy=e.ondestroy||ut,this.onrestart=e.onrestart||ut,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1){if(this.loop){var s=r%n;this._startTime=e-s,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(e){this.easing=e,this.easingFunc=K(e)?e:Xn[e]||Cr(e)},e}(),Tr=function(){function e(e){this.value=e}return e}(),Er=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new Tr(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Dr=function(){function e(e){this._list=new Er,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new Tr(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Or={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 kr(e){return e=Math.round(e),e<0?0:e>255?255:e}function Ar(e){return e<0?0:e>1?1:e}function jr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?kr(parseFloat(t)/100*255):kr(parseInt(t,10))}function Mr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Ar(parseFloat(t)/100):Ar(parseFloat(t))}function Nr(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Pr(e,t,n){return e+(t-e)*n}function Fr(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Ir(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Lr=new Dr(20),Rr=null;function zr(e,t){Rr&&Ir(Rr,t),Rr=Lr.put(e,Rr||t.slice())}function Br(e,t){if(e){t||=[];var n=Lr.get(e);if(n)return Ir(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in Or)return Ir(t,Or[r]),zr(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){Fr(t,0,0,0,1);return}return Fr(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),zr(e,t),t}if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Fr(t,0,0,0,1);return}return Fr(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),zr(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?Fr(t,+l[0],+l[1],+l[2],1):Fr(t,0,0,0,1);u=Mr(l.pop());case`rgb`:if(l.length>=3)return Fr(t,jr(l[0]),jr(l[1]),jr(l[2]),l.length===3?u:Mr(l[3])),zr(e,t),t;Fr(t,0,0,0,1);return;case`hsla`:if(l.length!==4){Fr(t,0,0,0,1);return}return l[3]=Mr(l[3]),Vr(l,t),zr(e,t),t;case`hsl`:if(l.length!==3){Fr(t,0,0,0,1);return}return Vr(l,t),zr(e,t),t;default:return}}Fr(t,0,0,0,1)}}function Vr(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Mr(e[1]),i=Mr(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],Fr(t,kr(Nr(o,a,n+1/3)*255),kr(Nr(o,a,n)*255),kr(Nr(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Hr(e,t){var n=Br(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Wr(n,n.length===4?`rgba`:`rgb`)}}function Ur(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=Br(t[i]),s=Br(t[a]),c=r-i,l=Wr([kr(Pr(o[0],s[0],c)),kr(Pr(o[1],s[1],c)),kr(Pr(o[2],s[2],c)),Ar(Pr(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function Wr(e,t){if(!(!e||!e.length)){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function Gr(e,t){var n=Br(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var Kr=new Dr(100);function qr(e){if(q(e)){var t=Kr.get(e);return t||(t=Hr(e,-.1),Kr.put(e,t)),t}if(We(e)){var n=V({},e);return n.colorStops=U(e.colorStops,function(e){return{offset:e.offset,color:Hr(e.color,-.1)}}),n}return e}function Jr(e){return e.type===`linear`}function Yr(e){return e.type===`radial`}(function(){return I.hasGlobalWindow&&K(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 Xr=Array.prototype.slice;function Zr(e,t,n){return(t-e)*n+e}function Qr(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=Zr(t[a],n[a],r);return e}function $r(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Zr(t[o][s],n[o][s],r)}return e}function ei(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function ti(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function ni(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function ri(e,t,n){var r=e,i=t;if(!(!r.push||!i.push)){var a=r.length,o=i.length;if(a!==o){if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(n===1?i[s]:Xr.call(i[s]))}for(var c=r[0]&&r[0].length,s=0;s<r.length;s++)if(n===1)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<c;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function ii(e){if(Ne(e)){var t=e.length;if(Ne(e[0])){for(var n=[],r=0;r<t;r++)n.push(Xr.call(e[r]));return n}return Xr.call(e)}return e}function ai(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],`rgba(`+e.join(`,`)+`)`}function oi(e){return Ne(e&&e[0])?2:1}var si=0,ci=1,li=2,ui=3,di=4,fi=5,pi=6;function mi(e){return e===di||e===fi}function hi(e){return e===ci||e===li}var gi=[0,0,0,0],_i=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=pi,s=t;if(Ne(t)){var c=oi(t);o=c,(c===1&&!Be(t[0])||c===2&&!Be(t[0][0]))&&(a=!0)}else if(Be(t)&&!Ke(t))o=si;else if(q(t)){if(!isNaN(+t))o=si;else{var l=Br(t);l&&(s=l,o=ui)}}else if(We(t)){var u=V({},s);u.colorStops=U(t.colorStops,function(e){return{offset:e.offset,color:Br(e.color)}}),Jr(t)?o=di:Yr(t)&&(o=fi),s=u}i===0?this.valType=o:(o!==this.valType||o===pi)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=K(n)?n:Xn[n]||Cr(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=hi(r),c=mi(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?ri(d,f,r):c&&ni(d.colorStops,f.colorStops))}if(!o&&r!==fi&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,l=0;l<i;l++)r===si?n[l].additiveValue=n[l].value-p:r===ui?n[l].additiveValue=ei([],n[l].value,p,-1):hi(r)&&(n[l].additiveValue=r===ci?ei([],n[l].value,p,-1):ti([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,r=n?`additiveValue`:`value`,i=this.valType,a=this.keyframes,o=a.length,s=this.propName,c=i===ui,l,u=this._lastFr,d=Math.min,f,p;if(o===1)f=p=a[0];else{if(t<0)l=0;else if(t<this._lastFrP){for(l=d(u+1,o-1);l>=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;l<o&&!(a[l].percent>t);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?gi:e[s];if((hi(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(hi(i))i===ci?Qr(g,f[r],p[r],h):$r(g,f[r],p[r],h);else if(mi(i)){var _=f[r],v=p[r],y=i===di;e[s]={type:y?`linear`:`radial`,x:Zr(_.x,v.x,h),y:Zr(_.y,v.y,h),colorStops:U(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:Zr(e.offset,n.offset,h),color:ai(Qr([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=Zr(_.x2,v.x2,h),e[s].y2=Zr(_.y2,v.y2,h)):e[s].r=Zr(_.r,v.r,h)}else if(c)Qr(g,f[r],p[r],h),n||(e[s]=ai(g));else{var b=Zr(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===si?e[n]=e[n]+r:t===ui?(Br(e[n],gi),ei(gi,gi,r,1),e[n]=ai(gi)):t===ci?ei(e[n],e[n],r,1):t===li&&ti(e[n],e[n],r,1)},e}(),vi=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){Oe(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,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(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,Ie(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new _i(o);var c=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes,d=u[u.length-1];c=d&&d.value,l.valType===ui&&c&&(c=ai(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,ii(c),r),this._trackKeys.push(o)}s.addKeyframe(e,ii(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),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(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),c=o.keyframes,l=c.length;if(o.prepare(r,s),o.needsAnimate()){if(!this._allowDiscrete&&o.discrete){var u=c[l-1];u&&(t._target[o.propName]=u.rawValue),o.setFinished()}else n.push(o)}}if(n.length||this._force){var d=new wr({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||=[],this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||=[],this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||=[],this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return U(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var o=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t||=this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(!(!a||a.isFinished())){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=ii(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=Ie(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function yi(){return new Date().getTime()}var bi=function(e){F(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=yi()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(Yn(t),!e._paused&&e.update())}Yn(t)},t.prototype.start=function(){this._running||(this._time=yi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=yi(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=yi()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new vi(e,t.loop);return this.addAnimator(n),n},t}(At),xi=300,Si=I.domSupported,Ci=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:U(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),wi={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},Ti=!1;function Ei(e){var t=e.pointerType;return t===`pen`||t===`touch`}function Di(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 Oi(e){e&&(e.zrByTouch=!0)}function ki(e,t){return Xt(e.dom,new ji(e,t),!0)}function Ai(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var ji=function(){function e(e,t){this.stopPropagation=ut,this.stopImmediatePropagation=ut,this.preventDefault=ut,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),Mi={mousedown:function(e){e=Xt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=Xt(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=Xt(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=Xt(this.dom,e);var t=e.toElement||e.relatedTarget;Ai(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){Ti=!0,e=Xt(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){Ti||(e=Xt(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=Xt(this.dom,e),Oi(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),Mi.mousemove.call(this,e),Mi.mousedown.call(this,e)},touchmove:function(e){e=Xt(this.dom,e),Oi(e),this.handler.processGesture(e,`change`),Mi.mousemove.call(this,e)},touchend:function(e){e=Xt(this.dom,e),Oi(e),this.handler.processGesture(e,`end`),Mi.mouseup.call(this,e),new Date-+this.__lastTouchMoment<xi&&Mi.click.call(this,e)},pointerdown:function(e){Mi.mousedown.call(this,e)},pointermove:function(e){Ei(e)||Mi.mousemove.call(this,e)},pointerup:function(e){Mi.mouseup.call(this,e)},pointerout:function(e){Ei(e)||Mi.mouseout.call(this,e)}};H([`click`,`dblclick`,`contextmenu`],function(e){Mi[e]=function(t){t=Xt(this.dom,t),this.trigger(e,t)}});var Ni={pointermove:function(e){Ei(e)||Ni.mousemove.call(this,e)},pointerup:function(e){Ni.mouseup.call(this,e)},mousemove:function(e){this.trigger(`mousemove`,e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(`mouseup`,e),t&&(e.zrEventControl=`only_globalout`,this.trigger(`mouseout`,e))}};function Pi(e,t){var n=t.domHandlers;I.pointerEventsSupported?H(Ci.pointer,function(r){Ii(t,r,function(t){n[r].call(e,t)})}):(I.touchEventsSupported&&H(Ci.touch,function(r){Ii(t,r,function(i){n[r].call(e,i),Di(t)})}),H(Ci.mouse,function(r){Ii(t,r,function(i){i=Yt(i),t.touching||n[r].call(e,i)})}))}function Fi(e,t){I.pointerEventsSupported?H(wi.pointer,n):I.touchEventsSupported||H(wi.mouse,n);function n(n){function r(r){r=Yt(r),Ai(e,r.target)||(r=ki(e,r),t.domHandlers[n].call(e,r))}Ii(t,n,r,{capture:!0})}}function Ii(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,Qt(e.domTarget,t,n,r)}function Li(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&$t(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var Ri=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),zi=function(e){F(t,e);function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new Ri(t,Mi),Si&&(r._globalHandlerScope=new Ri(document,Ni)),Pi(r,r._localHandlerScope),r}return t.prototype.dispose=function(){Li(this._localHandlerScope),Si&&Li(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||`default`)},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,Si&&this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?Fi(this,t):Li(t)}},t}(At),Bi=1;I.hasGlobalWindow&&(Bi=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Vi=Bi,Hi=.4,Ui=`#333`,Wi=`#ccc`,Gi=`#eee`,Ki=cn,qi=5e-5;function Ji(e){return e>qi||e<-qi}var Yi=[],Xi=[],Zi=sn(),Qi=Math.abs,$i=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return Ji(this.rotation)||Ji(this.x)||Ji(this.y)||Ji(this.scaleX-1)||Ji(this.scaleY-1)||Ji(this.skewX)||Ji(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(Ki(n),this.invTransform=null);return}n||=sn(),t?this.getLocalTransform(n):Ki(n),e&&(t?un(n,e,n):ln(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Yi);var n=Yi[0]<0?-1:1,r=Yi[1]<0?-1:1,i=((Yi[0]-n)*t+n)/Yi[0]||0,a=((Yi[1]-r)*t+r)/Yi[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||sn(),mn(this.invTransform,e)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||sn(),un(Xi,e.invTransform,t),t=Xi);var n=this.originX,r=this.originY;(n||r)&&(Zi[4]=n,Zi[5]=r,un(Xi,t,Zi),Xi[4]-=n,Xi[5]-=r,t=Xi),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&Tt(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&Tt(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&Qi(e[0]-1)>1e-10&&Qi(e[3]-1)>1e-10?Math.sqrt(Qi(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){ta(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&fn(t,t,c),t[4]+=n+l,t[5]+=r+u,t},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}(),ea=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function ta(e,t){for(var n=0;n<ea.length;n++){var r=ea[n];e[r]=t[r]}}var na={};function ra(e,t){t||=`12px sans-serif`;var n=na[t];n||=na[t]=new Dr(500);var r=n.get(e);return r??(r=me.measureText(e,t).width,n.put(e,r)),r}function ia(e,t,n,r){var i=ra(e,t),a=ca(t);return new Cn(oa(0,i,n),sa(0,a,r),i,a)}function aa(e,t,n,r){var i=((e||``)+``).split(`
|
|
1
|
+
import{C as e,E as t,F as n,G as r,H as i,Ht as a,M as o,O as s,St as c,Ut as l,Wt as u,a as d,b as f,et as p,f as m,g as h,gt as g,h as _,j as v,lt as y,m as b,mt as x,nt as S,p as C,t as w,tt as T,w as E,x as D,yt as O,z as k}from"./BSCpFtzG.js";import{d as A}from"./-6OnbLFb.js";import{n as j}from"./B5S_UyaC.js";import{n as M,t as N}from"./Cz9gD2Yo.js";import{t as P}from"./D8CqF0yy.js";import{n as ee}from"./BeIfu4N3.js";import{t as te}from"./DpojD719.js";import{t as ne}from"#entry";import{t as re}from"./kZV5TQvh2.js";import{t as ie}from"./DAR70Lf52.js";import{t as ae}from"./C1CSiSBN.js";import{t as oe}from"./CUXCQXjG.js";var se=function(e,t){return se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},se(e,t)};function F(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);se(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ce=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),I=new(function(){function e(){this.browser=new ce,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<`u`}return e}());typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(I.wxa=!0,I.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?I.worker=!0:!I.hasGlobalWindow||`Deno`in window?(I.node=!0,I.svgSupported=!0):L(navigator.userAgent,I);function L(e,t){var n=t.browser,r=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);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}var R=`12px sans-serif`,le=20,ue=100,de=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function fe(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32);t[r]=(e.charCodeAt(n)-le)/ue}return t}var pe=fe(de),me={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=me.createCanvas();e=i&&i.getContext(`2d`)}if(e)return t!==r&&(t=e.font=r||`12px sans-serif`),e.measureText(n);n||=``,r||=`12px sans-serif`;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||12,s=0;if(r.indexOf(`mono`)>=0)s=o*n.length;else for(var c=0;c<n.length;c++){var l=pe[n[c]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}},he=Pe([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),ge=Pe([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),_e=Object.prototype.toString,ve=Array.prototype,ye=ve.forEach,be=ve.filter,xe=ve.slice,Se=ve.map,Ce=function(){}.constructor,we=Ce?Ce.prototype:null,Te=`__proto__`,Ee=2311;function De(){return Ee++}function Oe(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function z(e){if(typeof e!=`object`||!e)return e;var t=e,n=_e.call(e);if(n===`[object Array]`){if(!tt(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=z(e[r])}}else if(ge[n]){if(!tt(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!he[n]&&!tt(e)&&!Ue(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==Te&&(t[o]=z(e[o]));return t}function B(e,t,n){if(!J(t)||!J(e))return n?z(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==Te){var i=e[r],a=t[r];J(a)&&J(i)&&!G(a)&&!G(i)&&!Ue(a)&&!Ue(i)&&!Ve(a)&&!Ve(i)&&!tt(a)&&!tt(i)?B(i,a,n):(n||!(r in e))&&(e[r]=z(t[r]))}return e}function V(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==Te&&(e[n]=t[n]);return e}function ke(e,t,n){for(var r=Ie(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}me.createCanvas;function Ae(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function je(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function Me(e,t,n){if(e=`prototype`in e?e.prototype:e,t=`prototype`in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];a!==`constructor`&&(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else ke(e,t,n)}function Ne(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function H(e,t,n){if(e&&t){if(e.forEach&&e.forEach===ye)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}}function U(e,t,n){if(!e)return[];if(!t)return Ye(e);if(e.map&&e.map===Se)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function Pe(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function Fe(e,t,n){if(!e)return[];if(!t)return Ye(e);if(e.filter&&e.filter===be)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function Ie(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function Le(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(xe.call(arguments)))}}var W=we&&K(we.bind)?we.call.bind(we.bind):Le;function Re(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(xe.call(arguments)))}}function G(e){return Array.isArray?Array.isArray(e):_e.call(e)===`[object Array]`}function K(e){return typeof e==`function`}function q(e){return typeof e==`string`}function ze(e){return _e.call(e)===`[object String]`}function Be(e){return typeof e==`number`}function J(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function Ve(e){return!!he[_e.call(e)]}function He(e){return!!ge[_e.call(e)]}function Ue(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function We(e){return e.colorStops!=null}function Ge(e){return e.image!=null}function Ke(e){return e!==e}function qe(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function Y(e,t){return e??t}function Je(e,t,n){return e??t??n}function Ye(e){var t=[...arguments].slice(1);return xe.apply(e,t)}function Xe(e){if(typeof e==`number`)return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function Ze(e,t){if(!e)throw Error(t)}function Qe(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var $e=`__ec_primitive__`;function et(e){e[$e]=!0}function tt(e){return e[$e]}var nt=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return Ie(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),rt=typeof Map==`function`;function it(){return rt?new Map:new nt}var at=function(){function e(t){var n=G(t);this.data=it();var r=this;t instanceof e?t.each(i):t&&H(t,i);function i(e,t){n?r.set(e,t):r.set(t,e)}}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return rt?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function X(e){return new at(e)}function ot(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function st(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&V(n,t),n}function ct(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function lt(e,t){return e.hasOwnProperty(t)}function ut(){}var dt=180/Math.PI;function ft(e,t){return e??=0,t??=0,[e,t]}function pt(e){return[e[0],e[1]]}function mt(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function ht(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function gt(e){return Math.sqrt(_t(e))}function _t(e){return e[0]*e[0]+e[1]*e[1]}function vt(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function yt(e,t){var n=gt(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function bt(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var xt=bt;function St(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Ct=St;function wt(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function Tt(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function Et(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Dt(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var Ot=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),kt=function(){function e(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Ot(t,e),`dragstart`,e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new Ot(t,e),`drag`,e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new Ot(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new Ot(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Ot(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new Ot(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),At=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,l=i[e][c];return l&&l.callAtLast?i[e].splice(c,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=n.length,o=0;o<a;o++){var s=n[o];if(!(r&&r.filter&&s.query!=null&&!r.filter(e,s.query)))switch(i){case 0:s.h.call(s.ctx);break;case 1:s.h.call(s.ctx,t[0]);break;case 2:s.h.call(s.ctx,t[0],t[1]);break;default:s.h.apply(s.ctx,t)}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=t[i-1],o=n.length,s=0;s<o;s++){var c=n[s];if(!(r&&r.filter&&c.query!=null&&!r.filter(e,c.query)))switch(i){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,i-1))}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}(),jt=Math.log(2);function Mt(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<<s)-1&~i)/jt);return e[n][c]}for(var l=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,f=0,p=0;f<s;f++){var m=1<<f;m&i||(d+=(p%2?-1:1)*e[n][f]*Mt(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function Nt(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=Mt(n,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]??(a[s]=0),a[s]+=((o+s)%2?-1:1)*Mt(n,7,+(o===0),1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var Pt=`___zrEVENTSAVED`,Ft=[];function It(e,t,n,r,i){return Lt(Ft,t,r,i,!0)&&Lt(e,n,Ft[0],Ft[1])}function Lt(e,t,n,r,i){if(t.getBoundingClientRect&&I.domSupported&&!Bt(t)){var a=t[Pt]||(t[Pt]={}),o=zt(Rt(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function Rt(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=[`left`,`right`],i=[`top`,`bottom`],a=0;a<4;a++){var o=document.createElement(`div`),s=o.style,c=a%2,l=(a>>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return n}function zt(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?Nt(s,o):Nt(o,s))}function Bt(e){return e.nodeName.toUpperCase()===`CANVAS`}var Vt=/([&<>"'])/g,Ht={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function Ut(e){return e==null?``:(e+``).replace(Vt,function(e,t){return Ht[t]})}var Wt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Gt=[],Kt=I.browser.firefox&&+I.browser.version.split(`.`)[0]<39;function qt(e,t,n,r){return n||={},r?Jt(e,t,n):Kt&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?Jt(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function Jt(e,t,n){if(I.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(Bt(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}if(Lt(Gt,e,r,i)){n.zrX=Gt[0],n.zrY=Gt[1];return}}n.zrX=n.zrY=0}function Yt(e){return e||window.event}function Xt(e,t,n){if(t=Yt(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&qt(e,i,t,n)}else{qt(e,t,t,n);var a=Zt(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&Wt.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function Zt(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function Qt(e,t,n,r){e.addEventListener(t,n,r)}function $t(e,t,n,r){e.removeEventListener(t,n,r)}var en=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function tn(e){return e.which===2||e.which===3}var nn=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],c=qt(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in on)if(on.hasOwnProperty(t)){var n=on[t](this._track,e);if(n)return n}},e}();function rn(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function an(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var on={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=rn(r)/rn(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=an(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}};function sn(){return[1,0,0,1,0,0]}function cn(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function ln(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 un(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function dn(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function fn(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function pn(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function mn(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}var Z=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.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 e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),hn=Math.min,gn=Math.max,_n=new Z,vn=new Z,yn=new Z,bn=new Z,xn=new Z,Sn=new Z,Cn=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=hn(e.x,this.x),n=hn(e.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?gn(e.x+e.width,this.x+this.width)-t:e.width,this.height=isFinite(this.y)&&isFinite(this.height)?gn(e.y+e.height,this.y+this.height)-n:e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,r=e.height/t.height,i=sn();return dn(i,i,[-t.x,-t.y]),pn(i,i,[n,r]),dn(i,i,[e.x,e.y]),i},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,i=r.x,a=r.x+r.width,o=r.y,s=r.y+r.height,c=t.x,l=t.x+t.width,u=t.y,d=t.y+t.height,f=!(a<c||l<i||s<u||d<o);if(n){var p=1/0,m=0,h=Math.abs(a-c),g=Math.abs(l-i),_=Math.abs(s-u),v=Math.abs(d-o),y=Math.min(h,g),b=Math.min(_,v);a<c||l<i?y>m&&(m=y,h<g?Z.set(Sn,-h,0):Z.set(Sn,g,0)):y<p&&(p=y,h<g?Z.set(xn,h,0):Z.set(xn,-g,0)),s<u||d<o?b>m&&(m=b,_<v?Z.set(Sn,0,-_):Z.set(Sn,0,v)):y<p&&(p=y,_<v?Z.set(xn,0,_):Z.set(xn,0,-v))}return n&&Z.copy(n,f?xn:Sn),f},e.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=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(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],a=r[3],o=r[4],s=r[5];t.x=n.x*i+o,t.y=n.y*a+s,t.width=n.width*i,t.height=n.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}_n.x=yn.x=n.x,_n.y=bn.y=n.y,vn.x=bn.x=n.x+n.width,vn.y=yn.y=n.y+n.height,_n.transform(r),bn.transform(r),vn.transform(r),yn.transform(r),t.x=hn(_n.x,vn.x,yn.x,bn.x),t.y=hn(_n.y,vn.y,yn.y,bn.y);var c=gn(_n.x,vn.x,yn.x,bn.x),l=gn(_n.y,vn.y,yn.y,bn.y);t.width=c-t.x,t.height=l-t.y},e}(),wn=`silent`;function Tn(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:En}}function En(){en(this.event)}var Dn=function(e){F(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(At),On=function(){function e(e,t){this.x=e,this.y=t}return e}(),kn=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],An=new Cn(0,0,0,0),jn=function(e){F(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new On(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new Dn,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new kt(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(H(kn,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=Pn(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new On(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new On(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=Tn(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new On(e,t);if(Nn(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new Cn(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(An.copy(u.getBoundingRect()),u.transform&&An.applyTransform(u.transform),An.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m<s;m+=d)for(var h=0;h<p;h+=f)if(Nn(a,i,e+m*Math.cos(h),t+m*Math.sin(h),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||=new nn;var n=this._gestureMgr;t===`start`&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(t===`end`&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new On;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(At);H([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){jn.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=Pn(this,n,r),a,o;if((e!==`mouseup`||!i)&&(a=this.findHover(n,r),o=a.target),e===`mousedown`)this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e===`mouseup`)this._upEl=o;else if(e===`click`){if(this._downEl!==this._upEl||!this._downPoint||xt(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Mn(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0),r=r.__hostTarget||r.parent}return!i||wn}return!1}function Nn(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=Mn(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==wn)){t.target=o;break}}}function Pn(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var Fn=32,In=7;function Ln(e){for(var t=0;e>=Fn;)t|=e&1,e>>=1;return e+t}function Rn(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;zn(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function zn(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function Bn(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a=e[r],o=t,s=r,c;o<s;)c=o+s>>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-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 Vn(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c<s&&a(e,t[n+i+c])>0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;c<s&&a(e,t[n+i-c])<=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function Hn(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;c<s&&a(e,t[n+i-c])<0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c<s&&a(e,t[n+i+c])>=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function Un(e,t){var n=In,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,u(e)}}function u(n){var o=r[n],s=i[n],c=r[n+1],l=i[n+1];i[n]=s+l,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var u=Hn(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=Vn(e[o+s-1],e,c,l,l-1,t),l!==0&&(s<=l?d(o,s,c,l):f(o,s,c,l)))}function d(r,i,a,s){var c=0;for(c=0;c<i;c++)o[c]=e[r+c];var l=0,u=a,d=r;if(e[d++]=e[u++],--s===0){for(c=0;c<i;c++)e[d+c]=o[l+c];return}if(i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l];return}for(var f=n,p,m,h;;){p=0,m=0,h=!1;do if(t(e[u],o[l])<0){if(e[d++]=e[u++],m++,p=0,--s===0){h=!0;break}}else if(e[d++]=o[l++],p++,m=0,--i===1){h=!0;break}while((p|m)<f);if(h)break;do{if(p=Hn(e[u],o,l,i,0,t),p!==0){for(c=0;c<p;c++)e[d+c]=o[l+c];if(d+=p,l+=p,i-=p,i<=1){h=!0;break}}if(e[d++]=e[u++],--s===0){h=!0;break}if(m=Vn(o[l],e,u,s,0,t),m!==0){for(c=0;c<m;c++)e[d+c]=e[u+c];if(d+=m,u+=m,s-=m,s===0){h=!0;break}}if(e[d++]=o[l++],--i===1){h=!0;break}f--}while(p>=In||m>=In);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else if(i===0)throw Error();else for(c=0;c<i;c++)e[d+c]=o[l+c]}function f(r,i,a,s){var c=0;for(c=0;c<s;c++)o[c]=e[a+c];var l=r+i-1,u=s-1,d=a+s-1,f=0,p=0;if(e[d--]=e[l--],--i===0){for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c];return}if(s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)<m);if(_)break;do{if(h=i-Hn(o[u],e,r,i,i-1,t),h!==0){for(d-=h,l-=h,i-=h,p=d+1,f=l+1,c=h-1;c>=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-Vn(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c<g;c++)e[p+c]=o[f+c];if(s<=1){_=!0;break}}if(e[d--]=e[l--],--i===0){_=!0;break}m--}while(h>=In||g>=In);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c]}return{mergeRuns:c,forceMergeRuns:l,pushRun:s}}function Wn(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<Fn){a=Rn(e,n,r,t),Bn(e,n,r,n+a,t);return}var o=Un(e,t),s=Ln(i);do{if(a=Rn(e,n,r,t),a<s){var c=i;c>s&&(c=s),Bn(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var Gn=!1;function Kn(){Gn||(Gn=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function qn(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Jn=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=qn}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t||=!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,Wn(n,qn)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t=t?t.slice():[];for(var i=r,a=e;i;)i.parent=a,i.updateTransform(),t.push(i),a=i,i=i.getClipPath()}if(e.childrenRef){for(var o=e.childrenRef(),s=0;s<o.length;s++){var c=o[s];e.__dirty&&(c.__dirty|=1),this._updateAndAddDisplayable(c,t,n)}e.__dirty=0}else{var l=e;t&&t.length?l.__clipPaths=t:l.__clipPaths&&l.__clipPaths.length>0&&(l.__clipPaths=[]),isNaN(l.z)&&(Kn(),l.z=0),isNaN(l.z2)&&(Kn(),l.z2=0),isNaN(l.zlevel)&&(Kn(),l.zlevel=0),this._displayList[this._displayListLen++]=l}var u=e.getDecalElement&&e.getDecalElement();u&&this._updateAndAddDisplayable(u,t,n);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,n);var f=e.getTextContent();f&&this._updateAndAddDisplayable(f,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var r=Ae(this._roots,e);r>=0&&this._roots.splice(r,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}(),Yn=I.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},Xn={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:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(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,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.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-Xn.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?Xn.bounceIn(e*2)*.5:Xn.bounceOut(e*2-1)*.5+.5}},Zn=Math.pow,Qn=Math.sqrt,$n=1e-8,er=1e-4,tr=Qn(3),nr=1/3,rr=ft(),ir=ft(),ar=ft();function or(e){return e>-$n&&e<$n}function sr(e){return e>$n||e<-$n}function cr(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function lr(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function ur(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(or(u)&&or(d)){if(or(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}}else{var h=d*d-4*u*f;if(or(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=Qn(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-Zn(-y,nr):Zn(y,nr),b=b<0?-Zn(-b,nr):Zn(b,nr);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*Qn(u*u*u)),S=Math.acos(x)/3,C=Qn(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+tr*Math.sin(S)))/(3*o),T=(-s+C*(w-tr*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function dr(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(or(o)){if(sr(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(or(u))i[0]=-a/(2*o);else if(u>0){var d=Qn(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function fr(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function pr(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;rr[0]=c,rr[1]=l;for(var v=0;v<1;v+=.05)ir[0]=cr(e,n,i,o,v),ir[1]=cr(t,r,a,s,v),g=Ct(rr,ir),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<er);y++)m=d-f,h=d+f,ir[0]=cr(e,n,i,o,m),ir[1]=cr(t,r,a,s,m),g=Ct(ir,rr),m>=0&&g<p?(d=m,p=g):(ar[0]=cr(e,n,i,o,h),ar[1]=cr(t,r,a,s,h),_=Ct(ar,rr),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=cr(e,n,i,o,d),u[1]=cr(t,r,a,s,d)),Qn(p)}function mr(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,d=0,f=1/c,p=1;p<=c;p++){var m=p*f,h=cr(e,n,i,o,m),g=cr(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function hr(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function gr(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function _r(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(or(a)){if(sr(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(or(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=Qn(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function vr(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function yr(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function br(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;rr[0]=o,rr[1]=s;for(var f=0;f<1;f+=.05){ir[0]=hr(e,n,i,f),ir[1]=hr(t,r,a,f);var p=Ct(rr,ir);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<er);m++){var h=l-u,g=l+u;ir[0]=hr(e,n,i,h),ir[1]=hr(t,r,a,h);var p=Ct(ir,rr);if(h>=0&&p<d)l=h,d=p;else{ar[0]=hr(e,n,i,g),ar[1]=hr(t,r,a,g);var _=Ct(ar,rr);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=hr(e,n,i,l),c[1]=hr(t,r,a,l)),Qn(d)}function xr(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=hr(e,n,i,f),m=hr(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var Sr=/cubic-bezier\(([0-9,\.e ]+)\)/;function Cr(e){var t=e&&Sr.exec(e);if(t){var n=t[1].split(`,`),r=+Qe(n[0]),i=+Qe(n[1]),a=+Qe(n[2]),o=+Qe(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:ur(0,r,a,1,e,s)&&cr(0,i,o,1,s[0])}}}var wr=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||ut,this.ondestroy=e.ondestroy||ut,this.onrestart=e.onrestart||ut,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1){if(this.loop){var s=r%n;this._startTime=e-s,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(e){this.easing=e,this.easingFunc=K(e)?e:Xn[e]||Cr(e)},e}(),Tr=function(){function e(e){this.value=e}return e}(),Er=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new Tr(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Dr=function(){function e(e){this._list=new Er,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new Tr(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Or={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 kr(e){return e=Math.round(e),e<0?0:e>255?255:e}function Ar(e){return e<0?0:e>1?1:e}function jr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?kr(parseFloat(t)/100*255):kr(parseInt(t,10))}function Mr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Ar(parseFloat(t)/100):Ar(parseFloat(t))}function Nr(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Pr(e,t,n){return e+(t-e)*n}function Fr(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Ir(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Lr=new Dr(20),Rr=null;function zr(e,t){Rr&&Ir(Rr,t),Rr=Lr.put(e,Rr||t.slice())}function Br(e,t){if(e){t||=[];var n=Lr.get(e);if(n)return Ir(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in Or)return Ir(t,Or[r]),zr(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){Fr(t,0,0,0,1);return}return Fr(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),zr(e,t),t}if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Fr(t,0,0,0,1);return}return Fr(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),zr(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?Fr(t,+l[0],+l[1],+l[2],1):Fr(t,0,0,0,1);u=Mr(l.pop());case`rgb`:if(l.length>=3)return Fr(t,jr(l[0]),jr(l[1]),jr(l[2]),l.length===3?u:Mr(l[3])),zr(e,t),t;Fr(t,0,0,0,1);return;case`hsla`:if(l.length!==4){Fr(t,0,0,0,1);return}return l[3]=Mr(l[3]),Vr(l,t),zr(e,t),t;case`hsl`:if(l.length!==3){Fr(t,0,0,0,1);return}return Vr(l,t),zr(e,t),t;default:return}}Fr(t,0,0,0,1)}}function Vr(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Mr(e[1]),i=Mr(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],Fr(t,kr(Nr(o,a,n+1/3)*255),kr(Nr(o,a,n)*255),kr(Nr(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Hr(e,t){var n=Br(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Wr(n,n.length===4?`rgba`:`rgb`)}}function Ur(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=Br(t[i]),s=Br(t[a]),c=r-i,l=Wr([kr(Pr(o[0],s[0],c)),kr(Pr(o[1],s[1],c)),kr(Pr(o[2],s[2],c)),Ar(Pr(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function Wr(e,t){if(!(!e||!e.length)){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function Gr(e,t){var n=Br(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var Kr=new Dr(100);function qr(e){if(q(e)){var t=Kr.get(e);return t||(t=Hr(e,-.1),Kr.put(e,t)),t}if(We(e)){var n=V({},e);return n.colorStops=U(e.colorStops,function(e){return{offset:e.offset,color:Hr(e.color,-.1)}}),n}return e}function Jr(e){return e.type===`linear`}function Yr(e){return e.type===`radial`}(function(){return I.hasGlobalWindow&&K(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 Xr=Array.prototype.slice;function Zr(e,t,n){return(t-e)*n+e}function Qr(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=Zr(t[a],n[a],r);return e}function $r(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Zr(t[o][s],n[o][s],r)}return e}function ei(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function ti(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function ni(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function ri(e,t,n){var r=e,i=t;if(!(!r.push||!i.push)){var a=r.length,o=i.length;if(a!==o){if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(n===1?i[s]:Xr.call(i[s]))}for(var c=r[0]&&r[0].length,s=0;s<r.length;s++)if(n===1)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<c;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function ii(e){if(Ne(e)){var t=e.length;if(Ne(e[0])){for(var n=[],r=0;r<t;r++)n.push(Xr.call(e[r]));return n}return Xr.call(e)}return e}function ai(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],`rgba(`+e.join(`,`)+`)`}function oi(e){return Ne(e&&e[0])?2:1}var si=0,ci=1,li=2,ui=3,di=4,fi=5,pi=6;function mi(e){return e===di||e===fi}function hi(e){return e===ci||e===li}var gi=[0,0,0,0],_i=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=pi,s=t;if(Ne(t)){var c=oi(t);o=c,(c===1&&!Be(t[0])||c===2&&!Be(t[0][0]))&&(a=!0)}else if(Be(t)&&!Ke(t))o=si;else if(q(t)){if(!isNaN(+t))o=si;else{var l=Br(t);l&&(s=l,o=ui)}}else if(We(t)){var u=V({},s);u.colorStops=U(t.colorStops,function(e){return{offset:e.offset,color:Br(e.color)}}),Jr(t)?o=di:Yr(t)&&(o=fi),s=u}i===0?this.valType=o:(o!==this.valType||o===pi)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=K(n)?n:Xn[n]||Cr(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=hi(r),c=mi(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?ri(d,f,r):c&&ni(d.colorStops,f.colorStops))}if(!o&&r!==fi&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,l=0;l<i;l++)r===si?n[l].additiveValue=n[l].value-p:r===ui?n[l].additiveValue=ei([],n[l].value,p,-1):hi(r)&&(n[l].additiveValue=r===ci?ei([],n[l].value,p,-1):ti([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,r=n?`additiveValue`:`value`,i=this.valType,a=this.keyframes,o=a.length,s=this.propName,c=i===ui,l,u=this._lastFr,d=Math.min,f,p;if(o===1)f=p=a[0];else{if(t<0)l=0;else if(t<this._lastFrP){for(l=d(u+1,o-1);l>=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;l<o&&!(a[l].percent>t);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?gi:e[s];if((hi(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(hi(i))i===ci?Qr(g,f[r],p[r],h):$r(g,f[r],p[r],h);else if(mi(i)){var _=f[r],v=p[r],y=i===di;e[s]={type:y?`linear`:`radial`,x:Zr(_.x,v.x,h),y:Zr(_.y,v.y,h),colorStops:U(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:Zr(e.offset,n.offset,h),color:ai(Qr([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=Zr(_.x2,v.x2,h),e[s].y2=Zr(_.y2,v.y2,h)):e[s].r=Zr(_.r,v.r,h)}else if(c)Qr(g,f[r],p[r],h),n||(e[s]=ai(g));else{var b=Zr(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===si?e[n]=e[n]+r:t===ui?(Br(e[n],gi),ei(gi,gi,r,1),e[n]=ai(gi)):t===ci?ei(e[n],e[n],r,1):t===li&&ti(e[n],e[n],r,1)},e}(),vi=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){Oe(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,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(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,Ie(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new _i(o);var c=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes,d=u[u.length-1];c=d&&d.value,l.valType===ui&&c&&(c=ai(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,ii(c),r),this._trackKeys.push(o)}s.addKeyframe(e,ii(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),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(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),c=o.keyframes,l=c.length;if(o.prepare(r,s),o.needsAnimate()){if(!this._allowDiscrete&&o.discrete){var u=c[l-1];u&&(t._target[o.propName]=u.rawValue),o.setFinished()}else n.push(o)}}if(n.length||this._force){var d=new wr({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||=[],this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||=[],this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||=[],this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return U(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var o=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t||=this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(!(!a||a.isFinished())){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=ii(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=Ie(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function yi(){return new Date().getTime()}var bi=function(e){F(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=yi()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(Yn(t),!e._paused&&e.update())}Yn(t)},t.prototype.start=function(){this._running||(this._time=yi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=yi(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=yi()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new vi(e,t.loop);return this.addAnimator(n),n},t}(At),xi=300,Si=I.domSupported,Ci=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:U(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),wi={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},Ti=!1;function Ei(e){var t=e.pointerType;return t===`pen`||t===`touch`}function Di(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 Oi(e){e&&(e.zrByTouch=!0)}function ki(e,t){return Xt(e.dom,new ji(e,t),!0)}function Ai(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var ji=function(){function e(e,t){this.stopPropagation=ut,this.stopImmediatePropagation=ut,this.preventDefault=ut,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),Mi={mousedown:function(e){e=Xt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=Xt(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=Xt(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=Xt(this.dom,e);var t=e.toElement||e.relatedTarget;Ai(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){Ti=!0,e=Xt(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){Ti||(e=Xt(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=Xt(this.dom,e),Oi(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),Mi.mousemove.call(this,e),Mi.mousedown.call(this,e)},touchmove:function(e){e=Xt(this.dom,e),Oi(e),this.handler.processGesture(e,`change`),Mi.mousemove.call(this,e)},touchend:function(e){e=Xt(this.dom,e),Oi(e),this.handler.processGesture(e,`end`),Mi.mouseup.call(this,e),new Date-+this.__lastTouchMoment<xi&&Mi.click.call(this,e)},pointerdown:function(e){Mi.mousedown.call(this,e)},pointermove:function(e){Ei(e)||Mi.mousemove.call(this,e)},pointerup:function(e){Mi.mouseup.call(this,e)},pointerout:function(e){Ei(e)||Mi.mouseout.call(this,e)}};H([`click`,`dblclick`,`contextmenu`],function(e){Mi[e]=function(t){t=Xt(this.dom,t),this.trigger(e,t)}});var Ni={pointermove:function(e){Ei(e)||Ni.mousemove.call(this,e)},pointerup:function(e){Ni.mouseup.call(this,e)},mousemove:function(e){this.trigger(`mousemove`,e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(`mouseup`,e),t&&(e.zrEventControl=`only_globalout`,this.trigger(`mouseout`,e))}};function Pi(e,t){var n=t.domHandlers;I.pointerEventsSupported?H(Ci.pointer,function(r){Ii(t,r,function(t){n[r].call(e,t)})}):(I.touchEventsSupported&&H(Ci.touch,function(r){Ii(t,r,function(i){n[r].call(e,i),Di(t)})}),H(Ci.mouse,function(r){Ii(t,r,function(i){i=Yt(i),t.touching||n[r].call(e,i)})}))}function Fi(e,t){I.pointerEventsSupported?H(wi.pointer,n):I.touchEventsSupported||H(wi.mouse,n);function n(n){function r(r){r=Yt(r),Ai(e,r.target)||(r=ki(e,r),t.domHandlers[n].call(e,r))}Ii(t,n,r,{capture:!0})}}function Ii(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,Qt(e.domTarget,t,n,r)}function Li(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&$t(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var Ri=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),zi=function(e){F(t,e);function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new Ri(t,Mi),Si&&(r._globalHandlerScope=new Ri(document,Ni)),Pi(r,r._localHandlerScope),r}return t.prototype.dispose=function(){Li(this._localHandlerScope),Si&&Li(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||`default`)},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,Si&&this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?Fi(this,t):Li(t)}},t}(At),Bi=1;I.hasGlobalWindow&&(Bi=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Vi=Bi,Hi=.4,Ui=`#333`,Wi=`#ccc`,Gi=`#eee`,Ki=cn,qi=5e-5;function Ji(e){return e>qi||e<-qi}var Yi=[],Xi=[],Zi=sn(),Qi=Math.abs,$i=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return Ji(this.rotation)||Ji(this.x)||Ji(this.y)||Ji(this.scaleX-1)||Ji(this.scaleY-1)||Ji(this.skewX)||Ji(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(Ki(n),this.invTransform=null);return}n||=sn(),t?this.getLocalTransform(n):Ki(n),e&&(t?un(n,e,n):ln(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Yi);var n=Yi[0]<0?-1:1,r=Yi[1]<0?-1:1,i=((Yi[0]-n)*t+n)/Yi[0]||0,a=((Yi[1]-r)*t+r)/Yi[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||sn(),mn(this.invTransform,e)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||sn(),un(Xi,e.invTransform,t),t=Xi);var n=this.originX,r=this.originY;(n||r)&&(Zi[4]=n,Zi[5]=r,un(Xi,t,Zi),Xi[4]-=n,Xi[5]-=r,t=Xi),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&Tt(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&Tt(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&Qi(e[0]-1)>1e-10&&Qi(e[3]-1)>1e-10?Math.sqrt(Qi(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){ta(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&fn(t,t,c),t[4]+=n+l,t[5]+=r+u,t},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}(),ea=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function ta(e,t){for(var n=0;n<ea.length;n++){var r=ea[n];e[r]=t[r]}}var na={};function ra(e,t){t||=`12px sans-serif`;var n=na[t];n||=na[t]=new Dr(500);var r=n.get(e);return r??(r=me.measureText(e,t).width,n.put(e,r)),r}function ia(e,t,n,r){var i=ra(e,t),a=ca(t);return new Cn(oa(0,i,n),sa(0,a,r),i,a)}function aa(e,t,n,r){var i=((e||``)+``).split(`
|
|
2
2
|
`);if(i.length===1)return ia(i[0],t,n,r);for(var a=new Cn(0,0,0,0),o=0;o<i.length;o++){var s=ia(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function oa(e,t,n){return n===`right`?e-=t:n===`center`&&(e-=t/2),e}function sa(e,t,n){return n===`middle`?e-=t/2:n===`bottom`&&(e-=t),e}function ca(e){return ra(`国`,e)}function la(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function ua(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=la(r[0],n.width),l+=la(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`}return e||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var da=`__zr_normal__`,fa=ea.concat([`ignore`]),pa=Pe(ea,function(e,t){return e[t]=!0,e},{ignore:!1}),ma={},ha=new Cn(0,0,0,0),ga=function(){function e(e){this.id=De(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0}var r=this.transform;r||=this.transform=[1,0,0,1,0,0],r[4]+=e,r[5]+=t,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(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||={};var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;if(i.copyTransform(t),n.position!=null){var l=ha;n.layoutRect?l.copy(n.layoutRect):l.copy(this.getBoundingRect()),r||l.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(ma,n,l):ua(ma,n,l),i.x=ma.x,i.y=ma.y,a=ma.align,o=ma.verticalAlign;var u=n.origin;if(u&&n.rotation!=null){var d=void 0,f=void 0;u===`center`?(d=l.width*.5,f=l.height*.5):(d=la(u[0],l.width),f=la(u[1],l.height)),c=!0,i.originX=-i.x+d+(r?0:l.x),i.originY=-i.y+f+(r?0:l.y)}}n.rotation!=null&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],c||(i.originX=-p[0],i.originY=-p[1]));var m=n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside,h=this._innerTextDefaultStyle||={},g=void 0,_=void 0,v=void 0;m&&this.canBeInsideText()?(g=n.insideFill,_=n.insideStroke,(g==null||g===`auto`)&&(g=this.getInsideTextFill()),(_==null||_===`auto`)&&(_=this.getInsideTextStroke(g),v=!0)):(g=n.outsideFill,_=n.outsideStroke,(g==null||g===`auto`)&&(g=this.getOutsideFill()),(_==null||_===`auto`)&&(_=this.getOutsideStroke(g),v=!0)),g||=`#000`,(g!==h.fill||_!==h.stroke||v!==h.autoStroke||a!==h.align||o!==h.verticalAlign)&&(s=!0,h.fill=g,h.stroke=_,h.autoStroke=v,h.align=a,h.verticalAlign=o,t.setDefaultTextStyle(h)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Wi:Ui},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&Br(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,Wr(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},V(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(J(e))for(var n=Ie(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==`__zr_normal__`)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||=this._normalState={},e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,fa)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(da,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===da;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(Ae(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i){Oe(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=!!(s&&s.hoverLayer||r);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,s,this._normalState,t,!n&&!this.__inHover&&o&&o.duration>0,o);var l=this._textContent,u=this._textGuide;return l&&l.useState(e,t,n,c),u&&u.useState(e,t,n,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}}if(o)return;for(var s=0;s<a;s++){var c=e[s],l=void 0;this.stateProxy&&(l=this.stateProxy(c,e)),l||=this.states[c],l&&r.push(l)}var u=r[a-1],d=!!(u&&u.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var f=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(e.join(`,`),f,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var m=this._textContent,h=this._textGuide;m&&m.useStates(e,t,d),h&&h.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=Ae(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=Ae(r,e),a=Ae(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r<e.length;r++){var i=e[r];V(t,i),i.textConfig&&(n||={},V(n,i.textConfig))}return n&&(t.textConfig=n),t},e.prototype._applyStateObj=function(e,t,n,r,i,a){var o=!(t&&r);t&&t.textConfig?(this.textConfig=V({},r?this.textConfig:n.textConfig),V(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<fa.length;l++){var u=fa[l],d=i&&pa[u];t&&t[u]!=null?d?(c=!0,s[u]=t[u]):this[u]=t[u]:o&&n[u]!=null&&(d?(c=!0,s[u]=n[u]):this[u]=n[u])}if(!i)for(var l=0;l<this.animators.length;l++){var f=this.animators[l],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(t||n)[p]:t||n)}c&&this._transitionState(e,s,a)},e.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new $i,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||={},V(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=new vi(e?this[e]:this,t,n);return e&&(r.targetName=e),this.addAnimator(r,e),r},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=Ae(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];!e||e===o.scope?o.stop(t):i.push(o)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){_a(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){_a(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=_a(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type=`element`,t.name=``,t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=1;function n(e,n,r,i){Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];a(this,e)}return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,a(this,e)}});function a(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}}Object.defineProperty&&(n(`position`,`_legacyPos`,`x`,`y`),n(`scale`,`_legacyScale`,`scaleX`,`scaleY`),n(`origin`,`_legacyOrigin`,`originX`,`originY`))})(),e}();Me(ga,At),Me(ga,$i);function _a(e,t,n,r,i){n||={};var a=[];Ca(e,``,e,t,n,r,a,i);var o=a.length,s=!1,c=n.done,l=n.aborted,u=function(){s=!0,o--,o<=0&&(s?c&&c():l&&l())},d=function(){o--,o<=0&&(s?c&&c():l&&l())};o||c&&c(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f<a.length;f++){var p=a[f];u&&p.done(u),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function va(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function ya(e){return Ne(e[0])}function ba(e,t,n){if(Ne(t[n])){if(Ne(e[n])||(e[n]=[]),He(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),va(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(ya(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?va(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else va(a,i,o);a.length=i.length}}else e[n]=t[n]}function xa(e,t){return e===t||Ne(e)&&Ne(t)&&Sa(e,t)}function Sa(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Ca(e,t,n,r,i,a,o,s){for(var c=Ie(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!J(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_])){if(J(v)&&!Ne(v)&&!We(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}Ca(e,_,n[_],v,i,a&&a[_],o,s)}else h.push(_)}else s||(n[_]=v,e.updateDuringAnimation(t),h.push(_))}var y=h.length;if(!d&&y)for(var b=0;b<m.length;b++){var x=m[b];if(x.targetName===t&&x.stopTracks(h)){var S=Ae(m,x);m.splice(S,1)}}if(i.force||(h=Fe(h,function(e){return!xa(r[e],n[e])}),y=h.length),y>0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b<y;b++){var _=h[b];w[_]=n[_],f?C[_]=r[_]:n[_]=r[_]}}else if(f){T={};for(var b=0;b<y;b++){var _=h[b];T[_]=ii(n[_]),ba(n,r,_)}}var x=new vi(n,!1,!1,d?Fe(m,function(e){return e.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),f&&C&&x.whenWithKeys(0,C,h),T&&x.whenWithKeys(0,T,h),x.whenWithKeys(l??500,s?w:r,h).delay(u||0),e.addAnimator(x,t),o.push(x)}}var wa=function(e){F(t,e);function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=Ae(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=Ae(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new Cn(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var o=n[a];if(!(o.ignore||o.invisible)){var s=o.getBoundingRect(),c=o.getLocalTransform(r);c?(Cn.applyTransform(t,s,c),i||=t.clone(),i.union(t)):(i||=s.clone(),i.union(s))}}return i||t},t}(ga);wa.prototype.type=`group`;var Ta={},Ea={};function Da(e){delete Ea[e]}function Oa(e){if(!e)return!1;if(typeof e==`string`)return Gr(e,1)<Hi;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Gr(t[i].color,1);return n/=r,n<Hi}return!1}var ka=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n||={},this.dom=t,this.id=e;var i=new Jn,a=n.renderer||`canvas`;Ta[a]||(a=Ie(Ta)[0]),n.useDirtyRect=n.useDirtyRect!=null&&n.useDirtyRect;var o=new Ta[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!I.node&&!I.worker&&!s?new zi(o.getViewportRoot(),o.root):null,l=n.useCoarsePointer,u=l==null||l===`auto`?I.touchEventsSupported:!!l,d=44,f;u&&(f=Y(n.pointerSize,d)),this.handler=new jn(i,o,c,o.root,f),this.animation=new bi({stage:{update:s?null:function(){return r._flush(!0)}}}),s||this.animation.start()}return e.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=Oa(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(e){var t,n=yi();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=yi();t?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},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(e){this._disposed||(e||={},this.painter.resize(e.width,e.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(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof wa&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,Da(this.id))},e}();function Aa(e,t){var n=new ka(De(),e,t);return Ea[n.id]=n,n}function ja(e,t){Ta[e]=t}var Ma=1e-4,Na=20;function Pa(e){return e.replace(/^\s+|\s+$/g,``)}function Fa(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],c=a-i,l=s-o;if(c===0)return l===0?o:(o+s)/2;if(r){if(c>0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}function Q(e,t){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`}return q(e)?Pa(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Ia(e,t,n){return t??=10,t=Math.min(Math.max(0,t),Na),e=(+e).toFixed(t),n?e:+e}function La(e){return e.sort(function(e,t){return e-t}),e}function Ra(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return za(e)}function za(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`),o=a<0?0:i-1-a;return Math.max(0,o-r)}function Ba(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),a=Math.round(n(Math.abs(t[1]-t[0]))/r),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function Va(e,t){var n=Pe(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=10**t,i=U(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=r*100,o=U(i,function(e){return Math.floor(e)}),s=Pe(o,function(e,t){return e+t},0),c=U(i,function(e,t){return e-o[t]});s<a;){for(var l=-1/0,u=null,d=0,f=c.length;d<f;++d)c[d]>l&&(l=c[d],u=d);++o[u],c[u]=0,++s}return U(o,function(e){return e/r})}function Ha(e,t){var n=Math.max(Ra(e),Ra(t)),r=e+t;return n>Na?r:Ia(r,n)}function Ua(e){var t=Math.PI*2;return(e%t+t)%t}function Wa(e){return e>-Ma&&e<Ma}var Ga=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Ka(e){if(e instanceof Date)return e;if(q(e)){var t=Ga.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!==`Z`&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return e==null?new Date(NaN):new Date(Math.round(e))}function qa(e){return 10**Ja(e)}function Ja(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/10**t>=10&&t++,t}function Ya(e,t){var n=Ja(e),r=10**n,i=e/r;return e=(t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,n>=-20?+e.toFixed(n<0?-n:0):e}function Xa(e){var t=parseFloat(e);return t==e&&(t!==0||!q(e)||e.indexOf(`x`)<=0)?t:NaN}function Za(e){return!isNaN(Xa(e))}function Qa(){return Math.round(Math.random()*9)}function $a(e,t){return t===0?e:$a(t,e%t)}function eo(e,t){return e==null?t:t==null?e:e*t/$a(e,t)}function to(e){throw Error(e)}function no(e,t,n){return(t-e)*n+e}var ro=`series\0`,io=`\0_ec_\0`;function ao(e){return e instanceof Array?e:e==null?[]:[e]}function oo(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var so=`fontStyle.fontWeight.fontSize.fontFamily.rich.tag.color.textBorderColor.textBorderWidth.width.height.lineHeight.align.verticalAlign.baseline.shadowColor.shadowBlur.shadowOffsetX.shadowOffsetY.textShadowColor.textShadowBlur.textShadowOffsetX.textShadowOffsetY.backgroundColor.borderColor.borderWidth.borderRadius.padding`.split(`.`);function co(e){return J(e)&&!G(e)&&!(e instanceof Date)?e.value:e}function lo(e){return J(e)&&!(e instanceof Array)}function uo(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=X();H(t,function(e,n){if(!J(e)){t[n]=null;return}});var s=fo(e,o,n);return(r||i)&&po(s,e,o,t),r&&mo(s,t),r||i?ho(s,t,i):a&&go(s,t),_o(s),s}function fo(e,t,n){var r=[];if(n===`replaceAll`)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),r.push({existing:n===`replaceMerge`||So(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function po(e,t,n,r){H(r,function(i,a){if(!(!i||i.id==null)){var o=yo(i.id),s=n.get(o);if(s!=null){var c=e[s];Ze(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function mo(e,t){H(t,function(n,r){if(!(!n||n.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||n.id==null)&&!So(n)&&!So(a)&&vo(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function ho(e,t,n){H(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||So(r.existing)||r.existing&&t.id!=null&&!vo(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function go(e,t){H(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function _o(e){var t=X();H(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),H(e,function(e){var n=e.newOption;Ze(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,`id duplicates: `+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),H(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(J(i)){if(a.name=i.name==null?r?r.name:ro+n:yo(i.name),r)a.id=yo(r.id);else if(i.id!=null)a.id=yo(i.id);else{var o=0;do a.id=`\0`+a.name+`\0`+o++;while(t.get(a.id))}t.set(a.id,e)}})}function vo(e,t,n){var r=bo(t[e],null),i=bo(n[e],null);return r!=null&&i!=null&&r===i}function yo(e){return bo(e,``)}function bo(e,t){return e==null?t:q(e)?e:Be(e)||ze(e)?e+``:t}function xo(e){var t=e.name;return!!(t&&t.indexOf(ro))}function So(e){return e&&e.id!=null&&yo(e.id).indexOf(io)===0}function Co(e,t,n){H(e,function(e){var r=e.newOption;J(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=wo(t,r,e.existing,n))})}function wo(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function To(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return G(t.dataIndex)?U(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return G(t.name)?U(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function Eo(){var e=`__ec_inner_`+Do++;return function(t){return t[e]||(t[e]={})}}var Do=Qa();function Oo(e,t,n){var r=ko(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(t,r){var i=Mo(e,r,t,{useDefault:s===r,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});o[r+`Models`]=i.models,o[r+`Model`]=i.models[0]}),o}function ko(e,t){var n;if(q(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=X(),a={},o=!1;return H(n,function(e,n){if(n===`dataIndex`||n===`dataIndexInside`){a[n]=e;return}var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],c=(r[2]||``).toLowerCase();if(!(!s||!c||t&&t.includeMainTypes&&Ae(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Ao={useDefault:!0,enableAll:!1,enableNone:!1},jo={useDefault:!1,enableAll:!0,enableNone:!0};function Mo(e,t,n,r){r||=Ao;var i=n.index,a=n.id,o=n.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var c=void 0;return s.models=r.useDefault&&(c=e.getComponent(t))?[c]:[],s}return i===`none`||i===!1?(Ze(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i===`all`&&(Ze(r.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function No(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function Po(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Fo(e){return e===`auto`?I.domSupported?`html`:`richText`:e||`html`}function Io(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(Be(r)){var o=no(n||0,r,i);return Ia(o,a?Math.max(Ra(n||0),Ra(r)):t)}if(q(r))return i<1?n:r;for(var s=[],c=n,l=r,u=Math.max(c?c.length:0,l.length),d=0;d<u;++d){var f=e.getDimensionInfo(d);if(f&&f.type===`ordinal`)s[d]=(i<1&&c?c:l)[d];else{var p=c&&c[d]?c[d]:0,m=l[d],o=no(p,m,i);s[d]=Ia(o,a?Math.max(Ra(p),Ra(m)):t)}}return s}var Lo=`.`,Ro=`___EC__COMPONENT__CONTAINER___`,zo=`___EC__EXTENDED_CLASS___`;function Bo(e){var t={main:``,sub:``};if(e){var n=e.split(Lo);t.main=n[0]||``,t.sub=n[1]||``}return t}function Vo(e){Ze(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function Ho(e){return!!(e&&e[zo])}function Uo(e,t){e.$constructor=e,e.extend=function(e){var t=this,n;return Wo(t)?n=function(e){F(t,e);function t(){return e.apply(this,arguments)||this}return t}(t):(n=function(){(e.$constructor||t).apply(this,arguments)},je(n,this)),V(n.prototype,e),n[zo]=!0,n.extend=this.extend,n.superCall=Jo,n.superApply=Yo,n.superClass=t,n}}function Wo(e){return K(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Go(e,t){e.extend=t.extend}var Ko=Math.round(Math.random()*10);function qo(e){var t=[`__\0is_clz`,Ko++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function Jo(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function Yo(e,t,n){return this.superClass.prototype[t].apply(e,n)}function Xo(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){Vo(r),e.prototype.type=r;var i=Bo(r);if(!i.sub)t[i.main]=e;else if(i.sub!==Ro){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[Ro]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=Bo(e),r=[],i=t[n.main];return i&&i[Ro]?H(i,function(e,t){t!==Ro&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[Bo(e).main]},e.getAllClassMainTypes=function(){var e=[];return H(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[Bo(e).main];return n&&n[Ro]};function n(e){var n=t[e.main];return(!n||!n[Ro])&&(n=t[e.main]={},n[Ro]=!0),n}}function Zo(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t||=!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&Ae(r,s)>=0||i&&Ae(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var Qo=Zo([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),$o=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return Qo(this,e,t)},e}(),es=new Dr(50);function ts(e){if(typeof e==`string`){var t=es.get(e);return t&&t.image}return e}function ns(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=es.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!is(t)&&a.pending.push(o)):(t=me.loadImage(e,rs,rs),t.__zrImageSrc=e,es.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}return e}function rs(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function is(e){return e&&e.width&&e.height}var as=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function os(e,t,n,r,i,a){if(!n){e.text=``,e.isTruncated=!1;return}var o=(t+``).split(`
|
|
3
3
|
`);a=ss(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)cs(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
|
|
4
4
|
`),e.isTruncated=s}function ss(e,t,n,r){r||={};var i=V({},r);i.font=t,n=Y(n,`...`),i.maxIterations=Y(r.maxIterations,2);var a=i.minChar=Y(r.minChar,0);i.cnCharWidth=ra(`国`,t);var o=i.ascCharWidth=ra(`a`,t);i.placeholder=Y(r.placeholder,``);for(var s=e=Math.max(0,e-1),c=0;c<a&&s>=o;c++)s-=o;var l=ra(n,t);return l>s&&(n=``,l=0),s=e-l,i.ellipsis=n,i.ellipsisWidth=l,i.contentWidth=s,i.containerWidth=e,i}function cs(e,t,n){var r=n.containerWidth,i=n.font,a=n.contentWidth;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=ra(t,i);if(o<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?ls(t,a,n.ascCharWidth,n.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,c),o=ra(t,i)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function ls(e,t,n,r){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?n:r}return a}function us(e,t){e!=null&&(e+=``);var n=t.overflow,r=t.padding,i=t.font,a=n===`truncate`,o=ca(i),s=Y(t.lineHeight,o),c=!!t.backgroundColor,l=t.lineOverflow===`truncate`,u=!1,d=t.width,f=d!=null&&(n===`break`||n===`breakAll`)?e?ys(e,t.font,d,n===`breakAll`,0).lines:[]:e?e.split(`
|
|
5
5
|
`):[],p=f.length*s,m=Y(t.height,p);if(p>m&&l){var h=Math.floor(m/s);u||=f.length>h,f=f.slice(0,h)}if(e&&a&&d!=null)for(var g=ss(d,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),_={},v=0;v<f.length;v++)cs(_,f[v],g),f[v]=_.textLine,u||=_.isTruncated;for(var y=m,b=0,v=0;v<f.length;v++)b=Math.max(ra(f[v],i),b);d??=b;var x=b;return r&&(y+=r[0]+r[2],x+=r[1]+r[3],d+=r[1]+r[3]),c&&(x=d),{lines:f,height:m,outerWidth:x,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:b,contentHeight:p,width:d,isTruncated:u}}var ds=function(){function e(){}return e}(),fs=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),ps=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function ms(e,t){var n=new ps;if(e!=null&&(e+=``),!e)return n;for(var r=t.width,i=t.height,a=t.overflow,o=(a===`break`||a===`breakAll`)&&r!=null?{width:r,accumWidth:0,breakAll:a===`breakAll`}:null,s=as.lastIndex=0,c;(c=as.exec(e))!=null;){var l=c.index;l>s&&hs(n,e.substring(s,l),t,o),hs(n,c[2],t,o,c[1]),s=as.lastIndex}s<e.length&&hs(n,e.substring(s,e.length),t,o);var u=[],d=0,f=0,p=t.padding,m=a===`truncate`,h=t.lineOverflow===`truncate`,g={};function _(e,t,n){e.width=t,e.lineHeight=n,d+=n,f=Math.max(f,t)}outer:for(var v=0;v<n.lines.length;v++){for(var y=n.lines[v],b=0,x=0,S=0;S<y.tokens.length;S++){var C=y.tokens[S],w=C.styleName&&t.rich[C.styleName]||{},T=C.textPadding=w.padding,E=T?T[1]+T[3]:0,D=C.font=w.font||t.font;C.contentHeight=ca(D);var O=Y(w.height,C.contentHeight);if(C.innerHeight=O,T&&(O+=T[0]+T[2]),C.height=O,C.lineHeight=Je(w.lineHeight,t.lineHeight,O),C.align=w&&w.align||t.align,C.verticalAlign=w&&w.verticalAlign||`middle`,h&&i!=null&&d+C.lineHeight>i){var k=n.lines.length;S>0?(y.tokens=y.tokens.slice(0,S),_(y,x,b),n.lines=n.lines.slice(0,v+1)):n.lines=n.lines.slice(0,v),n.isTruncated=n.isTruncated||n.lines.length<k;break outer}var A=w.width,j=A==null||A===`auto`;if(typeof A==`string`&&A.charAt(A.length-1)===`%`)C.percentWidth=A,u.push(C),C.contentWidth=ra(C.text,D);else{if(j){var M=w.backgroundColor,N=M&&M.image;N&&(N=ts(N),is(N)&&(C.width=Math.max(C.width,N.width*O/N.height)))}var P=m&&r!=null?r-x:null;P!=null&&P<C.width?!j||P<E?(C.text=``,C.width=C.contentWidth=0):(os(g,C.text,P-E,D,t.ellipsis,{minChar:t.truncateMinChar}),C.text=g.text,n.isTruncated=n.isTruncated||g.isTruncated,C.width=C.contentWidth=ra(C.text,D)):C.contentWidth=ra(C.text,D)}C.width+=E,x+=C.width,w&&(b=Math.max(b,C.lineHeight))}_(y,x,b)}n.outerWidth=n.width=Y(r,f),n.outerHeight=n.height=Y(i,d),n.contentHeight=d,n.contentWidth=f,p&&(n.outerWidth+=p[1]+p[3],n.outerHeight+=p[0]+p[2]);for(var v=0;v<u.length;v++){var C=u[v],ee=C.percentWidth;C.width=parseInt(ee,10)/100*n.width}return n}function hs(e,t,n,r,i){var a=t===``,o=i&&n.rich[i]||{},s=e.lines,c=o.font||n.font,l=!1,u,d;if(r){var f=o.padding,p=f?f[1]+f[3]:0;if(o.width!=null&&o.width!==`auto`){var m=la(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
|
|
6
6
|
`),l=!0),r.accumWidth=m}else{var h=ys(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}else u=t.split(`
|
|
7
7
|
`);for(var g=0;g<u.length;g++){var _=u[g],v=new ds;if(v.styleName=i,v.text=_,v.isLineHolder=!_&&!a,v.width=typeof o.width==`number`?o.width:d?d[g]:ra(_,c),!g&&!l){var y=(s[s.length-1]||(s[0]=new fs)).tokens,b=y.length;b===1&&y[0].isLineHolder?y[0]=v:(_||!b||a)&&y.push(v)}else s.push(new fs([v]))}}function gs(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var _s=Pe(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function vs(e){return!gs(e)||!!_s[e]}function ys(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=0;d<e.length;d++){var f=e.charAt(d);if(f===`
|
|
8
|
-
`){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var p=ra(f,t),m=!r&&!vs(f);if(a.length?u+p>n:i+u+p>n){u?(s||c)&&(m?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=f,l+=p,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=f,u=p)):m?(a.push(c),o.push(l),c=f,l=p):(a.push(f),o.push(p));continue}u+=p,m?(c+=f,l+=p):(c&&(s+=c,c=``,l=0),s+=f)}return!a.length&&!s&&(s=e,c=``,l=0),c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}var bs=`__zr_style_`+Math.round(Math.random()*10),xs={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},Ss={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};xs[bs]=!0;var Cs=[`z`,`z2`,`invisible`],ws=[`invisible`],Ts=function(e){F(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=Ie(t),r=0;r<n.length;r++){var i=n[r];i===`style`?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Os(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths){for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1}if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||=new Cn(0,0,0,0),t?Cn.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=i*2+Math.abs(a),e.height+=i*2+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+s*2),e.height=Math.ceil(e.height+1+s*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Cn(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate(`style`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`style`?this.style?this.setStyle(n):this.useStyle(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setStyle=function(e,t){return typeof e==`string`?this.style[e]=t:V(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&=null},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&2)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return st(xs,e)},t.prototype.useStyle=function(e){e[bs]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[bs]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,Cs)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c;if(n&&n.style?a?i?c=n.style:(c=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(c,n.style)):(c=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(c,n.style)):s&&(c=r.style),c){if(a){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var u=Ie(l),d=0;d<u.length;d++){var f=u[d];f in c&&(c[f]=c[f],this.style[f]=l[f])}for(var p=Ie(c),d=0;d<p.length;d++){var f=p[d];this.style[f]=this.style[f]}this._transitionState(t,{style:c},o,this.getAnimationStyleProps())}else this.useStyle(c)}for(var m=this.__inHover?ws:Cs,d=0;d<m.length;d++){var f=m[d];n&&n[f]!=null?this[f]=n[f]:s&&r[f]!=null&&(this[f]=r[f])}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.style&&(r||={},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},t.prototype._mergeStyle=function(e,t){return V(e,t),e},t.prototype.getAnimationStyleProps=function(){return Ss},t.initDefaultProps=(function(){var e=t.prototype;e.type=`displayable`,e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor=`pointer`,e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3})(),t}(ga),Es=new Cn(0,0,0,0),Ds=new Cn(0,0,0,0);function Os(e,t,n){return Es.copy(e.getBoundingRect()),e.transform&&Es.applyTransform(e.transform),Ds.width=t,Ds.height=n,!Es.intersect(Ds)}var ks=Math.min,As=Math.max,js=Math.sin,Ms=Math.cos,Ns=Math.PI*2,Ps=ft(),Fs=ft(),Is=ft();function Ls(e,t,n,r,i,a){i[0]=ks(e,n),i[1]=ks(t,r),a[0]=As(e,n),a[1]=As(t,r)}var Rs=[],zs=[];function Bs(e,t,n,r,i,a,o,s,c,l){var u=dr,d=cr,f=u(e,n,i,o,Rs);c[0]=1/0,c[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var p=0;p<f;p++){var m=d(e,n,i,o,Rs[p]);c[0]=ks(m,c[0]),l[0]=As(m,l[0])}f=u(t,r,a,s,zs);for(var p=0;p<f;p++){var h=d(t,r,a,s,zs[p]);c[1]=ks(h,c[1]),l[1]=As(h,l[1])}c[0]=ks(e,c[0]),l[0]=As(e,l[0]),c[0]=ks(o,c[0]),l[0]=As(o,l[0]),c[1]=ks(t,c[1]),l[1]=As(t,l[1]),c[1]=ks(s,c[1]),l[1]=As(s,l[1])}function Vs(e,t,n,r,i,a,o,s){var c=vr,l=hr,u=As(ks(c(e,n,i),1),0),d=As(ks(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=ks(e,i,f),o[1]=ks(t,a,p),s[0]=As(e,i,f),s[1]=As(t,a,p)}function Hs(e,t,n,r,i,a,o,s,c){var l=Et,u=Dt,d=Math.abs(i-a);if(d%Ns<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Ps[0]=Ms(i)*n+e,Ps[1]=js(i)*r+t,Fs[0]=Ms(a)*n+e,Fs[1]=js(a)*r+t,l(s,Ps,Fs),u(c,Ps,Fs),i%=Ns,i<0&&(i+=Ns),a%=Ns,a<0&&(a+=Ns),i>a&&!o?a+=Ns:i<a&&o&&(i+=Ns),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(Is[0]=Ms(p)*n+e,Is[1]=js(p)*r+t,l(s,Is,s),u(c,Is,c))}var Us={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ws=[],Gs=[],Ks=[],qs=[],Js=[],Ys=[],Xs=Math.min,Zs=Math.max,Qs=Math.cos,$s=Math.sin,ec=Math.abs,tc=Math.PI,nc=tc*2,rc=typeof Float32Array<`u`,ic=[];function ac(e){return Math.round(e/tc*1e8)/1e8%2*tc}function oc(e,t){var n=ac(e[0]);n<0&&(n+=nc);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=nc?i=n+nc:t&&n-i>=nc?i=n-nc:!t&&n>i?i=n+(nc-ac(n-i)):t&&n<i&&(i=n-(nc-ac(i-n))),e[0]=n,e[1]=i}var sc=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n||=0,n>0&&(this._ux=ec(n/Vi/e)||0,this._uy=ec(n/Vi/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},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(e,t){return this._drawPendingPt(),this.addData(Us.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=ec(e-this._xi),r=ec(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(Us.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(Us.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(Us.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),ic[0]=r,ic[1]=i,oc(ic,a),r=ic[0],i=ic[1];var o=i-r;return this.addData(Us.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=Qs(i)*n+e,this._yi=$s(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(Us.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Us.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&rc&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();rc&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(var i=0;i<t;i++)for(var a=e[i].data,o=0;o<a.length;o++)this.data[r++]=a[o];this._len=r},e.prototype.addData=function(e,t,n,r,i,a,o,s,c){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,rc&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){Ks[0]=Ks[1]=Js[0]=Js[1]=Number.MAX_VALUE,qs[0]=qs[1]=Ys[0]=Ys[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;a<this._len;){var o=e[a++],s=a===1;switch(s&&(t=e[a],n=e[a+1],r=t,i=n),o){case Us.M:t=r=e[a++],n=i=e[a++],Js[0]=r,Js[1]=i,Ys[0]=r,Ys[1]=i;break;case Us.L:Ls(t,n,e[a],e[a+1],Js,Ys),t=e[a++],n=e[a++];break;case Us.C:Bs(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],Js,Ys),t=e[a++],n=e[a++];break;case Us.Q:Vs(t,n,e[a++],e[a++],e[a],e[a+1],Js,Ys),t=e[a++],n=e[a++];break;case Us.A:var c=e[a++],l=e[a++],u=e[a++],d=e[a++],f=e[a++],p=e[a++]+f;a+=1;var m=!e[a++];s&&(r=Qs(f)*u+c,i=$s(f)*d+l),Hs(c,l,u,d,f,p,m,Js,Ys),t=Qs(p)*u+c,n=$s(p)*d+l;break;case Us.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];Ls(r,i,r+h,i+g,Js,Ys);break;case Us.Z:t=r,n=i}Et(Ks,Ks,Js),Dt(qs,qs,Ys)}return a===0&&(Ks[0]=Ks[1]=qs[0]=qs[1]=0),new Cn(Ks[0],Ks[1],qs[0]-Ks[0],qs[1]-Ks[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||=[];for(var c=this._pathSegLen,l=0,u=0,d=0;d<t;){var f=e[d++],p=d===1;p&&(i=e[d],a=e[d+1],o=i,s=a);var m=-1;switch(f){case Us.M:i=o=e[d++],a=s=e[d++];break;case Us.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(ec(_)>n||ec(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case Us.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=mr(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case Us.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=xr(i,a,y,b,h,g,10),i=h,a=g;break;case Us.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=Qs(D)*T+C,s=$s(D)*E+w),m=Zs(T,E)*Xs(nc,Math.abs(O)),i=Qs(k)*T+C,a=$s(k)*E+w;break;case Us.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case Us.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x<a;){var S=n[x++],C=x===1;switch(C&&(c=n[x],l=n[x+1],o=c,s=l),S!==Us.L&&v>0&&(e.lineTo(y,b),v=0),S){case Us.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case Us.L:u=n[x++],d=n[x++];var w=ec(u-c),T=ec(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case Us.C:var k=n[x++],A=n[x++],j=n[x++],M=n[x++],N=n[x++],P=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;fr(c,k,j,N,D,Ws),fr(l,A,M,P,D,Gs),e.bezierCurveTo(Ws[1],Gs[1],Ws[2],Gs[2],Ws[3],Gs[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,M,N,P),c=N,l=P;break;case Us.Q:var k=n[x++],A=n[x++],j=n[x++],M=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;yr(c,k,j,D,Ws),yr(l,A,M,D,Gs),e.quadraticCurveTo(Ws[1],Gs[1],Ws[2],Gs[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,M),c=j,l=M;break;case Us.A:var ee=n[x++],te=n[x++],ne=n[x++],re=n[x++],ie=n[x++],ae=n[x++],oe=n[x++],se=!n[x++],F=ne>re?ne:re,ce=ec(ne-re)>.001,I=ie+ae,L=!1;if(f){var E=p[g++];h+E>_&&(I=ie+ae*(_-h)/E,L=!0),h+=E}if(ce&&e.ellipse?e.ellipse(ee,te,ne,re,oe,ie,I,se):e.arc(ee,te,F,ie,I,se),L)break lo;C&&(o=Qs(ie)*ne+ee,s=$s(ie)*re+te),c=Qs(I)*ne+ee,l=$s(I)*re+te;break;case Us.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var R=n[x++],le=n[x++];if(f){var E=p[g++];if(h+E>_){var ue=_-h;e.moveTo(u,d),e.lineTo(u+Xs(ue,R),d),ue-=R,ue>0&&e.lineTo(u+R,d+Xs(ue,le)),ue-=le,ue>0&&e.lineTo(u+Zs(R-ue,0),d+le),ue-=R,ue>0&&e.lineTo(u,d+Zs(le-ue,0));break lo}h+=E}e.rect(u,d,R,le);break;case Us.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=Us,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function cc(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e!==n)c=(t-r)/(e-n),l=(e*r-n*t)/(e-n);else return Math.abs(a-e)<=s/2;var u=c*a-o+l;return u*u/(c*c+1)<=s/2*s/2}function lc(e,t,n,r,i,a,o,s,c,l,u){if(c===0)return!1;var d=c;return u>t+d&&u>r+d&&u>a+d&&u>s+d||u<t-d&&u<r-d&&u<a-d&&u<s-d||l>e+d&&l>n+d&&l>i+d&&l>o+d||l<e-d&&l<n-d&&l<i-d&&l<o-d?!1:pr(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function uc(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;return c>t+l&&c>r+l&&c>a+l||c<t-l&&c<r-l&&c<a-l||s>e+l&&s>n+l&&s>i+l||s<e-l&&s<n-l&&s<i-l?!1:br(e,t,n,r,i,a,s,c,null)<=l/2}var dc=Math.PI*2;function fc(e){return e%=dc,e<0&&(e+=dc),e}var pc=Math.PI*2;function mc(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;s-=e,c-=t;var u=Math.sqrt(s*s+c*c);if(u-l>n||u+l<n)return!1;if(Math.abs(r-i)%pc<1e-4)return!0;if(a){var d=r;r=fc(i),i=fc(d)}else r=fc(r),i=fc(i);r>i&&(i+=pc);var f=Math.atan2(c,s);return f<0&&(f+=pc),f>=r&&f<=i||f+pc>=r&&f+pc<=i}function hc(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var c=o*(n-e)+e;return c===i?1/0:c>i?s:0}var gc=sc.CMD,_c=Math.PI*2,vc=1e-4;function yc(e,t){return Math.abs(e-t)<vc}var bc=[-1,-1,-1],xc=[-1,-1];function Sc(){var e=xc[0];xc[0]=xc[1],xc[1]=e}function Cc(e,t,n,r,i,a,o,s,c,l){if(l>t&&l>r&&l>a&&l>s||l<t&&l<r&&l<a&&l<s)return 0;var u=ur(t,r,a,s,l,bc);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=bc[h],_=g===0||g===1?.5:1;cr(e,n,i,o,g)<c||(f<0&&(f=dr(t,r,a,s,xc),xc[1]<xc[0]&&f>1&&Sc(),p=cr(t,r,a,s,xc[0]),f>1&&(m=cr(t,r,a,s,xc[1]))),f===2?g<xc[0]?d+=p<t?_:-_:g<xc[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<xc[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function wc(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var c=_r(t,r,a,s,bc);if(c===0)return 0;var l=vr(t,r,a);if(l>=0&&l<=1){for(var u=0,d=hr(t,r,a,l),f=0;f<c;f++){var p=bc[f]===0||bc[f]===1?.5:1,m=hr(e,n,i,bc[f]);m<o||(bc[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}var p=bc[0]===0||bc[0]===1?.5:1,m=hr(e,n,i,bc[0]);return m<o?0:a<t?p:-p}function Tc(e,t,n,r,i,a,o,s){if(s-=t,s>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);bc[0]=-c,bc[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=_c-1e-4){r=0,i=_c;var u=a?1:-1;return o>=bc[0]+e&&o<=bc[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=_c,i+=_c);for(var f=0,p=0;p<2;p++){var m=bc[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=_c+h),(h>=r&&h<=i||h+_c>=r&&h+_c<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function Ec(e,t,n,r,i){for(var a=e.data,o=e.len(),s=0,c=0,l=0,u=0,d=0,f,p,m=0;m<o;){var h=a[m++],g=m===1;switch(h===gc.M&&m>1&&(n||(s+=hc(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case gc.M:u=a[m++],d=a[m++],c=u,l=d;break;case gc.L:if(n){if(cc(c,l,a[m],a[m+1],t,r,i))return!0}else s+=hc(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case gc.C:if(n){if(lc(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Cc(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case gc.Q:if(n){if(uc(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=wc(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case gc.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=hc(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(mc(_,v,b,x,x+S,C,t,w,i))return!0}else s+=Tc(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case gc.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(cc(u,d,f,d,t,r,i)||cc(f,d,f,p,t,r,i)||cc(f,p,u,p,t,r,i)||cc(u,p,u,d,t,r,i))return!0}else s+=hc(f,d,f,p,r,i),s+=hc(u,p,u,d,r,i);break;case gc.Z:if(n){if(cc(c,l,u,d,t,r,i))return!0}else s+=hc(c,l,u,d,r,i);c=u,l=d}}return!n&&!yc(l,d)&&(s+=hc(c,l,u,d,r,i)||0),s!==0}function Dc(e,t,n){return Ec(e,0,!1,t,n)}function Oc(e,t,n,r){return Ec(e,t,!0,n,r)}var kc=ke({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},xs),Ac={style:ke({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ss.style)},jc=ea.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),Mc=function(e){F(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<jc.length;++s)i[jc[s]]=this[jc[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=Ie(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];a===`style`?this.style?V(this.style,o):this.useStyle(o):a===`shape`?V(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!==`none`){if(q(e)){var t=Gr(e,0);return t>.5?Ui:t>.2?Gi:Wi}if(e)return Wi}return Ui},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(q(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==Gr(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new sc(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),Oc(a,o/s,e,t)))return!0}if(this.hasFill())return Dc(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:V(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return st(kc,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=V({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=V({},r.shape),V(c,n.shape)):(c=V({},i?this.shape:r.shape),V(c,n.shape)):s&&(c=r.shape),c){if(a){this.shape=V({},this.shape);for(var l={},u=Ie(c),d=0;d<u.length;d++){var f=u[d];typeof c[f]==`object`?this.shape[f]=c[f]:l[f]=c[f]}this._transitionState(t,{shape:l},o)}else this.shape=c,this.dirtyShape()}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.shape&&(r||={},this._mergeStyle(r,a.shape))}return r&&(n.shape=r),n},t.prototype.getAnimationStyleProps=function(){return Ac},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){F(n,t);function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return n.prototype.getDefaultStyle=function(){return z(e.style)},n.prototype.getDefaultShape=function(){return z(e.shape)},n}(t);for(var r in e)typeof e[r]==`function`&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=(function(){var e=t.prototype;e.type=`path`,e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7})(),t}(Ts),Nc=ke({strokeFirst:!0,font:R,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},kc),Pc=function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return st(Nc,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;t==null?t=``:t+=``;var n=aa(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(Ts);Pc.prototype.type=`tspan`;var Fc=ke({x:0,y:0},xs),Ic={style:ke({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ss.style)};function Lc(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var Rc=function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return st(Fc,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=Lc(t.image)?t.image:this.__image;if(!r)return 0;var i=e===`width`?`height`:`width`,a=t[i];return a==null?r[e]:r[e]/r[i]*a},t.prototype.getWidth=function(){return this._getSize(`width`)},t.prototype.getHeight=function(){return this._getSize(`height`)},t.prototype.getAnimationStyleProps=function(){return Ic},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new Cn(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(Ts);Rc.prototype.type=`image`;function zc(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.r,s,c,l,u;i<0&&(n+=i,i=-i),a<0&&(r+=a,a=-a),typeof o==`number`?s=c=l=u=o:o instanceof Array?o.length===1?s=c=l=u=o[0]:o.length===2?(s=l=o[0],c=u=o[1]):o.length===3?(s=o[0],c=u=o[1],l=o[2]):(s=o[0],c=o[1],l=o[2],u=o[3]):s=c=l=u=0;var d;s+c>i&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var Bc=Math.round;function Vc(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(Bc(r*2)===Bc(i*2)&&(e.x1=e.x2=Uc(r,s,!0)),Bc(a*2)===Bc(o*2)&&(e.y1=e.y2=Uc(a,s,!0)),e):e}}function Hc(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=Uc(r,s,!0),e.y=Uc(i,s,!0),e.width=Math.max(Uc(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Uc(i+o,s,!1)-e.y,o===0?0:1),e):e}}function Uc(e,t,n){if(!t)return e;var r=Bc(e*2);return(r+Bc(t))%2==0?r/2:(r+(n?1:-1))/2}var Wc=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Gc={},Kc=function(e){F(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Wc},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Hc(Gc,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?zc(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Mc);Kc.prototype.type=`rect`;var qc={fill:`#000`},Jc=2,Yc={style:ke({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},Ss.style)},Xc=function(e){F(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=qc,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,rl(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new Cn(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),r||=e.clone(),r.union(e)):(r||=o.clone(),r.union(o))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||qc},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return V(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=Ie(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},V(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return Yc},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return(!t||!(t instanceof e))&&(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||`12px sans-serif`,n=e.padding,r=us(cl(e),e),i=ll(e),a=!!e.backgroundColor,o=r.outerHeight,s=r.outerWidth,c=r.contentWidth,l=r.lines,u=r.lineHeight,d=this._defaultStyle;this.isTruncated=!!r.isTruncated;var f=e.x||0,p=e.y||0,m=e.align||d.align||`left`,h=e.verticalAlign||d.verticalAlign||`top`,g=f,_=sa(p,r.contentHeight,h);if(i||n){var v=oa(f,s,m),y=sa(p,o,h);i&&this._renderBackground(e,e,v,y,s,o)}_+=u/2,n&&(g=sl(f,m,n),h===`top`?_+=n[0]:h===`bottom`&&(_-=n[2]));for(var b=0,x=!1,S=ol(`fill`in e?e.fill:(x=!0,d.fill)),C=al(`stroke`in e?e.stroke:!a&&(!d.autoStroke||x)?(b=Jc,d.stroke):null),w=e.textShadowBlur>0,T=e.width!=null&&(e.overflow===`truncate`||e.overflow===`break`||e.overflow===`breakAll`),E=r.calculatedLineHeight,D=0;D<l.length;D++){var O=this._getOrCreateChild(Pc),k=O.createStyle();O.useStyle(k),k.text=l[D],k.x=g,k.y=_,m&&(k.textAlign=m),k.textBaseline=`middle`,k.opacity=e.opacity,k.strokeFirst=!0,w&&(k.shadowBlur=e.textShadowBlur||0,k.shadowColor=e.textShadowColor||`transparent`,k.shadowOffsetX=e.textShadowOffsetX||0,k.shadowOffsetY=e.textShadowOffsetY||0),k.stroke=C,k.fill=S,C&&(k.lineWidth=e.lineWidth||b,k.lineDash=e.lineDash,k.lineDashOffset=e.lineDashOffset||0),k.font=t,tl(k,e),_+=u,T&&O.setBoundingRect(new Cn(oa(k.x,c,k.textAlign),sa(k.y,E,k.textBaseline),c,E))}},t.prototype._updateRichTexts=function(){var e=this.style,t=ms(cl(e),e),n=t.width,r=t.outerWidth,i=t.outerHeight,a=e.padding,o=e.x||0,s=e.y||0,c=this._defaultStyle,l=e.align||c.align,u=e.verticalAlign||c.verticalAlign;this.isTruncated=!!t.isTruncated;var d=oa(o,r,l),f=sa(s,i,u),p=d,m=f;a&&(p+=a[3],m+=a[0]);var h=p+n;ll(e)&&this._renderBackground(e,e,d,f,r,i);for(var g=!!e.backgroundColor,_=0;_<t.lines.length;_++){for(var v=t.lines[_],y=v.tokens,b=y.length,x=v.lineHeight,S=v.width,C=0,w=p,T=h,E=b-1,D=void 0;C<b&&(D=y[C],!D.align||D.align===`left`);)this._placeToken(D,e,x,m,w,`left`,g),S-=D.width,w+=D.width,C++;for(;E>=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(n-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&ll(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=sl(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(Pc),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=ol(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),v=al(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=Jc,m.stroke):null),y=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,y&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=Je(s.opacity,t.opacity,1),tl(p,s),v&&(p.lineWidth=Je(s.lineWidth,t.lineWidth,g),p.lineDash=Y(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=v),_&&(p.fill=_);var b=e.contentWidth,x=e.contentHeight;f.setBoundingRect(new Cn(oa(p.x,b,p.textAlign),sa(p.y,x,p.textBaseline),b,x))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(Kc),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=Y(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(Rc),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=Y(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=Je(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return nl(e)&&(t=[e.fontStyle,e.fontWeight,el(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&Qe(t)||e.textFont||e.font},t}(Ts),Zc={left:!0,right:1,center:1},Qc={top:1,bottom:1,middle:1},$c=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function el(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function tl(e,t){for(var n=0;n<$c.length;n++){var r=$c[n],i=t[r];i!=null&&(e[r]=i)}}function nl(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function rl(e){return il(e),H(e.rich,il),e}function il(e){if(e){e.font=Xc.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||Zc[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||Qc[n]?n:`top`,e.padding&&=Xe(e.padding)}}function al(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function ol(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function sl(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function cl(e){var t=e.text;return t!=null&&(t+=``),t}function ll(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var $=Eo(),ul=function(e,t,n,r){if(r){var i=$(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=$(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},dl=1,fl={},pl=Eo(),ml=Eo(),hl=[`emphasis`,`blur`,`select`],gl=[`normal`,`emphasis`,`blur`,`select`],_l=`highlight`,vl=`downplay`,yl=`select`,bl=`unselect`,xl=`toggleSelect`;function Sl(e){return e!=null&&e!==`none`}function Cl(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function wl(e){Cl(e,`emphasis`,2)}function Tl(e){e.hoverState===2&&Cl(e,`normal`,0)}function El(e){Cl(e,`blur`,1)}function Dl(e){e.hoverState===1&&Cl(e,`normal`,0)}function Ol(e){e.selected=!0}function kl(e){e.selected=!1}function Al(e,t,n){t(e,n)}function jl(e,t,n){Al(e,t,n),e.isGroup&&e.traverse(function(e){Al(e,t,n)})}function Ml(e,t){switch(t){case`emphasis`:e.hoverState=2;break;case`normal`:e.hoverState=0;break;case`blur`:e.hoverState=1;break;case`select`:e.selected=!0}}function Nl(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o];a[s]=i[s]??(r&&r[s])}for(var o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName===`style`&&c.saveTo(a,t)}return a}function Pl(e,t,n,r){var i=n&&Ae(n,`select`)>=0,a=!1;if(e instanceof Mc){var o=pl(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(Sl(s)||Sl(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=V({},r),l=V({},l),l.fill=s):!Sl(l.fill)&&Sl(s)?(a=!0,r=V({},r),l=V({},l),l.fill=qr(s)):!Sl(l.stroke)&&Sl(c)&&(a||(r=V({},r),l=V({},l)),l.stroke=qr(c)),r.style=l}}if(r&&r.z2==null){a||(r=V({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function Fl(e,t,n){if(n&&n.z2==null){n=V({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function Il(e,t,n){var r=Ae(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:Nl(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=V({},n),o=V({opacity:r?i:a.opacity*.1},o),n.style=o),n}function Ll(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return Pl(this,e,t,n);if(e===`blur`)return Il(this,e,n);if(e===`select`)return Fl(this,e,n)}return n}function Rl(e){e.stateProxy=Ll;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Ll),n&&(n.stateProxy=Ll)}function zl(e,t){!ql(e,t)&&!e.__highByOuter&&jl(e,wl)}function Bl(e,t){!ql(e,t)&&!e.__highByOuter&&jl(e,Tl)}function Vl(e,t){e.__highByOuter|=1<<(t||0),jl(e,wl)}function Hl(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&jl(e,Tl)}function Ul(e){jl(e,El)}function Wl(e){jl(e,Dl)}function Gl(e){jl(e,Ol)}function Kl(e){jl(e,kl)}function ql(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Jl(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=ml(i),o=t===`series`,s=o?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!o&&r.push(s),a.isBlured&&(s.group.traverse(function(e){Dl(e)}),o&&n.push(i)),a.isBlured=!1}),H(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function Yl(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&Wl(r)}}if(e!=null&&!(!t||t===`none`)){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var c=[];i.eachSeries(function(e){var i=o===e,l=e.coordinateSystem;if(l&&l.master&&(l=l.master),!(n===`series`&&!i||n===`coordinateSystem`&&!(l&&s?l===s:i)||t===`series`&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&t===`self`||El(e)}),Ne(t))a(e.getData(),t);else if(J(t))for(var u=Ie(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),ml(e).isBlured=!0}}),i.eachComponent(function(e,t){if(e!==`series`){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,i)}})}}function Xl(e,t,n){if(e!=null&&t!=null){var r=n.getModel().getComponent(e,t);if(r){ml(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(e){El(e)})}}}function Zl(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=To(i,t);a=(G(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),c=0;!o&&c<s;)o=i.getItemGraphicEl(c++);if(o){var l=$(o);Yl(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&Yl(r,u,d,n)}}}function Ql(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e===`series`||t==null||n==null)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(n),c,l=0;l<s.length;l++)if($(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function $l(e,t,n){var r=$(e),i=Ql(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&Xl(r.componentMainType,r.componentIndex,n),H(a,function(e){return zl(e,t)})):(Yl(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&Xl(r.componentMainType,r.componentIndex,n),zl(e,t))}function eu(e,t,n){Jl(n);var r=$(e),i=Ql(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?H(i,function(e){return Bl(e,t)}):Bl(e,t)}function tu(e,t,n){if(mu(t)){var r=t.dataType,i=To(e.getData(r),t);G(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function nu(e){H(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?Gl(t):Kl(t)})})}function ru(e){var t=[];return e.eachSeries(function(e){H(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function iu(e,t,n){du(e,!0),jl(e,Rl),su(e,t,n)}function au(e){du(e,!1)}function ou(e,t,n,r){r?au(e):iu(e,t,n)}function su(e,t,n){var r=$(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var cu=[`emphasis`,`blur`,`select`],lu={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function uu(e,t,n,r){n||=`itemStyle`;for(var i=0;i<cu.length;i++){var a=cu[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[lu[n]]()}}function du(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function fu(e){return!!(e&&e.__highDownDispatcher)}function pu(e){var t=fl[e];return t==null&&dl<=32&&(t=fl[e]=dl++),t}function mu(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function hu(e){var t=e.type;return t===`highlight`||t===`downplay`}function gu(e){var t=pl(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var _u=sc.CMD,vu=[[],[],[]],yu=Math.sqrt,bu=Math.atan2;function xu(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=_u.M,d=_u.C,f=_u.L,p=_u.R,m=_u.A,h=_u.Q;for(o=0,s=0;o<r;){switch(i=n[o++],s=o,a=0,i){case u:a=1;break;case f:a=1;break;case d:a=3;break;case h:a=2;break;case m:var g=t[4],_=t[5],v=yu(t[0]*t[0]+t[1]*t[1]),y=yu(t[2]*t[2]+t[3]*t[3]),b=bu(-t[1]/y,t[0]/v);n[o]*=v,n[o++]+=g,n[o]*=y,n[o++]+=_,n[o++]*=v,n[o++]*=y,n[o++]+=b,n[o++]+=b,o+=2,s=o;break;case p:l[0]=n[o++],l[1]=n[o++],Tt(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],Tt(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=vu[c];x[0]=n[o++],x[1]=n[o++],Tt(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var Su=Math.sqrt,Cu=Math.sin,wu=Math.cos,Tu=Math.PI;function Eu(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Du(e,t){return(e[0]*t[0]+e[1]*t[1])/(Eu(e)*Eu(t))}function Ou(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Du(e,t))}function ku(e,t,n,r,i,a,o,s,c,l,u){var d=Tu/180*c,f=wu(d)*(e-n)/2+Cu(d)*(t-r)/2,p=-1*Cu(d)*(e-n)/2+wu(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=Su(m),s*=Su(m));var h=(i===a?-1:1)*Su((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+wu(d)*g-Cu(d)*_,y=(t+r)/2+Cu(d)*g+wu(d)*_,b=Ou([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=Ou(x,S);if(Du(x,S)<=-1&&(C=Tu),Du(x,S)>=1&&(C=0),C<0){var w=Math.round(C/Tu*1e6)/1e6;C=Tu*2+w%2*Tu}u.addData(l,v,y,o,s,b,C,d,a)}var Au=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,ju=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Mu(e){var t=new sc;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=sc.CMD,c=e.match(Au);if(!c)return t;for(var l=0;l<c.length;l++){for(var u=c[l],d=u.charAt(0),f=void 0,p=u.match(ju)||[],m=p.length,h=0;h<m;h++)p[h]=parseFloat(p[h]);for(var g=0;g<m;){var _=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=n,T=r,E=void 0,D=void 0;switch(d){case`l`:n+=p[g++],r+=p[g++],f=s.L,t.addData(f,n,r);break;case`L`:n=p[g++],r=p[g++],f=s.L,t.addData(f,n,r);break;case`m`:n+=p[g++],r+=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`l`;break;case`M`:n=p[g++],r=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`L`;break;case`h`:n+=p[g++],f=s.L,t.addData(f,n,r);break;case`H`:n=p[g++],f=s.L,t.addData(f,n,r);break;case`v`:r+=p[g++],f=s.L,t.addData(f,n,r);break;case`V`:r=p[g++],f=s.L,t.addData(f,n,r);break;case`C`:f=s.C,t.addData(f,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),n=p[g-2],r=p[g-1];break;case`c`:f=s.C,t.addData(f,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r),n+=p[g-2],r+=p[g-1];break;case`S`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=p[g++],T=p[g++],n=p[g++],r=p[g++],t.addData(f,_,v,w,T,n,r);break;case`s`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=n+p[g++],T=r+p[g++],n+=p[g++],r+=p[g++],t.addData(f,_,v,w,T,n,r);break;case`Q`:w=p[g++],T=p[g++],n=p[g++],r=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`q`:w=p[g++]+n,T=p[g++]+r,n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`T`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n=p[g++],r=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`t`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`A`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n=p[g++],r=p[g++],f=s.A,ku(w,T,n,r,S,C,y,b,x,f,t);break;case`a`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n+=p[g++],r+=p[g++],f=s.A,ku(w,T,n,r,S,C,y,b,x,f,t)}}(d===`z`||d===`Z`)&&(f=s.Z,t.addData(f),n=i,r=a),o=f}return t.toStatic(),t}var Nu=function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(Mc);function Pu(e){return e.setData!=null}function Fu(e,t){var n=Mu(e),r=V({},t);return r.buildPath=function(e){if(Pu(e)){e.setData(n.data);var t=e.getContext();t&&e.rebuildPath(t,1)}else{var t=e;n.rebuildPath(t,1)}},r.applyTransform=function(e){xu(n,e),this.dirtyShape()},r}function Iu(e,t){return new Nu(Fu(e,t))}function Lu(e,t){var n=Fu(e,t);return function(e){F(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(Nu)}function Ru(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new Mc(t);return o.createPathProxy(),o.buildPath=function(e){if(Pu(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}var zu=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Bu=function(e){F(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new zu},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,Math.PI*2)},t}(Mc);Bu.prototype.type=`circle`;var Vu=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),Hu=function(e){F(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Vu},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,c=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-c,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-c,r+a,i),e.bezierCurveTo(r+a,i+c,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+c,r-a,i),e.closePath()},t}(Mc);Hu.prototype.type=`ellipse`;var Uu=Math.PI,Wu=Uu*2,Gu=Math.sin,Ku=Math.cos,qu=Math.acos,Ju=Math.atan2,Yu=Math.abs,Xu=Math.sqrt,Zu=Math.max,Qu=Math.min,$u=1e-4;function ed(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<$u))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function td(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/Xu(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*Xu(Zu(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function nd(e){var t;if(G(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function rd(e,t){var n,r=Zu(t.r,0),i=Zu(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=Yu(c-s),p=f>Wu&&f%Wu;if(p>$u&&(f=p),!(r>$u))e.moveTo(l,u);else if(f>Wu-$u)e.moveTo(l+r*Ku(s),u+r*Gu(s)),e.arc(l,u,r,s,c,!d),i>$u&&(e.moveTo(l+i*Ku(c),u+i*Gu(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*Ku(s),j=r*Gu(s),M=i*Ku(c),N=i*Gu(c),P=f>$u;if(P){var ee=t.cornerRadius;ee&&(n=nd(ee),m=n[0],h=n[1],g=n[2],_=n[3]);var te=Yu(r-i)/2;if(v=Qu(te,g),y=Qu(te,_),b=Qu(te,m),x=Qu(te,h),w=S=Zu(v,y),T=C=Zu(b,x),(S>$u||C>$u)&&(E=r*Ku(c),D=r*Gu(c),O=i*Ku(s),k=i*Gu(s),f<Uu)){var ne=ed(A,j,O,k,E,D,M,N);if(ne){var re=A-ne[0],ie=j-ne[1],ae=E-ne[0],oe=D-ne[1],se=1/Gu(qu((re*ae+ie*oe)/(Xu(re*re+ie*ie)*Xu(ae*ae+oe*oe)))/2),F=Xu(ne[0]*ne[0]+ne[1]*ne[1]);w=Qu(S,(r-F)/(se+1)),T=Qu(C,(i-F)/(se-1))}}}if(!P)e.moveTo(l+A,u+j);else if(w>$u){var ce=Qu(g,w),I=Qu(_,w),L=td(O,k,A,j,r,ce,d),R=td(E,D,M,N,r,I,d);e.moveTo(l+L.cx+L.x0,u+L.cy+L.y0),w<S&&ce===I?e.arc(l+L.cx,u+L.cy,w,Ju(L.y0,L.x0),Ju(R.y0,R.x0),!d):(ce>0&&e.arc(l+L.cx,u+L.cy,ce,Ju(L.y0,L.x0),Ju(L.y1,L.x1),!d),e.arc(l,u,r,Ju(L.cy+L.y1,L.cx+L.x1),Ju(R.cy+R.y1,R.cx+R.x1),!d),I>0&&e.arc(l+R.cx,u+R.cy,I,Ju(R.y1,R.x1),Ju(R.y0,R.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>$u)||!P)e.lineTo(l+M,u+N);else if(T>$u){var ce=Qu(m,T),I=Qu(h,T),L=td(M,N,E,D,i,-I,d),R=td(A,j,O,k,i,-ce,d);e.lineTo(l+L.cx+L.x0,u+L.cy+L.y0),T<C&&ce===I?e.arc(l+L.cx,u+L.cy,T,Ju(L.y0,L.x0),Ju(R.y0,R.x0),!d):(I>0&&e.arc(l+L.cx,u+L.cy,I,Ju(L.y0,L.x0),Ju(L.y1,L.x1),!d),e.arc(l,u,i,Ju(L.cy+L.y1,L.cx+L.x1),Ju(R.cy+R.y1,R.cx+R.x1),d),ce>0&&e.arc(l+R.cx,u+R.cy,ce,Ju(R.y1,R.x1),Ju(R.y0,R.x0),!d))}else e.lineTo(l+M,u+N),e.arc(l,u,i,c,s,d)}e.closePath()}}}var id=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}(),ad=function(e){F(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new id},t.prototype.buildPath=function(e,t){rd(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Mc);ad.prototype.type=`sector`;var od=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),sd=function(e){F(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new od},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(Mc);sd.prototype.type=`ring`;function cd(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)Et(u,u,e[f]),Dt(d,d,e[f]);Et(u,u,r[0]),Dt(d,d,r[1])}for(var f=0,p=e.length;f<p;f++){var m=e[f];if(n)c=e[f?f-1:p-1],l=e[(f+1)%p];else if(f===0||f===p-1){i.push(pt(e[f]));continue}else c=e[f-1],l=e[f+1];ht(a,l,c),vt(a,a,t);var h=bt(m,c),g=bt(m,l),_=h+g;_!==0&&(h/=_,g/=_),vt(o,a,-h),vt(s,a,g);var v=mt([],m,o),y=mt([],m,s);r&&(Dt(v,v,u),Et(v,v,d),Dt(y,y,u),Et(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}function ld(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=cd(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var ud=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),dd=function(e){F(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new ud},t.prototype.buildPath=function(e,t){ld(e,t,!0)},t}(Mc);dd.prototype.type=`polygon`;var fd=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),pd=function(e){F(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new fd},t.prototype.buildPath=function(e,t){ld(e,t,!1)},t}(Mc);pd.prototype.type=`polyline`;var md={},hd=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),gd=function(e){F(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new hd},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Vc(md,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;s!==0&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(Mc);gd.prototype.type=`line`;var _d=[],vd=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function yd(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?lr:cr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?lr:cr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?gr:hr)(e.x1,e.cpx1,e.x2,t),(n?gr:hr)(e.y1,e.cpy1,e.y2,t)]}var bd=function(e){F(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new vd},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,c=t.cpx2,l=t.cpy2,u=t.percent;u!==0&&(e.moveTo(n,r),c==null||l==null?(u<1&&(yr(n,o,i,u,_d),o=_d[1],i=_d[2],yr(r,s,a,u,_d),s=_d[1],a=_d[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(fr(n,o,c,i,u,_d),o=_d[1],c=_d[2],i=_d[3],fr(r,s,l,a,u,_d),s=_d[1],l=_d[2],a=_d[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return yd(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=yd(this.shape,e,!0);return yt(t,t)},t}(Mc);bd.prototype.type=`bezier-curve`;var xd=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),Sd=function(e){F(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new xd},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,c=Math.cos(a),l=Math.sin(a);e.moveTo(c*i+n,l*i+r),e.arc(n,r,i,a,o,!s)},t}(Mc);Sd.prototype.type=`arc`;var Cd=function(e){F(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`compound`,t}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t||=e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Mc.prototype.getBoundingRect.call(this)},t}(Mc),wd=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),Td=function(e){F(t,e);function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=t??0,s.y=n??0,s.x2=r??1,s.y2=i??0,s.type=`linear`,s.global=o||!1,s}return t}(wd),Ed=function(e){F(t,e);function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=t??.5,o.y=n??.5,o.r=r??.5,o.type=`radial`,o.global=a||!1,o}return t}(wd),Dd=[0,0],Od=[0,0],kd=new Z,Ad=new Z,jd=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Z;for(var n=0;n<2;n++)this._axes[n]=new Z;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var c=0;c<4;c++)n[c].transform(t);Z.sub(r[0],n[1],n[0]),Z.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,r=!t;return kd.set(1/0,1/0),Ad.set(0,0),!this._intersectCheckOneSide(this,e,kd,Ad,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(e,this,kd,Ad,r,-1)&&(n=!1,r)||r||Z.copy(t,n?kd:Ad),n},e.prototype._intersectCheckOneSide=function(e,t,n,r,i,a){for(var o=!0,s=0;s<2;s++){var c=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,Dd),this._getProjMinMaxOnAxis(s,t._corners,Od),Dd[1]<Od[0]||Dd[0]>Od[1]){if(o=!1,i)return o;var l=Math.abs(Od[0]-Dd[1]),u=Math.abs(Dd[0]-Od[1]);Math.min(l,u)>r.len()&&(l<u?Z.scale(r,c,-l*a):Z.scale(r,c,u*a))}else if(n){var l=Math.abs(Od[0]-Dd[1]),u=Math.abs(Dd[0]-Od[1]);Math.min(l,u)<n.len()&&(l<u?Z.scale(n,c,l*a):Z.scale(n,c,-u*a))}}return o},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c<t.length;c++){var l=t[c].dot(r)+i[e];o=Math.min(l,o),s=Math.max(l,s)}n[0]=o,n[1]=s},e}(),Md=[],Nd=function(e){F(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t||=!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new Cn(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(Md)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0}return!1},t}(Ts),Pd=Eo();function Fd(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),c=e===`update`;if(s){var l=void 0,u=void 0,d=void 0;return r?(l=Y(r.duration,200),u=Y(r.easing,`cubicOut`),d=0):(l=t.getShallow(c?`animationDurationUpdate`:`animationDuration`),u=t.getShallow(c?`animationEasingUpdate`:`animationEasing`),d=t.getShallow(c?`animationDelayUpdate`:`animationDelay`)),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(u=a.easing),a.delay!=null&&(d=a.delay)),K(d)&&(d=d(n,i)),K(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}return null}function Id(e,t,n,r,i,a,o){var s=!1,c;K(i)?(o=a,a=i,i=null):J(i)&&(a=i.cb,o=i.during,s=i.isFrom,c=i.removeOpt,i=i.dataIndex);var l=e===`leave`;l||t.stopAnimation(`leave`);var u=Fd(e,r,i,l?c||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function Ld(e,t,n,r,i,a){Id(`update`,e,t,n,r,i,a)}function Rd(e,t,n,r,i,a){Id(`enter`,e,t,n,r,i,a)}function zd(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if(e.animators[t].scope===`leave`)return!0;return!1}function Bd(e,t,n,r,i,a){zd(e)||Id(`leave`,e,t,n,r,i,a)}function Vd(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),Bd(e,{style:{opacity:0}},t,n,r)}function Hd(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||Vd(e,t,n,r)}):Vd(e,t,n,r)}function Ud(e){Pd(e).oldStyle=e.style}var Wd=te({Arc:()=>Sd,BezierCurve:()=>bd,BoundingRect:()=>Cn,Circle:()=>Bu,CompoundPath:()=>Cd,Ellipse:()=>Hu,Group:()=>wa,Image:()=>Rc,IncrementalDisplayable:()=>Nd,Line:()=>gd,LinearGradient:()=>Td,OrientedBoundingRect:()=>jd,Path:()=>Mc,Point:()=>Z,Polygon:()=>dd,Polyline:()=>pd,RadialGradient:()=>Ed,Rect:()=>Kc,Ring:()=>sd,Sector:()=>ad,Text:()=>Xc,applyTransform:()=>lf,clipPointsByRect:()=>mf,clipRectByRect:()=>hf,createIcon:()=>gf,extendPath:()=>Xd,extendShape:()=>Jd,getShapeClass:()=>Qd,getTransform:()=>cf,groupTransition:()=>pf,initProps:()=>Rd,isElementRemoved:()=>zd,lineLineIntersect:()=>vf,linePolygonIntersect:()=>_f,makeImage:()=>ef,makePath:()=>$d,mergePath:()=>nf,registerShape:()=>Zd,removeElement:()=>Bd,removeElementWithFadeOut:()=>Hd,resizePath:()=>rf,setTooltipConfig:()=>xf,subPixelOptimize:()=>sf,subPixelOptimizeLine:()=>af,subPixelOptimizeRect:()=>of,transformDirection:()=>uf,traverseElements:()=>Cf,updateProps:()=>Ld}),Gd=Math.max,Kd=Math.min,qd={};function Jd(e){return Mc.extend(e)}var Yd=Lu;function Xd(e,t){return Yd(e,t)}function Zd(e,t){qd[e]=t}function Qd(e){if(qd.hasOwnProperty(e))return qd[e]}function $d(e,t,n,r){var i=Iu(e,t);return n&&(r===`center`&&(n=tf(n,i.getBoundingRect())),rf(i,n)),i}function ef(e,t,n){var r=new Rc({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(tf(t,i))}}});return r}function tf(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var nf=Ru;function rf(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function af(e,t){return Vc(e,e,{lineWidth:t}),e}function of(e){return Hc(e.shape,e.shape,e.style),e}var sf=Uc;function cf(e,t){for(var n=cn([]);e&&e!==t;)un(n,e.getLocalTransform(),n),e=e.parent;return n}function lf(e,t,n){return t&&!Ne(t)&&(t=$i.getLocalTransform(t)),n&&(t=mn([],t)),Tt([],e,t)}function uf(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=lf(a,t,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function df(e){return!e.isGroup}function ff(e){return e.shape!=null}function pf(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){df(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return ff(e)&&(t.shape=V({},e.shape)),t}var a=r(e);t.traverse(function(e){if(df(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),Ld(e,r,n,$(e).dataIndex)}}})}function mf(e,t){return U(e,function(e){var n=e[0];n=Gd(n,t.x),n=Kd(n,t.x+t.width);var r=e[1];return r=Gd(r,t.y),r=Kd(r,t.y+t.height),[n,r]})}function hf(e,t){var n=Gd(e.x,t.x),r=Kd(e.x+e.width,t.x+t.width),i=Gd(e.y,t.y),a=Kd(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function gf(e,t,n){var r=V({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),ke(i,n),new Rc(r)):$d(e.replace(`path://`,``),r,n,`center`)}function _f(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(vf(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function vf(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=yf(u,d,c,l);if(bf(f))return!1;var p=e-i,m=t-a,h=yf(p,m,c,l)/f;if(h<0||h>1)return!1;var g=yf(p,m,u,d)/f;return!(g<0||g>1)}function yf(e,t,n,r){return e*r-n*t}function bf(e){return e<=1e-6&&e>=-1e-6}function xf(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=q(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&H(Ie(c),function(e){lt(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=$(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:ke({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Sf(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Cf(e,t){if(e){if(G(e))for(var n=0;n<e.length;n++)Sf(e[n],t);else Sf(e,t)}}Zd(`circle`,Bu),Zd(`ellipse`,Hu),Zd(`sector`,ad),Zd(`ring`,sd),Zd(`polygon`,dd),Zd(`polyline`,pd),Zd(`rect`,Kc),Zd(`line`,gd),Zd(`bezierCurve`,bd),Zd(`arc`,Sd);var wf={};function Tf(e,t){for(var n=0;n<hl.length;n++){var r=hl[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function Ef(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(i,`normal`,null,a,o&&o.get(`formatter`),n==null?null:{interpolatedValue:n})),s??=K(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<hl.length;l++){var u=hl[l],d=t[u];c[u]=Y(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function Df(e,t,n,r){n||=wf;for(var i=e instanceof Xc,a=!1,o=0;o<gl.length;o++){var s=t[gl[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new Xc,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=Ef(n,t),u=t.normal,d=!!u.getShallow(`show`),f=kf(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(Af(u,n,!1));for(var o=0;o<hl.length;o++){var p=hl[o],s=t[p];if(s){var m=c.ensureState(p),h=!!Y(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=kf(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=Af(s,n,!0)}}}c.silent=!!u.getShallow(`silent`),c.style.x!=null&&(f.x=c.style.x),c.style.y!=null&&(f.y=c.style.y),c.ignore=!d,c.useStyle(f),c.dirty(),n.enableTextSetter&&(Rf(c).setLabelText=function(e){var r=Ef(n,t,e);Tf(c,r)})}else c&&(c.ignore=!0);e.dirty()}function Of(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<hl.length;r++){var i=hl[r];n[i]=e.getModel([i,t])}return n}function kf(e,t,n,r,i){var a={};return jf(a,e,n,r,i),t&&V(a,t),a}function Af(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=Y(e.getShallow(`distance`),n?null:5),s=e.getShallow(`offset`);return i=e.getShallow(`position`)||(n?null:`inside`),i===`outside`&&(i=t.defaultOutsidePosition||`top`),i!=null&&(r.position=i),s!=null&&(r.offset=s),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),r.outsideFill=e.get(`color`)===`inherit`?t.inheritColor||null:`auto`,r}function jf(e,t,n,r,i){n||=wf;var a=t.ecModel,o=a&&a.option.textStyle,s=Mf(t),c;if(s){for(var l in c={},s)if(s.hasOwnProperty(l)){var u=t.getModel([`rich`,l]);If(c[l]={},u,o,n,r,i,!1,!0)}}c&&(e.rich=c);var d=t.get(`overflow`);d&&(e.overflow=d);var f=t.get(`minMargin`);f!=null&&(e.margin=f),If(e,t,o,n,r,i,!0,!1)}function Mf(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||wf).rich;if(n){t||={};for(var r=Ie(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}var Nf=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],Pf=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],Ff=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function If(e,t,n,r,i,a,o,s){n=!i&&n||wf;var c=r&&r.inheritColor,l=t.getShallow(`color`),u=t.getShallow(`textBorderColor`),d=Y(t.getShallow(`opacity`),n.opacity);(l===`inherit`||l===`auto`)&&(l=c||null),(u===`inherit`||u===`auto`)&&(u=c||null),a||(l||=n.color,u||=n.textBorderColor),l!=null&&(e.fill=l),u!=null&&(e.stroke=u);var f=Y(t.getShallow(`textBorderWidth`),n.textBorderWidth);f!=null&&(e.lineWidth=f);var p=Y(t.getShallow(`textBorderType`),n.textBorderType);p!=null&&(e.lineDash=p);var m=Y(t.getShallow(`textBorderDashOffset`),n.textBorderDashOffset);m!=null&&(e.lineDashOffset=m),!i&&d==null&&!s&&(d=r&&r.defaultOpacity),d!=null&&(e.opacity=d),!i&&!a&&e.fill==null&&r.inheritColor&&(e.fill=r.inheritColor);for(var h=0;h<Nf.length;h++){var g=Nf[h],_=Y(t.getShallow(g),n[g]);_!=null&&(e[g]=_)}for(var h=0;h<Pf.length;h++){var g=Pf[h],_=t.getShallow(g);_!=null&&(e[g]=_)}if(e.verticalAlign==null){var v=t.getShallow(`baseline`);v!=null&&(e.verticalAlign=v)}if(!o||!r.disableBox){for(var h=0;h<Ff.length;h++){var g=Ff[h],_=t.getShallow(g);_!=null&&(e[g]=_)}var y=t.getShallow(`borderType`);y!=null&&(e.borderDash=y),(e.backgroundColor===`auto`||e.backgroundColor===`inherit`)&&c&&(e.backgroundColor=c),(e.borderColor===`auto`||e.borderColor===`inherit`)&&c&&(e.borderColor=c)}}function Lf(e,t){var n=t&&t.getModel(`textStyle`);return Qe([e.fontStyle||n&&n.getShallow(`fontStyle`)||``,e.fontWeight||n&&n.getShallow(`fontWeight`)||``,(e.fontSize||n&&n.getShallow(`fontSize`)||12)+`px`,e.fontFamily||n&&n.getShallow(`fontFamily`)||`sans-serif`].join(` `))}var Rf=Eo();function zf(e,t,n,r){if(e){var i=Rf(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get(`valueAnimation`),i.valueAnimation&&(i.precision=a.get(`precision`),i.defaultInterpolatedText=r,i.statesModels=t)}}function Bf(e,t,n,r,i){var a=Rf(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=Y(a.interpolatedValue,a.prevValue),c=a.value;function l(r){var l=Io(n,a.precision,s,c,r);a.interpolatedValue=r===1?null:l,Tf(e,Ef({labelDataIndex:t,labelFetcher:i,defaultText:o?o(l):l+``},a.statesModels,l))}e.percent=0,(a.prevValue==null?Rd:Ld)(e,{percent:1},r,t,null,l)}var Vf=[`textStyle`,`color`],Hf=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],Uf=new Xc,Wf=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(Vf):null)},e.prototype.getFont=function(){return Lf({fontStyle:this.getShallow(`fontStyle`),fontWeight:this.getShallow(`fontWeight`),fontSize:this.getShallow(`fontSize`),fontFamily:this.getShallow(`fontFamily`)},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow(`verticalAlign`)||this.getShallow(`baseline`)},n=0;n<Hf.length;n++)t[Hf[n]]=this.getShallow(Hf[n]);return Uf.useStyle(t),Uf.update(),Uf.getBoundingRect()},e}(),Gf=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],Kf=Zo(Gf),qf=function(){function e(){}return e.prototype.getLineStyle=function(e){return Kf(this,e)},e}(),Jf=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],Yf=Zo(Jf),Xf=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return Yf(this,e,t)},e}(),Zf=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){B(this.option,e,!0)},e.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=n==null?n:n[e];if(r==null&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return n||=this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(z(this.option))},e.prototype.parsePath=function(e){return typeof e==`string`?e.split(`.`):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!I.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&!(e[r]&&(n=n&&typeof n==`object`?n[e[r]]:null,n==null));r++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();Uo(Zf),qo(Zf),Me(Zf,qf),Me(Zf,Xf),Me(Zf,$o),Me(Zf,Wf);var Qf=Math.round(Math.random()*10);function $f(e){return[e||``,Qf++].join(`_`)}function ep(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Bo(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=Bo(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function tp(e,t){e.topologicalTravel=function(e,t,r,i){if(!e.length)return;var a=n(t),o=a.graph,s=a.noEntryList,c={};for(H(e,function(e){c[e]=!0});s.length;){var l=s.pop(),u=o[l],d=!!c[l];d&&(r.call(i,l,u.originalDeps.slice()),delete c[l]),H(u.successor,d?p:f)}H(c,function(){throw Error(``)});function f(e){o[e].entryCount--,o[e].entryCount===0&&s.push(e)}function p(e){c[e]=!0,f(e)}};function n(e){var n={},a=[];return H(e,function(o){var s=r(n,o),c=i(s.originalDeps=t(o),e);s.entryCount=c.length,s.entryCount===0&&a.push(o),H(c,function(e){Ae(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);Ae(t.successor,e)<0&&t.successor.push(o)})}),{graph:n,noEntryList:a}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function i(e,t){var n=[];return H(e,function(e){Ae(t,e)>=0&&n.push(e)}),n}}function np(e,t){return B(B({},e,!0),t,!0)}var rp={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:`. `}}}},ip={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:``}}}},ap=`ZH`,op=`EN`,sp=op,cp={},lp={},up=I.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||sp).toUpperCase().indexOf(ap)>-1?ap:sp}():sp;function dp(e,t){e=e.toUpperCase(),lp[e]=new Zf(t),cp[e]=t}function fp(e){if(q(e)){var t=cp[e.toUpperCase()]||{};return e===ap||e===op?z(t):B(z(t),z(cp[sp]),!1)}return B(z(e),z(cp[sp]),!1)}function pp(e){return lp[e]}function mp(){return lp[sp]}dp(op,rp),dp(ap,ip);var hp=1e3,gp=hp*60,_p=gp*60,vp=_p*24,yp=vp*365,bp={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}`},xp=`{yyyy}-{MM}-{dd}`,Sp={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:xp,hour:xp+` `+bp.hour,minute:xp+` `+bp.minute,second:xp+` `+bp.second,millisecond:bp.none},Cp=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],wp=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function Tp(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function Ep(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 Dp(e){return e===Ep(e)}function Op(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function kp(e,t,n,r){var i=Ka(e),a=i[Np(n)](),o=i[Pp(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[Fp(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[Ip(n)](),d=(u-1)%12+1,f=i[Lp(n)](),p=i[Rp(n)](),m=i[zp(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof Zf?r:pp(r||up)||mp()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,Tp(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Tp(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,Tp(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,Tp(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,Tp(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,Tp(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,Tp(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,Tp(m,3)).replace(/{S}/g,m+``)}function Ap(e,t,n,r,i){var a=null;if(q(n))a=n;else if(K(n))a=n(e.value,t,{level:e.level});else{var o=V({},bp);if(e.level>0)for(var s=0;s<Cp.length;++s)o[Cp[s]]=`{primary|`+o[Cp[s]]+`}`;var c=n?n.inherit===!1?n:ke(n,o):o,l=jp(e.value,i);if(c[l])a=c[l];else if(c.inherit){for(var s=wp.indexOf(l)-1;s>=0;--s)if(c[l]){a=c[l];break}a||=o.none}if(G(a)){var u=e.level==null?0:e.level>=0?e.level:a.length+e.level;u=Math.min(u,a.length-1),a=a[u]}}return kp(new Date(e.value),a,i,r)}function jp(e,t){var n=Ka(e),r=n[Pp(t)]()+1,i=n[Fp(t)](),a=n[Ip(t)](),o=n[Lp(t)](),s=n[Rp(t)](),c=n[zp(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function Mp(e,t,n){var r=Be(e)?Ka(e):e;switch(t||=jp(e,n),t){case`year`:return r[Np(n)]();case`half-year`:return+(r[Pp(n)]()>=6);case`quarter`:return Math.floor((r[Pp(n)]()+1)/4);case`month`:return r[Pp(n)]();case`day`:return r[Fp(n)]();case`half-day`:return r[Ip(n)]()/24;case`hour`:return r[Ip(n)]();case`minute`:return r[Lp(n)]();case`second`:return r[Rp(n)]();case`millisecond`:return r[zp(n)]()}}function Np(e){return e?`getUTCFullYear`:`getFullYear`}function Pp(e){return e?`getUTCMonth`:`getMonth`}function Fp(e){return e?`getUTCDate`:`getDate`}function Ip(e){return e?`getUTCHours`:`getHours`}function Lp(e){return e?`getUTCMinutes`:`getMinutes`}function Rp(e){return e?`getUTCSeconds`:`getSeconds`}function zp(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function Bp(e){return e?`setUTCFullYear`:`setFullYear`}function Vp(e){return e?`setUTCMonth`:`setMonth`}function Hp(e){return e?`setUTCDate`:`setDate`}function Up(e){return e?`setUTCHours`:`setHours`}function Wp(e){return e?`setUTCMinutes`:`setMinutes`}function Gp(e){return e?`setUTCSeconds`:`setSeconds`}function Kp(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function qp(e){if(!Za(e))return q(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function Jp(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Yp=Xe;function Xp(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&Qe(e)?e:`-`}function a(e){return!!(e!=null&&!isNaN(e)&&isFinite(e))}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?Ka(e):e;if(!isNaN(+c))return kp(c,r,n);if(s)return`-`}if(t===`ordinal`)return ze(e)?i(e):Be(e)&&a(e)?e+``:`-`;var l=Xa(e);return a(l)?qp(l):ze(e)?i(e):typeof e==`boolean`?e+``:`-`}var Zp=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],Qp=function(e,t){return`{`+e+(t??``)+`}`};function $p(e,t,n){G(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=Zp[a];e=e.replace(Qp(o),Qp(o,0))}for(var s=0;s<r;s++)for(var c=0;c<i.length;c++){var l=t[s][i[c]];e=e.replace(Qp(Zp[c],s),n?Ut(l):l)}return e}function em(e,t){var n=q(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||`html`;return r?a===`html`?i===`subItem`?`<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:`+Ut(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+Ut(r)+`;`+(t||``)+`"></span>`:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function tm(e,t){return t||=`transparent`,q(e)?e:J(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function nm(e,t){if(t===`_blank`||t===`blank`){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var rm=H,im=[`left`,`right`,`top`,`bottom`,`width`,`height`],am=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function om(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var sm=om;Re(om,`vertical`),Re(om,`horizontal`);function cm(e,t,n){n=Yp(n||0);var r=t.width,i=t.height,a=Q(e.left,r),o=Q(e.top,i),s=Q(e.right,r),c=Q(e.bottom,i),l=Q(e.width,r),u=Q(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new Cn(a+n[3],o+n[0],l,u);return m.margin=n,m}function lm(e){var t=e.layoutMode||e.constructor.layoutMode;return J(t)?t:t?{type:t}:null}function um(e,t,n){var r=n&&n.ignoreSize;!G(r)&&(r=[r,r]);var i=o(am[0],0),a=o(am[1],1);l(am[0],e,i),l(am[1],e,a);function o(n,i){var a={},o=0,l={},u=0,d=2;if(rm(n,function(t){l[t]=e[t]}),rm(n,function(e){s(t,e)&&(a[e]=l[e]=t[e]),c(a,e)&&o++,c(l,e)&&u++}),r[i])return c(t,n[1])?l[n[2]]=null:c(t,n[2])&&(l[n[1]]=null),l;if(u===d||!o)return l;if(o>=d)return a;for(var f=0;f<n.length;f++){var p=n[f];if(!s(a,p)&&s(e,p)){a[p]=e[p];break}}return a}function s(e,t){return e.hasOwnProperty(t)}function c(e,t){return e[t]!=null&&e[t]!==`auto`}function l(e,t,n){rm(e,function(e){t[e]=n[e]})}}function dm(e){return fm({},e)}function fm(e,t){return t&&e&&rm(im,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var pm=Eo(),mm=function(e){F(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=$f(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=lm(this),r=n?dm(e):{};B(e,t.getTheme().get(this.mainType)),B(e,this.getDefaultOption()),n&&um(e,r,n)},t.prototype.mergeOption=function(e,t){B(this.option,e,!0);var n=lm(this);n&&um(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Ho(e))return e.defaultOption;var t=pm(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=B(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return Mo(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get(`left`),top:e.get(`top`),right:e.get(`right`),bottom:e.get(`bottom`),width:e.get(`width`),height:e.get(`height`)}},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(Zf);Go(mm,Zf),Xo(mm),ep(mm),tp(mm,hm);function hm(e){var t=[];return H(mm.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=U(t,function(e){return Bo(e).main}),e!==`dataset`&&Ae(t,`dataset`)<=0&&t.unshift(`dataset`),t}var gm=``;typeof navigator<`u`&&(gm=navigator.platform||``);var _m=`rgba(0, 0, 0, 0.2)`,vm={darkMode:`auto`,colorBy:`series`,color:[`#5470c6`,`#91cc75`,`#fac858`,`#ee6666`,`#73c0de`,`#3ba272`,`#fc8452`,`#9a60b4`,`#ea7ccc`],gradientColor:[`#f6efa6`,`#d88273`,`#bf444c`],aria:{decal:{decals:[{color:_m,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:_m,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:_m,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:_m,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:_m,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:_m,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:gm.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},ym=X([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),bm=`original`,xm=`arrayRows`,Sm=`objectRows`,Cm=`keyedColumns`,wm=`typedArray`,Tm=`unknown`,Em=`column`,Dm={Must:1,Might:2,Not:3},Om=Eo();function km(e){Om(e).datasetMap=X()}function Am(e,t,n){var r={},i=Mm(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=Om(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),H(e,function(t,n){var i=J(t)?t:e[n]={name:t};i.type===`ordinal`&&u==null&&(u=n,d=m(i)),r[i.name]=[]});var f=c.get(l)||c.set(l,{categoryWayDim:d,valueWayDim:0});H(e,function(e,t){var n=e.name,i=m(e);if(u==null){var s=f.valueWayDim;p(r[n],s,i),p(o,s,i),f.valueWayDim+=i}else if(u===t)p(r[n],0,i),p(a,0,i);else{var s=f.categoryWayDim;p(r[n],s,i),p(o,s,i),f.categoryWayDim+=i}});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function jm(e,t,n){var r={};if(!Mm(e))return r;var i=t.sourceFormat,a=t.dimensionsDefine,o;(i===`objectRows`||i===`keyedColumns`)&&H(a,function(e,t){(J(e)?e.name:e)===`name`&&(o=t)});var s=function(){for(var e={},r={},s=[],c=0,l=Math.min(5,n);c<l;c++){var u=Fm(t.data,i,t.seriesLayoutBy,a,t.startIndex,c);s.push(u);var d=u===Dm.Not;if(d&&e.v==null&&c!==o&&(e.v=c),(e.n==null||e.n===e.v||!d&&s[e.n]===Dm.Not)&&(e.n=c),f(e)&&s[e.n]!==Dm.Not)return e;d||(u===Dm.Might&&r.v==null&&c!==o&&(r.v=c),(r.n==null||r.n===r.v)&&(r.n=c))}function f(e){return e.v!=null&&e.n!=null}return f(e)?e:f(r)?r:null}();if(s){r.value=[s.v];var c=o??s.n;r.itemName=[c],r.seriesName=[c]}return r}function Mm(e){if(!e.get(`data`,!0))return Mo(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},Ao).models[0]}function Nm(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:Mo(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},Ao).models}function Pm(e,t){return Fm(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Fm(e,t,n,r,i,a){var o,s=5;if(He(e))return Dm.Not;var c,l;if(r){var u=r[a];J(u)?(c=u.name,l=u.type):q(u)&&(c=u)}if(l!=null)return l===`ordinal`?Dm.Must:Dm.Not;if(t===`arrayRows`){var d=e;if(n===`row`){for(var f=d[a],p=0;p<(f||[]).length&&p<s;p++)if((o=b(f[i+p]))!=null)return o}else for(var p=0;p<d.length&&p<s;p++){var m=d[i+p];if(m&&(o=b(m[a]))!=null)return o}}else if(t===`objectRows`){var h=e;if(!c)return Dm.Not;for(var p=0;p<h.length&&p<s;p++){var g=h[p];if(g&&(o=b(g[c]))!=null)return o}}else if(t===`keyedColumns`){var _=e;if(!c)return Dm.Not;var f=_[c];if(!f||He(f))return Dm.Not;for(var p=0;p<f.length&&p<s;p++)if((o=b(f[p]))!=null)return o}else if(t===`original`)for(var v=e,p=0;p<v.length&&p<s;p++){var g=v[p],y=co(g);if(!G(y))return Dm.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=q(e);if(e!=null&&Number.isFinite(Number(e))&&e!==``)return t?Dm.Might:Dm.Not;if(t&&e!==`-`)return Dm.Must}return Dm.Not}var Im=X();function Lm(e,t,n){var r=Im.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var Rm=Eo();Eo();var zm=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=ao(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return Vm(this,Rm,r,i,e,t,n)},e.prototype.clearColorPalette=function(){Hm(this,Rm)},e}();function Bm(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function Vm(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:Bm(r,o);if(u||=n,!(!u||!u.length)){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function Hm(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Um,Wm,Gm,Km=`\0_ec_inner`,qm=1,Jm=function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(e,t,n,r,i,a){r||={},this.option=null,this._theme=new Zf(r),this._locale=new Zf(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=$m(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,$m(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);!this.option||e===`recreate`?Gm(this,i):(this.restoreData(),this._mergeOption(i,t)),n=!0}if((e===`timeline`||e===`media`)&&this.restoreData(),!e||e===`recreate`||e===`timeline`){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||e===`recreate`||e===`media`){var o=r.getMediaOption(this);o.length&&H(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=X(),s=t&&t.replaceMergeMainTypeMap;km(this),H(e,function(e,t){e!=null&&(mm.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?z(e):B(n[t],e,!0))}),s&&s.each(function(e,t){mm.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),mm.topologicalTravel(a,mm.getAllClassMainTypes(),c,this);function c(t){var a=Lm(this,t,ao(e[t])),o=r.get(t),c=uo(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);Co(c,t,mm),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f;H(c,function(e,n){var r=e.existing,i=e.newOption;if(!i)r&&(r.mergeOption({},this),r.optionUpdated({},!1));else{var a=t===`series`,o=mm.getClass(t,e.keyInfo.subType,!a);if(!o)return;if(t===`tooltip`){if(f)return;f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=V({componentIndex:n},e.keyInfo);r=new o(i,this,this,s),V(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}r?(l.push(r.option),u.push(r),d++):(l.push(void 0),u.push(void 0))},this),n[t]=l,r.set(t,u),i.set(t,d),t===`series`&&Um(this)}this._seriesIndices||Um(this)},t.prototype.getOption=function(){var e=z(this.option);return H(e,function(t,n){if(mm.hasClass(n)){for(var r=ao(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!So(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[Km],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n=e.index,r=e.id,i=e.name,a=this._componentsMap.get(t);if(!a||!a.length)return[];var o;return n==null?o=r==null?i==null?Fe(a,function(e){return!!e}):Zm(`name`,i,a):Zm(`id`,r,a):(o=[],H(ao(n),function(e){a[e]&&o.push(a[e])})),Qm(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(Qm(r?this.queryComponents(r):Fe(this._componentsMap.get(n),function(e){return!!e}),e));function i(e){var t=n+`Index`,r=n+`Id`,i=n+`Name`;return e&&(e[t]!=null||e[r]!=null||e[i]!=null)?{mainType:n,index:e[t],id:e[r],name:e[i]}:null}function a(t){return e.filter?Fe(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(K(e)){var i=t,a=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}})}else for(var o=q(e)?r.get(e):J(e)?this.findComponents(e):null,s=0;o&&s<o.length;s++){var c=o[s];c&&t.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=bo(e,null);return Fe(this._componentsMap.get(`series`),function(e){return!!e&&t!=null&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get(`series`)[e]},t.prototype.getSeriesByType=function(e){return Fe(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return Fe(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){Wm(this),H(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){H(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){Wm(this),H(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return H(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return Wm(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){Wm(this);var n=[];H(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=X(n)},t.prototype.restoreData=function(e){Um(this);var t=this._componentsMap,n=[];t.each(function(e,t){mm.hasClass(t)&&n.push(t)}),mm.topologicalTravel(n,mm.getAllClassMainTypes(),function(n){H(t.get(n),function(t){t&&(n!==`series`||!Ym(t,e))&&t.restoreData()})})},t.internalField=function(){Um=function(e){var t=e._seriesIndices=[];H(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=X(t)},Wm=function(e){},Gm=function(e,t){e.option={},e.option[Km]=qm,e._componentsMap=X({series:[]}),e._componentsCount=X();var n=t.aria;J(n)&&n.enabled==null&&(n.enabled=!0),Xm(t,e._theme.option),B(t,vm,!1),e._mergeOption(t,null)}}(),t}(Zf);function Ym(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function Xm(e,t){var n=e.color&&!e.colorLayer;H(t,function(t,r){r===`colorLayer`&&n||mm.hasClass(r)||(typeof t==`object`?e[r]=e[r]?B(e[r],t,!1):z(t):e[r]??(e[r]=t))})}function Zm(e,t,n){if(G(t)){var r=X();return H(t,function(e){e!=null&&bo(e,null)!=null&&r.set(e,!0)}),Fe(n,function(t){return t&&r.get(t[e])})}var i=bo(t,null);return Fe(n,function(t){return t&&i!=null&&t[e]===i})}function Qm(e,t){return t.hasOwnProperty(`subType`)?Fe(e,function(e){return e&&e.subType===t.subType}):e}function $m(e){var t=X();return e&&H(ao(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Me(Jm,zm);var eh=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],th=function(){function e(e){H(eh,function(t){this[t]=W(e[t],e)},this)}return e}(),nh={},rh=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];H(nh,function(r,i){var a=r.create(e,t);n=n.concat(a||[])}),this._coordinateSystems=n},e.prototype.update=function(e,t){H(this._coordinateSystems,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){nh[e]=t},e.get=function(e){return nh[e]},e}(),ih=/^(min|max)?(.+)$/,ah=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(H(ao(e.series),function(e){e&&e.data&&He(e.data)&&et(e.data)}),H(ao(e.dataset),function(e){e&&e.source&&He(e.source)&&et(e.source)})),e=z(e);var r=this._optionBackup,i=oh(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],z(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent(`timeline`);r&&(t=z(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],o=[];if(!r.length&&!i)return o;for(var s=0,c=r.length;s<c;s++)sh(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!lh(a,this._currentMediaIndices)&&(o=U(a,function(e){return z(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}();function oh(e,t,n){var r=[],i,a,o=e.baseOption,s=e.timeline,c=e.options,l=e.media,u=!!e.media,d=!!(c||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((d||u)&&(e.options=e.media=null),a=e),u&&G(l)&&H(l,function(e){e&&e.option&&(e.query?r.push(e):i||=e)}),f(a),H(c,function(e){return f(e)}),H(r,function(e){return f(e.option)});function f(e){H(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function sh(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return H(e,function(e,t){var n=t.match(ih);if(!(!n||!n[1]||!n[2])){var a=n[1];ch(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function ch(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function lh(e,t){return e.join(`,`)===t.join(`,`)}var uh=H,dh=J,fh=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function ph(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=fh.length;n<r;n++){var i=fh[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?B(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?B(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function mh(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,ke(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function hh(e){mh(e,`itemStyle`),mh(e,`lineStyle`),mh(e,`areaStyle`),mh(e,`label`),mh(e,`labelLine`),mh(e,`upperLabel`),mh(e,`edgeLabel`)}function gh(e,t){var n=dh(e)&&e[t],r=dh(n)&&n.textStyle;if(r)for(var i=0,a=so.length;i<a;i++){var o=so[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function _h(e){e&&(hh(e),gh(e,`label`),e.emphasis&&gh(e.emphasis,`label`))}function vh(e){if(dh(e)){ph(e),hh(e),gh(e,`label`),gh(e,`upperLabel`),gh(e,`edgeLabel`),e.emphasis&&(gh(e.emphasis,`label`),gh(e.emphasis,`upperLabel`),gh(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(ph(t),_h(t));var n=e.markLine;n&&(ph(n),_h(n));var r=e.markArea;r&&_h(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!He(a))for(var o=0;o<a.length;o++)_h(a[o]);H(e.categories,function(e){hh(e)})}if(i&&!He(i))for(var o=0;o<i.length;o++)_h(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)_h(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)G(c[o])?(_h(c[o][0]),_h(c[o][1])):_h(c[o]);e.type===`gauge`?(gh(e,`axisLabel`),gh(e,`title`),gh(e,`detail`)):e.type===`treemap`?(mh(e.breadcrumb,`itemStyle`),H(e.levels,function(e){hh(e)})):e.type===`tree`&&hh(e.leaves)}}function yh(e){return G(e)?e:e?[e]:[]}function bh(e){return(G(e)?e[0]:e)||{}}function xh(e,t){uh(yh(e.series),function(e){dh(e)&&vh(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),uh(n,function(t){uh(yh(e[t]),function(e){e&&(gh(e,`axisLabel`),gh(e.axisPointer,`label`))})}),uh(yh(e.parallel),function(e){var t=e&&e.parallelAxisDefault;gh(t,`axisLabel`),gh(t&&t.axisPointer,`label`)}),uh(yh(e.calendar),function(e){mh(e,`itemStyle`),gh(e,`dayLabel`),gh(e,`monthLabel`),gh(e,`yearLabel`)}),uh(yh(e.radar),function(e){gh(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name),e.nameGap!=null&&e.axisNameGap==null&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),uh(yh(e.geo),function(e){dh(e)&&(_h(e),uh(yh(e.regions),function(e){_h(e)}))}),uh(yh(e.timeline),function(e){_h(e),mh(e,`label`),mh(e,`itemStyle`),mh(e,`controlStyle`,!0);var t=e.data;G(t)&&H(t,function(e){J(e)&&(mh(e,`label`),mh(e,`itemStyle`))})}),uh(yh(e.toolbox),function(e){mh(e,`iconStyle`),uh(e.feature,function(e){mh(e,`iconStyle`)})}),gh(bh(e.axisPointer),`label`),gh(bh(e.tooltip).axisPointer,`label`)}function Sh(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function Ch(e,t,n,r){for(var i=t.split(`,`),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]??(a[o]={}),a=a[o];(r||a[i[s]]==null)&&(a[i[s]]=n)}function wh(e){e&&H(Th,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Th=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],Eh=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],Dh=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function Oh(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<Dh.length;n++){var r=Dh[n][1],i=Dh[n][0];t[r]!=null&&(t[i]=t[r])}}function kh(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function Ah(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function jh(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(e.emphasis.focus=`adjacency`))}function Mh(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&Mh(e[n].children,t)}function Nh(e,t){xh(e,t),e.series=ao(e.series),H(e.series,function(e){if(J(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise),kh(e.label);var n=e.data;if(n&&!He(n))for(var r=0;r<n.length;r++)kh(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=Sh(e,`pointer.color`);i!=null&&Ch(e,`itemStyle.color`,i)}else if(t===`bar`){Oh(e),Oh(e.backgroundStyle),Oh(e.emphasis);var n=e.data;if(n&&!He(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(Oh(n[r]),Oh(n[r]&&n[r].emphasis))}else if(t===`sunburst`){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),Ah(e),Mh(e.data,Ah)}else t===`graph`||t===`sankey`?jh(e):t===`map`&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&ke(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),wh(e)}}),e.dataRange&&(e.visualMap=e.dataRange),H(Eh,function(t){var n=e[t];n&&(G(n)||(n=[n]),H(n,function(e){wh(e)}))})}function Ph(e){var t=X();e.eachSeries(function(e){var n=e.get(`stack`);if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo(`stackResultDimension`),stackedOverDimension:i.getCalculationInfo(`stackedOverDimension`),stackedDimension:i.getCalculationInfo(`stackedDimension`),stackedByDimension:i.getCalculationInfo(`stackedByDimension`),isStackedByIndex:i.getCalculationInfo(`isStackedByIndex`),data:i,seriesModel:e};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;r.length&&i.setCalculationInfo(`stackedOnSeries`,r[r.length-1].seriesModel),r.push(a)}}),t.each(Fh)}function Fh(e){H(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=Ha(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var Ih=function(){function e(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];r.type==null&&Pm(this,n)===Dm.Must&&(r.type=`ordinal`)}}return e}();function Lh(e){return e instanceof Ih}function Rh(e,t,n){n||=Vh(e);var r=t.seriesLayoutBy,i=Hh(e,n,r,t.sourceHeader,t.dimensions);return new Ih({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:z(t)})}function zh(e){return new Ih({data:e,sourceFormat:He(e)?wm:bm})}function Bh(e){return new Ih({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:z(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function Vh(e){var t=Tm;if(He(e))t=wm;else if(G(e)){e.length===0&&(t=xm);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(G(i)||He(i)){t=xm;break}if(J(i)){t=Sm;break}}}}else if(J(e)){for(var a in e)if(lt(e,a)&&Ne(e[a])){t=Cm;break}}return t}function Hh(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:Wh(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?Gh(function(e){e!=null&&e!==`-`&&(q(e)?o??=1:o=0)},n,s,10):o=Be(r)?r:+!!r,!i&&o===1&&(i=[],Gh(function(e,t){i[t]=e==null?``:e+``},n,s,1/0)),a=i?i.length:n===`row`?s.length:s[0]?s[0].length:null}else if(t===`objectRows`)i||=Uh(e);else if(t===`keyedColumns`)i||(i=[],H(e,function(e,t){i.push(t)}));else if(t===`original`){var c=co(e[0]);a=G(c)&&c.length||1}return{startIndex:o,dimensionsDefine:Wh(i),dimensionsDetectedCount:a}}function Uh(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return Ie(n)}function Wh(e){if(e){var t=X();return U(e,function(e,n){e=J(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+=``,r.displayName??=r.name;var i=t.get(r.name);return i?r.name+=`-`+i.count++:t.set(r.name,{count:1}),r})}}function Gh(e,t,n,r){if(t===`row`)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)e(a[i],i)}function Kh(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var qh,Jh,Yh,Xh,Zh,Qh=function(){function e(e,t){var n=Lh(e)?e:zh(e);this._source=n;var r=this._data=n.data;n.sourceFormat===`typedArray`&&(this._offset=0,this._dimSize=t,this._data=r),Zh(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;Zh=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=Xh[cg(o,s)];V(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=W(tg(o,s),null,i,c,l),e.count=W(ig(o,s),null,i,c,l))};var t=function(e,t){e-=this._offset,t||=[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],c=s[0]==null?1/0:s[0],l=s[1]==null?-1/0:s[1],u=t-e,d=n[o],f=0;f<u;f++){var p=i[f*a+o];d[e+f]=p,p<c&&(c=p),p>l&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};Xh=(e={},e[xm+`_`+Em]={pure:!0,appendData:i},e[xm+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[Sm]={pure:!0,appendData:i},e[Cm]={pure:!0,appendData:function(e){var t=this._data;H(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[bm]={appendData:i},e[wm]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}}(),e}(),$h=function(e,t,n,r){return e[r]},eg=(qh={},qh[xm+`_`+Em]=function(e,t,n,r){return e[r+t]},qh[xm+`_row`]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var c=o[s];a[s]=c?c[r]:null}return a},qh[Sm]=$h,qh[Cm]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=e[n[o].name];a[o]=s?s[r]:null}return a},qh[bm]=$h,qh);function tg(e,t){return eg[cg(e,t)]}var ng=function(e,t,n){return e.length},rg=(Jh={},Jh[xm+`_`+Em]=function(e,t,n){return Math.max(0,e.length-t)},Jh[xm+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},Jh[Sm]=ng,Jh[Cm]=function(e,t,n){var r=e[n[0].name];return r?r.length:0},Jh[bm]=ng,Jh);function ig(e,t){return rg[cg(e,t)]}var ag=function(e,t,n){return e[t]},og=(Yh={},Yh[xm]=ag,Yh[Sm]=function(e,t,n){return e[n]},Yh[Cm]=ag,Yh[bm]=function(e,t,n){var r=co(e);return r instanceof Array?r[t]:r},Yh[wm]=ag,Yh);function sg(e){return og[e]}function cg(e,t){return e===`arrayRows`?e+`_`+t:e}function lg(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return sg(a)(r,o,s)}var c=r;return a===`original`&&(c=co(r)),c}}}var ug=/\{@(.+?)\}/g,dg=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&G(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),K(i))return s.status=t,s.dimensionIndex=r,i(s);if(q(i))return $p(i,s).replace(ug,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=lg(o,e,i);if(a&&G(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return lg(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function fg(e){var t,n;return J(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function pg(e){return new mg(e)}var mg=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(this._dueEnd=t?t._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f<p)){var m=this._progress;if(G(m))for(var h=0;h<m.length;h++)this._doProgress(m[h],f,p,s,c);else this._doProgress(m,f,p,s,c)}this._dueIndex=p;var g=this._settedOutputEnd==null?p:this._settedOutputEnd;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd==null?this._dueEnd:this._settedOutputEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){hg.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:hg.next},this.context)},e.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),G(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||=(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),hg=function(){var e,t,n,r,i,a={reset:function(c,l,u,d){t=c,e=l,n=u,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}();function gg(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!Be(e)&&e!=null&&e!==`-`&&(e=+Ka(e)),e==null||e===``?NaN:Number(e))}X({number:function(e){return parseFloat(e)},time:function(e){return+Ka(e)},trim:function(e){return q(e)?Qe(e):e}});var _g={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}};(function(){function e(e,t){Be(t)||to(``),this._opFn=_g[e],this._rvalFloat=Xa(t)}return e.prototype.evaluate=function(e){return Be(e)?this._opFn(e,this._rvalFloat):this._opFn(Xa(e),this._rvalFloat)},e})();var vg=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=Be(e)?e:Xa(e),r=Be(t)?t:Xa(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=q(e),s=q(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}();(function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Xa(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=Xa(e)===this._rvalFloat)}return this._isEQ?t:!t},e})();var yg=function(){function e(){}return e.prototype.getRawData=function(){throw Error(`not supported`)},e.prototype.getRawDataItem=function(e){throw Error(`not supported`)},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return gg(e,t)},e}();function bg(e,t){var n=new yg,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==`column`&&to(``);var o=[],s={},c=e.dimensionsDefine;if(c)H(c,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),n!=null&&(lt(s,n)&&to(``),s[n]=r)});else for(var l=0;l<e.dimensionsDetectedCount;l++)o.push({index:l});var u=tg(i,Em);t.__isBuiltIn&&(n.getRawDataItem=function(e){return u(r,a,o,e)},n.getRawData=W(xg,null,e)),n.cloneRawData=W(Sg,null,e),n.count=W(ig(i,Em),null,r,a,o);var d=sg(i);n.retrieveValue=function(e,t){return f(u(r,a,o,e),t)};var f=n.retrieveValueFromItem=function(e,t){if(e!=null){var n=o[t];if(n)return d(e,t,n.name)}};return n.getDimensionInfo=W(Cg,null,o,s),n.cloneAllDimensionInfo=W(wg,null,o),n}function xg(e){var t=e.sourceFormat;return kg(t)||to(``),e.data}function Sg(e){var t=e.sourceFormat,n=e.data;if(kg(t)||to(``),t===`arrayRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}if(t===`objectRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(V({},n[i]));return r}}function Cg(e,t,n){if(n!=null){if(Be(n)||!isNaN(n)&&!lt(t,n))return e[n];if(lt(t,n))return t[n]}}function wg(e){return z(e)}var Tg=X();function Eg(e){e=z(e);var t=e.type,n=``;t||to(n);var r=t.split(`:`);r.length!==2&&to(n);var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,Tg.set(t,e)}function Dg(e,t,n){var r=ao(e),i=r.length;i||to(``);for(var a=0,o=i;a<o;a++){var s=r[a];t=Og(s,t,n,i===1?null:a),a!==o-1&&(t.length=Math.max(t.length,1))}return t}function Og(e,t,n,r){var i=``;t.length||to(i),J(e)||to(i);var a=e.type,o=Tg.get(a);o||to(i);var s=U(t,function(e){return bg(e,o)});return U(ao(o.transform({upstream:s[0],upstreamList:s,config:z(e.config)})),function(e,n){var r=``;J(e)||to(r),e.data||to(r),kg(Vh(e.data))||to(r);var i,a=t[0];if(a&&n===0&&!e.dimensions){var o=a.startIndex;o&&(e.data=a.data.slice(0,o).concat(e.data)),i={seriesLayoutBy:Em,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:Em,sourceHeader:0,dimensions:e.dimensions};return Rh(e.data,i,null)})}function kg(e){return e===`arrayRows`||e===`objectRows`}var Ag=`undefined`,jg=typeof Uint32Array===Ag?Array:Uint32Array,Mg=typeof Uint16Array===Ag?Array:Uint16Array,Ng=typeof Int32Array===Ag?Array:Int32Array,Pg=typeof Float64Array===Ag?Array:Float64Array,Fg={float:Pg,int:Ng,ordinal:Array,number:Array,time:Pg},Ig;function Lg(e){return e>65535?jg:Mg}function Rg(){return[1/0,-1/0]}function zg(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Bg(e,t,n,r,i){var a=Fg[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;l<s;l++)c[l]=o[l];e[t]=c}}else e[t]=new a(r)}var Vg=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=X()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=Ig[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],Kh(r),this._dimensions=U(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(i!=null){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new Fg[t||`float`](this._rawCount),this._rawExtent[i]=Rg(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;a===0&&(i[e]=Rg());for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type=`ordinal`},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),c=0;c<i;c++){var l=r[c];Bg(n,c,l.type,s,!0)}for(var u=[],d=o;d<s;d++)for(var f=d-o,p=0;p<i;p++){var l=r[p],m=Ig.arrayRows.call(this,e[f]||u,l.property,f,p);n[p][d]=m;var h=a[p];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=U(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=Rg()),Bg(i,l,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],f=e;f<t;f++){d=r.getItem(f,d);for(var p=0;p<o;p++){var m=i[p],h=this._dimValueGetter(d,c[p],f,p);m[f]=h;var g=s[p];h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;for(var i=0,a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var a=this.get(e,r);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)});var n=t.sort(function(e,t){return e-t}),r=this.count();return r===0?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else if(t[a]>e)i=a-1;else return a}return-1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._chunks[e],i=[];if(!r)return i;n??=1/0;for(var a=1/0,o=-1,s=0,c=0,l=this.count();c<l;c++){var u=t-r[this.getRawIndex(c)],d=Math.abs(u);d<=n&&((d<a||d===a&&u>=0&&o<0)&&(a=d,o=u,s=0),u===o&&(i[s++]=c))}return i.length=s,i},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{var n=Lg(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(Lg(n._rawCount))(r),a=[],o=e.length,s=0,c=e[0],l=n._chunks,u=0;u<r;u++){var d=void 0,f=n.getRawIndex(u);if(o===0)d=t(u);else if(o===1){var p=l[c][f];d=t(p,u)}else{for(var m=0;m<o;m++)a[m]=l[e[m]][f];a[m]=u,d=t.apply(null,a)}d&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=Ie(e),i=r.length;if(!i)return this;var a=t.count(),o=new(Lg(t._rawCount))(a),s=0,c=r[0],l=e[c][0],u=e[c][1],d=t._chunks,f=!1;if(!t._indices){var p=0;if(i===1){for(var m=d[r[0]],h=0;h<n;h++){var g=m[h];(g>=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h<n;h++){var g=m[h],b=_[h];(g>=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f){if(i===1)for(var h=0;h<a;h++){var x=t.getRawIndex(h),g=d[r[0]][x];(g>=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;h<a;h++){for(var S=!0,x=t.getRawIndex(h),C=0;C<i;C++){var w=r[C],g=d[w][x];(g<e[w][0]||g>e[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=Rg();for(var u=0;u<o;u++){for(var d=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=u;var p=n&&n.apply(null,s);if(p!=null){typeof p!=`object`&&(i[0]=p,p=i);for(var l=0;l<p.length;l++){var m=t[l],h=p[l],g=c[m],_=r[m];_&&(_[d]=h),h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(Lg(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;f<i-1;f+=o){for(var p=Math.min(f+o,i-1),m=Math.min(f+o*2,i),h=(m+p)/2,g=0,_=p;_<m;_++){var v=this.getRawIndex(_),y=r[v];isNaN(y)||(g+=y)}g/=m-p;var b=f,x=Math.min(f+o,i),S=f-1,C=r[s];c=-1,u=b;for(var w=-1,T=0,_=b;_<x;_++){var v=this.getRawIndex(_),y=r[v];if(isNaN(y)){T++,w<0&&(w=v);continue}l=Math.abs((S-h)*(y-C)-(S-_)*(g-C)),l>c&&(c=l,u=v)}T>0&&T<x-b&&(d[a++]=Math.min(w,u),u=Math.max(w,u)),d[a++]=u,s=u}return d[a++]=this.getRawIndex(i-1),n._count=a,n._indices=d,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(Lg(this._rawCount))(Math.ceil(o/i)*2),c=0,l=0;l<o;l+=i){var u=l,d=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],m=i;l+i>o&&(m=o-l);for(var h=0;h<m;h++){var g=a[this.getRawIndex(l+h)];g<d&&(d=g,u=l+h),g>p&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);u<f?(s[c++]=_,s[c++]=v):(s[c++]=v,s[c++]=_)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=Rg(),d=new(Lg(this._rawCount))(Math.ceil(l/s)),f=0,p=0;p<l;p+=s){s>l-p&&(s=l-p,o.length=s);for(var m=0;m<s;m++){var h=this.getRawIndex(p+m);o[m]=c[h]}var g=n(o),_=this.getRawIndex(Math.min(p+r(o,g)||0,l-1));c[_]=g,g<u[0]&&(u[0]=g),g>u[1]&&(u[1]=g),d[f++]=_}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,c=[];s<n;s++)c[s]=r[e[s]][o];c[s]=i,t.apply(null,c)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=Rg();if(!t)return n;var r=this.count(),i=!this._indices,a;if(i)return this._rawExtent[e].slice();if(a=this._extent[e],a)return a.slice();a=n;for(var o=a[0],s=a[1],c=0;c<r;c++){var l=t[this.getRawIndex(c)];l<o&&(o=l),l>s&&(s=l)}return a=[o,s],this._extent[e]=a,a},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&Pe(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?zg(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=z(this._extent),e._rawExtent=z(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return gg(e[r],this._dimensions[r])}Ig={arrayRows:e,objectRows:function(e,t,n,r){return gg(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return gg(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),Hg=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,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 e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(Ug(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=He(o)?wm:bm,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=Y(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=Y(u.sourceHeader,d.sourceHeader),m=Y(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[Rh(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[Rh(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&Wg(``);var i,a=[],o=[];return H(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&Wg(``),a.push(t),o.push(e._getVersionSign())}),n?i=Dg(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[Bh(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e||=0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=0,i=this._storeList,a=i[r];a||=i[r]={};var o=a[n];if(!o){var s=this._getUpstreamSourceManagers()[0];Ug(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new Vg,o.initData(new Qh(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Ug(e)){var t=Mm(e);return t?[t.getSourceManager()]:[]}return U(Nm(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(Ug(e))t=e.get(`seriesLayoutBy`,!0),n=e.get(`sourceHeader`,!0),r=e.get(`dimensions`,!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get(`seriesLayoutBy`,!0),n=i.get(`sourceHeader`,!0),r=i.get(`dimensions`,!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:r}},e}();function Ug(e){return e.mainType===`series`}function Wg(e){throw Error(e)}var Gg=`line-height:1`;function Kg(e){var t=e.lineHeight;return t==null?Gg:`line-height:`+Ut(t+``)+`px`}function qg(e,t){var n=e.color||`#6e7079`,r=e.fontSize||12,i=e.fontWeight||`400`,a=e.color||`#464646`,o=e.fontSize||14,s=e.fontWeight||`900`;return t===`html`?{nameStyle:`font-size:`+Ut(r+``)+`px;color:`+Ut(n)+`;font-weight:`+Ut(i+``),valueStyle:`font-size:`+Ut(o+``)+`px;color:`+Ut(a)+`;font-weight:`+Ut(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var Jg=[0,10,20,30],Yg=[``,`
|
|
8
|
+
`){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var p=ra(f,t),m=!r&&!vs(f);if(a.length?u+p>n:i+u+p>n){u?(s||c)&&(m?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=f,l+=p,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=f,u=p)):m?(a.push(c),o.push(l),c=f,l=p):(a.push(f),o.push(p));continue}u+=p,m?(c+=f,l+=p):(c&&(s+=c,c=``,l=0),s+=f)}return!a.length&&!s&&(s=e,c=``,l=0),c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}var bs=`__zr_style_`+Math.round(Math.random()*10),xs={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},Ss={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};xs[bs]=!0;var Cs=[`z`,`z2`,`invisible`],ws=[`invisible`],Ts=function(e){F(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=Ie(t),r=0;r<n.length;r++){var i=n[r];i===`style`?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Os(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths){for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1}if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||=new Cn(0,0,0,0),t?Cn.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=i*2+Math.abs(a),e.height+=i*2+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+s*2),e.height=Math.ceil(e.height+1+s*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Cn(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate(`style`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`style`?this.style?this.setStyle(n):this.useStyle(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setStyle=function(e,t){return typeof e==`string`?this.style[e]=t:V(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&=null},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&2)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return st(xs,e)},t.prototype.useStyle=function(e){e[bs]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[bs]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,Cs)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c;if(n&&n.style?a?i?c=n.style:(c=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(c,n.style)):(c=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(c,n.style)):s&&(c=r.style),c){if(a){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var u=Ie(l),d=0;d<u.length;d++){var f=u[d];f in c&&(c[f]=c[f],this.style[f]=l[f])}for(var p=Ie(c),d=0;d<p.length;d++){var f=p[d];this.style[f]=this.style[f]}this._transitionState(t,{style:c},o,this.getAnimationStyleProps())}else this.useStyle(c)}for(var m=this.__inHover?ws:Cs,d=0;d<m.length;d++){var f=m[d];n&&n[f]!=null?this[f]=n[f]:s&&r[f]!=null&&(this[f]=r[f])}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.style&&(r||={},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},t.prototype._mergeStyle=function(e,t){return V(e,t),e},t.prototype.getAnimationStyleProps=function(){return Ss},t.initDefaultProps=(function(){var e=t.prototype;e.type=`displayable`,e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor=`pointer`,e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3})(),t}(ga),Es=new Cn(0,0,0,0),Ds=new Cn(0,0,0,0);function Os(e,t,n){return Es.copy(e.getBoundingRect()),e.transform&&Es.applyTransform(e.transform),Ds.width=t,Ds.height=n,!Es.intersect(Ds)}var ks=Math.min,As=Math.max,js=Math.sin,Ms=Math.cos,Ns=Math.PI*2,Ps=ft(),Fs=ft(),Is=ft();function Ls(e,t,n,r,i,a){i[0]=ks(e,n),i[1]=ks(t,r),a[0]=As(e,n),a[1]=As(t,r)}var Rs=[],zs=[];function Bs(e,t,n,r,i,a,o,s,c,l){var u=dr,d=cr,f=u(e,n,i,o,Rs);c[0]=1/0,c[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var p=0;p<f;p++){var m=d(e,n,i,o,Rs[p]);c[0]=ks(m,c[0]),l[0]=As(m,l[0])}f=u(t,r,a,s,zs);for(var p=0;p<f;p++){var h=d(t,r,a,s,zs[p]);c[1]=ks(h,c[1]),l[1]=As(h,l[1])}c[0]=ks(e,c[0]),l[0]=As(e,l[0]),c[0]=ks(o,c[0]),l[0]=As(o,l[0]),c[1]=ks(t,c[1]),l[1]=As(t,l[1]),c[1]=ks(s,c[1]),l[1]=As(s,l[1])}function Vs(e,t,n,r,i,a,o,s){var c=vr,l=hr,u=As(ks(c(e,n,i),1),0),d=As(ks(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=ks(e,i,f),o[1]=ks(t,a,p),s[0]=As(e,i,f),s[1]=As(t,a,p)}function Hs(e,t,n,r,i,a,o,s,c){var l=Et,u=Dt,d=Math.abs(i-a);if(d%Ns<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Ps[0]=Ms(i)*n+e,Ps[1]=js(i)*r+t,Fs[0]=Ms(a)*n+e,Fs[1]=js(a)*r+t,l(s,Ps,Fs),u(c,Ps,Fs),i%=Ns,i<0&&(i+=Ns),a%=Ns,a<0&&(a+=Ns),i>a&&!o?a+=Ns:i<a&&o&&(i+=Ns),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(Is[0]=Ms(p)*n+e,Is[1]=js(p)*r+t,l(s,Is,s),u(c,Is,c))}var Us={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ws=[],Gs=[],Ks=[],qs=[],Js=[],Ys=[],Xs=Math.min,Zs=Math.max,Qs=Math.cos,$s=Math.sin,ec=Math.abs,tc=Math.PI,nc=tc*2,rc=typeof Float32Array<`u`,ic=[];function ac(e){return Math.round(e/tc*1e8)/1e8%2*tc}function oc(e,t){var n=ac(e[0]);n<0&&(n+=nc);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=nc?i=n+nc:t&&n-i>=nc?i=n-nc:!t&&n>i?i=n+(nc-ac(n-i)):t&&n<i&&(i=n-(nc-ac(i-n))),e[0]=n,e[1]=i}var sc=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n||=0,n>0&&(this._ux=ec(n/Vi/e)||0,this._uy=ec(n/Vi/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},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(e,t){return this._drawPendingPt(),this.addData(Us.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=ec(e-this._xi),r=ec(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(Us.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(Us.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(Us.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),ic[0]=r,ic[1]=i,oc(ic,a),r=ic[0],i=ic[1];var o=i-r;return this.addData(Us.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=Qs(i)*n+e,this._yi=$s(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(Us.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Us.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&rc&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();rc&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(var i=0;i<t;i++)for(var a=e[i].data,o=0;o<a.length;o++)this.data[r++]=a[o];this._len=r},e.prototype.addData=function(e,t,n,r,i,a,o,s,c){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,rc&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){Ks[0]=Ks[1]=Js[0]=Js[1]=Number.MAX_VALUE,qs[0]=qs[1]=Ys[0]=Ys[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;a<this._len;){var o=e[a++],s=a===1;switch(s&&(t=e[a],n=e[a+1],r=t,i=n),o){case Us.M:t=r=e[a++],n=i=e[a++],Js[0]=r,Js[1]=i,Ys[0]=r,Ys[1]=i;break;case Us.L:Ls(t,n,e[a],e[a+1],Js,Ys),t=e[a++],n=e[a++];break;case Us.C:Bs(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],Js,Ys),t=e[a++],n=e[a++];break;case Us.Q:Vs(t,n,e[a++],e[a++],e[a],e[a+1],Js,Ys),t=e[a++],n=e[a++];break;case Us.A:var c=e[a++],l=e[a++],u=e[a++],d=e[a++],f=e[a++],p=e[a++]+f;a+=1;var m=!e[a++];s&&(r=Qs(f)*u+c,i=$s(f)*d+l),Hs(c,l,u,d,f,p,m,Js,Ys),t=Qs(p)*u+c,n=$s(p)*d+l;break;case Us.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];Ls(r,i,r+h,i+g,Js,Ys);break;case Us.Z:t=r,n=i}Et(Ks,Ks,Js),Dt(qs,qs,Ys)}return a===0&&(Ks[0]=Ks[1]=qs[0]=qs[1]=0),new Cn(Ks[0],Ks[1],qs[0]-Ks[0],qs[1]-Ks[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||=[];for(var c=this._pathSegLen,l=0,u=0,d=0;d<t;){var f=e[d++],p=d===1;p&&(i=e[d],a=e[d+1],o=i,s=a);var m=-1;switch(f){case Us.M:i=o=e[d++],a=s=e[d++];break;case Us.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(ec(_)>n||ec(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case Us.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=mr(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case Us.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=xr(i,a,y,b,h,g,10),i=h,a=g;break;case Us.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=Qs(D)*T+C,s=$s(D)*E+w),m=Zs(T,E)*Xs(nc,Math.abs(O)),i=Qs(k)*T+C,a=$s(k)*E+w;break;case Us.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case Us.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x<a;){var S=n[x++],C=x===1;switch(C&&(c=n[x],l=n[x+1],o=c,s=l),S!==Us.L&&v>0&&(e.lineTo(y,b),v=0),S){case Us.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case Us.L:u=n[x++],d=n[x++];var w=ec(u-c),T=ec(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case Us.C:var k=n[x++],A=n[x++],j=n[x++],M=n[x++],N=n[x++],P=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;fr(c,k,j,N,D,Ws),fr(l,A,M,P,D,Gs),e.bezierCurveTo(Ws[1],Gs[1],Ws[2],Gs[2],Ws[3],Gs[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,M,N,P),c=N,l=P;break;case Us.Q:var k=n[x++],A=n[x++],j=n[x++],M=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;yr(c,k,j,D,Ws),yr(l,A,M,D,Gs),e.quadraticCurveTo(Ws[1],Gs[1],Ws[2],Gs[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,M),c=j,l=M;break;case Us.A:var ee=n[x++],te=n[x++],ne=n[x++],re=n[x++],ie=n[x++],ae=n[x++],oe=n[x++],se=!n[x++],F=ne>re?ne:re,ce=ec(ne-re)>.001,I=ie+ae,L=!1;if(f){var E=p[g++];h+E>_&&(I=ie+ae*(_-h)/E,L=!0),h+=E}if(ce&&e.ellipse?e.ellipse(ee,te,ne,re,oe,ie,I,se):e.arc(ee,te,F,ie,I,se),L)break lo;C&&(o=Qs(ie)*ne+ee,s=$s(ie)*re+te),c=Qs(I)*ne+ee,l=$s(I)*re+te;break;case Us.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var R=n[x++],le=n[x++];if(f){var E=p[g++];if(h+E>_){var ue=_-h;e.moveTo(u,d),e.lineTo(u+Xs(ue,R),d),ue-=R,ue>0&&e.lineTo(u+R,d+Xs(ue,le)),ue-=le,ue>0&&e.lineTo(u+Zs(R-ue,0),d+le),ue-=R,ue>0&&e.lineTo(u,d+Zs(le-ue,0));break lo}h+=E}e.rect(u,d,R,le);break;case Us.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=Us,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function cc(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e!==n)c=(t-r)/(e-n),l=(e*r-n*t)/(e-n);else return Math.abs(a-e)<=s/2;var u=c*a-o+l;return u*u/(c*c+1)<=s/2*s/2}function lc(e,t,n,r,i,a,o,s,c,l,u){if(c===0)return!1;var d=c;return u>t+d&&u>r+d&&u>a+d&&u>s+d||u<t-d&&u<r-d&&u<a-d&&u<s-d||l>e+d&&l>n+d&&l>i+d&&l>o+d||l<e-d&&l<n-d&&l<i-d&&l<o-d?!1:pr(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function uc(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;return c>t+l&&c>r+l&&c>a+l||c<t-l&&c<r-l&&c<a-l||s>e+l&&s>n+l&&s>i+l||s<e-l&&s<n-l&&s<i-l?!1:br(e,t,n,r,i,a,s,c,null)<=l/2}var dc=Math.PI*2;function fc(e){return e%=dc,e<0&&(e+=dc),e}var pc=Math.PI*2;function mc(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;s-=e,c-=t;var u=Math.sqrt(s*s+c*c);if(u-l>n||u+l<n)return!1;if(Math.abs(r-i)%pc<1e-4)return!0;if(a){var d=r;r=fc(i),i=fc(d)}else r=fc(r),i=fc(i);r>i&&(i+=pc);var f=Math.atan2(c,s);return f<0&&(f+=pc),f>=r&&f<=i||f+pc>=r&&f+pc<=i}function hc(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var c=o*(n-e)+e;return c===i?1/0:c>i?s:0}var gc=sc.CMD,_c=Math.PI*2,vc=1e-4;function yc(e,t){return Math.abs(e-t)<vc}var bc=[-1,-1,-1],xc=[-1,-1];function Sc(){var e=xc[0];xc[0]=xc[1],xc[1]=e}function Cc(e,t,n,r,i,a,o,s,c,l){if(l>t&&l>r&&l>a&&l>s||l<t&&l<r&&l<a&&l<s)return 0;var u=ur(t,r,a,s,l,bc);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=bc[h],_=g===0||g===1?.5:1;cr(e,n,i,o,g)<c||(f<0&&(f=dr(t,r,a,s,xc),xc[1]<xc[0]&&f>1&&Sc(),p=cr(t,r,a,s,xc[0]),f>1&&(m=cr(t,r,a,s,xc[1]))),f===2?g<xc[0]?d+=p<t?_:-_:g<xc[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<xc[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function wc(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var c=_r(t,r,a,s,bc);if(c===0)return 0;var l=vr(t,r,a);if(l>=0&&l<=1){for(var u=0,d=hr(t,r,a,l),f=0;f<c;f++){var p=bc[f]===0||bc[f]===1?.5:1,m=hr(e,n,i,bc[f]);m<o||(bc[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}var p=bc[0]===0||bc[0]===1?.5:1,m=hr(e,n,i,bc[0]);return m<o?0:a<t?p:-p}function Tc(e,t,n,r,i,a,o,s){if(s-=t,s>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);bc[0]=-c,bc[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=_c-1e-4){r=0,i=_c;var u=a?1:-1;return o>=bc[0]+e&&o<=bc[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=_c,i+=_c);for(var f=0,p=0;p<2;p++){var m=bc[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=_c+h),(h>=r&&h<=i||h+_c>=r&&h+_c<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function Ec(e,t,n,r,i){for(var a=e.data,o=e.len(),s=0,c=0,l=0,u=0,d=0,f,p,m=0;m<o;){var h=a[m++],g=m===1;switch(h===gc.M&&m>1&&(n||(s+=hc(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case gc.M:u=a[m++],d=a[m++],c=u,l=d;break;case gc.L:if(n){if(cc(c,l,a[m],a[m+1],t,r,i))return!0}else s+=hc(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case gc.C:if(n){if(lc(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Cc(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case gc.Q:if(n){if(uc(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=wc(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case gc.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=hc(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(mc(_,v,b,x,x+S,C,t,w,i))return!0}else s+=Tc(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case gc.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(cc(u,d,f,d,t,r,i)||cc(f,d,f,p,t,r,i)||cc(f,p,u,p,t,r,i)||cc(u,p,u,d,t,r,i))return!0}else s+=hc(f,d,f,p,r,i),s+=hc(u,p,u,d,r,i);break;case gc.Z:if(n){if(cc(c,l,u,d,t,r,i))return!0}else s+=hc(c,l,u,d,r,i);c=u,l=d}}return!n&&!yc(l,d)&&(s+=hc(c,l,u,d,r,i)||0),s!==0}function Dc(e,t,n){return Ec(e,0,!1,t,n)}function Oc(e,t,n,r){return Ec(e,t,!0,n,r)}var kc=ke({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},xs),Ac={style:ke({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ss.style)},jc=ea.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),Mc=function(e){F(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<jc.length;++s)i[jc[s]]=this[jc[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=Ie(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];a===`style`?this.style?V(this.style,o):this.useStyle(o):a===`shape`?V(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!==`none`){if(q(e)){var t=Gr(e,0);return t>.5?Ui:t>.2?Gi:Wi}if(e)return Wi}return Ui},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(q(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==Gr(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new sc(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),Oc(a,o/s,e,t)))return!0}if(this.hasFill())return Dc(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:V(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return st(kc,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=V({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=V({},r.shape),V(c,n.shape)):(c=V({},i?this.shape:r.shape),V(c,n.shape)):s&&(c=r.shape),c){if(a){this.shape=V({},this.shape);for(var l={},u=Ie(c),d=0;d<u.length;d++){var f=u[d];typeof c[f]==`object`?this.shape[f]=c[f]:l[f]=c[f]}this._transitionState(t,{shape:l},o)}else this.shape=c,this.dirtyShape()}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.shape&&(r||={},this._mergeStyle(r,a.shape))}return r&&(n.shape=r),n},t.prototype.getAnimationStyleProps=function(){return Ac},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){F(n,t);function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return n.prototype.getDefaultStyle=function(){return z(e.style)},n.prototype.getDefaultShape=function(){return z(e.shape)},n}(t);for(var r in e)typeof e[r]==`function`&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=(function(){var e=t.prototype;e.type=`path`,e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7})(),t}(Ts),Nc=ke({strokeFirst:!0,font:R,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},kc),Pc=function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return st(Nc,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;t==null?t=``:t+=``;var n=aa(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(Ts);Pc.prototype.type=`tspan`;var Fc=ke({x:0,y:0},xs),Ic={style:ke({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ss.style)};function Lc(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var Rc=function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return st(Fc,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=Lc(t.image)?t.image:this.__image;if(!r)return 0;var i=e===`width`?`height`:`width`,a=t[i];return a==null?r[e]:r[e]/r[i]*a},t.prototype.getWidth=function(){return this._getSize(`width`)},t.prototype.getHeight=function(){return this._getSize(`height`)},t.prototype.getAnimationStyleProps=function(){return Ic},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new Cn(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(Ts);Rc.prototype.type=`image`;function zc(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.r,s,c,l,u;i<0&&(n+=i,i=-i),a<0&&(r+=a,a=-a),typeof o==`number`?s=c=l=u=o:o instanceof Array?o.length===1?s=c=l=u=o[0]:o.length===2?(s=l=o[0],c=u=o[1]):o.length===3?(s=o[0],c=u=o[1],l=o[2]):(s=o[0],c=o[1],l=o[2],u=o[3]):s=c=l=u=0;var d;s+c>i&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var Bc=Math.round;function Vc(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(Bc(r*2)===Bc(i*2)&&(e.x1=e.x2=Uc(r,s,!0)),Bc(a*2)===Bc(o*2)&&(e.y1=e.y2=Uc(a,s,!0)),e):e}}function Hc(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=Uc(r,s,!0),e.y=Uc(i,s,!0),e.width=Math.max(Uc(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Uc(i+o,s,!1)-e.y,o===0?0:1),e):e}}function Uc(e,t,n){if(!t)return e;var r=Bc(e*2);return(r+Bc(t))%2==0?r/2:(r+(n?1:-1))/2}var Wc=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Gc={},Kc=function(e){F(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Wc},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Hc(Gc,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?zc(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Mc);Kc.prototype.type=`rect`;var qc={fill:`#000`},Jc=2,Yc={style:ke({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},Ss.style)},Xc=function(e){F(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=qc,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,rl(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new Cn(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),r||=e.clone(),r.union(e)):(r||=o.clone(),r.union(o))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||qc},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return V(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=Ie(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},V(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return Yc},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return(!t||!(t instanceof e))&&(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||`12px sans-serif`,n=e.padding,r=us(cl(e),e),i=ll(e),a=!!e.backgroundColor,o=r.outerHeight,s=r.outerWidth,c=r.contentWidth,l=r.lines,u=r.lineHeight,d=this._defaultStyle;this.isTruncated=!!r.isTruncated;var f=e.x||0,p=e.y||0,m=e.align||d.align||`left`,h=e.verticalAlign||d.verticalAlign||`top`,g=f,_=sa(p,r.contentHeight,h);if(i||n){var v=oa(f,s,m),y=sa(p,o,h);i&&this._renderBackground(e,e,v,y,s,o)}_+=u/2,n&&(g=sl(f,m,n),h===`top`?_+=n[0]:h===`bottom`&&(_-=n[2]));for(var b=0,x=!1,S=ol(`fill`in e?e.fill:(x=!0,d.fill)),C=al(`stroke`in e?e.stroke:!a&&(!d.autoStroke||x)?(b=Jc,d.stroke):null),w=e.textShadowBlur>0,T=e.width!=null&&(e.overflow===`truncate`||e.overflow===`break`||e.overflow===`breakAll`),E=r.calculatedLineHeight,D=0;D<l.length;D++){var O=this._getOrCreateChild(Pc),k=O.createStyle();O.useStyle(k),k.text=l[D],k.x=g,k.y=_,m&&(k.textAlign=m),k.textBaseline=`middle`,k.opacity=e.opacity,k.strokeFirst=!0,w&&(k.shadowBlur=e.textShadowBlur||0,k.shadowColor=e.textShadowColor||`transparent`,k.shadowOffsetX=e.textShadowOffsetX||0,k.shadowOffsetY=e.textShadowOffsetY||0),k.stroke=C,k.fill=S,C&&(k.lineWidth=e.lineWidth||b,k.lineDash=e.lineDash,k.lineDashOffset=e.lineDashOffset||0),k.font=t,tl(k,e),_+=u,T&&O.setBoundingRect(new Cn(oa(k.x,c,k.textAlign),sa(k.y,E,k.textBaseline),c,E))}},t.prototype._updateRichTexts=function(){var e=this.style,t=ms(cl(e),e),n=t.width,r=t.outerWidth,i=t.outerHeight,a=e.padding,o=e.x||0,s=e.y||0,c=this._defaultStyle,l=e.align||c.align,u=e.verticalAlign||c.verticalAlign;this.isTruncated=!!t.isTruncated;var d=oa(o,r,l),f=sa(s,i,u),p=d,m=f;a&&(p+=a[3],m+=a[0]);var h=p+n;ll(e)&&this._renderBackground(e,e,d,f,r,i);for(var g=!!e.backgroundColor,_=0;_<t.lines.length;_++){for(var v=t.lines[_],y=v.tokens,b=y.length,x=v.lineHeight,S=v.width,C=0,w=p,T=h,E=b-1,D=void 0;C<b&&(D=y[C],!D.align||D.align===`left`);)this._placeToken(D,e,x,m,w,`left`,g),S-=D.width,w+=D.width,C++;for(;E>=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(n-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&ll(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=sl(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(Pc),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=ol(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),v=al(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=Jc,m.stroke):null),y=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,y&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=Je(s.opacity,t.opacity,1),tl(p,s),v&&(p.lineWidth=Je(s.lineWidth,t.lineWidth,g),p.lineDash=Y(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=v),_&&(p.fill=_);var b=e.contentWidth,x=e.contentHeight;f.setBoundingRect(new Cn(oa(p.x,b,p.textAlign),sa(p.y,x,p.textBaseline),b,x))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(Kc),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=Y(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(Rc),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=Y(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=Je(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return nl(e)&&(t=[e.fontStyle,e.fontWeight,el(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&Qe(t)||e.textFont||e.font},t}(Ts),Zc={left:!0,right:1,center:1},Qc={top:1,bottom:1,middle:1},$c=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function el(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function tl(e,t){for(var n=0;n<$c.length;n++){var r=$c[n],i=t[r];i!=null&&(e[r]=i)}}function nl(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function rl(e){return il(e),H(e.rich,il),e}function il(e){if(e){e.font=Xc.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||Zc[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||Qc[n]?n:`top`,e.padding&&=Xe(e.padding)}}function al(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function ol(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function sl(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function cl(e){var t=e.text;return t!=null&&(t+=``),t}function ll(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var $=Eo(),ul=function(e,t,n,r){if(r){var i=$(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=$(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},dl=1,fl={},pl=Eo(),ml=Eo(),hl=[`emphasis`,`blur`,`select`],gl=[`normal`,`emphasis`,`blur`,`select`],_l=`highlight`,vl=`downplay`,yl=`select`,bl=`unselect`,xl=`toggleSelect`;function Sl(e){return e!=null&&e!==`none`}function Cl(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function wl(e){Cl(e,`emphasis`,2)}function Tl(e){e.hoverState===2&&Cl(e,`normal`,0)}function El(e){Cl(e,`blur`,1)}function Dl(e){e.hoverState===1&&Cl(e,`normal`,0)}function Ol(e){e.selected=!0}function kl(e){e.selected=!1}function Al(e,t,n){t(e,n)}function jl(e,t,n){Al(e,t,n),e.isGroup&&e.traverse(function(e){Al(e,t,n)})}function Ml(e,t){switch(t){case`emphasis`:e.hoverState=2;break;case`normal`:e.hoverState=0;break;case`blur`:e.hoverState=1;break;case`select`:e.selected=!0}}function Nl(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o];a[s]=i[s]??(r&&r[s])}for(var o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName===`style`&&c.saveTo(a,t)}return a}function Pl(e,t,n,r){var i=n&&Ae(n,`select`)>=0,a=!1;if(e instanceof Mc){var o=pl(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(Sl(s)||Sl(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=V({},r),l=V({},l),l.fill=s):!Sl(l.fill)&&Sl(s)?(a=!0,r=V({},r),l=V({},l),l.fill=qr(s)):!Sl(l.stroke)&&Sl(c)&&(a||(r=V({},r),l=V({},l)),l.stroke=qr(c)),r.style=l}}if(r&&r.z2==null){a||(r=V({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function Fl(e,t,n){if(n&&n.z2==null){n=V({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function Il(e,t,n){var r=Ae(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:Nl(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=V({},n),o=V({opacity:r?i:a.opacity*.1},o),n.style=o),n}function Ll(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return Pl(this,e,t,n);if(e===`blur`)return Il(this,e,n);if(e===`select`)return Fl(this,e,n)}return n}function Rl(e){e.stateProxy=Ll;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Ll),n&&(n.stateProxy=Ll)}function zl(e,t){!ql(e,t)&&!e.__highByOuter&&jl(e,wl)}function Bl(e,t){!ql(e,t)&&!e.__highByOuter&&jl(e,Tl)}function Vl(e,t){e.__highByOuter|=1<<(t||0),jl(e,wl)}function Hl(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&jl(e,Tl)}function Ul(e){jl(e,El)}function Wl(e){jl(e,Dl)}function Gl(e){jl(e,Ol)}function Kl(e){jl(e,kl)}function ql(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Jl(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=ml(i),o=t===`series`,s=o?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!o&&r.push(s),a.isBlured&&(s.group.traverse(function(e){Dl(e)}),o&&n.push(i)),a.isBlured=!1}),H(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function Yl(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&Wl(r)}}if(e!=null&&!(!t||t===`none`)){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var c=[];i.eachSeries(function(e){var i=o===e,l=e.coordinateSystem;if(l&&l.master&&(l=l.master),!(n===`series`&&!i||n===`coordinateSystem`&&!(l&&s?l===s:i)||t===`series`&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&t===`self`||El(e)}),Ne(t))a(e.getData(),t);else if(J(t))for(var u=Ie(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),ml(e).isBlured=!0}}),i.eachComponent(function(e,t){if(e!==`series`){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,i)}})}}function Xl(e,t,n){if(e!=null&&t!=null){var r=n.getModel().getComponent(e,t);if(r){ml(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(e){El(e)})}}}function Zl(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=To(i,t);a=(G(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),c=0;!o&&c<s;)o=i.getItemGraphicEl(c++);if(o){var l=$(o);Yl(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&Yl(r,u,d,n)}}}function Ql(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e===`series`||t==null||n==null)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(n),c,l=0;l<s.length;l++)if($(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function $l(e,t,n){var r=$(e),i=Ql(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&Xl(r.componentMainType,r.componentIndex,n),H(a,function(e){return zl(e,t)})):(Yl(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&Xl(r.componentMainType,r.componentIndex,n),zl(e,t))}function eu(e,t,n){Jl(n);var r=$(e),i=Ql(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?H(i,function(e){return Bl(e,t)}):Bl(e,t)}function tu(e,t,n){if(mu(t)){var r=t.dataType,i=To(e.getData(r),t);G(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function nu(e){H(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?Gl(t):Kl(t)})})}function ru(e){var t=[];return e.eachSeries(function(e){H(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function iu(e,t,n){du(e,!0),jl(e,Rl),su(e,t,n)}function au(e){du(e,!1)}function ou(e,t,n,r){r?au(e):iu(e,t,n)}function su(e,t,n){var r=$(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var cu=[`emphasis`,`blur`,`select`],lu={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function uu(e,t,n,r){n||=`itemStyle`;for(var i=0;i<cu.length;i++){var a=cu[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[lu[n]]()}}function du(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function fu(e){return!!(e&&e.__highDownDispatcher)}function pu(e){var t=fl[e];return t==null&&dl<=32&&(t=fl[e]=dl++),t}function mu(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function hu(e){var t=e.type;return t===`highlight`||t===`downplay`}function gu(e){var t=pl(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var _u=sc.CMD,vu=[[],[],[]],yu=Math.sqrt,bu=Math.atan2;function xu(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=_u.M,d=_u.C,f=_u.L,p=_u.R,m=_u.A,h=_u.Q;for(o=0,s=0;o<r;){switch(i=n[o++],s=o,a=0,i){case u:a=1;break;case f:a=1;break;case d:a=3;break;case h:a=2;break;case m:var g=t[4],_=t[5],v=yu(t[0]*t[0]+t[1]*t[1]),y=yu(t[2]*t[2]+t[3]*t[3]),b=bu(-t[1]/y,t[0]/v);n[o]*=v,n[o++]+=g,n[o]*=y,n[o++]+=_,n[o++]*=v,n[o++]*=y,n[o++]+=b,n[o++]+=b,o+=2,s=o;break;case p:l[0]=n[o++],l[1]=n[o++],Tt(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],Tt(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=vu[c];x[0]=n[o++],x[1]=n[o++],Tt(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var Su=Math.sqrt,Cu=Math.sin,wu=Math.cos,Tu=Math.PI;function Eu(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Du(e,t){return(e[0]*t[0]+e[1]*t[1])/(Eu(e)*Eu(t))}function Ou(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Du(e,t))}function ku(e,t,n,r,i,a,o,s,c,l,u){var d=Tu/180*c,f=wu(d)*(e-n)/2+Cu(d)*(t-r)/2,p=-1*Cu(d)*(e-n)/2+wu(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=Su(m),s*=Su(m));var h=(i===a?-1:1)*Su((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+wu(d)*g-Cu(d)*_,y=(t+r)/2+Cu(d)*g+wu(d)*_,b=Ou([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=Ou(x,S);if(Du(x,S)<=-1&&(C=Tu),Du(x,S)>=1&&(C=0),C<0){var w=Math.round(C/Tu*1e6)/1e6;C=Tu*2+w%2*Tu}u.addData(l,v,y,o,s,b,C,d,a)}var Au=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,ju=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Mu(e){var t=new sc;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=sc.CMD,c=e.match(Au);if(!c)return t;for(var l=0;l<c.length;l++){for(var u=c[l],d=u.charAt(0),f=void 0,p=u.match(ju)||[],m=p.length,h=0;h<m;h++)p[h]=parseFloat(p[h]);for(var g=0;g<m;){var _=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=n,T=r,E=void 0,D=void 0;switch(d){case`l`:n+=p[g++],r+=p[g++],f=s.L,t.addData(f,n,r);break;case`L`:n=p[g++],r=p[g++],f=s.L,t.addData(f,n,r);break;case`m`:n+=p[g++],r+=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`l`;break;case`M`:n=p[g++],r=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`L`;break;case`h`:n+=p[g++],f=s.L,t.addData(f,n,r);break;case`H`:n=p[g++],f=s.L,t.addData(f,n,r);break;case`v`:r+=p[g++],f=s.L,t.addData(f,n,r);break;case`V`:r=p[g++],f=s.L,t.addData(f,n,r);break;case`C`:f=s.C,t.addData(f,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),n=p[g-2],r=p[g-1];break;case`c`:f=s.C,t.addData(f,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r),n+=p[g-2],r+=p[g-1];break;case`S`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=p[g++],T=p[g++],n=p[g++],r=p[g++],t.addData(f,_,v,w,T,n,r);break;case`s`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=n+p[g++],T=r+p[g++],n+=p[g++],r+=p[g++],t.addData(f,_,v,w,T,n,r);break;case`Q`:w=p[g++],T=p[g++],n=p[g++],r=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`q`:w=p[g++]+n,T=p[g++]+r,n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`T`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n=p[g++],r=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`t`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`A`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n=p[g++],r=p[g++],f=s.A,ku(w,T,n,r,S,C,y,b,x,f,t);break;case`a`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n+=p[g++],r+=p[g++],f=s.A,ku(w,T,n,r,S,C,y,b,x,f,t)}}(d===`z`||d===`Z`)&&(f=s.Z,t.addData(f),n=i,r=a),o=f}return t.toStatic(),t}var Nu=function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(Mc);function Pu(e){return e.setData!=null}function Fu(e,t){var n=Mu(e),r=V({},t);return r.buildPath=function(e){if(Pu(e)){e.setData(n.data);var t=e.getContext();t&&e.rebuildPath(t,1)}else{var t=e;n.rebuildPath(t,1)}},r.applyTransform=function(e){xu(n,e),this.dirtyShape()},r}function Iu(e,t){return new Nu(Fu(e,t))}function Lu(e,t){var n=Fu(e,t);return function(e){F(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(Nu)}function Ru(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new Mc(t);return o.createPathProxy(),o.buildPath=function(e){if(Pu(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}var zu=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Bu=function(e){F(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new zu},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,Math.PI*2)},t}(Mc);Bu.prototype.type=`circle`;var Vu=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),Hu=function(e){F(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Vu},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,c=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-c,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-c,r+a,i),e.bezierCurveTo(r+a,i+c,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+c,r-a,i),e.closePath()},t}(Mc);Hu.prototype.type=`ellipse`;var Uu=Math.PI,Wu=Uu*2,Gu=Math.sin,Ku=Math.cos,qu=Math.acos,Ju=Math.atan2,Yu=Math.abs,Xu=Math.sqrt,Zu=Math.max,Qu=Math.min,$u=1e-4;function ed(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<$u))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function td(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/Xu(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*Xu(Zu(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function nd(e){var t;if(G(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function rd(e,t){var n,r=Zu(t.r,0),i=Zu(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=Yu(c-s),p=f>Wu&&f%Wu;if(p>$u&&(f=p),!(r>$u))e.moveTo(l,u);else if(f>Wu-$u)e.moveTo(l+r*Ku(s),u+r*Gu(s)),e.arc(l,u,r,s,c,!d),i>$u&&(e.moveTo(l+i*Ku(c),u+i*Gu(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*Ku(s),j=r*Gu(s),M=i*Ku(c),N=i*Gu(c),P=f>$u;if(P){var ee=t.cornerRadius;ee&&(n=nd(ee),m=n[0],h=n[1],g=n[2],_=n[3]);var te=Yu(r-i)/2;if(v=Qu(te,g),y=Qu(te,_),b=Qu(te,m),x=Qu(te,h),w=S=Zu(v,y),T=C=Zu(b,x),(S>$u||C>$u)&&(E=r*Ku(c),D=r*Gu(c),O=i*Ku(s),k=i*Gu(s),f<Uu)){var ne=ed(A,j,O,k,E,D,M,N);if(ne){var re=A-ne[0],ie=j-ne[1],ae=E-ne[0],oe=D-ne[1],se=1/Gu(qu((re*ae+ie*oe)/(Xu(re*re+ie*ie)*Xu(ae*ae+oe*oe)))/2),F=Xu(ne[0]*ne[0]+ne[1]*ne[1]);w=Qu(S,(r-F)/(se+1)),T=Qu(C,(i-F)/(se-1))}}}if(!P)e.moveTo(l+A,u+j);else if(w>$u){var ce=Qu(g,w),I=Qu(_,w),L=td(O,k,A,j,r,ce,d),R=td(E,D,M,N,r,I,d);e.moveTo(l+L.cx+L.x0,u+L.cy+L.y0),w<S&&ce===I?e.arc(l+L.cx,u+L.cy,w,Ju(L.y0,L.x0),Ju(R.y0,R.x0),!d):(ce>0&&e.arc(l+L.cx,u+L.cy,ce,Ju(L.y0,L.x0),Ju(L.y1,L.x1),!d),e.arc(l,u,r,Ju(L.cy+L.y1,L.cx+L.x1),Ju(R.cy+R.y1,R.cx+R.x1),!d),I>0&&e.arc(l+R.cx,u+R.cy,I,Ju(R.y1,R.x1),Ju(R.y0,R.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>$u)||!P)e.lineTo(l+M,u+N);else if(T>$u){var ce=Qu(m,T),I=Qu(h,T),L=td(M,N,E,D,i,-I,d),R=td(A,j,O,k,i,-ce,d);e.lineTo(l+L.cx+L.x0,u+L.cy+L.y0),T<C&&ce===I?e.arc(l+L.cx,u+L.cy,T,Ju(L.y0,L.x0),Ju(R.y0,R.x0),!d):(I>0&&e.arc(l+L.cx,u+L.cy,I,Ju(L.y0,L.x0),Ju(L.y1,L.x1),!d),e.arc(l,u,i,Ju(L.cy+L.y1,L.cx+L.x1),Ju(R.cy+R.y1,R.cx+R.x1),d),ce>0&&e.arc(l+R.cx,u+R.cy,ce,Ju(R.y1,R.x1),Ju(R.y0,R.x0),!d))}else e.lineTo(l+M,u+N),e.arc(l,u,i,c,s,d)}e.closePath()}}}var id=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}(),ad=function(e){F(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new id},t.prototype.buildPath=function(e,t){rd(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Mc);ad.prototype.type=`sector`;var od=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),sd=function(e){F(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new od},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(Mc);sd.prototype.type=`ring`;function cd(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)Et(u,u,e[f]),Dt(d,d,e[f]);Et(u,u,r[0]),Dt(d,d,r[1])}for(var f=0,p=e.length;f<p;f++){var m=e[f];if(n)c=e[f?f-1:p-1],l=e[(f+1)%p];else if(f===0||f===p-1){i.push(pt(e[f]));continue}else c=e[f-1],l=e[f+1];ht(a,l,c),vt(a,a,t);var h=bt(m,c),g=bt(m,l),_=h+g;_!==0&&(h/=_,g/=_),vt(o,a,-h),vt(s,a,g);var v=mt([],m,o),y=mt([],m,s);r&&(Dt(v,v,u),Et(v,v,d),Dt(y,y,u),Et(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}function ld(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=cd(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var ud=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),dd=function(e){F(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new ud},t.prototype.buildPath=function(e,t){ld(e,t,!0)},t}(Mc);dd.prototype.type=`polygon`;var fd=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),pd=function(e){F(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new fd},t.prototype.buildPath=function(e,t){ld(e,t,!1)},t}(Mc);pd.prototype.type=`polyline`;var md={},hd=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),gd=function(e){F(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new hd},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Vc(md,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;s!==0&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(Mc);gd.prototype.type=`line`;var _d=[],vd=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function yd(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?lr:cr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?lr:cr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?gr:hr)(e.x1,e.cpx1,e.x2,t),(n?gr:hr)(e.y1,e.cpy1,e.y2,t)]}var bd=function(e){F(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new vd},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,c=t.cpx2,l=t.cpy2,u=t.percent;u!==0&&(e.moveTo(n,r),c==null||l==null?(u<1&&(yr(n,o,i,u,_d),o=_d[1],i=_d[2],yr(r,s,a,u,_d),s=_d[1],a=_d[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(fr(n,o,c,i,u,_d),o=_d[1],c=_d[2],i=_d[3],fr(r,s,l,a,u,_d),s=_d[1],l=_d[2],a=_d[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return yd(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=yd(this.shape,e,!0);return yt(t,t)},t}(Mc);bd.prototype.type=`bezier-curve`;var xd=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),Sd=function(e){F(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new xd},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,c=Math.cos(a),l=Math.sin(a);e.moveTo(c*i+n,l*i+r),e.arc(n,r,i,a,o,!s)},t}(Mc);Sd.prototype.type=`arc`;var Cd=function(e){F(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`compound`,t}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t||=e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Mc.prototype.getBoundingRect.call(this)},t}(Mc),wd=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),Td=function(e){F(t,e);function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=t??0,s.y=n??0,s.x2=r??1,s.y2=i??0,s.type=`linear`,s.global=o||!1,s}return t}(wd),Ed=function(e){F(t,e);function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=t??.5,o.y=n??.5,o.r=r??.5,o.type=`radial`,o.global=a||!1,o}return t}(wd),Dd=[0,0],Od=[0,0],kd=new Z,Ad=new Z,jd=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Z;for(var n=0;n<2;n++)this._axes[n]=new Z;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var c=0;c<4;c++)n[c].transform(t);Z.sub(r[0],n[1],n[0]),Z.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,r=!t;return kd.set(1/0,1/0),Ad.set(0,0),!this._intersectCheckOneSide(this,e,kd,Ad,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(e,this,kd,Ad,r,-1)&&(n=!1,r)||r||Z.copy(t,n?kd:Ad),n},e.prototype._intersectCheckOneSide=function(e,t,n,r,i,a){for(var o=!0,s=0;s<2;s++){var c=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,Dd),this._getProjMinMaxOnAxis(s,t._corners,Od),Dd[1]<Od[0]||Dd[0]>Od[1]){if(o=!1,i)return o;var l=Math.abs(Od[0]-Dd[1]),u=Math.abs(Dd[0]-Od[1]);Math.min(l,u)>r.len()&&(l<u?Z.scale(r,c,-l*a):Z.scale(r,c,u*a))}else if(n){var l=Math.abs(Od[0]-Dd[1]),u=Math.abs(Dd[0]-Od[1]);Math.min(l,u)<n.len()&&(l<u?Z.scale(n,c,l*a):Z.scale(n,c,-u*a))}}return o},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c<t.length;c++){var l=t[c].dot(r)+i[e];o=Math.min(l,o),s=Math.max(l,s)}n[0]=o,n[1]=s},e}(),Md=[],Nd=function(e){F(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t||=!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new Cn(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(Md)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0}return!1},t}(Ts),Pd=Eo();function Fd(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),c=e===`update`;if(s){var l=void 0,u=void 0,d=void 0;return r?(l=Y(r.duration,200),u=Y(r.easing,`cubicOut`),d=0):(l=t.getShallow(c?`animationDurationUpdate`:`animationDuration`),u=t.getShallow(c?`animationEasingUpdate`:`animationEasing`),d=t.getShallow(c?`animationDelayUpdate`:`animationDelay`)),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(u=a.easing),a.delay!=null&&(d=a.delay)),K(d)&&(d=d(n,i)),K(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}return null}function Id(e,t,n,r,i,a,o){var s=!1,c;K(i)?(o=a,a=i,i=null):J(i)&&(a=i.cb,o=i.during,s=i.isFrom,c=i.removeOpt,i=i.dataIndex);var l=e===`leave`;l||t.stopAnimation(`leave`);var u=Fd(e,r,i,l?c||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function Ld(e,t,n,r,i,a){Id(`update`,e,t,n,r,i,a)}function Rd(e,t,n,r,i,a){Id(`enter`,e,t,n,r,i,a)}function zd(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if(e.animators[t].scope===`leave`)return!0;return!1}function Bd(e,t,n,r,i,a){zd(e)||Id(`leave`,e,t,n,r,i,a)}function Vd(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),Bd(e,{style:{opacity:0}},t,n,r)}function Hd(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||Vd(e,t,n,r)}):Vd(e,t,n,r)}function Ud(e){Pd(e).oldStyle=e.style}var Wd=ne({Arc:()=>Sd,BezierCurve:()=>bd,BoundingRect:()=>Cn,Circle:()=>Bu,CompoundPath:()=>Cd,Ellipse:()=>Hu,Group:()=>wa,Image:()=>Rc,IncrementalDisplayable:()=>Nd,Line:()=>gd,LinearGradient:()=>Td,OrientedBoundingRect:()=>jd,Path:()=>Mc,Point:()=>Z,Polygon:()=>dd,Polyline:()=>pd,RadialGradient:()=>Ed,Rect:()=>Kc,Ring:()=>sd,Sector:()=>ad,Text:()=>Xc,applyTransform:()=>lf,clipPointsByRect:()=>mf,clipRectByRect:()=>hf,createIcon:()=>gf,extendPath:()=>Xd,extendShape:()=>Jd,getShapeClass:()=>Qd,getTransform:()=>cf,groupTransition:()=>pf,initProps:()=>Rd,isElementRemoved:()=>zd,lineLineIntersect:()=>vf,linePolygonIntersect:()=>_f,makeImage:()=>ef,makePath:()=>$d,mergePath:()=>nf,registerShape:()=>Zd,removeElement:()=>Bd,removeElementWithFadeOut:()=>Hd,resizePath:()=>rf,setTooltipConfig:()=>xf,subPixelOptimize:()=>sf,subPixelOptimizeLine:()=>af,subPixelOptimizeRect:()=>of,transformDirection:()=>uf,traverseElements:()=>Cf,updateProps:()=>Ld}),Gd=Math.max,Kd=Math.min,qd={};function Jd(e){return Mc.extend(e)}var Yd=Lu;function Xd(e,t){return Yd(e,t)}function Zd(e,t){qd[e]=t}function Qd(e){if(qd.hasOwnProperty(e))return qd[e]}function $d(e,t,n,r){var i=Iu(e,t);return n&&(r===`center`&&(n=tf(n,i.getBoundingRect())),rf(i,n)),i}function ef(e,t,n){var r=new Rc({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(tf(t,i))}}});return r}function tf(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var nf=Ru;function rf(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function af(e,t){return Vc(e,e,{lineWidth:t}),e}function of(e){return Hc(e.shape,e.shape,e.style),e}var sf=Uc;function cf(e,t){for(var n=cn([]);e&&e!==t;)un(n,e.getLocalTransform(),n),e=e.parent;return n}function lf(e,t,n){return t&&!Ne(t)&&(t=$i.getLocalTransform(t)),n&&(t=mn([],t)),Tt([],e,t)}function uf(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=lf(a,t,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function df(e){return!e.isGroup}function ff(e){return e.shape!=null}function pf(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){df(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return ff(e)&&(t.shape=V({},e.shape)),t}var a=r(e);t.traverse(function(e){if(df(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),Ld(e,r,n,$(e).dataIndex)}}})}function mf(e,t){return U(e,function(e){var n=e[0];n=Gd(n,t.x),n=Kd(n,t.x+t.width);var r=e[1];return r=Gd(r,t.y),r=Kd(r,t.y+t.height),[n,r]})}function hf(e,t){var n=Gd(e.x,t.x),r=Kd(e.x+e.width,t.x+t.width),i=Gd(e.y,t.y),a=Kd(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function gf(e,t,n){var r=V({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),ke(i,n),new Rc(r)):$d(e.replace(`path://`,``),r,n,`center`)}function _f(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(vf(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function vf(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=yf(u,d,c,l);if(bf(f))return!1;var p=e-i,m=t-a,h=yf(p,m,c,l)/f;if(h<0||h>1)return!1;var g=yf(p,m,u,d)/f;return!(g<0||g>1)}function yf(e,t,n,r){return e*r-n*t}function bf(e){return e<=1e-6&&e>=-1e-6}function xf(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=q(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&H(Ie(c),function(e){lt(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=$(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:ke({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Sf(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Cf(e,t){if(e){if(G(e))for(var n=0;n<e.length;n++)Sf(e[n],t);else Sf(e,t)}}Zd(`circle`,Bu),Zd(`ellipse`,Hu),Zd(`sector`,ad),Zd(`ring`,sd),Zd(`polygon`,dd),Zd(`polyline`,pd),Zd(`rect`,Kc),Zd(`line`,gd),Zd(`bezierCurve`,bd),Zd(`arc`,Sd);var wf={};function Tf(e,t){for(var n=0;n<hl.length;n++){var r=hl[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function Ef(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(i,`normal`,null,a,o&&o.get(`formatter`),n==null?null:{interpolatedValue:n})),s??=K(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<hl.length;l++){var u=hl[l],d=t[u];c[u]=Y(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function Df(e,t,n,r){n||=wf;for(var i=e instanceof Xc,a=!1,o=0;o<gl.length;o++){var s=t[gl[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new Xc,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=Ef(n,t),u=t.normal,d=!!u.getShallow(`show`),f=kf(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(Af(u,n,!1));for(var o=0;o<hl.length;o++){var p=hl[o],s=t[p];if(s){var m=c.ensureState(p),h=!!Y(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=kf(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=Af(s,n,!0)}}}c.silent=!!u.getShallow(`silent`),c.style.x!=null&&(f.x=c.style.x),c.style.y!=null&&(f.y=c.style.y),c.ignore=!d,c.useStyle(f),c.dirty(),n.enableTextSetter&&(Rf(c).setLabelText=function(e){var r=Ef(n,t,e);Tf(c,r)})}else c&&(c.ignore=!0);e.dirty()}function Of(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<hl.length;r++){var i=hl[r];n[i]=e.getModel([i,t])}return n}function kf(e,t,n,r,i){var a={};return jf(a,e,n,r,i),t&&V(a,t),a}function Af(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=Y(e.getShallow(`distance`),n?null:5),s=e.getShallow(`offset`);return i=e.getShallow(`position`)||(n?null:`inside`),i===`outside`&&(i=t.defaultOutsidePosition||`top`),i!=null&&(r.position=i),s!=null&&(r.offset=s),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),r.outsideFill=e.get(`color`)===`inherit`?t.inheritColor||null:`auto`,r}function jf(e,t,n,r,i){n||=wf;var a=t.ecModel,o=a&&a.option.textStyle,s=Mf(t),c;if(s){for(var l in c={},s)if(s.hasOwnProperty(l)){var u=t.getModel([`rich`,l]);If(c[l]={},u,o,n,r,i,!1,!0)}}c&&(e.rich=c);var d=t.get(`overflow`);d&&(e.overflow=d);var f=t.get(`minMargin`);f!=null&&(e.margin=f),If(e,t,o,n,r,i,!0,!1)}function Mf(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||wf).rich;if(n){t||={};for(var r=Ie(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}var Nf=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],Pf=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],Ff=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function If(e,t,n,r,i,a,o,s){n=!i&&n||wf;var c=r&&r.inheritColor,l=t.getShallow(`color`),u=t.getShallow(`textBorderColor`),d=Y(t.getShallow(`opacity`),n.opacity);(l===`inherit`||l===`auto`)&&(l=c||null),(u===`inherit`||u===`auto`)&&(u=c||null),a||(l||=n.color,u||=n.textBorderColor),l!=null&&(e.fill=l),u!=null&&(e.stroke=u);var f=Y(t.getShallow(`textBorderWidth`),n.textBorderWidth);f!=null&&(e.lineWidth=f);var p=Y(t.getShallow(`textBorderType`),n.textBorderType);p!=null&&(e.lineDash=p);var m=Y(t.getShallow(`textBorderDashOffset`),n.textBorderDashOffset);m!=null&&(e.lineDashOffset=m),!i&&d==null&&!s&&(d=r&&r.defaultOpacity),d!=null&&(e.opacity=d),!i&&!a&&e.fill==null&&r.inheritColor&&(e.fill=r.inheritColor);for(var h=0;h<Nf.length;h++){var g=Nf[h],_=Y(t.getShallow(g),n[g]);_!=null&&(e[g]=_)}for(var h=0;h<Pf.length;h++){var g=Pf[h],_=t.getShallow(g);_!=null&&(e[g]=_)}if(e.verticalAlign==null){var v=t.getShallow(`baseline`);v!=null&&(e.verticalAlign=v)}if(!o||!r.disableBox){for(var h=0;h<Ff.length;h++){var g=Ff[h],_=t.getShallow(g);_!=null&&(e[g]=_)}var y=t.getShallow(`borderType`);y!=null&&(e.borderDash=y),(e.backgroundColor===`auto`||e.backgroundColor===`inherit`)&&c&&(e.backgroundColor=c),(e.borderColor===`auto`||e.borderColor===`inherit`)&&c&&(e.borderColor=c)}}function Lf(e,t){var n=t&&t.getModel(`textStyle`);return Qe([e.fontStyle||n&&n.getShallow(`fontStyle`)||``,e.fontWeight||n&&n.getShallow(`fontWeight`)||``,(e.fontSize||n&&n.getShallow(`fontSize`)||12)+`px`,e.fontFamily||n&&n.getShallow(`fontFamily`)||`sans-serif`].join(` `))}var Rf=Eo();function zf(e,t,n,r){if(e){var i=Rf(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get(`valueAnimation`),i.valueAnimation&&(i.precision=a.get(`precision`),i.defaultInterpolatedText=r,i.statesModels=t)}}function Bf(e,t,n,r,i){var a=Rf(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=Y(a.interpolatedValue,a.prevValue),c=a.value;function l(r){var l=Io(n,a.precision,s,c,r);a.interpolatedValue=r===1?null:l,Tf(e,Ef({labelDataIndex:t,labelFetcher:i,defaultText:o?o(l):l+``},a.statesModels,l))}e.percent=0,(a.prevValue==null?Rd:Ld)(e,{percent:1},r,t,null,l)}var Vf=[`textStyle`,`color`],Hf=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],Uf=new Xc,Wf=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(Vf):null)},e.prototype.getFont=function(){return Lf({fontStyle:this.getShallow(`fontStyle`),fontWeight:this.getShallow(`fontWeight`),fontSize:this.getShallow(`fontSize`),fontFamily:this.getShallow(`fontFamily`)},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow(`verticalAlign`)||this.getShallow(`baseline`)},n=0;n<Hf.length;n++)t[Hf[n]]=this.getShallow(Hf[n]);return Uf.useStyle(t),Uf.update(),Uf.getBoundingRect()},e}(),Gf=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],Kf=Zo(Gf),qf=function(){function e(){}return e.prototype.getLineStyle=function(e){return Kf(this,e)},e}(),Jf=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],Yf=Zo(Jf),Xf=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return Yf(this,e,t)},e}(),Zf=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){B(this.option,e,!0)},e.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=n==null?n:n[e];if(r==null&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return n||=this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(z(this.option))},e.prototype.parsePath=function(e){return typeof e==`string`?e.split(`.`):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!I.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&!(e[r]&&(n=n&&typeof n==`object`?n[e[r]]:null,n==null));r++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();Uo(Zf),qo(Zf),Me(Zf,qf),Me(Zf,Xf),Me(Zf,$o),Me(Zf,Wf);var Qf=Math.round(Math.random()*10);function $f(e){return[e||``,Qf++].join(`_`)}function ep(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Bo(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=Bo(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function tp(e,t){e.topologicalTravel=function(e,t,r,i){if(!e.length)return;var a=n(t),o=a.graph,s=a.noEntryList,c={};for(H(e,function(e){c[e]=!0});s.length;){var l=s.pop(),u=o[l],d=!!c[l];d&&(r.call(i,l,u.originalDeps.slice()),delete c[l]),H(u.successor,d?p:f)}H(c,function(){throw Error(``)});function f(e){o[e].entryCount--,o[e].entryCount===0&&s.push(e)}function p(e){c[e]=!0,f(e)}};function n(e){var n={},a=[];return H(e,function(o){var s=r(n,o),c=i(s.originalDeps=t(o),e);s.entryCount=c.length,s.entryCount===0&&a.push(o),H(c,function(e){Ae(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);Ae(t.successor,e)<0&&t.successor.push(o)})}),{graph:n,noEntryList:a}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function i(e,t){var n=[];return H(e,function(e){Ae(t,e)>=0&&n.push(e)}),n}}function np(e,t){return B(B({},e,!0),t,!0)}var rp={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:`. `}}}},ip={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:``}}}},ap=`ZH`,op=`EN`,sp=op,cp={},lp={},up=I.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||sp).toUpperCase().indexOf(ap)>-1?ap:sp}():sp;function dp(e,t){e=e.toUpperCase(),lp[e]=new Zf(t),cp[e]=t}function fp(e){if(q(e)){var t=cp[e.toUpperCase()]||{};return e===ap||e===op?z(t):B(z(t),z(cp[sp]),!1)}return B(z(e),z(cp[sp]),!1)}function pp(e){return lp[e]}function mp(){return lp[sp]}dp(op,rp),dp(ap,ip);var hp=1e3,gp=hp*60,_p=gp*60,vp=_p*24,yp=vp*365,bp={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}`},xp=`{yyyy}-{MM}-{dd}`,Sp={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:xp,hour:xp+` `+bp.hour,minute:xp+` `+bp.minute,second:xp+` `+bp.second,millisecond:bp.none},Cp=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],wp=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function Tp(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function Ep(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 Dp(e){return e===Ep(e)}function Op(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function kp(e,t,n,r){var i=Ka(e),a=i[Np(n)](),o=i[Pp(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[Fp(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[Ip(n)](),d=(u-1)%12+1,f=i[Lp(n)](),p=i[Rp(n)](),m=i[zp(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof Zf?r:pp(r||up)||mp()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,Tp(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Tp(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,Tp(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,Tp(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,Tp(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,Tp(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,Tp(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,Tp(m,3)).replace(/{S}/g,m+``)}function Ap(e,t,n,r,i){var a=null;if(q(n))a=n;else if(K(n))a=n(e.value,t,{level:e.level});else{var o=V({},bp);if(e.level>0)for(var s=0;s<Cp.length;++s)o[Cp[s]]=`{primary|`+o[Cp[s]]+`}`;var c=n?n.inherit===!1?n:ke(n,o):o,l=jp(e.value,i);if(c[l])a=c[l];else if(c.inherit){for(var s=wp.indexOf(l)-1;s>=0;--s)if(c[l]){a=c[l];break}a||=o.none}if(G(a)){var u=e.level==null?0:e.level>=0?e.level:a.length+e.level;u=Math.min(u,a.length-1),a=a[u]}}return kp(new Date(e.value),a,i,r)}function jp(e,t){var n=Ka(e),r=n[Pp(t)]()+1,i=n[Fp(t)](),a=n[Ip(t)](),o=n[Lp(t)](),s=n[Rp(t)](),c=n[zp(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function Mp(e,t,n){var r=Be(e)?Ka(e):e;switch(t||=jp(e,n),t){case`year`:return r[Np(n)]();case`half-year`:return+(r[Pp(n)]()>=6);case`quarter`:return Math.floor((r[Pp(n)]()+1)/4);case`month`:return r[Pp(n)]();case`day`:return r[Fp(n)]();case`half-day`:return r[Ip(n)]()/24;case`hour`:return r[Ip(n)]();case`minute`:return r[Lp(n)]();case`second`:return r[Rp(n)]();case`millisecond`:return r[zp(n)]()}}function Np(e){return e?`getUTCFullYear`:`getFullYear`}function Pp(e){return e?`getUTCMonth`:`getMonth`}function Fp(e){return e?`getUTCDate`:`getDate`}function Ip(e){return e?`getUTCHours`:`getHours`}function Lp(e){return e?`getUTCMinutes`:`getMinutes`}function Rp(e){return e?`getUTCSeconds`:`getSeconds`}function zp(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function Bp(e){return e?`setUTCFullYear`:`setFullYear`}function Vp(e){return e?`setUTCMonth`:`setMonth`}function Hp(e){return e?`setUTCDate`:`setDate`}function Up(e){return e?`setUTCHours`:`setHours`}function Wp(e){return e?`setUTCMinutes`:`setMinutes`}function Gp(e){return e?`setUTCSeconds`:`setSeconds`}function Kp(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function qp(e){if(!Za(e))return q(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function Jp(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Yp=Xe;function Xp(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&Qe(e)?e:`-`}function a(e){return!!(e!=null&&!isNaN(e)&&isFinite(e))}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?Ka(e):e;if(!isNaN(+c))return kp(c,r,n);if(s)return`-`}if(t===`ordinal`)return ze(e)?i(e):Be(e)&&a(e)?e+``:`-`;var l=Xa(e);return a(l)?qp(l):ze(e)?i(e):typeof e==`boolean`?e+``:`-`}var Zp=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],Qp=function(e,t){return`{`+e+(t??``)+`}`};function $p(e,t,n){G(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=Zp[a];e=e.replace(Qp(o),Qp(o,0))}for(var s=0;s<r;s++)for(var c=0;c<i.length;c++){var l=t[s][i[c]];e=e.replace(Qp(Zp[c],s),n?Ut(l):l)}return e}function em(e,t){var n=q(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||`html`;return r?a===`html`?i===`subItem`?`<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:`+Ut(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+Ut(r)+`;`+(t||``)+`"></span>`:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function tm(e,t){return t||=`transparent`,q(e)?e:J(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function nm(e,t){if(t===`_blank`||t===`blank`){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var rm=H,im=[`left`,`right`,`top`,`bottom`,`width`,`height`],am=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function om(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var sm=om;Re(om,`vertical`),Re(om,`horizontal`);function cm(e,t,n){n=Yp(n||0);var r=t.width,i=t.height,a=Q(e.left,r),o=Q(e.top,i),s=Q(e.right,r),c=Q(e.bottom,i),l=Q(e.width,r),u=Q(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new Cn(a+n[3],o+n[0],l,u);return m.margin=n,m}function lm(e){var t=e.layoutMode||e.constructor.layoutMode;return J(t)?t:t?{type:t}:null}function um(e,t,n){var r=n&&n.ignoreSize;!G(r)&&(r=[r,r]);var i=o(am[0],0),a=o(am[1],1);l(am[0],e,i),l(am[1],e,a);function o(n,i){var a={},o=0,l={},u=0,d=2;if(rm(n,function(t){l[t]=e[t]}),rm(n,function(e){s(t,e)&&(a[e]=l[e]=t[e]),c(a,e)&&o++,c(l,e)&&u++}),r[i])return c(t,n[1])?l[n[2]]=null:c(t,n[2])&&(l[n[1]]=null),l;if(u===d||!o)return l;if(o>=d)return a;for(var f=0;f<n.length;f++){var p=n[f];if(!s(a,p)&&s(e,p)){a[p]=e[p];break}}return a}function s(e,t){return e.hasOwnProperty(t)}function c(e,t){return e[t]!=null&&e[t]!==`auto`}function l(e,t,n){rm(e,function(e){t[e]=n[e]})}}function dm(e){return fm({},e)}function fm(e,t){return t&&e&&rm(im,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var pm=Eo(),mm=function(e){F(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=$f(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=lm(this),r=n?dm(e):{};B(e,t.getTheme().get(this.mainType)),B(e,this.getDefaultOption()),n&&um(e,r,n)},t.prototype.mergeOption=function(e,t){B(this.option,e,!0);var n=lm(this);n&&um(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Ho(e))return e.defaultOption;var t=pm(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=B(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return Mo(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get(`left`),top:e.get(`top`),right:e.get(`right`),bottom:e.get(`bottom`),width:e.get(`width`),height:e.get(`height`)}},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(Zf);Go(mm,Zf),Xo(mm),ep(mm),tp(mm,hm);function hm(e){var t=[];return H(mm.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=U(t,function(e){return Bo(e).main}),e!==`dataset`&&Ae(t,`dataset`)<=0&&t.unshift(`dataset`),t}var gm=``;typeof navigator<`u`&&(gm=navigator.platform||``);var _m=`rgba(0, 0, 0, 0.2)`,vm={darkMode:`auto`,colorBy:`series`,color:[`#5470c6`,`#91cc75`,`#fac858`,`#ee6666`,`#73c0de`,`#3ba272`,`#fc8452`,`#9a60b4`,`#ea7ccc`],gradientColor:[`#f6efa6`,`#d88273`,`#bf444c`],aria:{decal:{decals:[{color:_m,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:_m,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:_m,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:_m,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:_m,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:_m,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:gm.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},ym=X([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),bm=`original`,xm=`arrayRows`,Sm=`objectRows`,Cm=`keyedColumns`,wm=`typedArray`,Tm=`unknown`,Em=`column`,Dm={Must:1,Might:2,Not:3},Om=Eo();function km(e){Om(e).datasetMap=X()}function Am(e,t,n){var r={},i=Mm(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=Om(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),H(e,function(t,n){var i=J(t)?t:e[n]={name:t};i.type===`ordinal`&&u==null&&(u=n,d=m(i)),r[i.name]=[]});var f=c.get(l)||c.set(l,{categoryWayDim:d,valueWayDim:0});H(e,function(e,t){var n=e.name,i=m(e);if(u==null){var s=f.valueWayDim;p(r[n],s,i),p(o,s,i),f.valueWayDim+=i}else if(u===t)p(r[n],0,i),p(a,0,i);else{var s=f.categoryWayDim;p(r[n],s,i),p(o,s,i),f.categoryWayDim+=i}});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function jm(e,t,n){var r={};if(!Mm(e))return r;var i=t.sourceFormat,a=t.dimensionsDefine,o;(i===`objectRows`||i===`keyedColumns`)&&H(a,function(e,t){(J(e)?e.name:e)===`name`&&(o=t)});var s=function(){for(var e={},r={},s=[],c=0,l=Math.min(5,n);c<l;c++){var u=Fm(t.data,i,t.seriesLayoutBy,a,t.startIndex,c);s.push(u);var d=u===Dm.Not;if(d&&e.v==null&&c!==o&&(e.v=c),(e.n==null||e.n===e.v||!d&&s[e.n]===Dm.Not)&&(e.n=c),f(e)&&s[e.n]!==Dm.Not)return e;d||(u===Dm.Might&&r.v==null&&c!==o&&(r.v=c),(r.n==null||r.n===r.v)&&(r.n=c))}function f(e){return e.v!=null&&e.n!=null}return f(e)?e:f(r)?r:null}();if(s){r.value=[s.v];var c=o??s.n;r.itemName=[c],r.seriesName=[c]}return r}function Mm(e){if(!e.get(`data`,!0))return Mo(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},Ao).models[0]}function Nm(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:Mo(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},Ao).models}function Pm(e,t){return Fm(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Fm(e,t,n,r,i,a){var o,s=5;if(He(e))return Dm.Not;var c,l;if(r){var u=r[a];J(u)?(c=u.name,l=u.type):q(u)&&(c=u)}if(l!=null)return l===`ordinal`?Dm.Must:Dm.Not;if(t===`arrayRows`){var d=e;if(n===`row`){for(var f=d[a],p=0;p<(f||[]).length&&p<s;p++)if((o=b(f[i+p]))!=null)return o}else for(var p=0;p<d.length&&p<s;p++){var m=d[i+p];if(m&&(o=b(m[a]))!=null)return o}}else if(t===`objectRows`){var h=e;if(!c)return Dm.Not;for(var p=0;p<h.length&&p<s;p++){var g=h[p];if(g&&(o=b(g[c]))!=null)return o}}else if(t===`keyedColumns`){var _=e;if(!c)return Dm.Not;var f=_[c];if(!f||He(f))return Dm.Not;for(var p=0;p<f.length&&p<s;p++)if((o=b(f[p]))!=null)return o}else if(t===`original`)for(var v=e,p=0;p<v.length&&p<s;p++){var g=v[p],y=co(g);if(!G(y))return Dm.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=q(e);if(e!=null&&Number.isFinite(Number(e))&&e!==``)return t?Dm.Might:Dm.Not;if(t&&e!==`-`)return Dm.Must}return Dm.Not}var Im=X();function Lm(e,t,n){var r=Im.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var Rm=Eo();Eo();var zm=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=ao(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return Vm(this,Rm,r,i,e,t,n)},e.prototype.clearColorPalette=function(){Hm(this,Rm)},e}();function Bm(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function Vm(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:Bm(r,o);if(u||=n,!(!u||!u.length)){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function Hm(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Um,Wm,Gm,Km=`\0_ec_inner`,qm=1,Jm=function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(e,t,n,r,i,a){r||={},this.option=null,this._theme=new Zf(r),this._locale=new Zf(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=$m(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,$m(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);!this.option||e===`recreate`?Gm(this,i):(this.restoreData(),this._mergeOption(i,t)),n=!0}if((e===`timeline`||e===`media`)&&this.restoreData(),!e||e===`recreate`||e===`timeline`){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||e===`recreate`||e===`media`){var o=r.getMediaOption(this);o.length&&H(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=X(),s=t&&t.replaceMergeMainTypeMap;km(this),H(e,function(e,t){e!=null&&(mm.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?z(e):B(n[t],e,!0))}),s&&s.each(function(e,t){mm.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),mm.topologicalTravel(a,mm.getAllClassMainTypes(),c,this);function c(t){var a=Lm(this,t,ao(e[t])),o=r.get(t),c=uo(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);Co(c,t,mm),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f;H(c,function(e,n){var r=e.existing,i=e.newOption;if(!i)r&&(r.mergeOption({},this),r.optionUpdated({},!1));else{var a=t===`series`,o=mm.getClass(t,e.keyInfo.subType,!a);if(!o)return;if(t===`tooltip`){if(f)return;f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=V({componentIndex:n},e.keyInfo);r=new o(i,this,this,s),V(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}r?(l.push(r.option),u.push(r),d++):(l.push(void 0),u.push(void 0))},this),n[t]=l,r.set(t,u),i.set(t,d),t===`series`&&Um(this)}this._seriesIndices||Um(this)},t.prototype.getOption=function(){var e=z(this.option);return H(e,function(t,n){if(mm.hasClass(n)){for(var r=ao(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!So(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[Km],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n=e.index,r=e.id,i=e.name,a=this._componentsMap.get(t);if(!a||!a.length)return[];var o;return n==null?o=r==null?i==null?Fe(a,function(e){return!!e}):Zm(`name`,i,a):Zm(`id`,r,a):(o=[],H(ao(n),function(e){a[e]&&o.push(a[e])})),Qm(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(Qm(r?this.queryComponents(r):Fe(this._componentsMap.get(n),function(e){return!!e}),e));function i(e){var t=n+`Index`,r=n+`Id`,i=n+`Name`;return e&&(e[t]!=null||e[r]!=null||e[i]!=null)?{mainType:n,index:e[t],id:e[r],name:e[i]}:null}function a(t){return e.filter?Fe(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(K(e)){var i=t,a=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}})}else for(var o=q(e)?r.get(e):J(e)?this.findComponents(e):null,s=0;o&&s<o.length;s++){var c=o[s];c&&t.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=bo(e,null);return Fe(this._componentsMap.get(`series`),function(e){return!!e&&t!=null&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get(`series`)[e]},t.prototype.getSeriesByType=function(e){return Fe(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return Fe(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){Wm(this),H(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){H(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){Wm(this),H(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return H(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return Wm(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){Wm(this);var n=[];H(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=X(n)},t.prototype.restoreData=function(e){Um(this);var t=this._componentsMap,n=[];t.each(function(e,t){mm.hasClass(t)&&n.push(t)}),mm.topologicalTravel(n,mm.getAllClassMainTypes(),function(n){H(t.get(n),function(t){t&&(n!==`series`||!Ym(t,e))&&t.restoreData()})})},t.internalField=function(){Um=function(e){var t=e._seriesIndices=[];H(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=X(t)},Wm=function(e){},Gm=function(e,t){e.option={},e.option[Km]=qm,e._componentsMap=X({series:[]}),e._componentsCount=X();var n=t.aria;J(n)&&n.enabled==null&&(n.enabled=!0),Xm(t,e._theme.option),B(t,vm,!1),e._mergeOption(t,null)}}(),t}(Zf);function Ym(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function Xm(e,t){var n=e.color&&!e.colorLayer;H(t,function(t,r){r===`colorLayer`&&n||mm.hasClass(r)||(typeof t==`object`?e[r]=e[r]?B(e[r],t,!1):z(t):e[r]??(e[r]=t))})}function Zm(e,t,n){if(G(t)){var r=X();return H(t,function(e){e!=null&&bo(e,null)!=null&&r.set(e,!0)}),Fe(n,function(t){return t&&r.get(t[e])})}var i=bo(t,null);return Fe(n,function(t){return t&&i!=null&&t[e]===i})}function Qm(e,t){return t.hasOwnProperty(`subType`)?Fe(e,function(e){return e&&e.subType===t.subType}):e}function $m(e){var t=X();return e&&H(ao(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Me(Jm,zm);var eh=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],th=function(){function e(e){H(eh,function(t){this[t]=W(e[t],e)},this)}return e}(),nh={},rh=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];H(nh,function(r,i){var a=r.create(e,t);n=n.concat(a||[])}),this._coordinateSystems=n},e.prototype.update=function(e,t){H(this._coordinateSystems,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){nh[e]=t},e.get=function(e){return nh[e]},e}(),ih=/^(min|max)?(.+)$/,ah=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(H(ao(e.series),function(e){e&&e.data&&He(e.data)&&et(e.data)}),H(ao(e.dataset),function(e){e&&e.source&&He(e.source)&&et(e.source)})),e=z(e);var r=this._optionBackup,i=oh(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],z(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent(`timeline`);r&&(t=z(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],o=[];if(!r.length&&!i)return o;for(var s=0,c=r.length;s<c;s++)sh(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!lh(a,this._currentMediaIndices)&&(o=U(a,function(e){return z(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}();function oh(e,t,n){var r=[],i,a,o=e.baseOption,s=e.timeline,c=e.options,l=e.media,u=!!e.media,d=!!(c||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((d||u)&&(e.options=e.media=null),a=e),u&&G(l)&&H(l,function(e){e&&e.option&&(e.query?r.push(e):i||=e)}),f(a),H(c,function(e){return f(e)}),H(r,function(e){return f(e.option)});function f(e){H(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function sh(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return H(e,function(e,t){var n=t.match(ih);if(!(!n||!n[1]||!n[2])){var a=n[1];ch(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function ch(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function lh(e,t){return e.join(`,`)===t.join(`,`)}var uh=H,dh=J,fh=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function ph(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=fh.length;n<r;n++){var i=fh[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?B(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?B(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function mh(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,ke(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function hh(e){mh(e,`itemStyle`),mh(e,`lineStyle`),mh(e,`areaStyle`),mh(e,`label`),mh(e,`labelLine`),mh(e,`upperLabel`),mh(e,`edgeLabel`)}function gh(e,t){var n=dh(e)&&e[t],r=dh(n)&&n.textStyle;if(r)for(var i=0,a=so.length;i<a;i++){var o=so[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function _h(e){e&&(hh(e),gh(e,`label`),e.emphasis&&gh(e.emphasis,`label`))}function vh(e){if(dh(e)){ph(e),hh(e),gh(e,`label`),gh(e,`upperLabel`),gh(e,`edgeLabel`),e.emphasis&&(gh(e.emphasis,`label`),gh(e.emphasis,`upperLabel`),gh(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(ph(t),_h(t));var n=e.markLine;n&&(ph(n),_h(n));var r=e.markArea;r&&_h(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!He(a))for(var o=0;o<a.length;o++)_h(a[o]);H(e.categories,function(e){hh(e)})}if(i&&!He(i))for(var o=0;o<i.length;o++)_h(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)_h(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)G(c[o])?(_h(c[o][0]),_h(c[o][1])):_h(c[o]);e.type===`gauge`?(gh(e,`axisLabel`),gh(e,`title`),gh(e,`detail`)):e.type===`treemap`?(mh(e.breadcrumb,`itemStyle`),H(e.levels,function(e){hh(e)})):e.type===`tree`&&hh(e.leaves)}}function yh(e){return G(e)?e:e?[e]:[]}function bh(e){return(G(e)?e[0]:e)||{}}function xh(e,t){uh(yh(e.series),function(e){dh(e)&&vh(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),uh(n,function(t){uh(yh(e[t]),function(e){e&&(gh(e,`axisLabel`),gh(e.axisPointer,`label`))})}),uh(yh(e.parallel),function(e){var t=e&&e.parallelAxisDefault;gh(t,`axisLabel`),gh(t&&t.axisPointer,`label`)}),uh(yh(e.calendar),function(e){mh(e,`itemStyle`),gh(e,`dayLabel`),gh(e,`monthLabel`),gh(e,`yearLabel`)}),uh(yh(e.radar),function(e){gh(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name),e.nameGap!=null&&e.axisNameGap==null&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),uh(yh(e.geo),function(e){dh(e)&&(_h(e),uh(yh(e.regions),function(e){_h(e)}))}),uh(yh(e.timeline),function(e){_h(e),mh(e,`label`),mh(e,`itemStyle`),mh(e,`controlStyle`,!0);var t=e.data;G(t)&&H(t,function(e){J(e)&&(mh(e,`label`),mh(e,`itemStyle`))})}),uh(yh(e.toolbox),function(e){mh(e,`iconStyle`),uh(e.feature,function(e){mh(e,`iconStyle`)})}),gh(bh(e.axisPointer),`label`),gh(bh(e.tooltip).axisPointer,`label`)}function Sh(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function Ch(e,t,n,r){for(var i=t.split(`,`),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]??(a[o]={}),a=a[o];(r||a[i[s]]==null)&&(a[i[s]]=n)}function wh(e){e&&H(Th,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Th=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],Eh=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],Dh=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function Oh(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<Dh.length;n++){var r=Dh[n][1],i=Dh[n][0];t[r]!=null&&(t[i]=t[r])}}function kh(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function Ah(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function jh(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(e.emphasis.focus=`adjacency`))}function Mh(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&Mh(e[n].children,t)}function Nh(e,t){xh(e,t),e.series=ao(e.series),H(e.series,function(e){if(J(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise),kh(e.label);var n=e.data;if(n&&!He(n))for(var r=0;r<n.length;r++)kh(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=Sh(e,`pointer.color`);i!=null&&Ch(e,`itemStyle.color`,i)}else if(t===`bar`){Oh(e),Oh(e.backgroundStyle),Oh(e.emphasis);var n=e.data;if(n&&!He(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(Oh(n[r]),Oh(n[r]&&n[r].emphasis))}else if(t===`sunburst`){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),Ah(e),Mh(e.data,Ah)}else t===`graph`||t===`sankey`?jh(e):t===`map`&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&ke(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),wh(e)}}),e.dataRange&&(e.visualMap=e.dataRange),H(Eh,function(t){var n=e[t];n&&(G(n)||(n=[n]),H(n,function(e){wh(e)}))})}function Ph(e){var t=X();e.eachSeries(function(e){var n=e.get(`stack`);if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo(`stackResultDimension`),stackedOverDimension:i.getCalculationInfo(`stackedOverDimension`),stackedDimension:i.getCalculationInfo(`stackedDimension`),stackedByDimension:i.getCalculationInfo(`stackedByDimension`),isStackedByIndex:i.getCalculationInfo(`isStackedByIndex`),data:i,seriesModel:e};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;r.length&&i.setCalculationInfo(`stackedOnSeries`,r[r.length-1].seriesModel),r.push(a)}}),t.each(Fh)}function Fh(e){H(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=Ha(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var Ih=function(){function e(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];r.type==null&&Pm(this,n)===Dm.Must&&(r.type=`ordinal`)}}return e}();function Lh(e){return e instanceof Ih}function Rh(e,t,n){n||=Vh(e);var r=t.seriesLayoutBy,i=Hh(e,n,r,t.sourceHeader,t.dimensions);return new Ih({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:z(t)})}function zh(e){return new Ih({data:e,sourceFormat:He(e)?wm:bm})}function Bh(e){return new Ih({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:z(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function Vh(e){var t=Tm;if(He(e))t=wm;else if(G(e)){e.length===0&&(t=xm);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(G(i)||He(i)){t=xm;break}if(J(i)){t=Sm;break}}}}else if(J(e)){for(var a in e)if(lt(e,a)&&Ne(e[a])){t=Cm;break}}return t}function Hh(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:Wh(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?Gh(function(e){e!=null&&e!==`-`&&(q(e)?o??=1:o=0)},n,s,10):o=Be(r)?r:+!!r,!i&&o===1&&(i=[],Gh(function(e,t){i[t]=e==null?``:e+``},n,s,1/0)),a=i?i.length:n===`row`?s.length:s[0]?s[0].length:null}else if(t===`objectRows`)i||=Uh(e);else if(t===`keyedColumns`)i||(i=[],H(e,function(e,t){i.push(t)}));else if(t===`original`){var c=co(e[0]);a=G(c)&&c.length||1}return{startIndex:o,dimensionsDefine:Wh(i),dimensionsDetectedCount:a}}function Uh(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return Ie(n)}function Wh(e){if(e){var t=X();return U(e,function(e,n){e=J(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+=``,r.displayName??=r.name;var i=t.get(r.name);return i?r.name+=`-`+i.count++:t.set(r.name,{count:1}),r})}}function Gh(e,t,n,r){if(t===`row`)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)e(a[i],i)}function Kh(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var qh,Jh,Yh,Xh,Zh,Qh=function(){function e(e,t){var n=Lh(e)?e:zh(e);this._source=n;var r=this._data=n.data;n.sourceFormat===`typedArray`&&(this._offset=0,this._dimSize=t,this._data=r),Zh(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;Zh=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=Xh[cg(o,s)];V(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=W(tg(o,s),null,i,c,l),e.count=W(ig(o,s),null,i,c,l))};var t=function(e,t){e-=this._offset,t||=[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],c=s[0]==null?1/0:s[0],l=s[1]==null?-1/0:s[1],u=t-e,d=n[o],f=0;f<u;f++){var p=i[f*a+o];d[e+f]=p,p<c&&(c=p),p>l&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};Xh=(e={},e[xm+`_`+Em]={pure:!0,appendData:i},e[xm+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[Sm]={pure:!0,appendData:i},e[Cm]={pure:!0,appendData:function(e){var t=this._data;H(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[bm]={appendData:i},e[wm]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}}(),e}(),$h=function(e,t,n,r){return e[r]},eg=(qh={},qh[xm+`_`+Em]=function(e,t,n,r){return e[r+t]},qh[xm+`_row`]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var c=o[s];a[s]=c?c[r]:null}return a},qh[Sm]=$h,qh[Cm]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=e[n[o].name];a[o]=s?s[r]:null}return a},qh[bm]=$h,qh);function tg(e,t){return eg[cg(e,t)]}var ng=function(e,t,n){return e.length},rg=(Jh={},Jh[xm+`_`+Em]=function(e,t,n){return Math.max(0,e.length-t)},Jh[xm+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},Jh[Sm]=ng,Jh[Cm]=function(e,t,n){var r=e[n[0].name];return r?r.length:0},Jh[bm]=ng,Jh);function ig(e,t){return rg[cg(e,t)]}var ag=function(e,t,n){return e[t]},og=(Yh={},Yh[xm]=ag,Yh[Sm]=function(e,t,n){return e[n]},Yh[Cm]=ag,Yh[bm]=function(e,t,n){var r=co(e);return r instanceof Array?r[t]:r},Yh[wm]=ag,Yh);function sg(e){return og[e]}function cg(e,t){return e===`arrayRows`?e+`_`+t:e}function lg(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return sg(a)(r,o,s)}var c=r;return a===`original`&&(c=co(r)),c}}}var ug=/\{@(.+?)\}/g,dg=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&G(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),K(i))return s.status=t,s.dimensionIndex=r,i(s);if(q(i))return $p(i,s).replace(ug,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=lg(o,e,i);if(a&&G(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return lg(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function fg(e){var t,n;return J(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function pg(e){return new mg(e)}var mg=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(this._dueEnd=t?t._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f<p)){var m=this._progress;if(G(m))for(var h=0;h<m.length;h++)this._doProgress(m[h],f,p,s,c);else this._doProgress(m,f,p,s,c)}this._dueIndex=p;var g=this._settedOutputEnd==null?p:this._settedOutputEnd;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd==null?this._dueEnd:this._settedOutputEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){hg.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:hg.next},this.context)},e.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),G(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||=(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),hg=function(){var e,t,n,r,i,a={reset:function(c,l,u,d){t=c,e=l,n=u,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}();function gg(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!Be(e)&&e!=null&&e!==`-`&&(e=+Ka(e)),e==null||e===``?NaN:Number(e))}X({number:function(e){return parseFloat(e)},time:function(e){return+Ka(e)},trim:function(e){return q(e)?Qe(e):e}});var _g={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}};(function(){function e(e,t){Be(t)||to(``),this._opFn=_g[e],this._rvalFloat=Xa(t)}return e.prototype.evaluate=function(e){return Be(e)?this._opFn(e,this._rvalFloat):this._opFn(Xa(e),this._rvalFloat)},e})();var vg=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=Be(e)?e:Xa(e),r=Be(t)?t:Xa(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=q(e),s=q(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}();(function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Xa(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=Xa(e)===this._rvalFloat)}return this._isEQ?t:!t},e})();var yg=function(){function e(){}return e.prototype.getRawData=function(){throw Error(`not supported`)},e.prototype.getRawDataItem=function(e){throw Error(`not supported`)},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return gg(e,t)},e}();function bg(e,t){var n=new yg,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==`column`&&to(``);var o=[],s={},c=e.dimensionsDefine;if(c)H(c,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),n!=null&&(lt(s,n)&&to(``),s[n]=r)});else for(var l=0;l<e.dimensionsDetectedCount;l++)o.push({index:l});var u=tg(i,Em);t.__isBuiltIn&&(n.getRawDataItem=function(e){return u(r,a,o,e)},n.getRawData=W(xg,null,e)),n.cloneRawData=W(Sg,null,e),n.count=W(ig(i,Em),null,r,a,o);var d=sg(i);n.retrieveValue=function(e,t){return f(u(r,a,o,e),t)};var f=n.retrieveValueFromItem=function(e,t){if(e!=null){var n=o[t];if(n)return d(e,t,n.name)}};return n.getDimensionInfo=W(Cg,null,o,s),n.cloneAllDimensionInfo=W(wg,null,o),n}function xg(e){var t=e.sourceFormat;return kg(t)||to(``),e.data}function Sg(e){var t=e.sourceFormat,n=e.data;if(kg(t)||to(``),t===`arrayRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}if(t===`objectRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(V({},n[i]));return r}}function Cg(e,t,n){if(n!=null){if(Be(n)||!isNaN(n)&&!lt(t,n))return e[n];if(lt(t,n))return t[n]}}function wg(e){return z(e)}var Tg=X();function Eg(e){e=z(e);var t=e.type,n=``;t||to(n);var r=t.split(`:`);r.length!==2&&to(n);var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,Tg.set(t,e)}function Dg(e,t,n){var r=ao(e),i=r.length;i||to(``);for(var a=0,o=i;a<o;a++){var s=r[a];t=Og(s,t,n,i===1?null:a),a!==o-1&&(t.length=Math.max(t.length,1))}return t}function Og(e,t,n,r){var i=``;t.length||to(i),J(e)||to(i);var a=e.type,o=Tg.get(a);o||to(i);var s=U(t,function(e){return bg(e,o)});return U(ao(o.transform({upstream:s[0],upstreamList:s,config:z(e.config)})),function(e,n){var r=``;J(e)||to(r),e.data||to(r),kg(Vh(e.data))||to(r);var i,a=t[0];if(a&&n===0&&!e.dimensions){var o=a.startIndex;o&&(e.data=a.data.slice(0,o).concat(e.data)),i={seriesLayoutBy:Em,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:Em,sourceHeader:0,dimensions:e.dimensions};return Rh(e.data,i,null)})}function kg(e){return e===`arrayRows`||e===`objectRows`}var Ag=`undefined`,jg=typeof Uint32Array===Ag?Array:Uint32Array,Mg=typeof Uint16Array===Ag?Array:Uint16Array,Ng=typeof Int32Array===Ag?Array:Int32Array,Pg=typeof Float64Array===Ag?Array:Float64Array,Fg={float:Pg,int:Ng,ordinal:Array,number:Array,time:Pg},Ig;function Lg(e){return e>65535?jg:Mg}function Rg(){return[1/0,-1/0]}function zg(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Bg(e,t,n,r,i){var a=Fg[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;l<s;l++)c[l]=o[l];e[t]=c}}else e[t]=new a(r)}var Vg=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=X()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=Ig[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],Kh(r),this._dimensions=U(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(i!=null){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new Fg[t||`float`](this._rawCount),this._rawExtent[i]=Rg(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;a===0&&(i[e]=Rg());for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type=`ordinal`},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),c=0;c<i;c++){var l=r[c];Bg(n,c,l.type,s,!0)}for(var u=[],d=o;d<s;d++)for(var f=d-o,p=0;p<i;p++){var l=r[p],m=Ig.arrayRows.call(this,e[f]||u,l.property,f,p);n[p][d]=m;var h=a[p];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=U(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=Rg()),Bg(i,l,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],f=e;f<t;f++){d=r.getItem(f,d);for(var p=0;p<o;p++){var m=i[p],h=this._dimValueGetter(d,c[p],f,p);m[f]=h;var g=s[p];h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;for(var i=0,a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var a=this.get(e,r);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)});var n=t.sort(function(e,t){return e-t}),r=this.count();return r===0?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else if(t[a]>e)i=a-1;else return a}return-1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._chunks[e],i=[];if(!r)return i;n??=1/0;for(var a=1/0,o=-1,s=0,c=0,l=this.count();c<l;c++){var u=t-r[this.getRawIndex(c)],d=Math.abs(u);d<=n&&((d<a||d===a&&u>=0&&o<0)&&(a=d,o=u,s=0),u===o&&(i[s++]=c))}return i.length=s,i},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{var n=Lg(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(Lg(n._rawCount))(r),a=[],o=e.length,s=0,c=e[0],l=n._chunks,u=0;u<r;u++){var d=void 0,f=n.getRawIndex(u);if(o===0)d=t(u);else if(o===1){var p=l[c][f];d=t(p,u)}else{for(var m=0;m<o;m++)a[m]=l[e[m]][f];a[m]=u,d=t.apply(null,a)}d&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=Ie(e),i=r.length;if(!i)return this;var a=t.count(),o=new(Lg(t._rawCount))(a),s=0,c=r[0],l=e[c][0],u=e[c][1],d=t._chunks,f=!1;if(!t._indices){var p=0;if(i===1){for(var m=d[r[0]],h=0;h<n;h++){var g=m[h];(g>=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h<n;h++){var g=m[h],b=_[h];(g>=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f){if(i===1)for(var h=0;h<a;h++){var x=t.getRawIndex(h),g=d[r[0]][x];(g>=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;h<a;h++){for(var S=!0,x=t.getRawIndex(h),C=0;C<i;C++){var w=r[C],g=d[w][x];(g<e[w][0]||g>e[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=Rg();for(var u=0;u<o;u++){for(var d=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=u;var p=n&&n.apply(null,s);if(p!=null){typeof p!=`object`&&(i[0]=p,p=i);for(var l=0;l<p.length;l++){var m=t[l],h=p[l],g=c[m],_=r[m];_&&(_[d]=h),h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(Lg(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;f<i-1;f+=o){for(var p=Math.min(f+o,i-1),m=Math.min(f+o*2,i),h=(m+p)/2,g=0,_=p;_<m;_++){var v=this.getRawIndex(_),y=r[v];isNaN(y)||(g+=y)}g/=m-p;var b=f,x=Math.min(f+o,i),S=f-1,C=r[s];c=-1,u=b;for(var w=-1,T=0,_=b;_<x;_++){var v=this.getRawIndex(_),y=r[v];if(isNaN(y)){T++,w<0&&(w=v);continue}l=Math.abs((S-h)*(y-C)-(S-_)*(g-C)),l>c&&(c=l,u=v)}T>0&&T<x-b&&(d[a++]=Math.min(w,u),u=Math.max(w,u)),d[a++]=u,s=u}return d[a++]=this.getRawIndex(i-1),n._count=a,n._indices=d,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(Lg(this._rawCount))(Math.ceil(o/i)*2),c=0,l=0;l<o;l+=i){var u=l,d=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],m=i;l+i>o&&(m=o-l);for(var h=0;h<m;h++){var g=a[this.getRawIndex(l+h)];g<d&&(d=g,u=l+h),g>p&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);u<f?(s[c++]=_,s[c++]=v):(s[c++]=v,s[c++]=_)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=Rg(),d=new(Lg(this._rawCount))(Math.ceil(l/s)),f=0,p=0;p<l;p+=s){s>l-p&&(s=l-p,o.length=s);for(var m=0;m<s;m++){var h=this.getRawIndex(p+m);o[m]=c[h]}var g=n(o),_=this.getRawIndex(Math.min(p+r(o,g)||0,l-1));c[_]=g,g<u[0]&&(u[0]=g),g>u[1]&&(u[1]=g),d[f++]=_}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,c=[];s<n;s++)c[s]=r[e[s]][o];c[s]=i,t.apply(null,c)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=Rg();if(!t)return n;var r=this.count(),i=!this._indices,a;if(i)return this._rawExtent[e].slice();if(a=this._extent[e],a)return a.slice();a=n;for(var o=a[0],s=a[1],c=0;c<r;c++){var l=t[this.getRawIndex(c)];l<o&&(o=l),l>s&&(s=l)}return a=[o,s],this._extent[e]=a,a},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&Pe(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?zg(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=z(this._extent),e._rawExtent=z(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return gg(e[r],this._dimensions[r])}Ig={arrayRows:e,objectRows:function(e,t,n,r){return gg(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return gg(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),Hg=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,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 e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(Ug(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=He(o)?wm:bm,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=Y(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=Y(u.sourceHeader,d.sourceHeader),m=Y(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[Rh(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[Rh(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&Wg(``);var i,a=[],o=[];return H(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&Wg(``),a.push(t),o.push(e._getVersionSign())}),n?i=Dg(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[Bh(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e||=0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=0,i=this._storeList,a=i[r];a||=i[r]={};var o=a[n];if(!o){var s=this._getUpstreamSourceManagers()[0];Ug(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new Vg,o.initData(new Qh(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Ug(e)){var t=Mm(e);return t?[t.getSourceManager()]:[]}return U(Nm(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(Ug(e))t=e.get(`seriesLayoutBy`,!0),n=e.get(`sourceHeader`,!0),r=e.get(`dimensions`,!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get(`seriesLayoutBy`,!0),n=i.get(`sourceHeader`,!0),r=i.get(`dimensions`,!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:r}},e}();function Ug(e){return e.mainType===`series`}function Wg(e){throw Error(e)}var Gg=`line-height:1`;function Kg(e){var t=e.lineHeight;return t==null?Gg:`line-height:`+Ut(t+``)+`px`}function qg(e,t){var n=e.color||`#6e7079`,r=e.fontSize||12,i=e.fontWeight||`400`,a=e.color||`#464646`,o=e.fontSize||14,s=e.fontWeight||`900`;return t===`html`?{nameStyle:`font-size:`+Ut(r+``)+`px;color:`+Ut(n)+`;font-weight:`+Ut(i+``),valueStyle:`font-size:`+Ut(o+``)+`px;color:`+Ut(a)+`;font-weight:`+Ut(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var Jg=[0,10,20,30],Yg=[``,`
|
|
9
9
|
`,`
|
|
10
10
|
|
|
11
11
|
`,`
|
|
@@ -16,4 +16,4 @@ import{C as e,E as t,F as n,G as r,H as i,Ht as a,M as o,O as s,St as c,Ut as l,
|
|
|
16
16
|
`:`<br/>`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=$(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=Ck([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(m==null||m===`item`){var h=s.getDataParams(c,l),g=new d_;h.marker=g.makeTooltipMarker(`item`,tm(h.color),d);var _=fg(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?n_(y?V({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=$(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(q(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=z(a),a.content=Ut(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=Ck(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new d_;this._showOrMove(d,function(){var n=z(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`)).color;if(u){if(q(u)){var p=e.ecModel.get(`useUTC`),m=G(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=kp(m.axisValue,d,p)),d=$p(d,n,!0)}else if(K(u)){var g=W(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u}l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r){if(n===`axis`||G(t))return{color:r||(this._renderMode===`html`?`#fff`:`none`)};if(!G(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),K(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),G(t))n=Q(t[0],s),r=Q(t[1],c);else if(J(t)){var p=t;p.width=l[0],p.height=l[1];var m=cm(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(q(t)&&o){var h=Dk(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=Tk(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=Ok(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=Ok(d)?l[1]/2:d===`bottom`?l[1]:0),ek(e)){var h=Ek(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&H(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&H(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&H(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&H(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){I.node||!t.getDom()||(B_(this,`_updatePosition`),this._tooltipContent.dispose(),_O(`itemTooltip`,t))},t.type=`tooltip`,t}(T_);function Ck(e,t,n){var r=t.ecModel,i;n?(i=new Zf(n,r,r),i=new Zf(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Zf&&(o=o.get(`tooltip`,!0)),q(o)&&(o={formatter:o}),o&&(i=new Zf(o,i,r)))}return i}function wk(e,t){return e.dispatchAction||W(t.dispatchAction,t)}function Tk(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function Ek(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function Dk(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function Ok(e){return e===`center`||e===`middle`}function kk(e,t,n){var r=ko(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=Mo(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=$(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function Ak(e){EC(MO),e.registerComponentModel($O),e.registerComponentView(Sk),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},ut),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},ut)}var jk=function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}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}(mm),Mk=function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get(`show`)){var r=this.group,i=e.getModel(`textStyle`),a=e.getModel(`subtextStyle`),o=e.get(`textAlign`),s=Y(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new Xc({style:kf(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new Xc({style:kf(a,{text:u,fill:a.getTextColor(),y:l.height+e.get(`itemGap`),verticalAlign:`top`},{disableBox:!0}),z2:10}),f=e.get(`link`),p=e.get(`sublink`),m=e.get(`triggerEvent`,!0);c.silent=!f&&!m,d.silent=!p&&!m,f&&c.on(`click`,function(){nm(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){nm(p,`_`+e.get(`subtarget`))}),$(c).eventData=$(d).eventData=m?{componentType:`title`,componentIndex:e.componentIndex}:null,r.add(c),u&&r.add(d);var h=r.getBoundingRect(),g=e.getBoxLayoutParams();g.width=h.width,g.height=h.height;var _=cm(g,{width:n.getWidth(),height:n.getHeight()},e.get(`padding`));o||(o=e.get(`left`)||e.get(`right`),o===`middle`&&(o=`center`),o===`right`?_.x+=_.width:o===`center`&&(_.x+=_.width/2)),s||(s=e.get(`top`)||e.get(`bottom`),s===`center`&&(s=`middle`),s===`bottom`?_.y+=_.height:s===`middle`&&(_.y+=_.height/2),s||=`top`),r.x=_.x,r.y=_.y,r.markRedraw();var v={align:o,verticalAlign:s};c.setStyle(v),d.setStyle(v),h=r.getBoundingRect();var y=_.margin,b=e.getItemStyle([`color`,`opacity`]);b.fill=e.get(`backgroundColor`);var x=new Kc({shape:{x:h.x-y[3],y:h.y-y[0],width:h.width+y[1]+y[3],height:h.height+y[0]+y[2],r:e.get(`borderRadius`)},style:b,subPixelOptimize:!0,silent:!0});r.add(x)}},t.type=`title`,t}(T_);function Nk(e){e.registerComponentModel(jk),e.registerComponentView(Mk)}var Pk=function(e,t){if(t===`all`)return{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])};if(t===`inverse`)return{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}},Fk=function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),G(t)&&H(t,function(e,r){q(e)&&(e={type:e}),t[r]=B(e,Pk(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get(`name`);if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get(`name`))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(r){var i=r.name;n.push(i);var a;if(r.legendVisualProvider){var o=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(o)),o.length?t=t.concat(o):a=!0}else a=!0;a&&xo(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get(`data`)||t,i=X(),a=U(r,function(e){return(q(e)||Be(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new Zf(e,this,this.ecModel))},this);this._data=Fe(a,function(e){return!!e})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;if(this.get(`selectedMode`)===`single`){var n=this._data;H(n,function(e){t[e.get(`name`)]=!1})}t[e]=!0},t.prototype.unSelect=function(e){this.get(`selectedMode`)!==`single`&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?`unSelect`:`select`](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;H(e,function(e){t[e.get(`name`,!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;H(e,function(e){var n=e.get(`name`,!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&Ae(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,top:0,align:`auto`,backgroundColor:`rgba(0,0,0,0)`,borderColor:`#ccc`,borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:`#ccc`,inactiveBorderColor:`#ccc`,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:`#ccc`,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:`#333`},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:`#666`,borderWidth:1,borderColor:`#666`},emphasis:{selectorLabel:{show:!0,color:`#eee`,backgroundColor:`#666`}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(mm),Ik=Re,Lk=H,Rk=wa,zk=function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new Rk),this.group.add(this._selectorGroup=new Rk),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=e.getBoxLayoutParams(),l={width:n.getWidth(),height:n.getHeight()},u=e.get(`padding`),d=cm(c,l,u),f=this.layoutInner(e,i,d,r,o,s),p=cm(ke({width:f.width,height:f.height},c),l,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=QO(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=X(),l=t.get(`selectedMode`),u=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&u.push(e.id)}),Lk(t.getData(),function(i,a){var o=i.get(`name`);if(!this.newlineDisabled&&(o===``||o===`
|
|
17
17
|
`)){var d=new Rk;d.newline=!0,s.add(d);return}var f=n.getSeriesByName(o)[0];if(!c.get(o)){if(f){var p=f.getData(),m=p.getVisual(`legendLineStyle`)||{},h=p.getVisual(`legendIcon`),g=p.getVisual(`style`),_=this._createItem(f,o,a,i,t,e,m,g,h,l,r);_.on(`click`,Ik(Hk,o,null,r,u)).on(`mouseover`,Ik(Wk,f.name,null,r,u)).on(`mouseout`,Ik(Gk,f.name,null,r,u)),n.ssr&&_.eachChild(function(e){var t=$(e);t.seriesIndex=f.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),c.set(o,!0)}else n.eachRawSeries(function(s){if(!c.get(o)&&s.legendVisualProvider){var d=s.legendVisualProvider;if(!d.containName(o))return;var f=d.indexOfName(o),p=d.getItemVisual(f,`style`),m=d.getItemVisual(f,`legendIcon`),h=Br(p.fill);h&&h[3]===0&&(h[3]=.2,p=V(V({},p),{fill:Wr(h,`rgba`)}));var g=this._createItem(s,o,a,i,t,e,{},p,m,l,r);g.on(`click`,Ik(Hk,null,o,r,u)).on(`mouseover`,Ik(Wk,null,o,r,u)).on(`mouseout`,Ik(Gk,null,o,r,u)),n.ssr&&g.eachChild(function(e){var t=$(e);t.seriesIndex=s.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),c.set(o,!0)}},this)}},this),i&&this._createSelector(i,t,r,a,o)},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();Lk(e,function(e){var r=e.type,i=new Xc({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),Df(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),iu(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=Bk(c,r,o,s,d,m,u),y=new Rk,b=r.getModel(`textStyle`);if(K(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(Vk({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;q(w)&&w?T=w.replace(`{name}`,t??``):K(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new Xc({style:kf(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new Kc({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&xf({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),iu(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();sm(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){sm(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(T_);function Bk(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),Lk(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:ky(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function Vk(e){var t=e.icon||`roundRect`,n=Bv(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=`#fff`,n.style.lineWidth=2),n}function Hk(e,t,n,r){Gk(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),Wk(e,t,n,r)}function Uk(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,i=t.length;r<i&&!(n=t[r].states.emphasis);)r++;return n&&n.hoverLayer}function Wk(e,t,n,r){Uk(n)||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function Gk(e,t,n,r){Uk(n)||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function Kk(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function qk(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),Jk(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){H(i,function(t,n){e[t?`select`:`unSelect`](n)}),Jk(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function Jk(e,t){var n=t||{};return H(e.getData(),function(t){var r=t.get(`name`);if(r!==`
|
|
18
18
|
`&&r!==``){var i=e.isSelected(r);n[r]=lt(n,r)?n[r]&&i:i}}),n}function Yk(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,Re(qk,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,Re(qk,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,Re(qk,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,Re(qk,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,Re(qk,`unSelect`))}function Xk(e){e.registerComponentModel(Fk),e.registerComponentView(zk),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,Kk),e.registerSubTypeDefaulter(`legend`,function(){return`plain`}),Yk(e)}var Zk=function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=dm(t);e.prototype.init.call(this,t,n,r),Qk(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),Qk(this,this.option,t)},t.type=`legend.scroll`,t.defaultOption=np(Fk.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:`end`,pageFormatter:`{current}/{total}`,pageIcons:{horizontal:[`M0,0L12,-10L12,10z`,`M0,0L-12,-10L-12,10z`],vertical:[`M0,0L20,0L10,-20z`,`M0,0L20,0L10,20z`]},pageIconColor:`#2f4554`,pageIconInactiveColor:`#aaa`,pageIconSize:15,pageTextStyle:{color:`#333`},animationDurationUpdate:800}),t}(Fk);function Qk(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,um(t,n,{type:`box`,ignoreSize:!!i})}var $k=wa,eA=[`width`,`height`],tA=[`x`,`y`],nA=function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new $k),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new $k)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,a,o,s){var c=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,s);var l=this._controllerGroup,u=n.get(`pageIconSize`,!0),d=G(u)?u:[u,u];p(`pagePrev`,0);var f=n.getModel(`pageTextStyle`);l.add(new Xc({name:`pageText`,style:{text:`xx/xx`,fill:f.getTextColor(),font:f.getFont(),verticalAlign:`middle`,align:`center`},silent:!0})),p(`pageNext`,1);function p(e,t){var r=e+`DataIndex`,a=gf(n.get(`pageIcons`,!0)[n.getOrient().name][t],{onclick:W(c._pageGo,c,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,l.add(a)}},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),s=e.getOrient().index,c=eA[s],l=tA[s],u=eA[1-s],d=tA[1-s];i&&sm(`horizontal`,o,e.get(`selectorItemGap`,!0));var f=e.get(`selectorButtonGap`,!0),p=o.getBoundingRect(),m=[-p.x,-p.y],h=z(n);i&&(h[c]=n[c]-p[c]-f);var g=this._layoutContentAndController(e,r,h,s,c,u,d,l);if(i){if(a===`end`)m[s]+=g[c]+f;else{var _=p[c]+f;m[s]-=_,g[l]-=_}g[c]+=p[c]+f,m[1-s]+=g[d]+g[u]/2-p[u]/2,g[u]=Math.max(g[u],p[u]),g[d]=Math.min(g[d],p[d]+m[1-s]),o.x=m[0],o.y=m[1],o.markRedraw()}return g},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var c=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;sm(e.get(`orient`),c,e.get(`itemGap`),r?n.width:null,r?null:n.height),sm(`horizontal`,u,e.get(`pageButtonItemGap`,!0));var d=c.getBoundingRect(),f=u.getBoundingRect(),p=this._showController=d[i]>n[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=Y(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new Kc({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&Ld(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;H([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,q(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=eA[i],o=tA[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i<g.i&&(g=h,f.pagePrevDataIndex??=h.i,++f.pageCount,++f.pageIndex),h=_;return f;function v(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(zk);function rA(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function iA(e){EC(Xk),e.registerComponentModel(Zk),e.registerComponentView(nA),rA(e)}function aA(e){EC(Xk),EC(iA)}var oA=function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.inside`,t.defaultOption=np(VO.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(VO),sA=Eo();function cA(e,t,n){sA(e).coordSysRecordMap.each(function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)})}function lA(e,t){for(var n=sA(e).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var a=r[i],o=n.get(a),s=o.dataZoomInfoMap;if(s){var c=t.uid;s.get(c)&&(s.removeKey(c),s.keys().length||uA(n,o))}}}function uA(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function dA(e,t){var n={model:t,containsPoint:Re(pA,t),dispatchAction:Re(fA,e),dataZoomInfoMap:null,controller:null},r=n.controller=new DD(e.getZr());return H([`pan`,`zoom`,`scrollMove`],function(e){r.on(e,function(t){var r=[];n.dataZoomInfoMap.each(function(i){if(t.isAvailableBehavior(i.model.option)){var a=(i.getRange||{})[e],o=a&&a(i.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!i.model.get(`disabled`,!0)&&o&&r.push({dataZoomId:i.model.id,start:o[0],end:o[1]})}}),r.length&&n.dispatchAction(r)})}),n}function fA(e,t){e.isDisposed()||e.dispatchAction({type:`dataZoom`,animation:{easing:`cubicOut`,duration:100},batch:t})}function pA(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function mA(e){var t,n=`type_`,r={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return e.each(function(e){var a=e.model,o=a.get(`disabled`,!0)?!1:!a.get(`zoomLock`,!0)||`move`;r[n+o]>r[n+t]&&(t=o),i&&=a.get(`preventDefaultMouseMove`,!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function hA(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=sA(t),r=n.coordSysRecordMap||=X();r.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:`dataZoom`,subType:`inside`},function(e){H(zO(e).infoList,function(n){var i=n.model.uid,a=r.get(i)||r.set(i,dA(t,n.model));(a.dataZoomInfoMap||=X()).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})})}),r.each(function(e){var t=e.controller,n,i=e.dataZoomInfoMap;if(i){var a=i.keys()[0];a!=null&&(n=i.get(a))}if(!n){uA(r,e);return}var o=mA(i);t.enable(o.controlType,o.opt),t.setPointerChecker(e.containsPoint),z_(e,`dispatchAction`,n.model.get(`throttle`,!0),`fixRate`)})})}var gA=function(e){F(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataZoom.inside`,t}return t.prototype.render=function(t,n,r){if(e.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),cA(r,t,{pan:W(_A.pan,this),zoom:W(_A.zoom,this),scrollMove:W(_A.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){lA(this.api,this.dataZoomModel),this.range=null},t.type=`dataZoom.inside`,t}(UO),_A={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=yA[t](null,[r.originX,r.originY],o,n,e),c=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],l=Math.max(1/r.scale,0);a[0]=(a[0]-c)*l+c,a[1]=(a[1]-c)*l+c;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(RD(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:vA(function(e,t,n,r,i,a){var o=yA[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:vA(function(e,t,n,r,i,a){return yA[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n).signal*(e[1]-e[0])*a.scrollDelta})};function vA(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s&&(RD(e(o,s,t,n,r,i),o,[0,100],`all`),this.range=o,a[0]!==o[0]||a[1]!==o[1]))return o}}var yA={grid:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem.getRect();return e||=[0,0],a.dim===`x`?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem,c=s.getRadiusAxis().getExtent(),l=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType===`radiusAxis`?(o.pixel=t[0]-e[0],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),s={};return e||=[0,0],a.orient===`horizontal`?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function bA(e){ZO(e),e.registerComponentModel(oA),e.registerComponentView(gA),hA(e)}var xA=function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.slider`,t.layoutMode=`box`,t.defaultOption=np(VO.defaultOption,{show:!0,right:`ph`,top:`ph`,width:`ph`,height:`ph`,left:null,bottom:null,borderColor:`#d2dbee`,borderRadius:3,backgroundColor:`rgba(47,69,84,0)`,dataBackground:{lineStyle:{color:`#d2dbee`,width:.5},areaStyle:{color:`#d2dbee`,opacity:.2}},selectedDataBackground:{lineStyle:{color:`#8fb0f7`,width:.5},areaStyle:{color:`#8fb0f7`,opacity:.2}},fillerColor:`rgba(135,175,274,0.2)`,handleIcon:`path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z`,handleSize:`100%`,handleStyle:{color:`#fff`,borderColor:`#ACB8D1`},moveHandleSize:7,moveHandleIcon:`path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z`,moveHandleStyle:{color:`#D2DBEE`,opacity:.7},showDetail:!0,showDataShadow:`auto`,realtime:!0,zoomLock:!1,textStyle:{color:`#6E7079`},brushSelect:!0,brushStyle:{color:`rgba(135,175,274,0.15)`},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:`#8FB0F7`},moveHandleStyle:{color:`#8FB0F7`}}}),t}(VO),SA=Kc,CA=7,wA=1,TA=30,EA=7,DA=`horizontal`,OA=`vertical`,kA=5,AA=[`line`,`bar`,`candlestick`,`scatter`],jA={easing:`cubicOut`,duration:100,delay:0},MA=function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(e,t){this.api=t,this._onBrush=W(this._onBrush,this),this._onBrushEnd=W(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),z_(this,`_dispatchZoomAction`,t.get(`throttle`),`fixRate`),this._orient=t.getOrient(),t.get(`show`)===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!==`dataZoom`||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){B_(this,`_dispatchZoomAction`);var e=this.api.getZr();e.off(`mousemove`,this._onBrush),e.off(`mouseup`,this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new wa;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get(`brushSelect`)?EA:0,r=this._findCoordRect(),i={width:t.getWidth(),height:t.getHeight()},a=this._orient===DA?{right:i.width-r.x-r.width,top:i.height-TA-CA-n,width:r.width,height:TA}:{right:CA,top:r.y,width:TA,height:r.height},o=dm(e.option);H([`right`,`top`,`width`,`height`],function(e){o[e]===`ph`&&(o[e]=a[e])});var s=cm(o,i);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===OA&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get(`inverse`),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n===DA&&!i?{scaleY:o?1:-1,scaleX:1}:n===DA&&i?{scaleY:o?1:-1,scaleX:-1}:n===OA&&!i?{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2});var s=e.getBoundingRect([a]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get(`brushSelect`);n.add(new SA({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get(`backgroundColor`)},z2:-40}));var i=new SA({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:`transparent`},z2:0,onclick:W(this._onClickPanel,this)}),a=this.api.getZr();r?(i.on(`mousedown`,this._onBrushStart,this),i.cursor=`crosshair`,a.on(`mousemove`,this._onBrush),a.on(`mouseup`,this._onBrushEnd)):(a.off(`mousemove`,this._onBrush),a.off(`mouseup`,this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),a=r.getShadowDim&&r.getShadowDim(),o=a&&i.getDimensionInfo(a)?r.getShadowDim():e.otherDim;if(o==null)return;var s=this._shadowPolygonPts,c=this._shadowPolylinePts;if(i!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var l=i.getDataExtent(o),u=(l[1]-l[0])*.3;l=[l[0]-u,l[1]+u];var d=[0,t[1]],f=[0,t[0]],p=[[t[0],0],[0,0]],m=[],h=f[1]/(i.count()-1),g=0,_=Math.round(i.count()/t[0]),v;i.each([o],function(e,t){if(_>0&&t%_){g+=h;return}var n=e==null||isNaN(e)||e===``,r=n?0:Fa(e,l,d,!0);n&&!v&&t?(p.push([p[p.length-1][0],0]),m.push([m[m.length-1][0],0])):!n&&v&&(p.push([g,0]),m.push([g,0])),p.push([g,r]),m.push([g,r]),g+=h,v=n}),s=this._shadowPolygonPts=p,c=this._shadowPolylinePts=m}this._shadowData=i,this._shadowDim=o,this._shadowSize=[t[0],t[1]];var y=this.dataZoomModel;function b(e){var t=y.getModel(e?`selectedDataBackground`:`dataBackground`),n=new wa,r=new dd({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel(`areaStyle`).getAreaStyle(),silent:!0,z2:-20}),i=new pd({shape:{points:c},segmentIgnoreThreshold:1,style:t.getModel(`lineStyle`).getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}for(var x=0;x<3;x++){var S=b(x===1);this._displayables.sliderGroup.add(S),this._displayables.dataShadowSegs.push(S)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get(`showDataShadow`);if(t!==!1){var n,r=this.ecModel;return e.eachTargetAxis(function(i,a){H(e.getAxisProxy(i,a).getTargetSeriesModels(),function(e){if(!n&&!(t!==!0&&Ae(AA,e.get(`type`))<0)){var o=r.getComponent(LO(i),a).axis,s=NA(i),c,l=e.coordinateSystem;s!=null&&l.getOtherAxis&&(c=l.getOtherAxis(o).inverse),s=e.getData().mapDimension(s),n={thisAxis:o,series:e,thisDim:i,otherDim:s,otherAxisInverse:c}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,s=this.api,c=o.get(`borderRadius`)||0,l=o.get(`brushSelect`),u=t.filler=new SA({silent:l,style:{fill:o.get(`fillerColor`)},textConfig:{position:`inside`}});i.add(u),i.add(new SA({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:c},style:{stroke:o.get(`dataBackgroundColor`)||o.get(`borderColor`),lineWidth:wA,fill:`rgba(0,0,0,0)`}})),H([0,1],function(t){var a=o.get(`handleIcon`);!Lv[a]&&a.indexOf(`path://`)<0&&a.indexOf(`image://`)<0&&(a=`path://`+a);var s=Bv(a,-1,0,2,2,null,!0);s.attr({cursor:PA(this._orient),draggable:!0,drift:W(this._onDragMove,this,t),ondragend:W(this._onDragEnd,this),onmouseover:W(this._showDataInfo,this,!0),onmouseout:W(this._showDataInfo,this,!1),z2:5});var c=s.getBoundingRect(),l=o.get(`handleSize`);this._handleHeight=Q(l,this._size[1]),this._handleWidth=c.width/c.height*this._handleHeight,s.setStyle(o.getModel(`handleStyle`).getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState(`emphasis`).style=o.getModel([`emphasis`,`handleStyle`]).getItemStyle(),iu(s);var u=o.get(`handleColor`);u!=null&&(s.style.fill=u),i.add(n[t]=s);var d=o.getModel(`textStyle`),f=(o.get(`handleLabel`)||{}).show||!1;e.add(r[t]=new Xc({silent:!0,invisible:!f,style:kf(d,{x:0,y:0,text:``,verticalAlign:`middle`,align:`center`,fill:d.getTextColor(),font:d.getFont()}),z2:10}))},this);var d=u;if(l){var f=Q(o.get(`moveHandleSize`),a[1]),p=t.moveHandle=new Kc({style:o.getModel(`moveHandleStyle`).getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:f}}),m=f*.8,h=t.moveHandleIcon=Bv(o.get(`moveHandleIcon`),-m/2,-m/2,m,m,`#fff`,!0);h.silent=!0,h.y=a[1]+f/2-.5,p.ensureState(`emphasis`).style=o.getModel([`emphasis`,`moveHandleStyle`]).getItemStyle();var g=Math.min(a[1]/2,Math.max(f,10));d=t.moveZone=new Kc({invisible:!0,shape:{y:a[1]-g,height:f+g}}),d.on(`mouseover`,function(){s.enterEmphasis(p)}).on(`mouseout`,function(){s.leaveEmphasis(p)}),i.add(p),i.add(h),i.add(d)}d.attr({draggable:!0,cursor:PA(this._orient),drift:W(this._onDragMove,this,`all`),ondragstart:W(this._showDataInfo,this,!0),ondragend:W(this._onDragEnd,this),onmouseover:W(this._showDataInfo,this,!0),onmouseout:W(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[Fa(e[0],[0,100],t,!0),Fa(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];RD(t,r,i,n.get(`zoomLock`)?`all`:e,a.minSpan==null?null:Fa(a.minSpan,o,i,!0),a.maxSpan==null?null:Fa(a.maxSpan,o,i,!0));var s=this._range,c=this._range=La([Fa(r[0],i,o,!0),Fa(r[1],i,o,!0)]);return!s||s[0]!==c[0]||s[1]!==c[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=La(n.slice()),i=this._size;H([0,1],function(e){var r=t.handles[e],a=this._handleHeight;r.attr({scaleX:a/2,scaleY:a/2,x:n[e]+(e?-1:1),y:i[1]/2-a/2})},this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var a={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(a),t.moveZone.setShape(a),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr(`x`,a.x+a.width/2));for(var o=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],c=0;c<o.length;c++){var l=o[c],u=l.getClipPath();u||(u=new Kc,l.setClipPath(u)),u.setShape({x:s[c],y:0,width:s[c+1]-s[c],height:i[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,a=[``,``];if(t.get(`showDetail`)){var o=t.findRepresentativeAxisProxy();if(o){var s=o.getAxisModel().axis,c=this._range,l=e?o.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:o.getDataValueWindow();a=[this._formatLabel(l[0],s),this._formatLabel(l[1],s)]}}var u=La(this._handleEnds.slice());d.call(this,0),d.call(this,1);function d(e){var t=cf(n.handles[e].parent,this.group),o=uf(e===0?`right`:`left`,t),s=this._handleWidth/2+kA,c=lf([u[e]+(e===0?-s:s),this._size[1]/2],t);r[e].setStyle({x:c[0],y:c[1],verticalAlign:i===DA?`middle`:o,align:i===DA?o:`center`,text:a[e]})}},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,r=n.get(`labelFormatter`),i=n.get(`labelPrecision`);(i==null||i===`auto`)&&(i=t.getPixelPrecision());var a=e==null||isNaN(e)?``:t.type===`category`||t.type===`time`?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(i,20));return K(r)?r(e,a):q(r)?r.replace(`{value}`,a):a},t.prototype._showDataInfo=function(e){var t=(this.dataZoomModel.get(`handleLabel`)||{}).show||!1,n=this.dataZoomModel.getModel([`emphasis`,`handleLabel`]).get(`show`)||!1,r=e||this._dragging?n:t,i=this._displayables,a=i.handleLabels;a[0].attr(`invisible`,!r),a[1].attr(`invisible`,!r),i.moveHandle&&this.api[r?`enterEmphasis`:`leaveEmphasis`](i.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,r){this._dragging=!0,en(r.event);var i=this._displayables.sliderGroup.getLocalTransform(),a=lf([t,n],i,!0),o=this._updateInterval(e,a[0]),s=this.dataZoomModel.get(`realtime`);this._updateView(!s),o&&s&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get(`realtime`)&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,a=this._updateInterval(`all`,n[0]-i);this._updateView(),a&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new Z(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr(`ignore`,!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100];this._range=La([Fa(n.x,r,i,!0),Fa(n.x+n.width,r,i,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(en(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new SA({silent:!0,style:r.getModel(`brushStyle`).getItemStyle()}),n.sliderGroup.add(i)),i.attr(`ignore`,!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(e,t),c=o.transformCoordToLocal(a.x,a.y),l=this._size;s[0]=Math.max(Math.min(l[0],s[0]),0),i.setShape({x:c[0],y:0,width:s[0]-c[0],height:l[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:`dataZoom`,from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?jA:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=zO(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:r*.2,y:i*.2,width:r*.6,height:i*.6}}return e},t.type=`dataZoom.slider`,t}(UO);function NA(e){return{x:`y`,y:`x`,radius:`angle`,angle:`radius`}[e]}function PA(e){return e===`vertical`?`ns-resize`:`ew-resize`}function FA(e){e.registerComponentModel(xA),e.registerComponentView(MA),ZO(e)}function IA(e){EC(bA),EC(FA)}var LA=[`getWidth`,`getHeight`,`getDom`,`getOption`,`resize`,`dispatchAction`,`convertToPixel`,`convertFromPixel`,`containPixel`,`getDataURL`,`getConnectedDataURL`,`appendData`,`clear`,`isDisposed`,`dispose`];function RA(e){function t(t){return(...n)=>{if(!e.value)throw Error(`ECharts is not initialized yet.`);return e.value[t].apply(e.value,n)}}function n(){let e=Object.create(null);return LA.forEach(n=>{e[n]=t(n)}),e}return n()}function zA(e,t,n){p([n,e,t],([e,t,n],r,i)=>{let a=null;if(e&&t&&n){let{offsetWidth:r,offsetHeight:i}=e,{throttle:o=100,onResize:s}=n===!0?{}:n,c=!1,l=()=>{t.resize(),s?.()},u=o?R_(l,o):l;a=new ResizeObserver(()=>{!c&&(c=!0,e.offsetWidth===r&&e.offsetHeight===i)||u()}),a.observe(e)}i(()=>{a&&=(a.disconnect(),null)})})}var BA={autoresize:[Boolean,Object]},VA=/^on[^a-z]/,HA=e=>VA.test(e);function UA(e){let t={};for(let n in e)HA(n)||(t[n]=e[n]);return t}function WA(e,t){let n=y(e)?c(e):e;return n&&typeof n==`object`&&`value`in n?n.value||t:n||t}var GA=`ecLoadingOptions`;function KA(e,t,n){let r=s(GA,{}),i=m(()=>({...WA(r,{}),...n?.value}));T(()=>{let n=e.value;n&&(t.value?n.showLoading(i.value):n.hideLoading())})}var qA={loading:Boolean,loadingOptions:Object},JA=null,YA=`x-vue-echarts`;function XA(){if(JA!=null)return JA;if(typeof HTMLElement>`u`||typeof customElements>`u`)return JA=!1;try{Function(`tag`,`class EChartsElement extends HTMLElement{__dispose=null;disconnectedCallback(){this.__dispose&&(this.__dispose(),this.__dispose=null)}}customElements.get(tag)==null&&customElements.define(tag,EChartsElement);`)(YA)}catch{return JA=!1}return JA=!0}document.head.appendChild(document.createElement(`style`)).textContent=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0}
|
|
19
|
-
`;var ZA=XA(),QA=`ecTheme`,$A=`ecInitOptions`,ej=`ecUpdateOptions`,tj=/(^&?~?!?)native:/,nj=e({name:`echarts`,props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...BA,...qA},emits:{},inheritAttrs:!1,setup(e,{attrs:t}){let r=g(),i=g(),a=g(),c=s(QA,null),l=s($A,null),u=s(ej,null),{autoresize:d,manualUpdate:f,loading:h,loadingOptions:_}=O(e),v=m(()=>a.value||e.option||null),y=m(()=>e.theme||WA(c,{})),b=m(()=>e.initOptions||WA(l,{})),x=m(()=>e.updateOptions||WA(u,{})),S=m(()=>UA(t)),C={},w=E().proxy.$listeners,D={};w?Object.keys(w).forEach(e=>{tj.test(e)?C[e.replace(tj,`$1`)]=w[e]:D[e]=w[e]}):Object.keys(t).filter(e=>HA(e)).forEach(e=>{let n=e.charAt(2).toLowerCase()+e.slice(3);if(n.indexOf(`native:`)===0){let r=`on${n.charAt(7).toUpperCase()}${n.slice(8)}`;C[r]=t[e];return}n.substring(n.length-4)===`Once`&&(n=`~${n.substring(0,n.length-4)}`),D[n]=t[e]});function A(t){if(!r.value)return;let n=i.value=Jb(r.value,y.value,b.value);e.group&&(n.group=e.group),Object.keys(D).forEach(e=>{let t=D[e];if(!t)return;let r=e.toLowerCase();r.charAt(0)===`~`&&(r=r.substring(1),t.__once__=!0);let i=n;if(r.indexOf(`zr:`)===0&&(i=n.getZr(),r=r.substring(3)),t.__once__){delete t.__once__;let e=t;t=(...n)=>{e(...n),i.off(r,t)}}i.on(r,t)});function a(){n&&!n.isDisposed()&&n.resize()}function s(){let e=t||v.value;e&&n.setOption(e,x.value)}d.value?o(()=>{a(),s()}):s()}function j(t,n){e.manualUpdate&&(a.value=t),i.value?i.value.setOption(t,n||{}):A(t)}function M(){i.value&&=(i.value.dispose(),void 0)}let N=null;p(f,t=>{typeof N==`function`&&(N(),N=null),t||(N=p(()=>e.option,(e,t)=>{e&&(i.value?i.value.setOption(e,{notMerge:e!==t,...x.value}):A())},{deep:!0}))},{immediate:!0}),p([y,b],()=>{M(),A()},{deep:!0}),T(()=>{e.group&&i.value&&(i.value.group=e.group)});let P=RA(i);return KA(i,h,_),zA(i,d,r),k(()=>{A()}),n(()=>{ZA&&r.value?r.value.__dispose=M:M()}),{chart:i,root:r,setOption:j,nonEventAttrs:S,nativeListeners:C,...P}},render(){let e={...this.nonEventAttrs,...this.nativeListeners};return e.ref=`root`,e.class=e.class?[`echarts`].concat(e.class):`echarts`,t(YA,e)}}),rj=Object.assign(e({__name:`AwChart`,props:{option:{type:Object,required:!0}},setup(e){EC([bw,YT,hT,gE,LD,NO,Ak,aA,Nk,IA]);let t=[`#4a6b57`,`#8aa07c`,`#c9a26a`,`#b3714f`,`#6f8296`,`#4e4e4e`],n=e,r=m(()=>({color:t,...n.option}));return(e,t)=>(i(),b(c(nj),v(e.$attrs,{option:r.value,autoresize:``}),null,16,[`option`]))}}),{__name:`AwChart`}),ij={class:`home`},aj={class:`hero aw-stagger`},oj={class:`hero-main`},sj={class:`aw-kicker`},cj={class:`hero-title`},lj={class:`aw-serif-accent-italic`},uj={class:`hero-sub`},dj={class:`hero-acts`},fj={class:`hero-live mono`},pj={class:`live-badge`},mj={class:`live-rows`},hj={class:`kpi-row aw-stagger`},gj={class:`kpi`},_j={class:`kpi-label`},vj={class:`kpi-value`},yj={class:`kpi`},bj={class:`kpi-label`},xj={class:`kpi-value`},Sj={class:`kpi`},Cj={class:`kpi-label`},wj={class:`kpi-value`},Tj={class:`kpi`},Ej={class:`kpi-label`},Dj={class:`kpi-value mono`},Oj={class:`kpi`},kj={class:`kpi-label`},Aj={class:`kpi-value`},jj={class:`kpi-label`},Mj={class:`kpi-value`},Nj={key:0,class:`dpanel harness aw-stagger`},Pj={class:`dp-hd`},Fj={class:`mono fleet-total`},Ij={class:`harness-row`},Lj=[`title`],Rj={class:`h-name`},zj={class:`h-cmd mono`},Bj={class:`grid aw-stagger`},Vj={class:`dpanel span8`},Hj={class:`dp-hd`},Uj={class:`dpanel span4`},Wj={class:`dp-hd`},Gj={class:`donut-wrap`},Kj={class:`donut-center mono`},qj={class:`dpanel span4`},Jj={class:`dp-hd`},Yj={class:`dpanel span4`},Xj={class:`dp-hd`},Zj={class:`mono`},Qj={class:`dpanel span4`},$j={class:`dp-hd`},eM={class:`dpanel fleet aw-stagger`},tM={class:`dp-hd`},nM={class:`mono fleet-total`},rM={class:`fleet-grid`},iM={class:`lc-head`},aM={key:0,class:`lc-run mono`},oM={class:`lc-meta mono`},sM={class:`fa-n mono`},cM={class:`fa-label`},lM={key:1,class:`fleet-empty`},uM=8,dM=w(e({__name:`index`,setup(e){let{t}=P();j({title:()=>t(`titles.dashboard`)});let n=ne(),o=M(),s=ae(),p=ie(),g={accent:`#4a6b57`,cyan:`#6f8296`,amber:`#c9a26a`,violet:`#b3714f`,danger:`#c25a4e`};k(()=>{s.ensureWsFeed(),p.ensureWsFeed(),Promise.all([s.load(),p.load()]).then(()=>L()),w(),oe(()=>{s.load(),p.load(),w(),L()},5e3,{bgMs:3e4})});let v=re(),y=x([]),w=async()=>{try{let e=await v.listHarnesses();y.value=e?.data?.harnesses??[]}catch{}},T=m(()=>y.value.filter(e=>e.available!==!1).length),E=m(()=>p.lines.filter(e=>p.lineStateOf(e.id).active)),O=m(()=>s.nodes.filter(e=>e.enabled&&e.state!==`offline`).length),te=m(()=>s.nodes.length),se=m(()=>s.nodes.filter(e=>e.state===`alarm`).length),F=m(()=>{let e=p.controller.writesTotal;return e===0?100:Math.round((e-p.controller.writesFailed)/e*1e3)/10}),ce=x([]),I=m(()=>s.nodes.filter(e=>e.value!=null&&e.max>e.min).sort((e,t)=>!e.lineId-+!t.lineId||e.id.localeCompare(t.id)).slice(0,4));function L(){let e={};for(let t of I.value)e[t.id]=t.value==null?null:Math.round((t.value-t.min)/(t.max-t.min)*100);ce.value.push({t:Date.now(),m:e}),ce.value.length>36&&ce.value.shift()}let R=m(()=>o.isDark?`#e8eef8`:`#1f2a3a`),le=m(()=>o.isDark?`rgba(143,160,181,0.85)`:`rgba(80,95,120,0.85)`),ue=m(()=>o.isDark?`rgba(143,160,181,0.13)`:`rgba(80,95,120,0.14)`),de=m(()=>o.isDark?`rgba(10,16,28,0.94)`:`rgba(255,255,255,0.97)`),fe=m(()=>({backgroundColor:de.value,borderColor:ue.value,textStyle:{color:R.value,fontSize:11}})),pe=m(()=>({backgroundColor:`transparent`,graphic:ce.value.length===0?[{type:`text`,left:`center`,top:`middle`,style:{text:t(`home.trendWaiting`),fill:le.value,fontSize:12}}]:void 0,tooltip:{trigger:`axis`,...fe.value},legend:{top:0,right:4,icon:`roundRect`,itemWidth:10,itemHeight:4,textStyle:{color:le.value,fontSize:10.5}},grid:{left:42,right:14,top:30,bottom:24},xAxis:{type:`time`,axisLabel:{color:le.value,fontSize:10,formatter:`{HH}:{mm}:{ss}`},axisLine:{lineStyle:{color:ue.value}},splitLine:{show:!1}},yAxis:{type:`value`,min:0,max:100,name:t(`home.trendY`),nameTextStyle:{color:le.value,fontSize:10,align:`left`},axisLabel:{color:le.value,fontSize:10},splitLine:{lineStyle:{color:ue.value}}},series:I.value.map((e,t)=>{let n=[g.accent,g.cyan,g.amber,g.violet][t%4];return{name:e.name,type:`line`,smooth:!0,showSymbol:!1,connectNulls:!0,lineStyle:{width:1.6,color:n},itemStyle:{color:n},data:ce.value.map(t=>[t.t,t.m[e.id]??null])}})})),me=m(()=>({backgroundColor:`transparent`,tooltip:{trigger:`item`,...fe.value},legend:{bottom:0,left:`center`,icon:`roundRect`,itemWidth:10,itemHeight:4,textStyle:{color:le.value,fontSize:10.5}},series:[{type:`pie`,radius:[`62%`,`82%`],center:[`50%`,`44%`],label:{show:!1},silent:!1,data:[{value:E.value.length,name:t(`home.runNow`),itemStyle:{color:g.accent}},{value:Math.max(p.lines.length-E.value.length,0),name:t(`home.standBy`),itemStyle:{color:ue.value}}]}]})),he=m(()=>({backgroundColor:`transparent`,tooltip:{trigger:`axis`,axisPointer:{type:`shadow`},...fe.value},grid:{left:70,right:34,top:10,bottom:24},xAxis:{type:`value`,axisLabel:{color:le.value,fontSize:10,formatter:e=>e>=1e3?`${Math.round(e/1e3)}k`:String(e)},splitLine:{lineStyle:{color:ue.value}}},yAxis:{type:`category`,data:[t(`home.pipelineSeries.stored`),t(`home.pipelineSeries.consumed`),t(`home.pipelineSeries.produced`)],axisLabel:{color:le.value,fontSize:10.5},axisLine:{lineStyle:{color:ue.value}}},series:[{type:`bar`,barWidth:10,data:[{value:s.meta.samplesStored??0,itemStyle:{color:g.amber}},{value:s.meta.consumed??0,itemStyle:{color:g.cyan}},{value:s.meta.produced??0,itemStyle:{color:g.accent}}],itemStyle:{borderRadius:[0,5,5,0]}}]})),ge=m(()=>({backgroundColor:`transparent`,series:[{type:`gauge`,startAngle:210,endAngle:-30,min:0,max:100,radius:`92%`,center:[`50%`,`58%`],progress:{show:!0,width:12,itemStyle:{color:g.accent}},axisLine:{lineStyle:{width:12,color:[[1,ue.value]]}},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{show:!1},pointer:{show:!1},anchor:{show:!1},title:{show:!1},detail:{valueAnimation:!0,formatter:`{value}%`,color:R.value,fontSize:26,fontFamily:`monospace`,offsetCenter:[0,`4%`]},data:[{value:F.value}]}]})),_e=[{key:`ok`,color:g.accent},{key:`warn`,color:g.amber},{key:`alarm`,color:g.danger},{key:`writing`,color:g.cyan},{key:`idle`,color:`#8fa0b5`},{key:`error`,color:`#ff8a5c`},{key:`offline`,color:`rgba(143,160,181,0.35)`}],ve=m(()=>{let e=new Map;for(let t of s.nodes)e.set(t.state,(e.get(t.state)??0)+1);let n=new Map;for(let e of p.nodes)n.set(e.state,(n.get(e.state)??0)+1);let r=_e.filter(t=>e.get(t.key)||n.get(t.key));return{backgroundColor:`transparent`,tooltip:{trigger:`axis`,axisPointer:{type:`shadow`},...fe.value},legend:{top:0,left:`center`,icon:`roundRect`,itemWidth:10,itemHeight:4,textStyle:{color:le.value,fontSize:10}},grid:{left:56,right:14,top:30,bottom:24},xAxis:{type:`value`,axisLabel:{color:le.value,fontSize:10},splitLine:{lineStyle:{color:ue.value}}},yAxis:{type:`category`,data:[t(`home.stateDcw`),t(`home.stateDaq`)],axisLabel:{color:le.value,fontSize:10.5},axisLine:{lineStyle:{color:ue.value}}},series:r.map(r=>({name:t(`home.states.${r.key}`),type:`bar`,stack:`nodes`,barWidth:12,itemStyle:{color:r.color},data:[n.get(r.key)??0,e.get(r.key)??0]}))}}),ye=m(()=>p.lines.map(e=>{let t=p.lineStateOf(e.id);return{id:e.id,name:e.name,color:e.color,active:t.active,product:t.productName,recipe:t.recipeName,runId:t.runId,tagged:t.taggedSamples,dcwCount:p.nodes.filter(t=>t.lineId===e.id).length,daqCount:s.nodes.filter(t=>t.lineId===e.id).length}})),be=m(()=>[...ye.value].sort((e,t)=>Number(t.active)-Number(e.active)||t.tagged-e.tagged||e.name.localeCompare(t.name))),xe=m(()=>be.value.slice(0,uM)),Se=m(()=>Math.max(ye.value.length-uM,0));return(e,o)=>{let m=ee,g=N;return i(),h(`div`,ij,[C(`section`,aj,[C(`div`,oj,[C(`p`,sj,u(c(t)(`home.kicker`))+` · `+u(c(n).mode),1),C(`h1`,cj,[f(u(c(t)(`home.heroTitle`))+` `,1),C(`span`,lj,u(c(t)(`home.heroAccent`)),1)]),C(`p`,uj,u(c(t)(`home.heroSub`)),1),C(`div`,dj,[C(`button`,{class:`aw-pill im`,onClick:o[0]||=t=>(`navigateTo`in e?e.navigateTo:c(A))(`/town`)},[o[2]||=C(`span`,{class:`i-tabler-map-2 im-pop`},null,-1),f(` `+u(c(t)(`home.ctaTown`)),1)]),C(`button`,{class:`aw-pill outline im`,onClick:o[1]||=t=>(`navigateTo`in e?e.navigateTo:c(A))(`/dcw`)},[o[3]||=C(`span`,{class:`i-tabler-route im-pop`},null,-1),f(` `+u(c(t)(`home.ctaLine`)),1)])])]),C(`div`,fj,[C(`span`,pj,[o[4]||=C(`span`,{class:`live-dot`},null,-1),f(u(c(t)(`home.live`)),1)]),C(`div`,mj,[C(`span`,null,[f(u(c(t)(`home.runNow`))+` `,1),C(`b`,null,u(c(E).length),1),f(`/`+u(c(p).lines.length)+` `+u(c(t)(`home.kpi.lines`)),1)]),C(`span`,null,[f(u(c(t)(`home.kpi.samples`))+` `,1),C(`b`,null,u(c(s).meta.samplesStored??0),1)]),C(`span`,{class:a([`live-alarms`,{on:c(se)>0}])},[f(u(c(t)(`home.kpi.alarms`))+` `,1),C(`b`,null,u(c(se)),1)],2)])]),o[5]||=C(`div`,{class:`hero-scale`,"aria-hidden":`true`},null,-1)]),C(`div`,hj,[C(`div`,gj,[C(`span`,_j,u(c(t)(`home.kpi.lines`)),1),C(`span`,vj,[f(u(c(E).length),1),C(`small`,null,`/`+u(c(p).lines.length),1)])]),C(`div`,yj,[C(`span`,bj,u(c(t)(`home.kpi.dcwNodes`)),1),C(`span`,xj,[f(u(c(p).controller.nodesOnline),1),C(`small`,null,`/`+u(c(p).controller.nodesTotal),1)])]),C(`div`,Sj,[C(`span`,Cj,u(c(t)(`home.kpi.daqNodes`)),1),C(`span`,wj,[f(u(c(O)),1),C(`small`,null,`/`+u(c(te)),1)])]),C(`div`,Tj,[C(`span`,Ej,u(c(t)(`home.kpi.samples`)),1),C(`span`,Dj,u(c(s).meta.samplesStored??0),1)]),C(`div`,Oj,[C(`span`,kj,u(c(t)(`home.kpi.writeRate`)),1),C(`span`,Aj,[f(u(c(F)),1),o[6]||=C(`small`,null,`%`,-1)])]),C(`div`,{class:a([`kpi`,{alarm:c(se)>0}])},[C(`span`,jj,u(c(t)(`home.kpi.alarms`)),1),C(`span`,Mj,u(c(se)),1)],2)]),c(y).length>0?(i(),h(`section`,Nj,[C(`header`,Pj,[C(`h3`,null,u(c(t)(`home.harness.title`)),1),C(`small`,null,u(c(t)(`home.harness.sub`)),1),C(`small`,Fj,u(c(T))+`/`+u(c(y).length),1)]),C(`div`,Ij,[(i(!0),h(d,null,r(c(y),e=>(i(),h(`div`,{key:e.id,class:a([`h-item`,{off:e.available===!1}]),title:e.available===!1?e.error??``:e.resolvedPath??e.command??``},[o[7]||=C(`span`,{class:`h-dot`},null,-1),C(`span`,Rj,u(e.label),1),C(`span`,zj,u(e.available===!1?c(t)(`home.harness.missing`):e.inprocess?`in-process`:e.command),1)],10,Lj))),128))])])):_(``,!0),C(`div`,Bj,[C(`section`,Vj,[C(`header`,Hj,[C(`h3`,null,u(c(t)(`home.charts.trend`)),1),C(`small`,null,u(c(t)(`home.charts.trendSub`)),1)]),D(m,null,{default:S(()=>[D(rj,{option:c(pe),class:`chart h280`},null,8,[`option`])]),_:1})]),C(`section`,Uj,[C(`header`,Wj,[C(`h3`,null,u(c(t)(`home.charts.lineState`)),1)]),C(`div`,Gj,[C(`div`,Kj,[C(`b`,null,u(c(E).length),1),C(`small`,null,`/ `+u(c(p).lines.length),1)]),D(m,null,{default:S(()=>[D(rj,{option:c(me),class:`chart h240`},null,8,[`option`])]),_:1})])]),C(`section`,qj,[C(`header`,Jj,[C(`h3`,null,u(c(t)(`home.charts.pipeline`)),1)]),D(m,null,{default:S(()=>[D(rj,{option:c(he),class:`chart h240`},null,8,[`option`])]),_:1})]),C(`section`,Yj,[C(`header`,Xj,[C(`h3`,null,u(c(t)(`home.charts.writeCtl`)),1),C(`small`,Zj,u(c(p).controller.writesTotal)+` `+u(c(t)(`home.writesFailed`))+` `+u(c(p).controller.writesFailed),1)]),D(m,null,{default:S(()=>[D(rj,{option:c(ge),class:`chart h240`},null,8,[`option`])]),_:1})]),C(`section`,Qj,[C(`header`,$j,[C(`h3`,null,u(c(t)(`home.charts.nodeState`)),1)]),D(m,null,{default:S(()=>[D(rj,{option:c(ve),class:`chart h240`},null,8,[`option`])]),_:1})])]),C(`section`,eM,[C(`header`,tM,[C(`h3`,null,u(c(t)(`home.charts.lines`)),1),C(`small`,null,u(c(t)(`home.fleetHint`)),1),C(`small`,nM,u(c(p).lines.length),1)]),C(`div`,rM,[(i(!0),h(d,null,r(c(xe),e=>(i(),b(g,{key:e.id,class:a([`line-card`,{on:e.active}]),style:l({"--lc":e.color}),to:`/dcw/${e.id}`},{default:S(()=>[C(`div`,iM,[o[8]||=C(`span`,{class:`lc-dot`},null,-1),C(`b`,null,u(e.name),1),C(`span`,{class:a([`lc-state`,{on:e.active}])},u(e.active?c(t)(`home.runNow`):c(t)(`home.standBy`)),3)]),e.active?(i(),h(`div`,aM,[C(`span`,null,u(e.product)+` · `+u(e.recipe),1),C(`small`,null,u(c(t)(`home.batch`))+` `+u(e.runId?.slice(0,8))+` · `+u(c(t)(`home.tagged`))+` `+u(e.tagged),1)])):_(``,!0),C(`div`,oM,[C(`span`,null,u(c(t)(`home.nodesUnit`))+` `+u(e.dcwCount),1),C(`span`,null,u(c(t)(`home.daqUnit`))+` `+u(e.daqCount),1)])]),_:2},1032,[`class`,`style`,`to`]))),128)),c(Se)>0?(i(),b(g,{key:0,class:`line-card fleet-all im`,to:`/dcw`},{default:S(()=>[C(`span`,sM,`+`+u(c(Se)),1),C(`span`,cM,u(c(t)(`home.fleetAll`)),1),o[9]||=C(`span`,{class:`i-tabler-arrow-right fa-arrow`},null,-1)]),_:1})):_(``,!0),c(ye).length===0?(i(),h(`p`,lM,u(c(t)(`home.noLine`)),1)):_(``,!0)])])])}}}),[[`__scopeId`,`data-v-716dcbd7`]]);export{dM as default};
|
|
19
|
+
`;var ZA=XA(),QA=`ecTheme`,$A=`ecInitOptions`,ej=`ecUpdateOptions`,tj=/(^&?~?!?)native:/,nj=e({name:`echarts`,props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...BA,...qA},emits:{},inheritAttrs:!1,setup(e,{attrs:t}){let r=g(),i=g(),a=g(),c=s(QA,null),l=s($A,null),u=s(ej,null),{autoresize:d,manualUpdate:f,loading:h,loadingOptions:_}=O(e),v=m(()=>a.value||e.option||null),y=m(()=>e.theme||WA(c,{})),b=m(()=>e.initOptions||WA(l,{})),x=m(()=>e.updateOptions||WA(u,{})),S=m(()=>UA(t)),C={},w=E().proxy.$listeners,D={};w?Object.keys(w).forEach(e=>{tj.test(e)?C[e.replace(tj,`$1`)]=w[e]:D[e]=w[e]}):Object.keys(t).filter(e=>HA(e)).forEach(e=>{let n=e.charAt(2).toLowerCase()+e.slice(3);if(n.indexOf(`native:`)===0){let r=`on${n.charAt(7).toUpperCase()}${n.slice(8)}`;C[r]=t[e];return}n.substring(n.length-4)===`Once`&&(n=`~${n.substring(0,n.length-4)}`),D[n]=t[e]});function A(t){if(!r.value)return;let n=i.value=Jb(r.value,y.value,b.value);e.group&&(n.group=e.group),Object.keys(D).forEach(e=>{let t=D[e];if(!t)return;let r=e.toLowerCase();r.charAt(0)===`~`&&(r=r.substring(1),t.__once__=!0);let i=n;if(r.indexOf(`zr:`)===0&&(i=n.getZr(),r=r.substring(3)),t.__once__){delete t.__once__;let e=t;t=(...n)=>{e(...n),i.off(r,t)}}i.on(r,t)});function a(){n&&!n.isDisposed()&&n.resize()}function s(){let e=t||v.value;e&&n.setOption(e,x.value)}d.value?o(()=>{a(),s()}):s()}function j(t,n){e.manualUpdate&&(a.value=t),i.value?i.value.setOption(t,n||{}):A(t)}function M(){i.value&&=(i.value.dispose(),void 0)}let N=null;p(f,t=>{typeof N==`function`&&(N(),N=null),t||(N=p(()=>e.option,(e,t)=>{e&&(i.value?i.value.setOption(e,{notMerge:e!==t,...x.value}):A())},{deep:!0}))},{immediate:!0}),p([y,b],()=>{M(),A()},{deep:!0}),T(()=>{e.group&&i.value&&(i.value.group=e.group)});let P=RA(i);return KA(i,h,_),zA(i,d,r),k(()=>{A()}),n(()=>{ZA&&r.value?r.value.__dispose=M:M()}),{chart:i,root:r,setOption:j,nonEventAttrs:S,nativeListeners:C,...P}},render(){let e={...this.nonEventAttrs,...this.nativeListeners};return e.ref=`root`,e.class=e.class?[`echarts`].concat(e.class):`echarts`,t(YA,e)}}),rj=Object.assign(e({__name:`AwChart`,props:{option:{type:Object,required:!0}},setup(e){EC([bw,YT,hT,gE,LD,NO,Ak,aA,Nk,IA]);let t=[`#4a6b57`,`#8aa07c`,`#c9a26a`,`#b3714f`,`#6f8296`,`#4e4e4e`],n=e,r=m(()=>({color:t,...n.option}));return(e,t)=>(i(),b(c(nj),v(e.$attrs,{option:r.value,autoresize:``}),null,16,[`option`]))}}),{__name:`AwChart`}),ij={class:`home`},aj={class:`hero aw-stagger`},oj={class:`hero-main`},sj={class:`aw-kicker`},cj={class:`hero-title`},lj={class:`aw-serif-accent-italic`},uj={class:`hero-sub`},dj={class:`hero-acts`},fj={class:`hero-live mono`},pj={class:`live-badge`},mj={class:`live-rows`},hj={class:`kpi-row aw-stagger`},gj={class:`kpi`},_j={class:`kpi-label`},vj={class:`kpi-value`},yj={class:`kpi`},bj={class:`kpi-label`},xj={class:`kpi-value`},Sj={class:`kpi`},Cj={class:`kpi-label`},wj={class:`kpi-value`},Tj={class:`kpi`},Ej={class:`kpi-label`},Dj={class:`kpi-value mono`},Oj={class:`kpi`},kj={class:`kpi-label`},Aj={class:`kpi-value`},jj={class:`kpi-label`},Mj={class:`kpi-value`},Nj={key:0,class:`dpanel harness aw-stagger`},Pj={class:`dp-hd`},Fj={class:`mono fleet-total`},Ij={class:`harness-row`},Lj=[`title`],Rj={class:`h-name`},zj={class:`h-cmd mono`},Bj={class:`grid aw-stagger`},Vj={class:`dpanel span8`},Hj={class:`dp-hd`},Uj={class:`dpanel span4`},Wj={class:`dp-hd`},Gj={class:`donut-wrap`},Kj={class:`donut-center mono`},qj={class:`dpanel span4`},Jj={class:`dp-hd`},Yj={class:`dpanel span4`},Xj={class:`dp-hd`},Zj={class:`mono`},Qj={class:`dpanel span4`},$j={class:`dp-hd`},eM={class:`dpanel fleet aw-stagger`},tM={class:`dp-hd`},nM={class:`mono fleet-total`},rM={class:`fleet-grid`},iM={class:`lc-head`},aM={key:0,class:`lc-run mono`},oM={class:`lc-meta mono`},sM={class:`fa-n mono`},cM={class:`fa-label`},lM={key:1,class:`fleet-empty`},uM=8,dM=w(e({__name:`index`,setup(e){let{t}=ee();j({title:()=>t(`titles.dashboard`)});let n=N(),o=M(),s=ae(),p=ie(),g={accent:`#4a6b57`,cyan:`#6f8296`,amber:`#c9a26a`,violet:`#b3714f`,danger:`#c25a4e`};k(()=>{s.ensureWsFeed(),p.ensureWsFeed(),Promise.all([s.load(),p.load()]).then(()=>L()),w(),oe(()=>{s.load(),p.load(),w(),L()},5e3,{bgMs:3e4})});let v=re(),y=x([]),w=async()=>{try{let e=await v.listHarnesses();y.value=e?.data?.harnesses??[]}catch{}},T=m(()=>y.value.filter(e=>e.available!==!1).length),E=m(()=>p.lines.filter(e=>p.lineStateOf(e.id).active)),O=m(()=>s.nodes.filter(e=>e.enabled&&e.state!==`offline`).length),ne=m(()=>s.nodes.length),se=m(()=>s.nodes.filter(e=>e.state===`alarm`).length),F=m(()=>{let e=p.controller.writesTotal;return e===0?100:Math.round((e-p.controller.writesFailed)/e*1e3)/10}),ce=x([]),I=m(()=>s.nodes.filter(e=>e.value!=null&&e.max>e.min).sort((e,t)=>!e.lineId-+!t.lineId||e.id.localeCompare(t.id)).slice(0,4));function L(){let e={};for(let t of I.value)e[t.id]=t.value==null?null:Math.round((t.value-t.min)/(t.max-t.min)*100);ce.value.push({t:Date.now(),m:e}),ce.value.length>36&&ce.value.shift()}let R=m(()=>o.isDark?`#e8eef8`:`#1f2a3a`),le=m(()=>o.isDark?`rgba(143,160,181,0.85)`:`rgba(80,95,120,0.85)`),ue=m(()=>o.isDark?`rgba(143,160,181,0.13)`:`rgba(80,95,120,0.14)`),de=m(()=>o.isDark?`rgba(10,16,28,0.94)`:`rgba(255,255,255,0.97)`),fe=m(()=>({backgroundColor:de.value,borderColor:ue.value,textStyle:{color:R.value,fontSize:11}})),pe=m(()=>({backgroundColor:`transparent`,graphic:ce.value.length===0?[{type:`text`,left:`center`,top:`middle`,style:{text:t(`home.trendWaiting`),fill:le.value,fontSize:12}}]:void 0,tooltip:{trigger:`axis`,...fe.value},legend:{top:0,right:4,icon:`roundRect`,itemWidth:10,itemHeight:4,textStyle:{color:le.value,fontSize:10.5}},grid:{left:42,right:14,top:30,bottom:24},xAxis:{type:`time`,axisLabel:{color:le.value,fontSize:10,formatter:`{HH}:{mm}:{ss}`},axisLine:{lineStyle:{color:ue.value}},splitLine:{show:!1}},yAxis:{type:`value`,min:0,max:100,name:t(`home.trendY`),nameTextStyle:{color:le.value,fontSize:10,align:`left`},axisLabel:{color:le.value,fontSize:10},splitLine:{lineStyle:{color:ue.value}}},series:I.value.map((e,t)=>{let n=[g.accent,g.cyan,g.amber,g.violet][t%4];return{name:e.name,type:`line`,smooth:!0,showSymbol:!1,connectNulls:!0,lineStyle:{width:1.6,color:n},itemStyle:{color:n},data:ce.value.map(t=>[t.t,t.m[e.id]??null])}})})),me=m(()=>({backgroundColor:`transparent`,tooltip:{trigger:`item`,...fe.value},legend:{bottom:0,left:`center`,icon:`roundRect`,itemWidth:10,itemHeight:4,textStyle:{color:le.value,fontSize:10.5}},series:[{type:`pie`,radius:[`62%`,`82%`],center:[`50%`,`44%`],label:{show:!1},silent:!1,data:[{value:E.value.length,name:t(`home.runNow`),itemStyle:{color:g.accent}},{value:Math.max(p.lines.length-E.value.length,0),name:t(`home.standBy`),itemStyle:{color:ue.value}}]}]})),he=m(()=>({backgroundColor:`transparent`,tooltip:{trigger:`axis`,axisPointer:{type:`shadow`},...fe.value},grid:{left:70,right:34,top:10,bottom:24},xAxis:{type:`value`,axisLabel:{color:le.value,fontSize:10,formatter:e=>e>=1e3?`${Math.round(e/1e3)}k`:String(e)},splitLine:{lineStyle:{color:ue.value}}},yAxis:{type:`category`,data:[t(`home.pipelineSeries.stored`),t(`home.pipelineSeries.consumed`),t(`home.pipelineSeries.produced`)],axisLabel:{color:le.value,fontSize:10.5},axisLine:{lineStyle:{color:ue.value}}},series:[{type:`bar`,barWidth:10,data:[{value:s.meta.samplesStored??0,itemStyle:{color:g.amber}},{value:s.meta.consumed??0,itemStyle:{color:g.cyan}},{value:s.meta.produced??0,itemStyle:{color:g.accent}}],itemStyle:{borderRadius:[0,5,5,0]}}]})),ge=m(()=>({backgroundColor:`transparent`,series:[{type:`gauge`,startAngle:210,endAngle:-30,min:0,max:100,radius:`92%`,center:[`50%`,`58%`],progress:{show:!0,width:12,itemStyle:{color:g.accent}},axisLine:{lineStyle:{width:12,color:[[1,ue.value]]}},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{show:!1},pointer:{show:!1},anchor:{show:!1},title:{show:!1},detail:{valueAnimation:!0,formatter:`{value}%`,color:R.value,fontSize:26,fontFamily:`monospace`,offsetCenter:[0,`4%`]},data:[{value:F.value}]}]})),_e=[{key:`ok`,color:g.accent},{key:`warn`,color:g.amber},{key:`alarm`,color:g.danger},{key:`writing`,color:g.cyan},{key:`idle`,color:`#8fa0b5`},{key:`error`,color:`#ff8a5c`},{key:`offline`,color:`rgba(143,160,181,0.35)`}],ve=m(()=>{let e=new Map;for(let t of s.nodes)e.set(t.state,(e.get(t.state)??0)+1);let n=new Map;for(let e of p.nodes)n.set(e.state,(n.get(e.state)??0)+1);let r=_e.filter(t=>e.get(t.key)||n.get(t.key));return{backgroundColor:`transparent`,tooltip:{trigger:`axis`,axisPointer:{type:`shadow`},...fe.value},legend:{top:0,left:`center`,icon:`roundRect`,itemWidth:10,itemHeight:4,textStyle:{color:le.value,fontSize:10}},grid:{left:56,right:14,top:30,bottom:24},xAxis:{type:`value`,axisLabel:{color:le.value,fontSize:10},splitLine:{lineStyle:{color:ue.value}}},yAxis:{type:`category`,data:[t(`home.stateDcw`),t(`home.stateDaq`)],axisLabel:{color:le.value,fontSize:10.5},axisLine:{lineStyle:{color:ue.value}}},series:r.map(r=>({name:t(`home.states.${r.key}`),type:`bar`,stack:`nodes`,barWidth:12,itemStyle:{color:r.color},data:[n.get(r.key)??0,e.get(r.key)??0]}))}}),ye=m(()=>p.lines.map(e=>{let t=p.lineStateOf(e.id);return{id:e.id,name:e.name,color:e.color,active:t.active,product:t.productName,recipe:t.recipeName,runId:t.runId,tagged:t.taggedSamples,dcwCount:p.nodes.filter(t=>t.lineId===e.id).length,daqCount:s.nodes.filter(t=>t.lineId===e.id).length}})),be=m(()=>[...ye.value].sort((e,t)=>Number(t.active)-Number(e.active)||t.tagged-e.tagged||e.name.localeCompare(t.name))),xe=m(()=>be.value.slice(0,uM)),Se=m(()=>Math.max(ye.value.length-uM,0));return(e,o)=>{let m=te,g=P;return i(),h(`div`,ij,[C(`section`,aj,[C(`div`,oj,[C(`p`,sj,u(c(t)(`home.kicker`))+` · `+u(c(n).mode),1),C(`h1`,cj,[f(u(c(t)(`home.heroTitle`))+` `,1),C(`span`,lj,u(c(t)(`home.heroAccent`)),1)]),C(`p`,uj,u(c(t)(`home.heroSub`)),1),C(`div`,dj,[C(`button`,{class:`aw-pill im`,onClick:o[0]||=t=>(`navigateTo`in e?e.navigateTo:c(A))(`/town`)},[o[2]||=C(`span`,{class:`i-tabler-map-2 im-pop`},null,-1),f(` `+u(c(t)(`home.ctaTown`)),1)]),C(`button`,{class:`aw-pill outline im`,onClick:o[1]||=t=>(`navigateTo`in e?e.navigateTo:c(A))(`/dcw`)},[o[3]||=C(`span`,{class:`i-tabler-route im-pop`},null,-1),f(` `+u(c(t)(`home.ctaLine`)),1)])])]),C(`div`,fj,[C(`span`,pj,[o[4]||=C(`span`,{class:`live-dot`},null,-1),f(u(c(t)(`home.live`)),1)]),C(`div`,mj,[C(`span`,null,[f(u(c(t)(`home.runNow`))+` `,1),C(`b`,null,u(c(E).length),1),f(`/`+u(c(p).lines.length)+` `+u(c(t)(`home.kpi.lines`)),1)]),C(`span`,null,[f(u(c(t)(`home.kpi.samples`))+` `,1),C(`b`,null,u(c(s).meta.samplesStored??0),1)]),C(`span`,{class:a([`live-alarms`,{on:c(se)>0}])},[f(u(c(t)(`home.kpi.alarms`))+` `,1),C(`b`,null,u(c(se)),1)],2)])]),o[5]||=C(`div`,{class:`hero-scale`,"aria-hidden":`true`},null,-1)]),C(`div`,hj,[C(`div`,gj,[C(`span`,_j,u(c(t)(`home.kpi.lines`)),1),C(`span`,vj,[f(u(c(E).length),1),C(`small`,null,`/`+u(c(p).lines.length),1)])]),C(`div`,yj,[C(`span`,bj,u(c(t)(`home.kpi.dcwNodes`)),1),C(`span`,xj,[f(u(c(p).controller.nodesOnline),1),C(`small`,null,`/`+u(c(p).controller.nodesTotal),1)])]),C(`div`,Sj,[C(`span`,Cj,u(c(t)(`home.kpi.daqNodes`)),1),C(`span`,wj,[f(u(c(O)),1),C(`small`,null,`/`+u(c(ne)),1)])]),C(`div`,Tj,[C(`span`,Ej,u(c(t)(`home.kpi.samples`)),1),C(`span`,Dj,u(c(s).meta.samplesStored??0),1)]),C(`div`,Oj,[C(`span`,kj,u(c(t)(`home.kpi.writeRate`)),1),C(`span`,Aj,[f(u(c(F)),1),o[6]||=C(`small`,null,`%`,-1)])]),C(`div`,{class:a([`kpi`,{alarm:c(se)>0}])},[C(`span`,jj,u(c(t)(`home.kpi.alarms`)),1),C(`span`,Mj,u(c(se)),1)],2)]),c(y).length>0?(i(),h(`section`,Nj,[C(`header`,Pj,[C(`h3`,null,u(c(t)(`home.harness.title`)),1),C(`small`,null,u(c(t)(`home.harness.sub`)),1),C(`small`,Fj,u(c(T))+`/`+u(c(y).length),1)]),C(`div`,Ij,[(i(!0),h(d,null,r(c(y),e=>(i(),h(`div`,{key:e.id,class:a([`h-item`,{off:e.available===!1}]),title:e.available===!1?e.error??``:e.resolvedPath??e.command??``},[o[7]||=C(`span`,{class:`h-dot`},null,-1),C(`span`,Rj,u(e.label),1),C(`span`,zj,u(e.available===!1?c(t)(`home.harness.missing`):e.inprocess?`in-process`:e.command),1)],10,Lj))),128))])])):_(``,!0),C(`div`,Bj,[C(`section`,Vj,[C(`header`,Hj,[C(`h3`,null,u(c(t)(`home.charts.trend`)),1),C(`small`,null,u(c(t)(`home.charts.trendSub`)),1)]),D(m,null,{default:S(()=>[D(rj,{option:c(pe),class:`chart h280`},null,8,[`option`])]),_:1})]),C(`section`,Uj,[C(`header`,Wj,[C(`h3`,null,u(c(t)(`home.charts.lineState`)),1)]),C(`div`,Gj,[C(`div`,Kj,[C(`b`,null,u(c(E).length),1),C(`small`,null,`/ `+u(c(p).lines.length),1)]),D(m,null,{default:S(()=>[D(rj,{option:c(me),class:`chart h240`},null,8,[`option`])]),_:1})])]),C(`section`,qj,[C(`header`,Jj,[C(`h3`,null,u(c(t)(`home.charts.pipeline`)),1)]),D(m,null,{default:S(()=>[D(rj,{option:c(he),class:`chart h240`},null,8,[`option`])]),_:1})]),C(`section`,Yj,[C(`header`,Xj,[C(`h3`,null,u(c(t)(`home.charts.writeCtl`)),1),C(`small`,Zj,u(c(p).controller.writesTotal)+` `+u(c(t)(`home.writesFailed`))+` `+u(c(p).controller.writesFailed),1)]),D(m,null,{default:S(()=>[D(rj,{option:c(ge),class:`chart h240`},null,8,[`option`])]),_:1})]),C(`section`,Qj,[C(`header`,$j,[C(`h3`,null,u(c(t)(`home.charts.nodeState`)),1)]),D(m,null,{default:S(()=>[D(rj,{option:c(ve),class:`chart h240`},null,8,[`option`])]),_:1})])]),C(`section`,eM,[C(`header`,tM,[C(`h3`,null,u(c(t)(`home.charts.lines`)),1),C(`small`,null,u(c(t)(`home.fleetHint`)),1),C(`small`,nM,u(c(p).lines.length),1)]),C(`div`,rM,[(i(!0),h(d,null,r(c(xe),e=>(i(),b(g,{key:e.id,class:a([`line-card`,{on:e.active}]),style:l({"--lc":e.color}),to:`/dcw/${e.id}`},{default:S(()=>[C(`div`,iM,[o[8]||=C(`span`,{class:`lc-dot`},null,-1),C(`b`,null,u(e.name),1),C(`span`,{class:a([`lc-state`,{on:e.active}])},u(e.active?c(t)(`home.runNow`):c(t)(`home.standBy`)),3)]),e.active?(i(),h(`div`,aM,[C(`span`,null,u(e.product)+` · `+u(e.recipe),1),C(`small`,null,u(c(t)(`home.batch`))+` `+u(e.runId?.slice(0,8))+` · `+u(c(t)(`home.tagged`))+` `+u(e.tagged),1)])):_(``,!0),C(`div`,oM,[C(`span`,null,u(c(t)(`home.nodesUnit`))+` `+u(e.dcwCount),1),C(`span`,null,u(c(t)(`home.daqUnit`))+` `+u(e.daqCount),1)])]),_:2},1032,[`class`,`style`,`to`]))),128)),c(Se)>0?(i(),b(g,{key:0,class:`line-card fleet-all im`,to:`/dcw`},{default:S(()=>[C(`span`,sM,`+`+u(c(Se)),1),C(`span`,cM,u(c(t)(`home.fleetAll`)),1),o[9]||=C(`span`,{class:`i-tabler-arrow-right fa-arrow`},null,-1)]),_:1})):_(``,!0),c(ye).length===0?(i(),h(`p`,lM,u(c(t)(`home.noLine`)),1)):_(``,!0)])])])}}}),[[`__scopeId`,`data-v-716dcbd7`]]);export{dM as default};
|